@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,10 +1,10 @@
1
- import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, z as d, m as f, E as u, w as B, n as S, x as E, A as R, y as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-7ebcd79e.mjs";
2
- import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-e041d92c.mjs";
1
+ import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, z as d, m as f, E as u, w as B, n as S, x as E, A as R, y as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-844e3979.js";
2
+ import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-32bb8c8f.js";
3
3
  import "lru-cache";
4
4
  import "react/jsx-runtime";
5
5
  import "react";
6
6
  import "next/navigation";
7
- import "./USE_SERVER_BUNDLE-1634816a.mjs";
7
+ import "./USE_SERVER_BUNDLE-86e8b7c7.js";
8
8
  export {
9
9
  i as Blocks,
10
10
  w as Button,
package/package.json CHANGED
@@ -1,103 +1,86 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-react-nextjs",
3
3
  "description": "Builder.io RSC SDK for NextJS App Directory",
4
- "version": "0.7.1-2",
4
+ "version": "0.7.1-4",
5
5
  "files": [
6
- "lib",
7
- "types"
6
+ "lib"
8
7
  ],
9
- "types": "./types/index.d.ts",
10
- "main": "./lib/node/index.cjs",
11
- "module": "./lib/node/index.mjs",
8
+ "main": "./lib/edge/index.cjs",
9
+ "module": "./lib/edge/index.mjs",
10
+ "type": "module",
12
11
  "exports": {
13
12
  ".": {
14
13
  "node": {
15
- "types": "./types/index.d.ts",
16
14
  "import": "./lib/node/index.mjs",
17
15
  "require": "./lib/node/index.cjs"
18
16
  },
19
17
  "browser": {
20
- "types": "./types/index.d.ts",
21
18
  "import": "./lib/browser/index.mjs",
22
19
  "require": "./lib/browser/index.cjs"
23
20
  },
24
21
  "edge-routine": {
25
- "types": "./types/index.d.ts",
26
22
  "import": "./lib/edge/index.mjs",
27
23
  "require": "./lib/edge/index.cjs"
28
24
  },
29
25
  "workerd": {
30
- "types": "./types/index.d.ts",
31
26
  "import": "./lib/edge/index.mjs",
32
27
  "require": "./lib/edge/index.cjs"
33
28
  },
34
29
  "deno": {
35
- "types": "./types/index.d.ts",
36
30
  "import": "./lib/edge/index.mjs",
37
31
  "require": "./lib/edge/index.cjs"
38
32
  },
39
33
  "lagon": {
40
- "types": "./types/index.d.ts",
41
34
  "import": "./lib/edge/index.mjs",
42
35
  "require": "./lib/edge/index.cjs"
43
36
  },
44
37
  "netlify": {
45
- "types": "./types/index.d.ts",
46
38
  "import": "./lib/edge/index.mjs",
47
39
  "require": "./lib/edge/index.cjs"
48
40
  },
49
41
  "edge-light": {
50
- "types": "./types/index.d.ts",
51
42
  "import": "./lib/edge/index.mjs",
52
43
  "require": "./lib/edge/index.cjs"
53
44
  },
54
45
  "bun": {
55
- "types": "./types/index.d.ts",
56
46
  "import": "./lib/edge/index.mjs",
57
47
  "require": "./lib/edge/index.cjs"
58
48
  },
59
49
  "react-native": {
60
- "types": "./types/index.d.ts",
61
50
  "import": "./lib/node/index.mjs",
62
51
  "require": "./lib/node/index.cjs"
63
52
  },
64
53
  "electron": {
65
- "types": "./types/index.d.ts",
66
54
  "import": "./lib/node/index.mjs",
67
55
  "require": "./lib/node/index.cjs"
68
56
  },
69
57
  "default": {
70
- "types": "./types/index.d.ts",
71
58
  "import": "./lib/browser/index.mjs",
72
59
  "require": "./lib/browser/index.cjs"
73
60
  }
74
61
  },
75
62
  "./edge": {
76
- "types": "./types/index.d.ts",
77
63
  "import": "./lib/edge/index.mjs",
78
64
  "require": "./lib/edge/index.cjs"
79
65
  },
80
66
  "./node": {
81
- "types": "./types/index.d.ts",
82
67
  "import": "./lib/node/index.mjs",
83
68
  "require": "./lib/node/index.cjs"
84
69
  },
85
70
  "./browser": {
86
- "types": "./types/index.d.ts",
87
71
  "import": "./lib/browser/index.mjs",
88
72
  "require": "./lib/browser/index.cjs"
89
73
  }
90
74
  },
91
75
  "scripts": {
92
76
  "release": "npm publish",
93
- "types": "tsc",
94
- "build": "nx run-many -p @builder.io/sdk-react-nextjs -t types build:node build:edge build:browser",
77
+ "build": "nx run-many -p @builder.io/sdk-react-nextjs -t build:node build:edge build:browser",
95
78
  "build:node": "SDK_ENV=node vite build --mode lib",
96
79
  "build:edge": "SDK_ENV=edge vite build --mode lib",
97
80
  "build:browser": "SDK_ENV=browser vite build --mode lib"
98
81
  },
99
82
  "peerDependencies": {
100
- "next": "^13.4.20",
83
+ "next": ">=13.4.20",
101
84
  "react": "^18.2.0",
102
85
  "react-dom": "^18.2.0"
103
86
  },
@@ -125,8 +108,7 @@
125
108
  "^build"
126
109
  ],
127
110
  "outputs": [
128
- "{projectRoot}/lib",
129
- "{projectRoot}/types"
111
+ "{projectRoot}/lib"
130
112
  ]
131
113
  }
132
114
  }
@@ -1 +0,0 @@
1
- "use server";"use strict";const n=require("./bundle-05622db1.js");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1 +0,0 @@
1
- "use server";"use strict";const n=require("./bundle-1b9b93c7.js");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1 +0,0 @@
1
- "use server";"use strict";const n=require("./bundle-4203318d.js");async function s({key:e,value:t}){return n.init(),globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e,t),{[e]:t}}exports.postPreviewContent=s;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * This import is used by the Svelte SDK. Do not remove.
4
- */ export interface ButtonProps {
5
- attributes?: any;
6
- text?: string;
7
- link?: string;
8
- openLinkInNewTab?: boolean;
9
- }
10
- declare function Button(props: ButtonProps): JSX.Element;
11
- export default Button;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- type Column = {
3
- blocks: BuilderBlock[];
4
- width?: number;
5
- };
6
- type StackColumnsAt = "tablet" | "mobile" | "never";
7
- export interface ColumnProps extends BuilderComponentsProp {
8
- columns?: Column[];
9
- builderBlock: BuilderBlock;
10
- space?: number;
11
- stackColumnsAt?: StackColumnsAt;
12
- reverseColumnsWhenStacked?: boolean;
13
- }
14
- import type { BuilderBlock } from "../../types/builder-block.js";
15
- import type { BuilderComponentsProp, PropsWithBuilderData } from "../../types/builder-props.js";
16
- declare function Columns(props: PropsWithBuilderData<ColumnProps>): JSX.Element;
17
- export default Columns;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export interface CustomCodeProps {
3
- code: string;
4
- replaceNodes?: boolean;
5
- }
6
- declare function CustomCode(props: CustomCodeProps): JSX.Element;
7
- export default CustomCode;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export interface EmbedProps {
3
- content: string;
4
- }
5
- declare function Embed(props: EmbedProps): JSX.Element;
6
- export default Embed;
@@ -1 +0,0 @@
1
- export declare const isJsScript: (script: HTMLScriptElement) => boolean;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- export interface FragmentProps {
3
- maxWidth?: number;
4
- attributes?: any;
5
- children?: any;
6
- }
7
- declare function FragmentComponent(props: FragmentProps): JSX.Element;
8
- export default FragmentComponent;
@@ -1,13 +0,0 @@
1
- export declare function filterAttrs(attrs: {
2
- [index: string]: any;
3
- }, prefix: string, isEvent: boolean): {
4
- [index: string]: any;
5
- };
6
- /**
7
- * Svelte SDK: workaround to dynamically provide event handlers to components/elements.
8
- * https://svelte.dev/repl/1246699e266f41218a8eeb45b9b58b54?version=3.24.1
9
- */
10
- export declare function setAttrs(node: HTMLElement, attrs?: Record<string, (event: Event) => void>): {
11
- update(attrs?: {}): void;
12
- destroy(): void;
13
- };
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ImageProps {
3
- className?: string;
4
- image: string;
5
- sizes?: string;
6
- lazy?: boolean;
7
- height?: number;
8
- width?: number;
9
- altText?: string;
10
- backgroundSize?: "cover" | "contain";
11
- backgroundPosition?: string;
12
- srcset?: string;
13
- aspectRatio?: number;
14
- children?: any;
15
- fitContent?: boolean;
16
- builderBlock?: BuilderBlock;
17
- noWebp?: boolean;
18
- src?: string;
19
- }
20
- import type { BuilderBlock } from "../../types/builder-block.js";
21
- declare function Image(props: ImageProps): JSX.Element;
22
- export default Image;
@@ -1 +0,0 @@
1
- export declare function getSrcSet(url: string): string;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * This import is used by the Svelte SDK. Do not remove.
4
- */ export interface ImgProps {
5
- attributes?: any;
6
- imgSrc?: string;
7
- image?: string;
8
- altText?: string;
9
- backgroundSize?: "cover" | "contain";
10
- backgroundPosition?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
11
- }
12
- declare function ImgComponent(props: ImgProps): JSX.Element;
13
- export default ImgComponent;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * This import is used by the Svelte SDK. Do not remove.
4
- */ export interface SectionProps {
5
- maxWidth?: number;
6
- attributes?: any;
7
- children?: any;
8
- builderBlock?: any;
9
- }
10
- declare function SectionComponent(props: SectionProps): JSX.Element;
11
- export default SectionComponent;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * This import is used by the Svelte SDK. Do not remove.
4
- */ export interface SymbolInfo {
5
- model?: string;
6
- entry?: string;
7
- data?: any;
8
- content?: BuilderContent;
9
- inline?: boolean;
10
- dynamic?: boolean;
11
- }
12
- /**
13
- * This import is used by the Svelte SDK. Do not remove.
14
- */ export interface SymbolProps extends BuilderComponentsProp {
15
- symbol?: SymbolInfo;
16
- dataOnly?: boolean;
17
- dynamic?: boolean;
18
- attributes?: any;
19
- inheritState?: boolean;
20
- }
21
- import type { BuilderContent } from "../../types/builder-content.js";
22
- import type { BuilderComponentsProp, PropsWithBuilderData } from "../../types/builder-props.js";
23
- declare function Symbol(props: PropsWithBuilderData<SymbolProps>): Promise<JSX.Element>;
24
- export default Symbol;
@@ -1,14 +0,0 @@
1
- import type { BuilderContextInterface } from '../../context/types.js';
2
- import type { BuilderContent } from '../../types/builder-content.js';
3
- export interface SymbolInfo {
4
- model?: string;
5
- entry?: string;
6
- data?: any;
7
- content?: BuilderContent;
8
- inline?: boolean;
9
- dynamic?: boolean;
10
- }
11
- export declare const fetchSymbolContent: ({ builderContextValue, symbol }: {
12
- symbol: SymbolInfo | undefined;
13
- builderContextValue: BuilderContextInterface;
14
- }) => Promise<any>;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export interface TextProps {
3
- text?: string;
4
- }
5
- declare function Text(props: TextProps): JSX.Element;
6
- export default Text;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- export interface VideoProps {
3
- attributes?: any;
4
- video?: string;
5
- autoPlay?: boolean;
6
- controls?: boolean;
7
- muted?: boolean;
8
- loop?: boolean;
9
- playsInline?: boolean;
10
- aspectRatio?: number;
11
- width?: number;
12
- height?: number;
13
- fit?: "contain" | "cover" | "fill";
14
- preload?: "auto" | "metadata" | "none";
15
- position?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
16
- posterImage?: string;
17
- lazyLoad?: boolean;
18
- }
19
- declare function Video(props: VideoProps): JSX.Element;
20
- export default Video;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- export type BlockProps = {
3
- block: BuilderBlock;
4
- context: BuilderContextInterface;
5
- registeredComponents: RegisteredComponents;
6
- };
7
- import type { BuilderContextInterface, RegisteredComponents } from "../../context/types.js";
8
- import type { BuilderBlock } from "../../types/builder-block.js";
9
- declare function Block(props: BlockProps): JSX.Element;
10
- export default Block;
@@ -1,13 +0,0 @@
1
- import type { BuilderContextInterface, RegisteredComponents } from '../../context/types.js';
2
- import type { BuilderBlock } from '../../types/builder-block.js';
3
- import type { RepeatData } from './types.js';
4
- export declare const isEmptyHtmlElement: (tagName: unknown) => boolean;
5
- export declare const getComponent: ({ block, context, registeredComponents }: {
6
- block: BuilderBlock;
7
- context: BuilderContextInterface;
8
- registeredComponents: RegisteredComponents;
9
- }) => import("../../context/types.js").RegisteredComponent;
10
- export declare const getRepeatItemData: ({ block, context }: {
11
- block: BuilderBlock;
12
- context: BuilderContextInterface;
13
- }) => RepeatData[] | undefined;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export type BlockStylesProps = {
3
- block: BuilderBlock;
4
- context: BuilderContextInterface;
5
- };
6
- import type { BuilderContextInterface } from "../../../context/types.js";
7
- import type { BuilderBlock } from "../../../types/builder-block.js";
8
- declare function BlockStyles(props: BlockStylesProps): JSX.Element;
9
- export default BlockStyles;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- /**
3
- * This import is used by the Svelte SDK. Do not remove.
4
- */ type BlockWrapperProps = {
5
- Wrapper: string;
6
- block: BuilderBlock;
7
- context: BuilderContextInterface;
8
- hasChildren: boolean;
9
- };
10
- /**
11
- * This component renders a block's wrapper HTML element (from the block's `tagName` property).
12
- * It reuses the exact same logic as the `InteractiveElement` component, but we need to have 2 separate components for
13
- * Svelte's sake, as it needs to know at compile-time whether to use: * - `<svelte:element>` (for HTML element) or * - `<svelte:component>` (for custom components) */ import type { PropsWithChildren } from "../../../types/typescript.js";
14
- import type { BuilderBlock } from "../../../types/builder-block.js";
15
- import type { BuilderContextInterface } from "../../../context/types.js";
16
- declare function BlockWrapper(props: PropsWithChildren<BlockWrapperProps>): JSX.Element;
17
- export default BlockWrapper;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ComponentProps } from "./component-ref.helpers.js";
3
- declare function ComponentRef(props: ComponentProps): JSX.Element;
4
- export default ComponentRef;
@@ -1,28 +0,0 @@
1
- import type { BuilderContextInterface, RegisteredComponents } from '../../../../context/types.js';
2
- import type { BuilderBlock } from '../../../../types/builder-block.js';
3
- import type { PropsWithBuilderData } from '../../../../types/builder-props.js';
4
- import type { InteractiveElementProps } from '../interactive-element';
5
- type ComponentOptions = PropsWithBuilderData<{
6
- [index: string]: any;
7
- attributes?: {
8
- [index: string]: any;
9
- };
10
- }>;
11
- export interface ComponentProps {
12
- componentRef: any;
13
- componentOptions: ComponentOptions;
14
- blockChildren: BuilderBlock[];
15
- context: BuilderContextInterface;
16
- registeredComponents: RegisteredComponents;
17
- builderBlock: BuilderBlock;
18
- includeBlockProps: boolean;
19
- isInteractive: boolean | undefined;
20
- }
21
- export declare const getWrapperProps: ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }: Omit<ComponentProps, "registeredComponents" | "blockChildren"> & {
22
- contextValue: BuilderContextInterface;
23
- }) => InteractiveElementProps | {
24
- attributes?: any;
25
- builderBlock: BuilderBlock;
26
- builderContext: BuilderContextInterface;
27
- };
28
- export {};
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- export type InteractiveElementProps = {
3
- Wrapper: any;
4
- block: BuilderBlock;
5
- context: BuilderContextInterface;
6
- wrapperProps: object;
7
- };
8
- import type { BuilderContextInterface } from "../../../context/types.js";
9
- import type { BuilderBlock } from "../../../types/builder-block.js";
10
- import type { PropsWithChildren } from "../../../types/typescript.js";
11
- declare function InteractiveElement(props: PropsWithChildren<InteractiveElementProps>): JSX.Element;
12
- export default InteractiveElement;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- type Props = {
3
- block: BuilderBlock;
4
- repeatContext: BuilderContextInterface;
5
- registeredComponents: RegisteredComponents;
6
- };
7
- import type { BuilderContextInterface, RegisteredComponents } from "../../../context/types.js";
8
- import type { BuilderBlock } from "../../../types/builder-block.js";
9
- declare function RepeatedBlock(props: Props): JSX.Element;
10
- export default RepeatedBlock;
@@ -1,6 +0,0 @@
1
- import type { BuilderContextInterface } from '../../context/types.js';
2
- import type { BuilderBlock } from '../../types/builder-block.js';
3
- export interface RepeatData {
4
- block: BuilderBlock;
5
- context: BuilderContextInterface;
6
- }
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- export type BlocksWrapperProps = {
3
- blocks: BuilderBlock[] | undefined;
4
- parent: string | undefined;
5
- path: string | undefined;
6
- styleProp: Record<string, any> | undefined;
7
- };
8
- import type { BuilderBlock } from "../../types/builder-block.js";
9
- import type { PropsWithChildren } from "../../types/typescript.js";
10
- declare function BlocksWrapper(props: PropsWithChildren<BlocksWrapperProps>): JSX.Element;
11
- export default BlocksWrapper;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export type BlocksProps = Partial<BlocksWrapperProps> & {
3
- context?: BuilderContextInterface;
4
- registeredComponents?: RegisteredComponents;
5
- };
6
- import type { BlocksWrapperProps } from "./blocks-wrapper";
7
- import type { BuilderContextInterface, RegisteredComponents } from "../../context/types.js";
8
- declare function Blocks(props: BlocksProps): JSX.Element;
9
- export default Blocks;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- type BuilderEditorProps = Omit<ContentProps, "customComponents" | "data" | "apiVersion" | "isSsrAbTest"> & {
3
- builderContextSignal: BuilderContextInterface;
4
- setBuilderContextSignal?: (signal: any) => any;
5
- children?: any;
6
- };
7
- import type { BuilderContextInterface } from "../../../context/types.js";
8
- import type { ContentProps } from "../content.types.js";
9
- declare function EnableEditor(props: BuilderEditorProps): JSX.Element;
10
- export default EnableEditor;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- interface Props {
3
- cssCode?: string;
4
- customFonts?: CustomFont[];
5
- contentId?: string;
6
- }
7
- import type { CustomFont } from "./styles.helpers.js";
8
- declare function ContentStyles(props: Props): JSX.Element;
9
- export default ContentStyles;
@@ -1,15 +0,0 @@
1
- export interface CustomFont {
2
- family?: string;
3
- kind?: string;
4
- fileUrl?: string;
5
- files?: {
6
- [key: string]: string;
7
- };
8
- }
9
- export declare const getFontCss: ({ customFonts }: {
10
- customFonts?: CustomFont[];
11
- }) => string;
12
- export declare const getCss: ({ cssCode, contentId }: {
13
- cssCode?: string;
14
- contentId?: string;
15
- }) => string;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { ContentProps } from "./content.types.js";
3
- declare function ContentComponent(props: ContentProps): JSX.Element;
4
- export default ContentComponent;
@@ -1,7 +0,0 @@
1
- import type { BuilderContent } from '../../types/builder-content.js';
2
- import type { Nullable } from '../../types/typescript.js';
3
- import type { ContentProps } from './content.types.js';
4
- export declare const getContextStateInitialValue: ({ content, data, locale }: Pick<ContentProps, 'content' | 'data' | 'locale'>) => {
5
- [x: string]: unknown;
6
- };
7
- export declare const getContentInitialValue: ({ content, data }: Pick<ContentProps, 'content' | 'data'>) => Nullable<BuilderContent>;
@@ -1,24 +0,0 @@
1
- import type { BuilderRenderState } from '../../context/types.js';
2
- import type { EnforcePartials } from '../../types/enforced-partials.js';
3
- import type { ContentVariantsPrps } from '../content-variants/content-variants.types.js';
4
- interface InternalRenderProps {
5
- /**
6
- * TO-DO: improve qwik generator to not remap this name for non-HTML tags, then name it `className`
7
- */
8
- classNameProp: string | undefined;
9
- showContent: boolean;
10
- isSsrAbTest: boolean;
11
- }
12
- export type ContentProps = InternalRenderProps & EnforcePartials<ContentVariantsPrps>;
13
- export interface BuilderComponentStateChange {
14
- state: BuilderRenderState;
15
- ref: {
16
- name?: string;
17
- props?: {
18
- builderBlock?: {
19
- id?: string;
20
- };
21
- };
22
- };
23
- }
24
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Apply target-specific transformations to the component reference.
3
- *
4
- * See overrides/* for examples.
5
- */
6
- export declare const wrapComponentRef: (component: any) => any;