@wix/form-elements 1.96.0 → 1.97.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -76,9 +76,13 @@ normalizes the layout itself.
76
76
  The stylesheet is exported as `@wix/form-elements/Form/css`, following the
77
77
  `@wix/editor-react-components/<Name>/css` convention. It is for renders outside the Wix platform:
78
78
  Storybook, standalone pages and Site Export, which imports `<package>/<cssFile.path>` from a
79
- component's `moduleConfiguration`. Don't import it from component code: on a Wix site the platform
80
- loads the element's stylesheet itself, and the Wix CLI build would bundle a second copy into your
81
- component's CSS, since it only leaves `@wix/form-elements/Form` itself external.
79
+ component's `moduleConfiguration`. The Form's manifest (`src/extensions/form/form.extension.ts`)
80
+ declares that configuration: this package, the `Form` entry and `Form/css`, so Site Export installs
81
+ the component from npm instead of embedding a pre-built copy of the statics bundle. The entries and
82
+ `package.json#exports` must change together. Don't import the
83
+ stylesheet from component code: on a Wix site the platform loads the element's stylesheet itself, and
84
+ the Wix CLI build would bundle a second copy into your component's CSS, since it only leaves
85
+ `@wix/form-elements/Form` itself external.
82
86
 
83
87
  ## What the package contains
84
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/form-elements",
3
- "version": "1.96.0",
3
+ "version": "1.97.0",
4
4
  "description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -156,5 +156,5 @@
156
156
  ]
157
157
  }
158
158
  },
159
- "falconPackageHash": "8baaf4fc68904d93ae495a77c7cf525b01a13db46e7e90a3fea79b8f"
159
+ "falconPackageHash": "9edc5263fc3b91cc19492bedb1b78b6ed96c8b5ad7afb2d5e5a9c4dc"
160
160
  }