@builder.io/sdk-react-nextjs 0.7.1-4 → 0.7.2
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/lib/{node/USE_CLIENT_BUNDLE-32bb8c8f.js → browser/USE_CLIENT_BUNDLE-0e3e24e7.js} +142 -142
- package/lib/browser/USE_CLIENT_BUNDLE-727780ee.cjs +23 -0
- package/lib/{edge/USE_SERVER_BUNDLE-133fe486.cjs → browser/USE_SERVER_BUNDLE-4341bf5c.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-2a1fc947.js → browser/USE_SERVER_BUNDLE-ea1618f4.js} +1 -1
- package/lib/browser/{bundle-31003427.js → bundle-6f6b7d63.js} +953 -928
- package/lib/browser/bundle-fc27d227.cjs +76 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.d.cts +1 -1066
- package/lib/browser/index.d.mts +1 -1066
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-2dd6963b.js → edge/USE_CLIENT_BUNDLE-372b4c60.js} +142 -142
- package/lib/edge/USE_CLIENT_BUNDLE-f1bfb292.cjs +23 -0
- package/lib/{node/USE_SERVER_BUNDLE-86e8b7c7.js → edge/USE_SERVER_BUNDLE-e0effb0f.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-25f4a46f.cjs → edge/USE_SERVER_BUNDLE-ea7c665e.cjs} +1 -1
- package/lib/edge/{bundle-cfdeec4b.cjs → bundle-0fb39c43.cjs} +30 -30
- package/lib/edge/{bundle-1c5ceddb.js → bundle-213a8bf7.js} +1237 -1211
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.d.cts +1 -1066
- package/lib/edge/index.d.mts +1 -1066
- package/lib/edge/index.mjs +3 -3
- package/lib/node/USE_CLIENT_BUNDLE-bdbc178a.cjs +23 -0
- package/lib/{edge/USE_CLIENT_BUNDLE-ee929cd6.js → node/USE_CLIENT_BUNDLE-c6d9e08c.js} +142 -142
- package/lib/{browser/USE_SERVER_BUNDLE-97369f61.js → node/USE_SERVER_BUNDLE-787d0ec8.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-c110917b.cjs → node/USE_SERVER_BUNDLE-842e66c9.cjs} +1 -1
- package/lib/node/bundle-df78531d.cjs +116 -0
- package/lib/node/{bundle-844e3979.js → bundle-fb3490a6.js} +794 -769
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.d.cts +1 -1066
- package/lib/node/index.d.mts +1 -1066
- package/lib/node/index.mjs +3 -3
- package/package.json +9 -5
- package/types/cjs/blocks/button/button.d.ts +12 -0
- package/types/cjs/blocks/button/component-info.d.ts +2 -0
- package/types/cjs/blocks/columns/columns.d.ts +17 -0
- package/types/cjs/blocks/columns/component-info.d.ts +2 -0
- package/types/cjs/blocks/custom-code/component-info.d.ts +2 -0
- package/types/cjs/blocks/custom-code/custom-code.d.ts +7 -0
- package/types/cjs/blocks/embed/component-info.d.ts +2 -0
- package/types/cjs/blocks/embed/embed.d.ts +6 -0
- package/types/cjs/blocks/embed/helpers.d.ts +1 -0
- package/types/cjs/blocks/fragment/component-info.d.ts +2 -0
- package/types/cjs/blocks/fragment/fragment.d.ts +8 -0
- package/types/cjs/blocks/helpers.d.ts +13 -0
- package/types/cjs/blocks/image/component-info.d.ts +2 -0
- package/types/cjs/blocks/image/image.d.ts +22 -0
- package/types/cjs/blocks/image/image.helpers.d.ts +1 -0
- package/types/cjs/blocks/img/component-info.d.ts +2 -0
- package/types/cjs/blocks/img/img.d.ts +14 -0
- package/types/cjs/blocks/section/component-info.d.ts +2 -0
- package/types/cjs/blocks/section/section.d.ts +12 -0
- package/types/cjs/blocks/symbol/component-info.d.ts +2 -0
- package/types/cjs/blocks/symbol/symbol.d.ts +26 -0
- package/types/cjs/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/types/cjs/blocks/text/component-info.d.ts +2 -0
- package/types/cjs/blocks/text/text.d.ts +6 -0
- package/types/cjs/blocks/video/component-info.d.ts +2 -0
- package/types/cjs/blocks/video/video.d.ts +20 -0
- package/types/cjs/components/block/block.d.ts +10 -0
- package/types/cjs/components/block/block.helpers.d.ts +13 -0
- package/types/cjs/components/block/components/block-styles.d.ts +9 -0
- package/types/cjs/components/block/components/block-wrapper.d.ts +18 -0
- package/types/cjs/components/block/components/component-ref/component-ref.d.ts +4 -0
- package/types/cjs/components/block/components/component-ref/component-ref.helpers.d.ts +28 -0
- package/types/cjs/components/block/components/interactive-element.d.ts +12 -0
- package/types/cjs/components/block/components/repeated-block.d.ts +10 -0
- package/types/cjs/components/block/types.d.ts +6 -0
- package/types/cjs/components/blocks/blocks-wrapper.d.ts +11 -0
- package/types/cjs/components/blocks/blocks.d.ts +9 -0
- package/types/cjs/components/content/components/enable-editor.d.ts +10 -0
- package/types/cjs/components/content/components/styles.d.ts +9 -0
- package/types/cjs/components/content/components/styles.helpers.d.ts +15 -0
- package/types/cjs/components/content/content.d.ts +4 -0
- package/types/cjs/components/content/content.helpers.d.ts +7 -0
- package/types/cjs/components/content/content.types.d.ts +24 -0
- package/types/cjs/components/content/wrap-component-ref.d.ts +6 -0
- package/types/cjs/components/content-variants/content-variants.d.ts +10 -0
- package/types/cjs/components/content-variants/content-variants.types.d.ts +20 -0
- package/types/cjs/components/content-variants/helpers.d.ts +41 -0
- package/types/cjs/components/inlined-script.d.ts +7 -0
- package/types/cjs/components/inlined-styles.d.ts +7 -0
- package/types/cjs/constants/builder-registered-components.d.ts +6 -0
- package/types/cjs/constants/device-sizes.d.ts +13 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -0
- package/types/cjs/constants/target.d.ts +2 -0
- package/types/cjs/context/builder.context.d.ts +3 -0
- package/types/cjs/context/components.context.d.ts +3 -0
- package/types/cjs/context/types.d.ts +35 -0
- package/types/cjs/functions/camel-to-kebab-case.d.ts +1 -0
- package/types/cjs/functions/deopt.d.ts +4 -0
- package/types/cjs/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/types/cjs/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/types/cjs/functions/evaluate/choose-eval.d.ts +6 -0
- package/types/cjs/functions/evaluate/evaluate.d.ts +2 -0
- package/types/cjs/functions/evaluate/helpers.d.ts +24 -0
- package/types/cjs/functions/evaluate/index.d.ts +1 -0
- package/types/cjs/functions/event-handler-name.d.ts +1 -0
- package/types/cjs/functions/extract-text-styles.d.ts +4 -0
- package/types/cjs/functions/fast-clone.d.ts +4 -0
- package/types/cjs/functions/fetch-builder-props.d.ts +53 -0
- package/types/cjs/functions/get-block-actions-handler.d.ts +8 -0
- package/types/cjs/functions/get-block-actions.d.ts +10 -0
- package/types/cjs/functions/get-block-component-options.d.ts +2 -0
- package/types/cjs/functions/get-block-properties.d.ts +6 -0
- package/types/cjs/functions/get-builder-search-params/index.d.ts +12 -0
- package/types/cjs/functions/get-content/generate-content-url.d.ts +2 -0
- package/types/cjs/functions/get-content/index.d.ts +28 -0
- package/types/cjs/functions/get-content/types.d.ts +142 -0
- package/types/cjs/functions/get-fetch.d.ts +1 -0
- package/types/cjs/functions/get-global-this.d.ts +4 -0
- package/types/cjs/functions/get-processed-block.d.ts +10 -0
- package/types/cjs/functions/get-react-native-block-styles.d.ts +7 -0
- package/types/cjs/functions/is-browser.d.ts +1 -0
- package/types/cjs/functions/is-editing.d.ts +1 -0
- package/types/cjs/functions/is-iframe.d.ts +1 -0
- package/types/cjs/functions/is-previewing.d.ts +1 -0
- package/types/cjs/functions/register-component.d.ts +15 -0
- package/types/cjs/functions/register.d.ts +16 -0
- package/types/cjs/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/types/cjs/functions/set-editor-settings.d.ts +4 -0
- package/types/cjs/functions/set.d.ts +7 -0
- package/types/cjs/functions/track/helpers.d.ts +5 -0
- package/types/cjs/functions/track/index.d.ts +51 -0
- package/types/cjs/functions/track/interaction.d.ts +13 -0
- package/types/cjs/functions/transform-block-properties.d.ts +1 -0
- package/types/cjs/functions/transform-block.d.ts +2 -0
- package/types/cjs/helpers/ab-tests.d.ts +9 -0
- package/types/cjs/helpers/canTrack.d.ts +1 -0
- package/types/cjs/helpers/cookie.d.ts +19 -0
- package/types/cjs/helpers/css.d.ts +7 -0
- package/types/cjs/helpers/flatten.d.ts +6 -0
- package/types/cjs/helpers/localStorage.d.ts +9 -0
- package/types/cjs/helpers/logger.d.ts +6 -0
- package/types/cjs/helpers/nullable.d.ts +2 -0
- package/types/cjs/helpers/preview-lru-cache/get.d.ts +1 -0
- package/types/cjs/helpers/preview-lru-cache/helpers.d.ts +1 -0
- package/types/cjs/helpers/preview-lru-cache/init.d.ts +6 -0
- package/types/cjs/helpers/preview-lru-cache/set.d.ts +7 -0
- package/types/cjs/helpers/preview-lru-cache/types.d.ts +12 -0
- package/types/cjs/helpers/sessionId.d.ts +6 -0
- package/types/cjs/helpers/url.d.ts +6 -0
- package/types/cjs/helpers/uuid.d.ts +8 -0
- package/types/cjs/helpers/visitorId.d.ts +6 -0
- package/types/cjs/index-helpers/blocks-exports.d.ts +19 -0
- package/types/cjs/index-helpers/top-of-file.d.ts +1 -0
- package/types/cjs/index.d.ts +7 -0
- package/types/cjs/scripts/init-editing.d.ts +6 -0
- package/types/cjs/server-index.d.ts +15 -0
- package/types/cjs/types/api-version.d.ts +2 -0
- package/types/cjs/types/builder-block.d.ts +66 -0
- package/types/cjs/types/builder-content.d.ts +44 -0
- package/types/cjs/types/builder-props.d.ts +9 -0
- package/types/cjs/types/can-track.d.ts +3 -0
- package/types/cjs/types/components.d.ts +110 -0
- package/types/cjs/types/deep-partial.d.ts +3 -0
- package/types/cjs/types/element.d.ts +59 -0
- package/types/cjs/types/enforced-partials.d.ts +21 -0
- package/types/cjs/types/input.d.ts +121 -0
- package/types/cjs/types/targets.d.ts +1 -0
- package/types/cjs/types/typescript.d.ts +11 -0
- package/types/esm/blocks/button/button.d.ts +12 -0
- package/types/esm/blocks/button/component-info.d.ts +2 -0
- package/types/esm/blocks/columns/columns.d.ts +17 -0
- package/types/esm/blocks/columns/component-info.d.ts +2 -0
- package/types/esm/blocks/custom-code/component-info.d.ts +2 -0
- package/types/esm/blocks/custom-code/custom-code.d.ts +7 -0
- package/types/esm/blocks/embed/component-info.d.ts +2 -0
- package/types/esm/blocks/embed/embed.d.ts +6 -0
- package/types/esm/blocks/embed/helpers.d.ts +1 -0
- package/types/esm/blocks/fragment/component-info.d.ts +2 -0
- package/types/esm/blocks/fragment/fragment.d.ts +8 -0
- package/types/esm/blocks/helpers.d.ts +13 -0
- package/types/esm/blocks/image/component-info.d.ts +2 -0
- package/types/esm/blocks/image/image.d.ts +22 -0
- package/types/esm/blocks/image/image.helpers.d.ts +1 -0
- package/types/esm/blocks/img/component-info.d.ts +2 -0
- package/types/esm/blocks/img/img.d.ts +14 -0
- package/types/esm/blocks/section/component-info.d.ts +2 -0
- package/types/esm/blocks/section/section.d.ts +12 -0
- package/types/esm/blocks/symbol/component-info.d.ts +2 -0
- package/types/esm/blocks/symbol/symbol.d.ts +26 -0
- package/types/esm/blocks/symbol/symbol.helpers.d.ts +14 -0
- package/types/esm/blocks/text/component-info.d.ts +2 -0
- package/types/esm/blocks/text/text.d.ts +6 -0
- package/types/esm/blocks/video/component-info.d.ts +2 -0
- package/types/esm/blocks/video/video.d.ts +20 -0
- package/types/esm/components/block/block.d.ts +10 -0
- package/types/esm/components/block/block.helpers.d.ts +13 -0
- package/types/esm/components/block/components/block-styles.d.ts +9 -0
- package/types/esm/components/block/components/block-wrapper.d.ts +18 -0
- package/types/esm/components/block/components/component-ref/component-ref.d.ts +4 -0
- package/types/esm/components/block/components/component-ref/component-ref.helpers.d.ts +28 -0
- package/types/esm/components/block/components/interactive-element.d.ts +12 -0
- package/types/esm/components/block/components/repeated-block.d.ts +10 -0
- package/types/esm/components/block/types.d.ts +6 -0
- package/types/esm/components/blocks/blocks-wrapper.d.ts +11 -0
- package/types/esm/components/blocks/blocks.d.ts +9 -0
- package/types/esm/components/content/components/enable-editor.d.ts +10 -0
- package/types/esm/components/content/components/styles.d.ts +9 -0
- package/types/esm/components/content/components/styles.helpers.d.ts +15 -0
- package/types/esm/components/content/content.d.ts +4 -0
- package/types/esm/components/content/content.helpers.d.ts +7 -0
- package/types/esm/components/content/content.types.d.ts +24 -0
- package/types/esm/components/content/wrap-component-ref.d.ts +6 -0
- package/types/esm/components/content-variants/content-variants.d.ts +10 -0
- package/types/esm/components/content-variants/content-variants.types.d.ts +20 -0
- package/types/esm/components/content-variants/helpers.d.ts +41 -0
- package/types/esm/components/inlined-script.d.ts +7 -0
- package/types/esm/components/inlined-styles.d.ts +7 -0
- package/types/esm/constants/builder-registered-components.d.ts +6 -0
- package/types/esm/constants/device-sizes.d.ts +13 -0
- package/types/esm/constants/sdk-version.d.ts +1 -0
- package/types/esm/constants/target.d.ts +2 -0
- package/types/esm/context/builder.context.d.ts +3 -0
- package/types/esm/context/components.context.d.ts +3 -0
- package/types/esm/context/types.d.ts +35 -0
- package/types/esm/functions/camel-to-kebab-case.d.ts +1 -0
- package/types/esm/functions/deopt.d.ts +4 -0
- package/types/esm/functions/evaluate/browser-runtime/browser.d.ts +4 -0
- package/types/esm/functions/evaluate/browser-runtime/index.d.ts +1 -0
- package/types/esm/functions/evaluate/choose-eval.d.ts +6 -0
- package/types/esm/functions/evaluate/evaluate.d.ts +2 -0
- package/types/esm/functions/evaluate/helpers.d.ts +24 -0
- package/types/esm/functions/evaluate/index.d.ts +1 -0
- package/types/esm/functions/event-handler-name.d.ts +1 -0
- package/types/esm/functions/extract-text-styles.d.ts +4 -0
- package/types/esm/functions/fast-clone.d.ts +4 -0
- package/types/esm/functions/fetch-builder-props.d.ts +53 -0
- package/types/esm/functions/get-block-actions-handler.d.ts +8 -0
- package/types/esm/functions/get-block-actions.d.ts +10 -0
- package/types/esm/functions/get-block-component-options.d.ts +2 -0
- package/types/esm/functions/get-block-properties.d.ts +6 -0
- package/types/esm/functions/get-builder-search-params/index.d.ts +12 -0
- package/types/esm/functions/get-content/generate-content-url.d.ts +2 -0
- package/types/esm/functions/get-content/index.d.ts +28 -0
- package/types/esm/functions/get-content/types.d.ts +142 -0
- package/types/esm/functions/get-fetch.d.ts +1 -0
- package/types/esm/functions/get-global-this.d.ts +4 -0
- package/types/esm/functions/get-processed-block.d.ts +10 -0
- package/types/esm/functions/get-react-native-block-styles.d.ts +7 -0
- package/types/esm/functions/is-browser.d.ts +1 -0
- package/types/esm/functions/is-editing.d.ts +1 -0
- package/types/esm/functions/is-iframe.d.ts +1 -0
- package/types/esm/functions/is-previewing.d.ts +1 -0
- package/types/esm/functions/register-component.d.ts +15 -0
- package/types/esm/functions/register.d.ts +16 -0
- package/types/esm/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/types/esm/functions/set-editor-settings.d.ts +4 -0
- package/types/esm/functions/set.d.ts +7 -0
- package/types/esm/functions/track/helpers.d.ts +5 -0
- package/types/esm/functions/track/index.d.ts +51 -0
- package/types/esm/functions/track/interaction.d.ts +13 -0
- package/types/esm/functions/transform-block-properties.d.ts +1 -0
- package/types/esm/functions/transform-block.d.ts +2 -0
- package/types/esm/helpers/ab-tests.d.ts +9 -0
- package/types/esm/helpers/canTrack.d.ts +1 -0
- package/types/esm/helpers/cookie.d.ts +19 -0
- package/types/esm/helpers/css.d.ts +7 -0
- package/types/esm/helpers/flatten.d.ts +6 -0
- package/types/esm/helpers/localStorage.d.ts +9 -0
- package/types/esm/helpers/logger.d.ts +6 -0
- package/types/esm/helpers/nullable.d.ts +2 -0
- package/types/esm/helpers/preview-lru-cache/get.d.ts +1 -0
- package/types/esm/helpers/preview-lru-cache/helpers.d.ts +1 -0
- package/types/esm/helpers/preview-lru-cache/init.d.ts +6 -0
- package/types/esm/helpers/preview-lru-cache/set.d.ts +7 -0
- package/types/esm/helpers/preview-lru-cache/types.d.ts +12 -0
- package/types/esm/helpers/sessionId.d.ts +6 -0
- package/types/esm/helpers/url.d.ts +6 -0
- package/types/esm/helpers/uuid.d.ts +8 -0
- package/types/esm/helpers/visitorId.d.ts +6 -0
- package/types/esm/index-helpers/blocks-exports.d.ts +19 -0
- package/types/esm/index-helpers/top-of-file.d.ts +1 -0
- package/types/esm/index.d.ts +7 -0
- package/types/esm/scripts/init-editing.d.ts +6 -0
- package/types/esm/server-index.d.ts +15 -0
- package/types/esm/types/api-version.d.ts +2 -0
- package/types/esm/types/builder-block.d.ts +66 -0
- package/types/esm/types/builder-content.d.ts +44 -0
- package/types/esm/types/builder-props.d.ts +9 -0
- package/types/esm/types/can-track.d.ts +3 -0
- package/types/esm/types/components.d.ts +110 -0
- package/types/esm/types/deep-partial.d.ts +3 -0
- package/types/esm/types/element.d.ts +59 -0
- package/types/esm/types/enforced-partials.d.ts +21 -0
- package/types/esm/types/input.d.ts +121 -0
- package/types/esm/types/targets.d.ts +1 -0
- package/types/esm/types/typescript.d.ts +11 -0
- package/lib/browser/USE_CLIENT_BUNDLE-1cdce03b.cjs +0 -23
- package/lib/browser/bundle-cbc690cf.cjs +0 -76
- package/lib/edge/USE_CLIENT_BUNDLE-ba263633.cjs +0 -23
- package/lib/node/USE_CLIENT_BUNDLE-7a982d7c.cjs +0 -23
- package/lib/node/bundle-b13f5899.cjs +0 -116
package/lib/node/index.mjs
CHANGED
|
@@ -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,
|
|
2
|
-
import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-
|
|
1
|
+
import { B as i, t as m, C as c, R as g, q as p, S as l, T as C, w as d, m as f, E as u, x as B, n as S, y as E, A as R, z as h, i as x, f as k, u as y, v as P, D as b } from "./bundle-fb3490a6.js";
|
|
2
|
+
import { b as w, F as A, c as F, S as T, V } from "./USE_CLIENT_BUNDLE-c6d9e08c.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-
|
|
7
|
+
import "./USE_SERVER_BUNDLE-787d0ec8.js";
|
|
8
8
|
export {
|
|
9
9
|
i as Blocks,
|
|
10
10
|
w as Button,
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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.
|
|
4
|
+
"version": "0.7.2",
|
|
5
5
|
"files": [
|
|
6
|
-
"lib"
|
|
6
|
+
"lib",
|
|
7
|
+
"types"
|
|
7
8
|
],
|
|
8
9
|
"main": "./lib/edge/index.cjs",
|
|
9
10
|
"module": "./lib/edge/index.mjs",
|
|
@@ -74,7 +75,9 @@
|
|
|
74
75
|
},
|
|
75
76
|
"scripts": {
|
|
76
77
|
"release": "npm publish",
|
|
77
|
-
"
|
|
78
|
+
"types:cjs": "yarn tsc --p ./tsconfig.cjs.json",
|
|
79
|
+
"types:esm": "yarn tsc --p ./tsconfig.esm.json",
|
|
80
|
+
"build": "nx run-many -p @builder.io/sdk-react-nextjs -t types:cjs types:esm build:node build:edge build:browser",
|
|
78
81
|
"build:node": "SDK_ENV=node vite build --mode lib",
|
|
79
82
|
"build:edge": "SDK_ENV=edge vite build --mode lib",
|
|
80
83
|
"build:browser": "SDK_ENV=browser vite build --mode lib"
|
|
@@ -87,7 +90,7 @@
|
|
|
87
90
|
"devDependencies": {
|
|
88
91
|
"@builder.io/sdks": "workspace:*",
|
|
89
92
|
"@vitejs/plugin-react": "^4.0.4",
|
|
90
|
-
"next": "
|
|
93
|
+
"next": ">=13.4.20",
|
|
91
94
|
"nx": "^16.6.0",
|
|
92
95
|
"nx-cloud": "^16.2.0",
|
|
93
96
|
"react": "^18.2.0",
|
|
@@ -108,7 +111,8 @@
|
|
|
108
111
|
"^build"
|
|
109
112
|
],
|
|
110
113
|
"outputs": [
|
|
111
|
-
"{projectRoot}/lib"
|
|
114
|
+
"{projectRoot}/lib",
|
|
115
|
+
"{projectRoot}/types"
|
|
112
116
|
]
|
|
113
117
|
}
|
|
114
118
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
+
*/
|
|
5
|
+
export interface ButtonProps {
|
|
6
|
+
attributes?: any;
|
|
7
|
+
text?: string;
|
|
8
|
+
link?: string;
|
|
9
|
+
openLinkInNewTab?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare function Button(props: ButtonProps): React.JSX.Element;
|
|
12
|
+
export default Button;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "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>): React.JSX.Element;
|
|
17
|
+
export default Columns;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isJsScript: (script: HTMLScriptElement) => boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "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): React.JSX.Element;
|
|
22
|
+
export default Image;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getSrcSet(url: string): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
+
*/
|
|
5
|
+
export interface ImgProps {
|
|
6
|
+
attributes?: any;
|
|
7
|
+
imgSrc?: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
altText?: string;
|
|
10
|
+
backgroundSize?: "cover" | "contain";
|
|
11
|
+
backgroundPosition?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
|
|
12
|
+
}
|
|
13
|
+
declare function ImgComponent(props: ImgProps): React.JSX.Element;
|
|
14
|
+
export default ImgComponent;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
+
*/
|
|
5
|
+
export interface SectionProps {
|
|
6
|
+
maxWidth?: number;
|
|
7
|
+
attributes?: any;
|
|
8
|
+
children?: any;
|
|
9
|
+
builderBlock?: any;
|
|
10
|
+
}
|
|
11
|
+
declare function SectionComponent(props: SectionProps): React.JSX.Element;
|
|
12
|
+
export default SectionComponent;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
+
*/
|
|
5
|
+
export interface SymbolInfo {
|
|
6
|
+
model?: string;
|
|
7
|
+
entry?: string;
|
|
8
|
+
data?: any;
|
|
9
|
+
content?: BuilderContent;
|
|
10
|
+
inline?: boolean;
|
|
11
|
+
dynamic?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
15
|
+
*/
|
|
16
|
+
export interface SymbolProps extends BuilderComponentsProp {
|
|
17
|
+
symbol?: SymbolInfo;
|
|
18
|
+
dataOnly?: boolean;
|
|
19
|
+
dynamic?: boolean;
|
|
20
|
+
attributes?: any;
|
|
21
|
+
inheritState?: boolean;
|
|
22
|
+
}
|
|
23
|
+
import type { BuilderContent } from "../../types/builder-content.js";
|
|
24
|
+
import type { BuilderComponentsProp, PropsWithBuilderData } from "../../types/builder-props.js";
|
|
25
|
+
declare function Symbol(props: PropsWithBuilderData<SymbolProps>): Promise<React.JSX.Element>;
|
|
26
|
+
export default Symbol;
|
|
@@ -0,0 +1,14 @@
|
|
|
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>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "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): React.JSX.Element;
|
|
20
|
+
export default Video;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "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): React.JSX.Element;
|
|
10
|
+
export default Block;
|
|
@@ -0,0 +1,13 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "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): React.JSX.Element;
|
|
9
|
+
export default BlockStyles;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* This import is used by the Svelte SDK. Do not remove.
|
|
4
|
+
*/
|
|
5
|
+
type BlockWrapperProps = {
|
|
6
|
+
Wrapper: string;
|
|
7
|
+
block: BuilderBlock;
|
|
8
|
+
context: BuilderContextInterface;
|
|
9
|
+
hasChildren: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* This component renders a block's wrapper HTML element (from the block's `tagName` property).
|
|
13
|
+
* It reuses the exact same logic as the `InteractiveElement` component, but we need to have 2 separate components for
|
|
14
|
+
* 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 { BuilderContextInterface } from "../../../context/types.js";
|
|
15
|
+
import type { BuilderBlock } from "../../../types/builder-block.js";
|
|
16
|
+
import type { PropsWithChildren } from "../../../types/typescript.js";
|
|
17
|
+
declare function BlockWrapper(props: PropsWithChildren<BlockWrapperProps>): React.JSX.Element;
|
|
18
|
+
export default BlockWrapper;
|
|
@@ -0,0 +1,28 @@
|
|
|
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.js';
|
|
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 {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "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>): React.JSX.Element;
|
|
12
|
+
export default InteractiveElement;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "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): React.JSX.Element;
|
|
10
|
+
export default RepeatedBlock;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "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>): React.JSX.Element;
|
|
11
|
+
export default BlocksWrapper;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type BlocksProps = Partial<BlocksWrapperProps> & {
|
|
3
|
+
context?: BuilderContextInterface;
|
|
4
|
+
registeredComponents?: RegisteredComponents;
|
|
5
|
+
};
|
|
6
|
+
import type { BuilderContextInterface, RegisteredComponents } from "../../context/types.js";
|
|
7
|
+
import type { BlocksWrapperProps } from "./blocks-wrapper.js";
|
|
8
|
+
declare function Blocks(props: BlocksProps): React.JSX.Element;
|
|
9
|
+
export default Blocks;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "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): React.JSX.Element;
|
|
10
|
+
export default EnableEditor;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "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): React.JSX.Element;
|
|
9
|
+
export default ContentStyles;
|
|
@@ -0,0 +1,15 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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>;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type VariantsProviderProps = ContentVariantsPrps & {
|
|
3
|
+
/**
|
|
4
|
+
* For internal use only. Do not provide this prop.
|
|
5
|
+
*/
|
|
6
|
+
__isNestedRender?: boolean;
|
|
7
|
+
};
|
|
8
|
+
import type { ContentVariantsPrps } from "./content-variants.types.js";
|
|
9
|
+
declare function ContentVariants(props: VariantsProviderProps): React.JSX.Element;
|
|
10
|
+
export default ContentVariants;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BuilderRenderContext, RegisteredComponent } from '../../context/types.js';
|
|
2
|
+
import type { ApiVersion } from '../../types/api-version.js';
|
|
3
|
+
import type { BuilderContent } from '../../types/builder-content.js';
|
|
4
|
+
import type { Nullable } from '../../types/typescript.js';
|
|
5
|
+
export interface ContentVariantsPrps {
|
|
6
|
+
content?: Nullable<BuilderContent>;
|
|
7
|
+
model?: string;
|
|
8
|
+
data?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
context?: BuilderRenderContext;
|
|
12
|
+
apiKey: string;
|
|
13
|
+
apiVersion?: ApiVersion;
|
|
14
|
+
customComponents?: RegisteredComponent[];
|
|
15
|
+
canTrack?: boolean;
|
|
16
|
+
locale?: string;
|
|
17
|
+
/** @deprecated use `enrich` instead **/
|
|
18
|
+
includeRefs?: boolean;
|
|
19
|
+
enrich?: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Nullable } from '../../helpers/nullable.js';
|
|
2
|
+
import type { BuilderContent } from '../../types/builder-content.js';
|
|
3
|
+
export declare const getVariants: (content: Nullable<BuilderContent>) => {
|
|
4
|
+
testVariationId: string;
|
|
5
|
+
id: string;
|
|
6
|
+
data?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
title?: string;
|
|
9
|
+
blocks?: import("../../types/builder-block.js").BuilderBlock[];
|
|
10
|
+
inputs?: import("../../types/input.js").Input[];
|
|
11
|
+
state?: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
jsCode?: string;
|
|
15
|
+
tsCode?: string;
|
|
16
|
+
httpRequests?: {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
name?: string;
|
|
21
|
+
testRatio?: number;
|
|
22
|
+
meta?: {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
breakpoints?: import("../../types/builder-content.js").Breakpoints;
|
|
25
|
+
};
|
|
26
|
+
}[];
|
|
27
|
+
export declare const checkShouldRunVariants: ({ canTrack, content }: {
|
|
28
|
+
canTrack: Nullable<boolean>;
|
|
29
|
+
content: Nullable<BuilderContent>;
|
|
30
|
+
}) => boolean;
|
|
31
|
+
type VariantData = {
|
|
32
|
+
id: string;
|
|
33
|
+
testRatio?: number;
|
|
34
|
+
};
|
|
35
|
+
export declare const getScriptString: () => string;
|
|
36
|
+
export declare const getVariantsScriptString: (variants: VariantData[], contentId: string) => string;
|
|
37
|
+
export declare const getRenderContentScriptString: ({ contentId, variationId }: {
|
|
38
|
+
variationId: string;
|
|
39
|
+
contentId: string;
|
|
40
|
+
}) => string;
|
|
41
|
+
export {};
|