@builder.io/sdk-react-nextjs 0.7.1-2 → 0.7.1-4

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 (162) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-11d41596.js → USE_CLIENT_BUNDLE-1cdce03b.cjs} +1 -1
  2. package/lib/{node/USE_CLIENT_BUNDLE-e041d92c.mjs → browser/USE_CLIENT_BUNDLE-2dd6963b.js} +2 -2
  3. package/lib/{edge/USE_SERVER_BUNDLE-66d4b8c4.mjs → browser/USE_SERVER_BUNDLE-97369f61.js} +1 -1
  4. package/lib/browser/USE_SERVER_BUNDLE-c110917b.cjs +1 -0
  5. package/lib/browser/{bundle-242ae8b5.mjs → bundle-31003427.js} +2 -2
  6. package/lib/browser/{bundle-05622db1.js → bundle-cbc690cf.cjs} +2 -2
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.d.cts +1066 -0
  9. package/lib/browser/index.d.mts +1066 -0
  10. package/lib/browser/index.mjs +3 -3
  11. package/lib/{node/USE_CLIENT_BUNDLE-8147b412.js → edge/USE_CLIENT_BUNDLE-ba263633.cjs} +1 -1
  12. package/lib/{browser/USE_CLIENT_BUNDLE-48d9356f.mjs → edge/USE_CLIENT_BUNDLE-ee929cd6.js} +2 -2
  13. package/lib/edge/USE_SERVER_BUNDLE-133fe486.cjs +1 -0
  14. package/lib/{node/USE_SERVER_BUNDLE-1634816a.mjs → edge/USE_SERVER_BUNDLE-2a1fc947.js} +1 -1
  15. package/lib/edge/{bundle-3d31ba5d.mjs → bundle-1c5ceddb.js} +2 -2
  16. package/lib/edge/{bundle-1b9b93c7.js → bundle-cfdeec4b.cjs} +2 -2
  17. package/lib/edge/index.cjs +1 -1
  18. package/lib/edge/index.d.cts +1066 -0
  19. package/lib/edge/index.d.mts +1066 -0
  20. package/lib/edge/index.mjs +3 -3
  21. package/lib/{edge/USE_CLIENT_BUNDLE-6eb1ee54.mjs → node/USE_CLIENT_BUNDLE-32bb8c8f.js} +2 -2
  22. package/lib/{edge/USE_CLIENT_BUNDLE-bba76732.js → node/USE_CLIENT_BUNDLE-7a982d7c.cjs} +1 -1
  23. package/lib/node/USE_SERVER_BUNDLE-25f4a46f.cjs +1 -0
  24. package/lib/{browser/USE_SERVER_BUNDLE-3875256b.mjs → node/USE_SERVER_BUNDLE-86e8b7c7.js} +1 -1
  25. package/lib/node/{bundle-7ebcd79e.mjs → bundle-844e3979.js} +2 -2
  26. package/lib/node/{bundle-4203318d.js → bundle-b13f5899.cjs} +2 -2
  27. package/lib/node/index.cjs +1 -1
  28. package/lib/node/index.d.cts +1066 -0
  29. package/lib/node/index.d.mts +1066 -0
  30. package/lib/node/index.mjs +3 -3
  31. package/package.json +8 -26
  32. package/lib/browser/USE_SERVER_BUNDLE-568694d9.js +0 -1
  33. package/lib/edge/USE_SERVER_BUNDLE-305bf94a.js +0 -1
  34. package/lib/node/USE_SERVER_BUNDLE-8c1ae1f0.js +0 -1
  35. package/types/blocks/button/button.d.ts +0 -11
  36. package/types/blocks/button/component-info.d.ts +0 -2
  37. package/types/blocks/columns/columns.d.ts +0 -17
  38. package/types/blocks/columns/component-info.d.ts +0 -2
  39. package/types/blocks/custom-code/component-info.d.ts +0 -2
  40. package/types/blocks/custom-code/custom-code.d.ts +0 -7
  41. package/types/blocks/embed/component-info.d.ts +0 -2
  42. package/types/blocks/embed/embed.d.ts +0 -6
  43. package/types/blocks/embed/helpers.d.ts +0 -1
  44. package/types/blocks/fragment/component-info.d.ts +0 -2
  45. package/types/blocks/fragment/fragment.d.ts +0 -8
  46. package/types/blocks/helpers.d.ts +0 -13
  47. package/types/blocks/image/component-info.d.ts +0 -2
  48. package/types/blocks/image/image.d.ts +0 -22
  49. package/types/blocks/image/image.helpers.d.ts +0 -1
  50. package/types/blocks/img/component-info.d.ts +0 -2
  51. package/types/blocks/img/img.d.ts +0 -13
  52. package/types/blocks/section/component-info.d.ts +0 -2
  53. package/types/blocks/section/section.d.ts +0 -11
  54. package/types/blocks/symbol/component-info.d.ts +0 -2
  55. package/types/blocks/symbol/symbol.d.ts +0 -24
  56. package/types/blocks/symbol/symbol.helpers.d.ts +0 -14
  57. package/types/blocks/text/component-info.d.ts +0 -2
  58. package/types/blocks/text/text.d.ts +0 -6
  59. package/types/blocks/video/component-info.d.ts +0 -2
  60. package/types/blocks/video/video.d.ts +0 -20
  61. package/types/components/block/block.d.ts +0 -10
  62. package/types/components/block/block.helpers.d.ts +0 -13
  63. package/types/components/block/components/block-styles.d.ts +0 -9
  64. package/types/components/block/components/block-wrapper.d.ts +0 -17
  65. package/types/components/block/components/component-ref/component-ref.d.ts +0 -4
  66. package/types/components/block/components/component-ref/component-ref.helpers.d.ts +0 -28
  67. package/types/components/block/components/interactive-element.d.ts +0 -12
  68. package/types/components/block/components/repeated-block.d.ts +0 -10
  69. package/types/components/block/types.d.ts +0 -6
  70. package/types/components/blocks/blocks-wrapper.d.ts +0 -11
  71. package/types/components/blocks/blocks.d.ts +0 -9
  72. package/types/components/content/components/enable-editor.d.ts +0 -10
  73. package/types/components/content/components/styles.d.ts +0 -9
  74. package/types/components/content/components/styles.helpers.d.ts +0 -15
  75. package/types/components/content/content.d.ts +0 -4
  76. package/types/components/content/content.helpers.d.ts +0 -7
  77. package/types/components/content/content.types.d.ts +0 -24
  78. package/types/components/content/wrap-component-ref.d.ts +0 -6
  79. package/types/components/content-variants/content-variants.d.ts +0 -10
  80. package/types/components/content-variants/content-variants.types.d.ts +0 -20
  81. package/types/components/content-variants/helpers.d.ts +0 -41
  82. package/types/components/inlined-script.d.ts +0 -7
  83. package/types/components/inlined-styles.d.ts +0 -7
  84. package/types/constants/builder-registered-components.d.ts +0 -6
  85. package/types/constants/device-sizes.d.ts +0 -13
  86. package/types/constants/sdk-version.d.ts +0 -1
  87. package/types/constants/target.d.ts +0 -2
  88. package/types/context/builder.context.d.ts +0 -3
  89. package/types/context/components.context.d.ts +0 -3
  90. package/types/context/types.d.ts +0 -35
  91. package/types/functions/camel-to-kebab-case.d.ts +0 -1
  92. package/types/functions/deopt.d.ts +0 -4
  93. package/types/functions/evaluate/browser-runtime/browser.d.ts +0 -4
  94. package/types/functions/evaluate/browser-runtime/index.d.ts +0 -1
  95. package/types/functions/evaluate/choose-eval.d.ts +0 -6
  96. package/types/functions/evaluate/evaluate.d.ts +0 -2
  97. package/types/functions/evaluate/helpers.d.ts +0 -24
  98. package/types/functions/evaluate/index.d.ts +0 -1
  99. package/types/functions/event-handler-name.d.ts +0 -1
  100. package/types/functions/extract-text-styles.d.ts +0 -4
  101. package/types/functions/fast-clone.d.ts +0 -4
  102. package/types/functions/fetch-builder-props.d.ts +0 -53
  103. package/types/functions/get-block-actions-handler.d.ts +0 -8
  104. package/types/functions/get-block-actions.d.ts +0 -10
  105. package/types/functions/get-block-component-options.d.ts +0 -2
  106. package/types/functions/get-block-properties.d.ts +0 -6
  107. package/types/functions/get-builder-search-params/index.d.ts +0 -12
  108. package/types/functions/get-content/generate-content-url.d.ts +0 -2
  109. package/types/functions/get-content/index.d.ts +0 -28
  110. package/types/functions/get-content/types.d.ts +0 -142
  111. package/types/functions/get-fetch.d.ts +0 -1
  112. package/types/functions/get-global-this.d.ts +0 -4
  113. package/types/functions/get-processed-block.d.ts +0 -10
  114. package/types/functions/get-react-native-block-styles.d.ts +0 -7
  115. package/types/functions/is-browser.d.ts +0 -1
  116. package/types/functions/is-editing.d.ts +0 -1
  117. package/types/functions/is-iframe.d.ts +0 -1
  118. package/types/functions/is-previewing.d.ts +0 -1
  119. package/types/functions/register-component.d.ts +0 -15
  120. package/types/functions/register.d.ts +0 -16
  121. package/types/functions/sanitize-react-native-block-styles.d.ts +0 -3
  122. package/types/functions/set-editor-settings.d.ts +0 -4
  123. package/types/functions/set.d.ts +0 -7
  124. package/types/functions/track/helpers.d.ts +0 -5
  125. package/types/functions/track/index.d.ts +0 -51
  126. package/types/functions/track/interaction.d.ts +0 -13
  127. package/types/functions/transform-block-properties.d.ts +0 -1
  128. package/types/functions/transform-block.d.ts +0 -2
  129. package/types/helpers/ab-tests.d.ts +0 -9
  130. package/types/helpers/canTrack.d.ts +0 -1
  131. package/types/helpers/cookie.d.ts +0 -19
  132. package/types/helpers/css.d.ts +0 -7
  133. package/types/helpers/flatten.d.ts +0 -6
  134. package/types/helpers/localStorage.d.ts +0 -9
  135. package/types/helpers/logger.d.ts +0 -6
  136. package/types/helpers/nullable.d.ts +0 -2
  137. package/types/helpers/preview-lru-cache/get.d.ts +0 -1
  138. package/types/helpers/preview-lru-cache/helpers.d.ts +0 -1
  139. package/types/helpers/preview-lru-cache/init.d.ts +0 -6
  140. package/types/helpers/preview-lru-cache/set.d.ts +0 -7
  141. package/types/helpers/preview-lru-cache/types.d.ts +0 -12
  142. package/types/helpers/sessionId.d.ts +0 -6
  143. package/types/helpers/url.d.ts +0 -6
  144. package/types/helpers/uuid.d.ts +0 -8
  145. package/types/helpers/visitorId.d.ts +0 -6
  146. package/types/index-helpers/blocks-exports.d.ts +0 -19
  147. package/types/index-helpers/top-of-file.d.ts +0 -1
  148. package/types/index.d.ts +0 -7
  149. package/types/scripts/init-editing.d.ts +0 -6
  150. package/types/server-index.d.ts +0 -15
  151. package/types/types/api-version.d.ts +0 -2
  152. package/types/types/builder-block.d.ts +0 -66
  153. package/types/types/builder-content.d.ts +0 -44
  154. package/types/types/builder-props.d.ts +0 -9
  155. package/types/types/can-track.d.ts +0 -3
  156. package/types/types/components.d.ts +0 -110
  157. package/types/types/deep-partial.d.ts +0 -3
  158. package/types/types/element.d.ts +0 -59
  159. package/types/types/enforced-partials.d.ts +0 -21
  160. package/types/types/input.d.ts +0 -121
  161. package/types/types/targets.d.ts +0 -1
  162. package/types/types/typescript.d.ts +0 -11
@@ -1,121 +0,0 @@
1
- export interface Input {
2
- /** This is the name of the component prop this input represents */
3
- name: string;
4
- /** A friendlier name to show in the UI if the component prop name is not ideal for end users */
5
- friendlyName?: string;
6
- /** @hidden @deprecated */
7
- description?: string;
8
- /** A default value to use */
9
- defaultValue?: any;
10
- /**
11
- * The type of input to use, such as 'text'
12
- *
13
- * See all available inputs [here](https://www.builder.io/c/docs/custom-react-components#input-types)
14
- * and you can create your own custom input types and associated editor UIs with [plugins](https://www.builder.io/c/docs/extending/plugins)
15
- */
16
- type: string;
17
- /** Is this input mandatory or not */
18
- required?: boolean;
19
- /** @hidden */
20
- autoFocus?: boolean;
21
- subFields?: Input[];
22
- /**
23
- * Additional text to render in the UI to give guidance on how to use this
24
- *
25
- * @example
26
- * ```js
27
- * helperText: 'Be sure to use a proper URL, starting with "https://"'
28
- * 111
29
- */
30
- helperText?: string;
31
- /** @hidden */
32
- allowedFileTypes?: string[];
33
- /** @hidden */
34
- imageHeight?: number;
35
- /** @hidden */
36
- imageWidth?: number;
37
- /** @hidden */
38
- mediaHeight?: number;
39
- /** @hidden */
40
- mediaWidth?: number;
41
- /** @hidden */
42
- hideFromUI?: boolean;
43
- /** @hidden */
44
- modelId?: string;
45
- /**
46
- * Number field type validation maximum accepted input
47
- */
48
- max?: number;
49
- /**
50
- * Number field type validation minimum accepted input
51
- */
52
- min?: number;
53
- /**
54
- * Number field type step size when using arrows
55
- */
56
- step?: number;
57
- /**
58
- * Set this to `true` to show the editor for this input when
59
- * children of this component are selected. This is useful for things
60
- * like Tabs, such that users may not always select the Tabs component
61
- * directly but will still be looking for how to add additional tabs
62
- */
63
- broadcast?: boolean;
64
- /**
65
- * Set this to `true` to show the editor for this input when
66
- * group locked parents of this component are selected. This is useful
67
- * to bubble up important inputs for locked groups, like text and images
68
- */
69
- bubble?: boolean;
70
- /**
71
- * Set this to `true` if you want this component to be translatable
72
- */
73
- localized?: boolean;
74
- /** @hidden */
75
- options?: {
76
- [key: string]: any;
77
- };
78
- /**
79
- * For "text" input type, specifying an enum will show a dropdown of options instead
80
- */
81
- enum?: string[] | {
82
- label: string;
83
- value: any;
84
- helperText?: string;
85
- }[];
86
- /** Regex field validation for all string types (text, longText, html, url, etc) */
87
- regex?: {
88
- /** pattern to test, like "^\/[a-z]$" */
89
- pattern: string;
90
- /** flags for the RegExp constructor, e.g. "gi" */
91
- options?: string;
92
- /**
93
- * Friendly message to display to end-users if the regex fails, e.g.
94
- * "You must use a relative url starting with '/...' "
95
- */
96
- message: string;
97
- };
98
- /**
99
- * Set this to `true` to put this under the "show more" section of
100
- * the options editor. Useful for things that are more advanced
101
- * or more rarely used and don't need to be too prominent
102
- */
103
- advanced?: boolean;
104
- /** @hidden */
105
- /** @hidden */
106
- code?: boolean;
107
- /** @hidden */
108
- richText?: boolean;
109
- /** @hidden */
110
- showIf?: ((options: Map<string, any>) => boolean) | string;
111
- /** @hidden */
112
- copyOnAdd?: boolean;
113
- /**
114
- * Use optionally with inputs of type `reference`. Restricts the content entry picker to a specific model by name.
115
- */
116
- model?: string;
117
- valueType?: {
118
- type?: string;
119
- };
120
- onChange?: ((options: Map<string, any>) => void | Promise<void>) | string;
121
- }
@@ -1 +0,0 @@
1
- export type Target = 'vue3' | 'vue2' | 'reactNative' | 'svelte' | 'qwik' | 'react' | 'solid' | 'rsc';
@@ -1,11 +0,0 @@
1
- export type Nullable<T> = T | null | undefined;
2
- export type Dictionary<T> = {
3
- [key: string]: T;
4
- };
5
- export type Overwrite<T, U> = keyof U extends keyof T ? Pick<T, Exclude<keyof T, keyof U>> & U : never;
6
- export type Prettify<T> = {
7
- [K in keyof T]: T[K];
8
- } & {};
9
- export type PropsWithChildren<P> = P & {
10
- children?: any;
11
- };