@builder.io/sdk-solid 4.0.8 → 4.0.10
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.
- package/dist/index.d.ts +14 -2
- package/lib/browser/dev.js +418 -297
- package/lib/browser/dev.jsx +342 -273
- package/lib/browser/index.js +417 -297
- package/lib/browser/index.jsx +341 -273
- package/lib/edge/dev.js +418 -297
- package/lib/edge/dev.jsx +342 -273
- package/lib/edge/index.js +417 -297
- package/lib/edge/index.jsx +341 -273
- package/lib/node/dev.js +418 -297
- package/lib/node/dev.jsx +342 -273
- package/lib/node/index.js +417 -297
- package/lib/node/index.jsx +341 -273
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -93,7 +93,19 @@ type BlocksWrapperProps = {
|
|
|
93
93
|
*/
|
|
94
94
|
BlocksWrapper: any;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Props to be applied to the wrapping element of blocks. Can be set in two ways:
|
|
97
|
+
* 1. Globally via `<Content blocksWrapperProps={{...}}/>` - applies to all blocks wrappers in the Content
|
|
98
|
+
* 2. Locally via `<Blocks BlocksWrapperProps={{...}}/>` - applies only to this specific blocks instance and overrides global props
|
|
99
|
+
*
|
|
100
|
+
* For merging both global and local props, spread the context props before adding your own:
|
|
101
|
+
* ```
|
|
102
|
+
* <Blocks
|
|
103
|
+
* BlocksWrapperProps={{
|
|
104
|
+
* ...builderContext.BlocksWrapperProps,
|
|
105
|
+
* 'data-test-id': 'my-test-id'
|
|
106
|
+
* }}
|
|
107
|
+
* />
|
|
108
|
+
* ```
|
|
97
109
|
*/
|
|
98
110
|
BlocksWrapperProps: any;
|
|
99
111
|
children?: any;
|
|
@@ -668,7 +680,7 @@ interface VideoProps {
|
|
|
668
680
|
|
|
669
681
|
declare function Video(props: VideoProps): solid_js.JSX.Element;
|
|
670
682
|
|
|
671
|
-
type BlocksProps = Partial<Omit<BlocksWrapperProps, 'BlocksWrapper' | '
|
|
683
|
+
type BlocksProps = Partial<Omit<BlocksWrapperProps, 'BlocksWrapper' | 'classNameProp'>> & {
|
|
672
684
|
context?: BuilderContextInterface;
|
|
673
685
|
registeredComponents?: RegisteredComponents;
|
|
674
686
|
linkComponent?: any;
|