@builder.io/sdk-vue 0.2.1 → 0.2.3

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 (110) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/{block-styles.e14644b9.js → block-styles.5729b057.js} +18 -17
  3. package/packages/_vue2/dist/block-styles.cb3c2dd0.cjs +1 -0
  4. package/packages/_vue2/dist/css.2efa95fa.cjs +6 -0
  5. package/packages/{_vue3/dist/css.a2956fb2.js → _vue2/dist/css.a54ddc90.js} +1 -1
  6. package/packages/_vue2/dist/{index.af260d16.js → index.6a9eec41.js} +416 -399
  7. package/packages/_vue2/dist/index.8547cce2.cjs +29 -0
  8. package/packages/_vue2/dist/{render-block.9394f002.js → render-block.4c7d7ca1.js} +38 -35
  9. package/packages/_vue2/dist/render-block.753d2325.cjs +3 -0
  10. package/packages/_vue2/dist/render-component.84d45798.js +38 -0
  11. package/packages/_vue2/dist/render-component.90275cfa.cjs +1 -0
  12. package/packages/_vue2/dist/render-inlined-styles.1999f52e.cjs +1 -0
  13. package/packages/_vue2/dist/render-inlined-styles.1fa49816.js +34 -0
  14. package/packages/_vue2/dist/{render-repeated-block.fd7c9132.js → render-repeated-block.900e2543.js} +15 -13
  15. package/packages/_vue2/dist/render-repeated-block.f522a309.cjs +1 -0
  16. package/packages/_vue2/dist/render-styles.15b8cdf0.cjs +31 -0
  17. package/packages/_vue2/dist/{render-styles.039fcc51.js → render-styles.591ca7be.js} +26 -25
  18. package/packages/_vue2/dist/sdk.cjs +1 -1
  19. package/packages/_vue2/dist/sdk.js +23 -22
  20. package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +19 -8
  21. package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +29 -174
  22. package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +9 -13
  23. package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +13 -20
  24. package/packages/_vue2/dist/src/blocks/fragment/fragment.vue.d.ts +1 -4
  25. package/packages/_vue2/dist/src/blocks/image/image.vue.d.ts +72 -0
  26. package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +8 -11
  27. package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +12 -7
  28. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +15 -245
  29. package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +7 -4
  30. package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +42 -7
  31. package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +18 -27
  32. package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +3 -86
  33. package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +3 -86
  34. package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +19 -84
  35. package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +23 -127
  36. package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +15 -18
  37. package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +46 -212
  38. package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +12 -11
  39. package/packages/_vue2/dist/src/functions/get-content/index.d.ts +1 -1
  40. package/packages/_vue2/dist/src/helpers/logger.d.ts +5 -0
  41. package/packages/_vue2/dist/src/index.d.ts +1 -0
  42. package/packages/_vue2/dist/src/types/builder-content.d.ts +1 -1
  43. package/packages/_vue2/dist/src/types/components.d.ts +1 -72
  44. package/packages/_vue2/dist/src/types/input.d.ts +121 -0
  45. package/packages/_vue2/dist/style.css +1 -1
  46. package/packages/_vue3/dist/block-styles.56f7b28a.cjs +1 -0
  47. package/packages/_vue3/dist/block-styles.f06f105b.js +69 -0
  48. package/packages/{_vue2/dist/css.9b722913.js → _vue3/dist/css.2ff361fc.js} +1 -1
  49. package/packages/{_vue2/dist/css.883115fd.cjs → _vue3/dist/css.f83437ab.cjs} +1 -1
  50. package/packages/_vue3/dist/{index.b87b71f2.js → index.0aed90df.js} +807 -791
  51. package/packages/_vue3/dist/index.d72bde22.cjs +29 -0
  52. package/packages/_vue3/dist/render-block.4e95bb8d.cjs +3 -0
  53. package/packages/_vue3/dist/{render-block.1a6dc153.js → render-block.905bcce5.js} +87 -106
  54. package/packages/_vue3/dist/render-component.0a7c094b.cjs +1 -0
  55. package/packages/_vue3/dist/render-component.b4a311b8.js +42 -0
  56. package/packages/_vue3/dist/render-inlined-styles.454bc38b.js +32 -0
  57. package/packages/_vue3/dist/render-inlined-styles.a596482a.cjs +1 -0
  58. package/packages/_vue3/dist/render-repeated-block.12894c71.js +38 -0
  59. package/packages/_vue3/dist/render-repeated-block.a95715ec.cjs +1 -0
  60. package/packages/_vue3/dist/{render-styles.86b7cc7d.js → render-styles.90b25836.js} +33 -33
  61. package/packages/_vue3/dist/render-styles.b6bf070d.cjs +31 -0
  62. package/packages/_vue3/dist/sdk.cjs +1 -1
  63. package/packages/_vue3/dist/sdk.js +1 -1
  64. package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +19 -8
  65. package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +45 -91
  66. package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +16 -13
  67. package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +17 -20
  68. package/packages/_vue3/dist/src/blocks/fragment/fragment.vue.d.ts +1 -4
  69. package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +54 -14
  70. package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +27 -11
  71. package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +12 -7
  72. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +25 -171
  73. package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +7 -4
  74. package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +42 -7
  75. package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +18 -27
  76. package/packages/_vue3/dist/src/components/render-block/render-block.vue.d.ts +2 -2
  77. package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +2 -2
  78. package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +19 -8
  79. package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +23 -44
  80. package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +15 -18
  81. package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +77 -129
  82. package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +12 -11
  83. package/packages/_vue3/dist/src/functions/get-content/index.d.ts +1 -1
  84. package/packages/_vue3/dist/src/helpers/logger.d.ts +5 -0
  85. package/packages/_vue3/dist/src/index.d.ts +1 -0
  86. package/packages/_vue3/dist/src/types/builder-content.d.ts +1 -1
  87. package/packages/_vue3/dist/src/types/components.d.ts +1 -72
  88. package/packages/_vue3/dist/src/types/input.d.ts +121 -0
  89. package/packages/_vue3/dist/style.css +1 -1
  90. package/packages/_vue2/dist/block-styles.1657b45f.cjs +0 -1
  91. package/packages/_vue2/dist/index.b9a8defa.cjs +0 -29
  92. package/packages/_vue2/dist/render-block.73e50e2a.cjs +0 -3
  93. package/packages/_vue2/dist/render-component.58fe0189.js +0 -37
  94. package/packages/_vue2/dist/render-component.ab9c6751.cjs +0 -1
  95. package/packages/_vue2/dist/render-inlined-styles.cdf66d21.js +0 -33
  96. package/packages/_vue2/dist/render-inlined-styles.f139e6d2.cjs +0 -1
  97. package/packages/_vue2/dist/render-repeated-block.d7008df1.cjs +0 -1
  98. package/packages/_vue2/dist/render-styles.5f902b3b.cjs +0 -31
  99. package/packages/_vue3/dist/block-styles.02894248.cjs +0 -1
  100. package/packages/_vue3/dist/block-styles.6e74059d.js +0 -69
  101. package/packages/_vue3/dist/css.4fc86c7e.cjs +0 -6
  102. package/packages/_vue3/dist/index.501ef5e2.cjs +0 -29
  103. package/packages/_vue3/dist/render-block.a0bf0cfc.cjs +0 -3
  104. package/packages/_vue3/dist/render-component.c1760213.js +0 -26
  105. package/packages/_vue3/dist/render-component.ce1da9f7.cjs +0 -1
  106. package/packages/_vue3/dist/render-inlined-styles.1e4cf51b.js +0 -32
  107. package/packages/_vue3/dist/render-inlined-styles.4e769566.cjs +0 -1
  108. package/packages/_vue3/dist/render-repeated-block.607b20dd.cjs +0 -1
  109. package/packages/_vue3/dist/render-repeated-block.bc4f1130.js +0 -37
  110. package/packages/_vue3/dist/render-styles.efd8cf3d.cjs +0 -31
@@ -1,134 +1,30 @@
1
+ import type { BuilderBlock } from "../types/builder-block.js";
1
2
  export type RenderBlockProps = {
2
3
  blocks?: BuilderBlock[];
3
4
  parent?: string;
4
5
  path?: string;
5
6
  styleProp?: Record<string, any>;
6
7
  };
7
- import { BuilderBlock } from "../types/builder-block.js";
8
- declare const _sfc_main: {
9
- name: string;
10
- components: {
11
- RenderBlock: () => Promise<{
12
- name: string;
13
- components: {
14
- RenderComponent: () => Promise<{
15
- name: string;
16
- components: {
17
- RenderBlock: () => Promise<any>;
18
- BlockStyles: () => Promise<{
19
- name: string;
20
- components: {
21
- RenderInlinedStyles: () => Promise<{
22
- name: string;
23
- props: string[];
24
- data(): {
25
- TARGET: string;
26
- };
27
- computed: {
28
- tag(): string;
29
- injectedStyleScript(): any;
30
- };
31
- }>;
32
- };
33
- props: string[];
34
- data(): {
35
- TARGET: string;
36
- };
37
- computed: {
38
- useBlock(): any;
39
- canShowBlock(): any;
40
- css(): any;
41
- };
42
- }>;
43
- };
44
- props: string[];
45
- }>;
46
- RenderRepeatedBlock: () => Promise<{
47
- name: string;
48
- components: {
49
- RenderBlock: () => Promise<any>;
50
- };
51
- props: string[];
52
- provide(): any;
53
- }>;
54
- BlockStyles: () => Promise<{
55
- name: string;
56
- components: {
57
- RenderInlinedStyles: () => Promise<{
58
- name: string;
59
- props: string[];
60
- data(): {
61
- TARGET: string;
62
- };
63
- computed: {
64
- tag(): string;
65
- injectedStyleScript(): any;
66
- };
67
- }>;
68
- };
69
- props: string[];
70
- data(): {
71
- TARGET: string;
72
- };
73
- computed: {
74
- useBlock(): any;
75
- canShowBlock(): any;
76
- css(): any;
77
- };
78
- }>;
79
- };
80
- props: string[];
81
- data(): any;
82
- computed: {
83
- useBlock(): any;
84
- canShowBlock(): any;
85
- actions(): any;
86
- attributes(): any;
87
- childrenWithoutParentComponent(): any;
88
- childrenContext(): any;
89
- renderComponentProps(): any;
90
- };
91
- methods: {
92
- stripVOn: (actions?: {}) => {};
93
- };
94
- }>;
95
- BlockStyles: () => Promise<{
96
- name: string;
97
- components: {
98
- RenderInlinedStyles: () => Promise<{
99
- name: string;
100
- props: string[];
101
- data(): {
102
- TARGET: string;
103
- };
104
- computed: {
105
- tag(): string;
106
- injectedStyleScript(): any;
107
- };
108
- }>;
109
- };
110
- props: string[];
111
- data(): {
112
- TARGET: string;
113
- };
114
- computed: {
115
- useBlock(): any;
116
- canShowBlock(): any;
117
- css(): any;
118
- };
119
- }>;
120
- };
121
- props: string[];
122
- inject: {
123
- builderContext: symbol;
124
- };
125
- computed: {
126
- className(): any;
127
- };
128
- methods: {
129
- onClick(): void;
130
- onMouseEnter(): void;
131
- _classStringToObject(str: any): {};
132
- };
133
- };
8
+ declare const _sfc_main: import("vue").DefineComponent<Readonly<{
9
+ parent?: any;
10
+ blocks?: any;
11
+ path?: any;
12
+ styleProp?: any;
13
+ }>, {}, {}, {
14
+ className(): string;
15
+ }, {
16
+ onClick(): void;
17
+ onMouseEnter(): void;
18
+ _classStringToObject(str: any): {};
19
+ }, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
20
+ parent?: any;
21
+ blocks?: any;
22
+ path?: any;
23
+ styleProp?: any;
24
+ }>>>, {
25
+ readonly parent?: any;
26
+ readonly blocks?: any;
27
+ readonly path?: any;
28
+ readonly styleProp?: any;
29
+ }>;
134
30
  export default _sfc_main;
@@ -1,19 +1,16 @@
1
- declare const _sfc_main: {
2
- name: string;
3
- components: {
4
- RenderInlinedStyles: () => Promise<{
5
- name: string;
6
- props: string[];
7
- data(): {
8
- TARGET: string;
9
- };
10
- computed: {
11
- tag(): string;
12
- injectedStyleScript(): any;
13
- };
14
- }>;
15
- };
16
- props: string[];
17
- data(): any;
18
- };
1
+ declare const _sfc_main: import("vue").DefineComponent<Readonly<{
2
+ cssCode?: any;
3
+ contentId?: any;
4
+ customFonts?: any;
5
+ }>, {}, {
6
+ injectedStyles: string;
7
+ }, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
8
+ cssCode?: any;
9
+ contentId?: any;
10
+ customFonts?: any;
11
+ }>>>, {
12
+ readonly cssCode?: any;
13
+ readonly contentId?: any;
14
+ readonly customFonts?: any;
15
+ }>;
19
16
  export default _sfc_main;
@@ -1,220 +1,54 @@
1
- import { BuilderRenderState } from "../../context/types.js";
2
- import { Breakpoints, BuilderContent } from "../../types/builder-content.js";
3
- import { Nullable } from "../../types/typescript.js";
4
- declare const _sfc_main: {
5
- name: string;
6
- components: {
7
- RenderContentStyles: () => Promise<{
8
- name: string;
9
- components: {
10
- RenderInlinedStyles: () => Promise<{
11
- name: string;
12
- props: string[];
13
- data(): {
14
- TARGET: string;
15
- };
16
- computed: {
17
- tag(): string;
18
- injectedStyleScript(): any;
19
- };
20
- }>;
21
- };
22
- props: string[];
23
- data(): any;
24
- }>;
25
- RenderBlocks: () => Promise<{
26
- name: string;
27
- components: {
28
- RenderBlock: () => Promise<{
29
- name: string;
30
- components: {
31
- RenderComponent: () => Promise<{
32
- name: string;
33
- components: {
34
- RenderBlock: () => Promise<any>;
35
- BlockStyles: () => Promise<{
36
- name: string;
37
- components: {
38
- RenderInlinedStyles: () => Promise<{
39
- name: string;
40
- props: string[];
41
- data(): {
42
- TARGET: string;
43
- };
44
- computed: {
45
- tag(): string;
46
- injectedStyleScript(): any;
47
- };
48
- }>;
49
- };
50
- props: string[];
51
- data(): {
52
- TARGET: string;
53
- };
54
- computed: {
55
- useBlock(): any;
56
- canShowBlock(): any;
57
- css(): any;
58
- };
59
- }>;
60
- };
61
- props: string[];
62
- }>;
63
- RenderRepeatedBlock: () => Promise<{
64
- name: string;
65
- components: {
66
- RenderBlock: () => Promise<any>;
67
- };
68
- props: string[];
69
- provide(): any;
70
- }>;
71
- BlockStyles: () => Promise<{
72
- name: string;
73
- components: {
74
- RenderInlinedStyles: () => Promise<{
75
- name: string;
76
- props: string[];
77
- data(): {
78
- TARGET: string;
79
- };
80
- computed: {
81
- tag(): string;
82
- injectedStyleScript(): any;
83
- };
84
- }>;
85
- };
86
- props: string[];
87
- data(): {
88
- TARGET: string;
89
- };
90
- computed: {
91
- useBlock(): any;
92
- canShowBlock(): any;
93
- css(): any;
94
- };
95
- }>;
96
- };
97
- props: string[];
98
- data(): any;
99
- computed: {
100
- useBlock(): any;
101
- canShowBlock(): any;
102
- actions(): any;
103
- attributes(): any;
104
- childrenWithoutParentComponent(): any;
105
- childrenContext(): any;
106
- renderComponentProps(): any;
107
- };
108
- methods: {
109
- stripVOn: (actions?: {}) => {};
110
- };
111
- }>;
112
- BlockStyles: () => Promise<{
113
- name: string;
114
- components: {
115
- RenderInlinedStyles: () => Promise<{
116
- name: string;
117
- props: string[];
118
- data(): {
119
- TARGET: string;
120
- };
121
- computed: {
122
- tag(): string;
123
- injectedStyleScript(): any;
124
- };
125
- }>;
126
- };
127
- props: string[];
128
- data(): {
129
- TARGET: string;
130
- };
131
- computed: {
132
- useBlock(): any;
133
- canShowBlock(): any;
134
- css(): any;
135
- };
136
- }>;
137
- };
138
- props: string[];
139
- inject: {
140
- builderContext: symbol;
141
- };
142
- computed: {
143
- className(): any;
144
- };
145
- methods: {
146
- onClick(): void;
147
- onMouseEnter(): void;
148
- _classStringToObject(str: any): {};
149
- };
150
- }>;
1
+ import type { BuilderRenderState } from "../../context/types.js";
2
+ import type { Breakpoints, BuilderContent } from "../../types/builder-content.js";
3
+ import type { Nullable } from "../../types/typescript.js";
4
+ declare const _sfc_main: import("vue").DefineComponent<string[], {}, {
5
+ forceReRenderCount: number;
6
+ overrideContent: null;
7
+ useContent: Nullable<BuilderContent>;
8
+ update: number;
9
+ canTrackToUse: any;
10
+ contentState: {
11
+ [x: string]: unknown;
151
12
  };
152
- props: string[];
153
- data(): {
154
- forceReRenderCount: number;
155
- overrideContent: null;
156
- useContent: Nullable<BuilderContent>;
157
- update: number;
158
- canTrackToUse: any;
159
- contentState: {
13
+ allRegisteredComponents: any;
14
+ httpReqsData: {};
15
+ clicked: boolean;
16
+ TARGET: string;
17
+ }, {
18
+ onUpdateHook0(): {
19
+ 0: any;
20
+ };
21
+ onUpdateHook1(): {
22
+ 0: string | undefined;
23
+ 1: {
160
24
  [x: string]: unknown;
161
25
  };
162
- allRegisteredComponents: any;
163
- httpReqsData: {};
164
- clicked: boolean;
165
- TARGET: string;
166
26
  };
167
- provide(): {
168
- [x: symbol]: {
169
- content: any;
170
- state: any;
171
- setState: any;
172
- context: any;
173
- apiKey: any;
174
- apiVersion: any;
175
- registeredComponents: any;
176
- };
27
+ onUpdateHook2(): {
28
+ 0: {
29
+ [key: string]: string;
30
+ } | undefined;
177
31
  };
178
- mounted(): void;
179
- watch: {
180
- onUpdateHook0: {
181
- handler(): void;
182
- immediate: boolean;
183
- };
184
- onUpdateHook1: {
185
- handler(): void;
186
- immediate: boolean;
187
- };
188
- onUpdateHook2: {
189
- handler(): void;
190
- immediate: boolean;
191
- };
192
- onUpdateHook3: {
193
- handler(): void;
194
- immediate: boolean;
32
+ onUpdateHook3(): {
33
+ 0: {
34
+ [x: string]: unknown;
195
35
  };
196
36
  };
197
- unmounted(): void;
198
- computed: {
199
- onUpdateHook0(): any;
200
- onUpdateHook1(): any;
201
- onUpdateHook2(): any;
202
- onUpdateHook3(): any;
203
- };
204
- methods: {
205
- mergeNewContent(newContent: BuilderContent): void;
206
- setBreakpoints(breakpoints: Breakpoints): void;
207
- setContextState(newState: BuilderRenderState): void;
208
- processMessage(event: MessageEvent): void;
209
- evaluateJsCode(): void;
210
- onClick(event: any): void;
211
- evalExpression(expression: string): string;
212
- handleRequest({ url, key }: {
213
- key: string;
214
- url: string;
215
- }): void;
216
- runHttpRequests(): void;
217
- emitStateUpdate(): void;
218
- };
219
- };
37
+ }, {
38
+ mergeNewContent(newContent: BuilderContent): void;
39
+ setBreakpoints(breakpoints: Breakpoints): void;
40
+ setContextState(newState: BuilderRenderState): void;
41
+ processMessage(event: MessageEvent): void;
42
+ evaluateJsCode(): void;
43
+ onClick(event: any): void;
44
+ evalExpression(expression: string): string;
45
+ handleRequest({ url, key }: {
46
+ key: string;
47
+ url: string;
48
+ }): void;
49
+ runHttpRequests(): void;
50
+ emitStateUpdate(): void;
51
+ }, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<string[]>>, {
52
+ [x: number]: string;
53
+ }>;
220
54
  export default _sfc_main;
@@ -1,12 +1,13 @@
1
- declare const _sfc_main: {
2
- name: string;
3
- props: string[];
4
- data(): {
5
- TARGET: string;
6
- };
7
- computed: {
8
- tag(): string;
9
- injectedStyleScript(): any;
10
- };
11
- };
1
+ declare const _sfc_main: import("vue").DefineComponent<Readonly<{
2
+ styles?: any;
3
+ }>, {}, {
4
+ TARGET: string;
5
+ }, {
6
+ tag(): string;
7
+ injectedStyleScript(): string;
8
+ }, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<Readonly<{
9
+ styles?: any;
10
+ }>>>, {
11
+ readonly styles?: any;
12
+ }>;
12
13
  export default _sfc_main;
@@ -7,5 +7,5 @@ type ContentResponse = {
7
7
  status: number;
8
8
  message: string;
9
9
  };
10
- export declare function getAllContent(options: GetContentOptions): Promise<ContentResponse>;
10
+ export declare function getAllContent(options: GetContentOptions): Promise<ContentResponse | null>;
11
11
  export {};
@@ -0,0 +1,5 @@
1
+ export declare const logger: {
2
+ log: (...message: any[]) => void;
3
+ error: (...message: any[]) => void;
4
+ warn: (...message: any[]) => void;
5
+ };
@@ -10,3 +10,4 @@ export * from './functions/get-builder-search-params/index.js';
10
10
  export { track } from './functions/track/index.js';
11
11
  export type { RegisteredComponent } from './context/types';
12
12
  export type { ComponentInfo } from './types/components';
13
+ export type { RenderContentProps } from './components/render-content/render-content.types.js';
@@ -1,5 +1,5 @@
1
1
  import type { BuilderBlock } from './builder-block.js';
2
- import type { Input } from './components.js';
2
+ import type { Input } from './input.js';
3
3
  import type { Nullable } from './typescript.js';
4
4
  export interface Breakpoints {
5
5
  small: number;
@@ -1,76 +1,5 @@
1
1
  import type { BuilderElement } from './element';
2
- export interface Input {
3
- name: string;
4
- friendlyName?: string;
5
- description?: string;
6
- defaultValue?: any;
7
- type: string;
8
- valueType?: {
9
- type?: string;
10
- };
11
- required?: boolean;
12
- autoFocus?: boolean;
13
- subFields?: Input[];
14
- helperText?: string;
15
- allowedFileTypes?: string[];
16
- imageHeight?: number;
17
- imageWidth?: number;
18
- mediaHeight?: number;
19
- mediaWidth?: number;
20
- hideFromUI?: boolean;
21
- modelId?: string;
22
- /**
23
- * Number field type validation maximum accepted input
24
- */
25
- max?: number;
26
- /**
27
- * Number field type validation minimum accepted input
28
- */
29
- min?: number;
30
- /**
31
- * Number field type step size when using arrows
32
- */
33
- step?: number;
34
- /**
35
- * Set this to `true` to show the editor for this input when
36
- * children of this component are selected. This is useful for things
37
- * like Tabs, such that users may not always select the Tabs component
38
- * directly but will still be looking for how to add additional tabs
39
- */
40
- broadcast?: boolean;
41
- /**
42
- * Set this to `true` to show the editor for this input when
43
- * group locked parents of this component are selected. This is useful
44
- * to bubble up important inputs for locked groups, like text and images
45
- */
46
- bubble?: boolean;
47
- options?: {
48
- [key: string]: any;
49
- };
50
- enum?: string[] | {
51
- label: string;
52
- value: any;
53
- helperText?: string;
54
- }[];
55
- /** Regex field validation for all string types (text, longText, html, url, etc) */
56
- regex?: {
57
- /** pattern to test, like "^\/[a-z]$" */
58
- pattern: string;
59
- /** flags for the RegExp constructor, e.g. "gi" */
60
- options?: string;
61
- /**
62
- * Friendly message to display to end-users if the regex fails, e.g.
63
- * "You must use a relative url starting with '/...' "
64
- */
65
- message: string;
66
- };
67
- advanced?: boolean;
68
- onChange?: ((options: Map<string, any>) => void | Promise<void>) | string;
69
- code?: boolean;
70
- richText?: boolean;
71
- showIf?: ((options: Map<string, any>) => boolean) | string;
72
- copyOnAdd?: boolean;
73
- }
2
+ import type { Input } from './input';
74
3
  export interface ComponentInfo {
75
4
  /**
76
5
  * Name your component something unique, e.g. 'MyButton'. You can override built-in components