From a0149a58bc12e5210017cab433a63c4bff16ea36 Mon Sep 17 00:00:00 2001 From: ramonjd Date: Tue, 6 Sep 2022 19:31:31 +1000 Subject: [PATCH] Updated version to prerelease Reverted JS comments for TS types and rebuilt docs Removed style engine from bundle exception array --- .../dependency-extraction-webpack-plugin/lib/util.js | 6 +----- packages/style-engine/README.md | 2 +- packages/style-engine/src/index.ts | 12 ++++++------ 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/packages/dependency-extraction-webpack-plugin/lib/util.js b/packages/dependency-extraction-webpack-plugin/lib/util.js index 87d67f8dbd68fd..a22837af6a72e9 100644 --- a/packages/dependency-extraction-webpack-plugin/lib/util.js +++ b/packages/dependency-extraction-webpack-plugin/lib/util.js @@ -1,9 +1,5 @@ const WORDPRESS_NAMESPACE = '@wordpress/'; -const BUNDLED_PACKAGES = [ - '@wordpress/icons', - '@wordpress/interface', - '@wordpress/style-engine', -]; +const BUNDLED_PACKAGES = [ '@wordpress/icons', '@wordpress/interface' ]; /** * Default request to global transformation diff --git a/packages/style-engine/README.md b/packages/style-engine/README.md index 299427c8998a2d..f5288fe8fda1f5 100644 --- a/packages/style-engine/README.md +++ b/packages/style-engine/README.md @@ -212,7 +212,7 @@ _Parameters_ _Returns_ -- `GeneratedCSSRule[]`: GeneratedCSSRule\[] A collection of objects containing the selector, if any, the CSS property key (camelcase) and parsed CSS value. +- `GeneratedCSSRule[]`: A collection of objects containing the selector, if any, the CSS property key (camelcase) and parsed CSS value. diff --git a/packages/style-engine/src/index.ts b/packages/style-engine/src/index.ts index 2bf0d616cfbb89..0f02f4ece27834 100644 --- a/packages/style-engine/src/index.ts +++ b/packages/style-engine/src/index.ts @@ -17,10 +17,10 @@ import { styleDefinitions } from './styles'; /** * Generates a stylesheet for a given style object and selector. * - * @param {Style} style Style object, for example, the value of a block's attributes.style object or the top level styles in theme.json - * @param {StyleOptions} options Options object with settings to adjust how the styles are generated. + * @param style Style object, for example, the value of a block's attributes.style object or the top level styles in theme.json + * @param options Options object with settings to adjust how the styles are generated. * - * @return {string} A generated stylesheet or inline style declarations. + * @return A generated stylesheet or inline style declarations. */ export function compileCSS( style: Style, options: StyleOptions = {} ): string { const rules = getCSSRules( style, options ); @@ -56,10 +56,10 @@ export function compileCSS( style: Style, options: StyleOptions = {} ): string { /** * Returns a JSON representation of the generated CSS rules. * - * @param {Style} style Style object, for example, the value of a block's attributes.style object or the top level styles in theme.json - * @param {StyleOptions} options Options object with settings to adjust how the styles are generated. + * @param style Style object, for example, the value of a block's attributes.style object or the top level styles in theme.json + * @param options Options object with settings to adjust how the styles are generated. * - * @return GeneratedCSSRule[] A collection of objects containing the selector, if any, the CSS property key (camelcase) and parsed CSS value. + * @return A collection of objects containing the selector, if any, the CSS property key (camelcase) and parsed CSS value. */ export function getCSSRules( style: Style,