Skip to content

Commit

Permalink
Updated version to prerelease
Browse files Browse the repository at this point in the history
Reverted JS comments for TS types and rebuilt docs
Removed style engine from bundle exception array
  • Loading branch information
ramonjd committed Sep 13, 2022
1 parent fb680d7 commit a0149a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
6 changes: 1 addition & 5 deletions packages/dependency-extraction-webpack-plugin/lib/util.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/style-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- END TOKEN(Autogenerated API docs) -->

Expand Down
12 changes: 6 additions & 6 deletions packages/style-engine/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a0149a5

Please sign in to comment.