@builder.io/sdk-solid 4.0.7 → 4.0.9

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 CHANGED
@@ -93,7 +93,19 @@ type BlocksWrapperProps = {
93
93
  */
94
94
  BlocksWrapper: any;
95
95
  /**
96
- * Additonal props to pass to `blocksWrapper`. Defaults to `{}`.
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' | 'BlocksWrapperProps' | 'classNameProp'>> & {
683
+ type BlocksProps = Partial<Omit<BlocksWrapperProps, 'BlocksWrapper' | 'classNameProp'>> & {
672
684
  context?: BuilderContextInterface;
673
685
  registeredComponents?: RegisteredComponents;
674
686
  linkComponent?: any;