@builder.io/sdk-react-native 1.0.11 → 1.0.13
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/browser/commonjs/blocks/columns/columns.js +2 -2
- package/lib/browser/commonjs/blocks/columns/columns.js.map +1 -1
- package/lib/browser/commonjs/blocks/form/form/form.js +6 -6
- package/lib/browser/commonjs/blocks/form/form/form.js.map +1 -1
- package/lib/browser/commonjs/blocks/symbol/symbol.js +1 -1
- package/lib/browser/commonjs/blocks/symbol/symbol.js.map +1 -1
- package/lib/browser/commonjs/components/block/block.helpers.js +19 -2
- package/lib/browser/commonjs/components/block/block.helpers.js.map +1 -1
- package/lib/browser/commonjs/components/block/block.js +17 -14
- package/lib/browser/commonjs/components/block/block.js.map +1 -1
- package/lib/browser/commonjs/components/block/components/component-ref/component-ref.js +2 -2
- package/lib/browser/commonjs/components/block/components/component-ref/component-ref.js.map +1 -1
- package/lib/browser/commonjs/components/content/components/enable-editor.js +11 -6
- package/lib/browser/commonjs/components/content/components/enable-editor.js.map +1 -1
- package/lib/browser/commonjs/components/content/components/styles.helpers.js +23 -1
- package/lib/browser/commonjs/components/content/components/styles.helpers.js.map +1 -1
- package/lib/browser/commonjs/components/content/components/styles.js +1 -17
- package/lib/browser/commonjs/components/content/components/styles.js.map +1 -1
- package/lib/browser/commonjs/components/content/content.js +4 -3
- package/lib/browser/commonjs/components/content/content.js.map +1 -1
- package/lib/browser/commonjs/components/content-variants/content-variants.js +4 -2
- package/lib/browser/commonjs/components/content-variants/content-variants.js.map +1 -1
- package/lib/browser/commonjs/components/dynamic-renderer/dynamic-renderer.js +1 -1
- package/lib/browser/commonjs/components/dynamic-renderer/dynamic-renderer.js.map +1 -1
- package/lib/browser/commonjs/constants/sdk-version.js +1 -1
- package/lib/browser/commonjs/functions/evaluate/browser-runtime/browser.js +1 -1
- package/lib/browser/commonjs/functions/evaluate/browser-runtime/browser.js.map +1 -1
- package/lib/browser/commonjs/functions/evaluate/evaluate.js +40 -3
- package/lib/browser/commonjs/functions/evaluate/evaluate.js.map +1 -1
- package/lib/browser/commonjs/functions/evaluate/helpers.js.map +1 -1
- package/lib/browser/commonjs/functions/get-block-actions-handler.js +2 -1
- package/lib/browser/commonjs/functions/get-block-actions-handler.js.map +1 -1
- package/lib/browser/commonjs/functions/get-processed-block.js +2 -1
- package/lib/browser/commonjs/functions/get-processed-block.js.map +1 -1
- package/lib/browser/module/blocks/columns/columns.js +2 -2
- package/lib/browser/module/blocks/columns/columns.js.map +1 -1
- package/lib/browser/module/blocks/form/form/form.js +6 -6
- package/lib/browser/module/blocks/form/form/form.js.map +1 -1
- package/lib/browser/module/blocks/symbol/symbol.js +1 -1
- package/lib/browser/module/blocks/symbol/symbol.js.map +1 -1
- package/lib/browser/module/components/block/block.helpers.js +17 -1
- package/lib/browser/module/components/block/block.helpers.js.map +1 -1
- package/lib/browser/module/components/block/block.js +19 -16
- package/lib/browser/module/components/block/block.js.map +1 -1
- package/lib/browser/module/components/block/components/component-ref/component-ref.js +2 -2
- package/lib/browser/module/components/block/components/component-ref/component-ref.js.map +1 -1
- package/lib/browser/module/components/content/components/enable-editor.js +11 -6
- package/lib/browser/module/components/content/components/enable-editor.js.map +1 -1
- package/lib/browser/module/components/content/components/styles.helpers.js +21 -0
- package/lib/browser/module/components/content/components/styles.helpers.js.map +1 -1
- package/lib/browser/module/components/content/components/styles.js +2 -18
- package/lib/browser/module/components/content/components/styles.js.map +1 -1
- package/lib/browser/module/components/content/content.js +4 -3
- package/lib/browser/module/components/content/content.js.map +1 -1
- package/lib/browser/module/components/content-variants/content-variants.js +4 -2
- package/lib/browser/module/components/content-variants/content-variants.js.map +1 -1
- package/lib/browser/module/components/dynamic-renderer/dynamic-renderer.js +1 -1
- package/lib/browser/module/components/dynamic-renderer/dynamic-renderer.js.map +1 -1
- package/lib/browser/module/constants/sdk-version.js +1 -1
- package/lib/browser/module/functions/evaluate/browser-runtime/browser.js +1 -1
- package/lib/browser/module/functions/evaluate/browser-runtime/browser.js.map +1 -1
- package/lib/browser/module/functions/evaluate/evaluate.js +40 -3
- package/lib/browser/module/functions/evaluate/evaluate.js.map +1 -1
- package/lib/browser/module/functions/evaluate/helpers.js.map +1 -1
- package/lib/browser/module/functions/get-block-actions-handler.js +2 -1
- package/lib/browser/module/functions/get-block-actions-handler.js.map +1 -1
- package/lib/browser/module/functions/get-processed-block.js +2 -1
- package/lib/browser/module/functions/get-processed-block.js.map +1 -1
- package/lib/browser/typescript/blocks/columns/columns.d.ts.map +1 -1
- package/lib/browser/typescript/components/block/block.d.ts.map +1 -1
- package/lib/browser/typescript/components/block/block.helpers.d.ts +4 -0
- package/lib/browser/typescript/components/block/block.helpers.d.ts.map +1 -1
- package/lib/browser/typescript/components/block/components/component-ref/component-ref.d.ts.map +1 -1
- package/lib/browser/typescript/components/content/components/enable-editor.d.ts +1 -1
- package/lib/browser/typescript/components/content/components/enable-editor.d.ts.map +1 -1
- package/lib/browser/typescript/components/content/components/styles.d.ts +1 -0
- package/lib/browser/typescript/components/content/components/styles.d.ts.map +1 -1
- package/lib/browser/typescript/components/content/components/styles.helpers.d.ts +1 -0
- package/lib/browser/typescript/components/content/components/styles.helpers.d.ts.map +1 -1
- package/lib/browser/typescript/components/content/content.d.ts.map +1 -1
- package/lib/browser/typescript/components/content/contentProps.types.d.ts +6 -1
- package/lib/browser/typescript/components/content/contentProps.types.d.ts.map +1 -1
- package/lib/browser/typescript/components/content-variants/content-variants.d.ts +1 -1
- package/lib/browser/typescript/components/content-variants/content-variants.d.ts.map +1 -1
- package/lib/browser/typescript/components/dynamic-renderer/dynamic-renderer.d.ts.map +1 -1
- package/lib/browser/typescript/constants/sdk-version.d.ts +1 -1
- package/lib/browser/typescript/functions/evaluate/evaluate.d.ts +3 -1
- package/lib/browser/typescript/functions/evaluate/evaluate.d.ts.map +1 -1
- package/lib/browser/typescript/functions/evaluate/helpers.d.ts +1 -0
- package/lib/browser/typescript/functions/evaluate/helpers.d.ts.map +1 -1
- package/lib/browser/typescript/functions/get-block-actions-handler.d.ts.map +1 -1
- package/lib/browser/typescript/functions/get-processed-block.d.ts.map +1 -1
- package/lib/edge/commonjs/blocks/columns/columns.js +2 -2
- package/lib/edge/commonjs/blocks/columns/columns.js.map +1 -1
- package/lib/edge/commonjs/blocks/form/form/form.js +6 -6
- package/lib/edge/commonjs/blocks/form/form/form.js.map +1 -1
- package/lib/edge/commonjs/blocks/symbol/symbol.js +1 -1
- package/lib/edge/commonjs/blocks/symbol/symbol.js.map +1 -1
- package/lib/edge/commonjs/components/block/block.helpers.js +19 -2
- package/lib/edge/commonjs/components/block/block.helpers.js.map +1 -1
- package/lib/edge/commonjs/components/block/block.js +17 -14
- package/lib/edge/commonjs/components/block/block.js.map +1 -1
- package/lib/edge/commonjs/components/block/components/component-ref/component-ref.js +2 -2
- package/lib/edge/commonjs/components/block/components/component-ref/component-ref.js.map +1 -1
- package/lib/edge/commonjs/components/content/components/enable-editor.js +11 -6
- package/lib/edge/commonjs/components/content/components/enable-editor.js.map +1 -1
- package/lib/edge/commonjs/components/content/components/styles.helpers.js +23 -1
- package/lib/edge/commonjs/components/content/components/styles.helpers.js.map +1 -1
- package/lib/edge/commonjs/components/content/components/styles.js +1 -17
- package/lib/edge/commonjs/components/content/components/styles.js.map +1 -1
- package/lib/edge/commonjs/components/content/content.js +4 -3
- package/lib/edge/commonjs/components/content/content.js.map +1 -1
- package/lib/edge/commonjs/components/content-variants/content-variants.js +4 -2
- package/lib/edge/commonjs/components/content-variants/content-variants.js.map +1 -1
- package/lib/edge/commonjs/components/dynamic-renderer/dynamic-renderer.js +1 -1
- package/lib/edge/commonjs/components/dynamic-renderer/dynamic-renderer.js.map +1 -1
- package/lib/edge/commonjs/constants/sdk-version.js +1 -1
- package/lib/edge/commonjs/functions/evaluate/browser-runtime/browser.js +1 -1
- package/lib/edge/commonjs/functions/evaluate/browser-runtime/browser.js.map +1 -1
- package/lib/edge/commonjs/functions/evaluate/evaluate.js +40 -3
- package/lib/edge/commonjs/functions/evaluate/evaluate.js.map +1 -1
- package/lib/edge/commonjs/functions/evaluate/helpers.js.map +1 -1
- package/lib/edge/commonjs/functions/get-block-actions-handler.js +2 -1
- package/lib/edge/commonjs/functions/get-block-actions-handler.js.map +1 -1
- package/lib/edge/commonjs/functions/get-processed-block.js +2 -1
- package/lib/edge/commonjs/functions/get-processed-block.js.map +1 -1
- package/lib/edge/module/blocks/columns/columns.js +2 -2
- package/lib/edge/module/blocks/columns/columns.js.map +1 -1
- package/lib/edge/module/blocks/form/form/form.js +6 -6
- package/lib/edge/module/blocks/form/form/form.js.map +1 -1
- package/lib/edge/module/blocks/symbol/symbol.js +1 -1
- package/lib/edge/module/blocks/symbol/symbol.js.map +1 -1
- package/lib/edge/module/components/block/block.helpers.js +17 -1
- package/lib/edge/module/components/block/block.helpers.js.map +1 -1
- package/lib/edge/module/components/block/block.js +19 -16
- package/lib/edge/module/components/block/block.js.map +1 -1
- package/lib/edge/module/components/block/components/component-ref/component-ref.js +2 -2
- package/lib/edge/module/components/block/components/component-ref/component-ref.js.map +1 -1
- package/lib/edge/module/components/content/components/enable-editor.js +11 -6
- package/lib/edge/module/components/content/components/enable-editor.js.map +1 -1
- package/lib/edge/module/components/content/components/styles.helpers.js +21 -0
- package/lib/edge/module/components/content/components/styles.helpers.js.map +1 -1
- package/lib/edge/module/components/content/components/styles.js +2 -18
- package/lib/edge/module/components/content/components/styles.js.map +1 -1
- package/lib/edge/module/components/content/content.js +4 -3
- package/lib/edge/module/components/content/content.js.map +1 -1
- package/lib/edge/module/components/content-variants/content-variants.js +4 -2
- package/lib/edge/module/components/content-variants/content-variants.js.map +1 -1
- package/lib/edge/module/components/dynamic-renderer/dynamic-renderer.js +1 -1
- package/lib/edge/module/components/dynamic-renderer/dynamic-renderer.js.map +1 -1
- package/lib/edge/module/constants/sdk-version.js +1 -1
- package/lib/edge/module/functions/evaluate/browser-runtime/browser.js +1 -1
- package/lib/edge/module/functions/evaluate/browser-runtime/browser.js.map +1 -1
- package/lib/edge/module/functions/evaluate/evaluate.js +40 -3
- package/lib/edge/module/functions/evaluate/evaluate.js.map +1 -1
- package/lib/edge/module/functions/evaluate/helpers.js.map +1 -1
- package/lib/edge/module/functions/get-block-actions-handler.js +2 -1
- package/lib/edge/module/functions/get-block-actions-handler.js.map +1 -1
- package/lib/edge/module/functions/get-processed-block.js +2 -1
- package/lib/edge/module/functions/get-processed-block.js.map +1 -1
- package/lib/edge/typescript/blocks/columns/columns.d.ts.map +1 -1
- package/lib/edge/typescript/components/block/block.d.ts.map +1 -1
- package/lib/edge/typescript/components/block/block.helpers.d.ts +4 -0
- package/lib/edge/typescript/components/block/block.helpers.d.ts.map +1 -1
- package/lib/edge/typescript/components/block/components/component-ref/component-ref.d.ts.map +1 -1
- package/lib/edge/typescript/components/content/components/enable-editor.d.ts +1 -1
- package/lib/edge/typescript/components/content/components/enable-editor.d.ts.map +1 -1
- package/lib/edge/typescript/components/content/components/styles.d.ts +1 -0
- package/lib/edge/typescript/components/content/components/styles.d.ts.map +1 -1
- package/lib/edge/typescript/components/content/components/styles.helpers.d.ts +1 -0
- package/lib/edge/typescript/components/content/components/styles.helpers.d.ts.map +1 -1
- package/lib/edge/typescript/components/content/content.d.ts.map +1 -1
- package/lib/edge/typescript/components/content/contentProps.types.d.ts +6 -1
- package/lib/edge/typescript/components/content/contentProps.types.d.ts.map +1 -1
- package/lib/edge/typescript/components/content-variants/content-variants.d.ts +1 -1
- package/lib/edge/typescript/components/content-variants/content-variants.d.ts.map +1 -1
- package/lib/edge/typescript/components/dynamic-renderer/dynamic-renderer.d.ts.map +1 -1
- package/lib/edge/typescript/constants/sdk-version.d.ts +1 -1
- package/lib/edge/typescript/functions/evaluate/evaluate.d.ts +3 -1
- package/lib/edge/typescript/functions/evaluate/evaluate.d.ts.map +1 -1
- package/lib/edge/typescript/functions/evaluate/helpers.d.ts +1 -0
- package/lib/edge/typescript/functions/evaluate/helpers.d.ts.map +1 -1
- package/lib/edge/typescript/functions/get-block-actions-handler.d.ts.map +1 -1
- package/lib/edge/typescript/functions/get-processed-block.d.ts.map +1 -1
- package/lib/node/commonjs/blocks/columns/columns.js +2 -2
- package/lib/node/commonjs/blocks/columns/columns.js.map +1 -1
- package/lib/node/commonjs/blocks/form/form/form.js +6 -6
- package/lib/node/commonjs/blocks/form/form/form.js.map +1 -1
- package/lib/node/commonjs/blocks/symbol/symbol.js +1 -1
- package/lib/node/commonjs/blocks/symbol/symbol.js.map +1 -1
- package/lib/node/commonjs/components/block/block.helpers.js +19 -2
- package/lib/node/commonjs/components/block/block.helpers.js.map +1 -1
- package/lib/node/commonjs/components/block/block.js +17 -14
- package/lib/node/commonjs/components/block/block.js.map +1 -1
- package/lib/node/commonjs/components/block/components/component-ref/component-ref.js +2 -2
- package/lib/node/commonjs/components/block/components/component-ref/component-ref.js.map +1 -1
- package/lib/node/commonjs/components/content/components/enable-editor.js +11 -6
- package/lib/node/commonjs/components/content/components/enable-editor.js.map +1 -1
- package/lib/node/commonjs/components/content/components/styles.helpers.js +23 -1
- package/lib/node/commonjs/components/content/components/styles.helpers.js.map +1 -1
- package/lib/node/commonjs/components/content/components/styles.js +1 -17
- package/lib/node/commonjs/components/content/components/styles.js.map +1 -1
- package/lib/node/commonjs/components/content/content.js +4 -3
- package/lib/node/commonjs/components/content/content.js.map +1 -1
- package/lib/node/commonjs/components/content-variants/content-variants.js +4 -2
- package/lib/node/commonjs/components/content-variants/content-variants.js.map +1 -1
- package/lib/node/commonjs/components/dynamic-renderer/dynamic-renderer.js +1 -1
- package/lib/node/commonjs/components/dynamic-renderer/dynamic-renderer.js.map +1 -1
- package/lib/node/commonjs/constants/sdk-version.js +1 -1
- package/lib/node/commonjs/functions/evaluate/browser-runtime/browser.js +1 -1
- package/lib/node/commonjs/functions/evaluate/browser-runtime/browser.js.map +1 -1
- package/lib/node/commonjs/functions/evaluate/evaluate.js +40 -3
- package/lib/node/commonjs/functions/evaluate/evaluate.js.map +1 -1
- package/lib/node/commonjs/functions/evaluate/helpers.js.map +1 -1
- package/lib/node/commonjs/functions/get-block-actions-handler.js +2 -1
- package/lib/node/commonjs/functions/get-block-actions-handler.js.map +1 -1
- package/lib/node/commonjs/functions/get-processed-block.js +2 -1
- package/lib/node/commonjs/functions/get-processed-block.js.map +1 -1
- package/lib/node/module/blocks/columns/columns.js +2 -2
- package/lib/node/module/blocks/columns/columns.js.map +1 -1
- package/lib/node/module/blocks/form/form/form.js +6 -6
- package/lib/node/module/blocks/form/form/form.js.map +1 -1
- package/lib/node/module/blocks/symbol/symbol.js +1 -1
- package/lib/node/module/blocks/symbol/symbol.js.map +1 -1
- package/lib/node/module/components/block/block.helpers.js +17 -1
- package/lib/node/module/components/block/block.helpers.js.map +1 -1
- package/lib/node/module/components/block/block.js +19 -16
- package/lib/node/module/components/block/block.js.map +1 -1
- package/lib/node/module/components/block/components/component-ref/component-ref.js +2 -2
- package/lib/node/module/components/block/components/component-ref/component-ref.js.map +1 -1
- package/lib/node/module/components/content/components/enable-editor.js +11 -6
- package/lib/node/module/components/content/components/enable-editor.js.map +1 -1
- package/lib/node/module/components/content/components/styles.helpers.js +21 -0
- package/lib/node/module/components/content/components/styles.helpers.js.map +1 -1
- package/lib/node/module/components/content/components/styles.js +2 -18
- package/lib/node/module/components/content/components/styles.js.map +1 -1
- package/lib/node/module/components/content/content.js +4 -3
- package/lib/node/module/components/content/content.js.map +1 -1
- package/lib/node/module/components/content-variants/content-variants.js +4 -2
- package/lib/node/module/components/content-variants/content-variants.js.map +1 -1
- package/lib/node/module/components/dynamic-renderer/dynamic-renderer.js +1 -1
- package/lib/node/module/components/dynamic-renderer/dynamic-renderer.js.map +1 -1
- package/lib/node/module/constants/sdk-version.js +1 -1
- package/lib/node/module/functions/evaluate/browser-runtime/browser.js +1 -1
- package/lib/node/module/functions/evaluate/browser-runtime/browser.js.map +1 -1
- package/lib/node/module/functions/evaluate/evaluate.js +40 -3
- package/lib/node/module/functions/evaluate/evaluate.js.map +1 -1
- package/lib/node/module/functions/evaluate/helpers.js.map +1 -1
- package/lib/node/module/functions/get-block-actions-handler.js +2 -1
- package/lib/node/module/functions/get-block-actions-handler.js.map +1 -1
- package/lib/node/module/functions/get-processed-block.js +2 -1
- package/lib/node/module/functions/get-processed-block.js.map +1 -1
- package/lib/node/typescript/blocks/columns/columns.d.ts.map +1 -1
- package/lib/node/typescript/components/block/block.d.ts.map +1 -1
- package/lib/node/typescript/components/block/block.helpers.d.ts +4 -0
- package/lib/node/typescript/components/block/block.helpers.d.ts.map +1 -1
- package/lib/node/typescript/components/block/components/component-ref/component-ref.d.ts.map +1 -1
- package/lib/node/typescript/components/content/components/enable-editor.d.ts +1 -1
- package/lib/node/typescript/components/content/components/enable-editor.d.ts.map +1 -1
- package/lib/node/typescript/components/content/components/styles.d.ts +1 -0
- package/lib/node/typescript/components/content/components/styles.d.ts.map +1 -1
- package/lib/node/typescript/components/content/components/styles.helpers.d.ts +1 -0
- package/lib/node/typescript/components/content/components/styles.helpers.d.ts.map +1 -1
- package/lib/node/typescript/components/content/content.d.ts.map +1 -1
- package/lib/node/typescript/components/content/contentProps.types.d.ts +6 -1
- package/lib/node/typescript/components/content/contentProps.types.d.ts.map +1 -1
- package/lib/node/typescript/components/content-variants/content-variants.d.ts +1 -1
- package/lib/node/typescript/components/content-variants/content-variants.d.ts.map +1 -1
- package/lib/node/typescript/components/dynamic-renderer/dynamic-renderer.d.ts.map +1 -1
- package/lib/node/typescript/constants/sdk-version.d.ts +1 -1
- package/lib/node/typescript/functions/evaluate/evaluate.d.ts +3 -1
- package/lib/node/typescript/functions/evaluate/evaluate.d.ts.map +1 -1
- package/lib/node/typescript/functions/evaluate/helpers.d.ts +1 -0
- package/lib/node/typescript/functions/evaluate/helpers.d.ts.map +1 -1
- package/lib/node/typescript/functions/get-block-actions-handler.d.ts.map +1 -1
- package/lib/node/typescript/functions/get-processed-block.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import InlinedStyles from "../../inlined-styles";
|
|
4
|
-
import { getCss, getFontCss } from "./styles.helpers.js";
|
|
4
|
+
import { getCss, getDefaultStyles, getFontCss } from "./styles.helpers.js";
|
|
5
5
|
function ContentStyles(props) {
|
|
6
6
|
const [injectedStyles, setInjectedStyles] = useState(() => `
|
|
7
7
|
${getCss({
|
|
@@ -11,23 +11,7 @@ ${getCss({
|
|
|
11
11
|
${getFontCss({
|
|
12
12
|
customFonts: props.customFonts
|
|
13
13
|
})}
|
|
14
|
-
|
|
15
|
-
.builder-button {
|
|
16
|
-
all: unset;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
20
|
-
margin: 0;
|
|
21
|
-
}
|
|
22
|
-
.builder-text > p, .builder-text > .builder-paragraph {
|
|
23
|
-
color: inherit;
|
|
24
|
-
line-height: inherit;
|
|
25
|
-
letter-spacing: inherit;
|
|
26
|
-
font-weight: inherit;
|
|
27
|
-
font-size: inherit;
|
|
28
|
-
text-align: inherit;
|
|
29
|
-
font-family: inherit;
|
|
30
|
-
}
|
|
14
|
+
${getDefaultStyles(props.isNestedRender)}
|
|
31
15
|
`.trim());
|
|
32
16
|
return /*#__PURE__*/React.createElement(InlinedStyles, {
|
|
33
17
|
styles: injectedStyles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","InlinedStyles","getCss","getFontCss","ContentStyles","props","injectedStyles","setInjectedStyles","cssCode","contentId","customFonts","trim","createElement","styles"],"sourceRoot":"../../../../../../src","sources":["components/content/components/styles.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAS9B,SAASC,QAAQ,QAAQ,OAAO;
|
|
1
|
+
{"version":3,"names":["React","useState","InlinedStyles","getCss","getDefaultStyles","getFontCss","ContentStyles","props","injectedStyles","setInjectedStyles","cssCode","contentId","customFonts","isNestedRender","trim","createElement","styles"],"sourceRoot":"../../../../../../src","sources":["components/content/components/styles.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAS9B,SAASC,QAAQ,QAAQ,OAAO;AAShC,OAAOC,aAAa;AAEpB,SAASC,MAAM,EAAEC,gBAAgB,EAAEC,UAAU;AAE7C,SAASC,aAAaA,CAACC,KAAY,EAAE;EACnC,MAAM,CAACC,cAAc,EAAEC,iBAAiB,CAAC,GAAGR,QAAQ,CAAC,MAClD;AACL,EAAEE,MAAM,CAAC;IACPO,OAAO,EAAEH,KAAK,CAACG,OAAO;IACtBC,SAAS,EAAEJ,KAAK,CAACI;EACnB,CAAC,CAAE;AACH,EAAEN,UAAU,CAAC;IACXO,WAAW,EAAEL,KAAK,CAACK;EACrB,CAAC,CAAE;AACH,EAAER,gBAAgB,CAACG,KAAK,CAACM,cAAc,CAAE;AACzC,CAAC,CAACC,IAAI,CAAC,CACL,CAAC;EAED,oBAAOd,KAAA,CAAAe,aAAA,CAACb,aAAa;IAACc,MAAM,EAAER;EAAe,CAAE,CAAC;AAClD;AAEA,eAAeF,aAAa"}
|
|
@@ -84,13 +84,14 @@ function ContentComponent(props) {
|
|
|
84
84
|
linkComponent: props.linkComponent,
|
|
85
85
|
trustedHosts: props.trustedHosts,
|
|
86
86
|
setBuilderContextSignal: setBuilderContextSignal
|
|
87
|
-
}, props.isSsrAbTest ? /*#__PURE__*/React.createElement(
|
|
87
|
+
}, props.isSsrAbTest ? /*#__PURE__*/React.createElement(InlinedScript, {
|
|
88
88
|
scriptStr: scriptStr
|
|
89
|
-
})
|
|
89
|
+
}) : null, TARGET !== "reactNative" ? /*#__PURE__*/React.createElement(ContentStyles, {
|
|
90
|
+
isNestedRender: props.isNestedRender,
|
|
90
91
|
contentId: (_builderContextSignal = builderContextSignal.content) === null || _builderContextSignal === void 0 ? void 0 : _builderContextSignal.id,
|
|
91
92
|
cssCode: (_builderContextSignal2 = builderContextSignal.content) === null || _builderContextSignal2 === void 0 || (_builderContextSignal2 = _builderContextSignal2.data) === null || _builderContextSignal2 === void 0 ? void 0 : _builderContextSignal2.cssCode,
|
|
92
93
|
customFonts: (_builderContextSignal3 = builderContextSignal.content) === null || _builderContextSignal3 === void 0 || (_builderContextSignal3 = _builderContextSignal3.data) === null || _builderContextSignal3 === void 0 ? void 0 : _builderContextSignal3.customFonts
|
|
93
|
-
})
|
|
94
|
+
}) : null, /*#__PURE__*/React.createElement(Blocks, {
|
|
94
95
|
blocks: (_builderContextSignal4 = builderContextSignal.content) === null || _builderContextSignal4 === void 0 || (_builderContextSignal4 = _builderContextSignal4.data) === null || _builderContextSignal4 === void 0 ? void 0 : _builderContextSignal4.blocks,
|
|
95
96
|
context: builderContextSignal,
|
|
96
97
|
registeredComponents: registeredComponents,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ScrollView","useState","getDefaultRegisteredComponents","TARGET","ComponentsContext","serializeComponentInfo","Blocks","getUpdateVariantVisibilityScript","InlinedScript","EnableEditor","ContentStyles","getContentInitialValue","getRootStateInitialValue","ContentComponent","props","_builderContextSignal","_builderContextSignal2","_builderContextSignal3","_builderContextSignal4","scriptStr","setScriptStr","_props$content","_props$content2","variationId","content","testVariationId","contentId","id","contentSetState","newRootState","setBuilderContextSignal","PREVIOUS_VALUE","rootState","registeredComponents","setRegisteredComponents","customComponents","reduce","acc","component","info","name","builderContextSignal","data","localState","undefined","locale","rootSetState","context","apiKey","apiVersion","componentInfos","_","inheritedStyles","BlocksWrapper","blocksWrapper","BlocksWrapperProps","blocksWrapperProps","createElement","Provider","value","model","canTrack","enrich","showContent","contentWrapper","contentWrapperProps","linkComponent","trustedHosts","isSsrAbTest","
|
|
1
|
+
{"version":3,"names":["React","ScrollView","useState","getDefaultRegisteredComponents","TARGET","ComponentsContext","serializeComponentInfo","Blocks","getUpdateVariantVisibilityScript","InlinedScript","EnableEditor","ContentStyles","getContentInitialValue","getRootStateInitialValue","ContentComponent","props","_builderContextSignal","_builderContextSignal2","_builderContextSignal3","_builderContextSignal4","scriptStr","setScriptStr","_props$content","_props$content2","variationId","content","testVariationId","contentId","id","contentSetState","newRootState","setBuilderContextSignal","PREVIOUS_VALUE","rootState","registeredComponents","setRegisteredComponents","customComponents","reduce","acc","component","info","name","builderContextSignal","data","localState","undefined","locale","rootSetState","context","apiKey","apiVersion","componentInfos","_","inheritedStyles","BlocksWrapper","blocksWrapper","BlocksWrapperProps","blocksWrapperProps","createElement","Provider","value","model","canTrack","enrich","showContent","contentWrapper","contentWrapperProps","linkComponent","trustedHosts","isSsrAbTest","isNestedRender","cssCode","customFonts","blocks"],"sourceRoot":"../../../../../src","sources":["components/content/content.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAEEC,UAAU,QAKL,cAAc;AACrB,SAASC,QAAQ,QAAoB,OAAO;AAC5C,SAASC,8BAA8B;AACvC,SAASC,MAAM;AACf,OAAOC,iBAAiB;AAMxB,SAASC,sBAAsB;AAG/B,OAAOC,MAAM;AACb,SAASC,gCAAgC;AACzC,OAAOC,aAAa;AACpB,OAAOC,YAAY;AACnB,OAAOC,aAAa;AACpB,SACEC,sBAAsB,EACtBC,wBAAwB;AAK1B,SAASC,gBAAgBA,CAACC,KAAmB,EAAE;EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAAAC,sBAAA,EAAAC,sBAAA;EAC7C,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGnB,QAAQ,CAAC;IAAA,IAAAoB,cAAA,EAAAC,eAAA;IAAA,OACzCf,gCAAgC,CAAC;MAC/B;MACAgB,WAAW,GAAAF,cAAA,GAAEP,KAAK,CAACU,OAAO,cAAAH,cAAA,uBAAbA,cAAA,CAAeI,eAAgB;MAC5C;MACAC,SAAS,GAAAJ,eAAA,GAAER,KAAK,CAACU,OAAO,cAAAF,eAAA,uBAAbA,eAAA,CAAeK;IAC5B,CAAC,CAAC;EAAA,CACJ,CAAC;EAED,SAASC,eAAeA,CAACC,YAAgC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AAE,CAAC,GAAG,IAAI,EAClEhB,MAAM,KAAK,aAAa,gBACvBJ,KAAA,CAAA0D,aAAA,CAAC/C,aAAa;IACZ2D,cAAc,EAAEvD,KAAK,CAACuD,cAAe;IACrC3C,SAAS,GAAAX,qBAAA,GAAE0B,oBAAoB,CAACjB,OAAO,cAAAT,qBAAA,uBAA5BA,qBAAA,CAA8BY,EAAG;IAC5C2C,OAAO,GAAAtD,sBAAA,GAAEyB,oBAAoB,CAACjB,OAAO,cAAAR,sBAAA,gBAAAA,sBAAA,GAA5BA,sBAAA,CAA8B0B,IAAI,cAAA1B,sBAAA,uBAAlCA,sBAAA,CAAoCsD,OAAQ;IACrDC,WAAW,GAAAtD,sBAAA,GAAEwB,oBAAoB,CAACjB,OAAO,cAAAP,sBAAA,gBAAAA,sBAAA,GAA5BA,sBAAA,CAA8ByB,IAAI,cAAAzB,sBAAA,uBAAlCA,sBAAA,CAAoCsD;EAAY,CAC9D,CAAC,GACA,IAAI,eACRxE,KAAA,CAAA0D,aAAA,CAACnD,MAAM;IACLkE,MAAM,GAAAtD,sBAAA,GAAEuB,oBAAoB,CAACjB,OAAO,cAAAN,sBAAA,gBAAAA,sBAAA,GAA5BA,sBAAA,CAA8BwB,IAAI,cAAAxB,sBAAA,uBAAlCA,sBAAA,CAAoCsD,MAAO;IACnDzB,OAAO,EAAEN,oBAAqB;IAC9BR,oBAAoB,EAAEA,oBAAqB;IAC3CiC,aAAa,EAAEpD,KAAK,CAACoD;EAAc,CACpC,CACW,CACY,CAAC;AAEjC;AAEA,eAAerD,gBAAgB"}
|
|
@@ -38,14 +38,15 @@ function ContentVariants(props) {
|
|
|
38
38
|
* We unmount the non-winning variants post-hydration in Vue.
|
|
39
39
|
*/
|
|
40
40
|
}, []);
|
|
41
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, !props.
|
|
41
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !props.isNestedRender && TARGET !== "reactNative" ? /*#__PURE__*/React.createElement(InlinedScript, {
|
|
42
42
|
scriptStr: getScriptString()
|
|
43
|
-
})
|
|
43
|
+
}) : null, shouldRenderVariants ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(InlinedStyles, {
|
|
44
44
|
id: `variants-styles-${(_props$content3 = props.content) === null || _props$content3 === void 0 ? void 0 : _props$content3.id}`,
|
|
45
45
|
styles: hideVariantsStyleString()
|
|
46
46
|
}), /*#__PURE__*/React.createElement(InlinedScript, {
|
|
47
47
|
scriptStr: updateCookieAndStylesScriptStr()
|
|
48
48
|
}), (_getVariants = getVariants(props.content)) === null || _getVariants === void 0 ? void 0 : _getVariants.map(variant => /*#__PURE__*/React.createElement(ContentComponent, {
|
|
49
|
+
isNestedRender: props.isNestedRender,
|
|
49
50
|
key: variant.testVariationId,
|
|
50
51
|
content: variant,
|
|
51
52
|
showContent: false,
|
|
@@ -66,6 +67,7 @@ function ContentVariants(props) {
|
|
|
66
67
|
contentWrapperProps: props.contentWrapperProps,
|
|
67
68
|
trustedHosts: props.trustedHosts
|
|
68
69
|
}))) : null, /*#__PURE__*/React.createElement(ContentComponent, {
|
|
70
|
+
isNestedRender: props.isNestedRender,
|
|
69
71
|
content: defaultContent(),
|
|
70
72
|
showContent: true,
|
|
71
73
|
model: props.model,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","TARGET","handleABTestingSync","getDefaultCanTrack","ContentComponent","InlinedScript","InlinedStyles","checkShouldRenderVariants","getScriptString","getUpdateCookieAndStylesScript","getVariants","ContentVariants","props","_props$content3","_getVariants","shouldRenderVariants","setShouldRenderVariants","canTrack","content","updateCookieAndStylesScriptStr","_props$content","map","value","id","testVariationId","testRatio","hideVariantsStyleString","join","defaultContent","_props$content2","item","createElement","Fragment","
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","TARGET","handleABTestingSync","getDefaultCanTrack","ContentComponent","InlinedScript","InlinedStyles","checkShouldRenderVariants","getScriptString","getUpdateCookieAndStylesScript","getVariants","ContentVariants","props","_props$content3","_getVariants","shouldRenderVariants","setShouldRenderVariants","canTrack","content","updateCookieAndStylesScriptStr","_props$content","map","value","id","testVariationId","testRatio","hideVariantsStyleString","join","defaultContent","_props$content2","item","createElement","Fragment","isNestedRender","scriptStr","styles","variant","key","showContent","model","data","context","apiKey","apiVersion","customComponents","linkComponent","locale","enrich","isSsrAbTest","blocksWrapper","blocksWrapperProps","contentWrapper","contentWrapperProps","trustedHosts"],"sourceRoot":"../../../../../src","sources":["components/content-variants/content-variants.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAS9B,SAASC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAQ3C,SAASC,MAAM;AACf,SAASC,mBAAmB;AAC5B,SAASC,kBAAkB;AAC3B,OAAOC,gBAAgB;AACvB,OAAOC,aAAa;AACpB,OAAOC,aAAa;AAEpB,SACEC,yBAAyB,EACzBC,eAAe,EACfC,8BAA8B,EAC9BC,WAAW;AAGb,SAASC,eAAeA,CAACC,KAA4B,EAAE;EAAA,IAAAC,eAAA,EAAAC,YAAA;EACrD,MAAM,CAACC,oBAAoB,EAAEC,uBAAuB,CAAC,GAAGjB,QAAQ,CAAC,MAC/DQ,yBAAyB,CAAC;IACxBU,QAAQ,EAAEd,kBAAkB,CAACS,KAAK,CAACK,QAAQ,CAAC;IAC5CC,OAAO,EAAEN,KAAK,CAACM;EACjB,CAAC,CACH,CAAC;EAED,SAASC,8BAA8BA,CAAA,EAAG;IAAA,IAAAC,cAAA;IACxC,OAAOX,8BAA8B,CACnCC,WAAW,CAACE,KAAK,CAACM,OAAO,CAAC,CAACG,GAAG,CAAEC,KAAK,KAAM;MACzCC,EAAE,EAAED,KAAK,CAACE,eAAgB;MAC1BC,SAAS,EAAEH,KAAK,CAACG;IACnB,CAAC,CAAC,CAAC,EACH,EAAAL,cAAA,GAAAR,KAAK,CAACM,OAAO,cAAAE,cAAA,uBAAbA,cAAA,CAAeG,EAAE,KAAI,EACv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O,EAAE7B,KAAK,CAAC6B,OAAQ;IACvBC,MAAM,EAAE9B,KAAK,CAAC8B,MAAO;IACrBC,UAAU,EAAE/B,KAAK,CAAC+B,UAAW;IAC7BC,gBAAgB,EAAEhC,KAAK,CAACgC,gBAAiB;IACzCC,aAAa,EAAEjC,KAAK,CAACiC,aAAc;IACnC5B,QAAQ,EAAEL,KAAK,CAACK,QAAS;IACzB6B,MAAM,EAAElC,KAAK,CAACkC,MAAO;IACrBC,MAAM,EAAEnC,KAAK,CAACmC,MAAO;IACrBC,WAAW,EAAEjC,oBAAqB;IAClCkC,aAAa,EAAErC,KAAK,CAACqC,aAAc;IACnCC,kBAAkB,EAAEtC,KAAK,CAACsC,kBAAmB;IAC7CC,cAAc,EAAEvC,KAAK,CAACuC,cAAe;IACrCC,mBAAmB,EAAExC,KAAK,CAACwC,mBAAoB;IAC/CC,YAAY,EAAEzC,KAAK,CAACyC;EAAa,CAClC,CACD,CAAC;AAEP;AAEA,eAAe1C,eAAe"}
|
|
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { isEmptyElement } from "./dynamic-renderer.helpers.js";
|
|
4
4
|
function DynamicRenderer(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, !isEmptyElement(props.TagName) ? /*#__PURE__*/React.createElement(React.Fragment, null, typeof props.TagName === "string" ? /*#__PURE__*/React.createElement(
|
|
5
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !isEmptyElement(props.TagName) ? /*#__PURE__*/React.createElement(React.Fragment, null, typeof props.TagName === "string" ? /*#__PURE__*/React.createElement(props.TagName, _extends({}, props.attributes, props.actionAttributes), props.children) : /*#__PURE__*/React.createElement(props.TagName, _extends({}, props.attributes, props.actionAttributes), props.children)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(props.TagName, _extends({}, props.attributes, props.actionAttributes))));
|
|
6
6
|
}
|
|
7
7
|
export default DynamicRenderer;
|
|
8
8
|
//# sourceMappingURL=dynamic-renderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","isEmptyElement","DynamicRenderer","props","createElement","Fragment","TagName","_extends","attributes","actionAttributes","children"],"sourceRoot":"../../../../../src","sources":["components/dynamic-renderer/dynamic-renderer.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAiB9B,SAASC,cAAc;AAGvB,SAASC,eAAeA,CAACC,KAA2B,EAAE;EACpD,oBACEH,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAK,QAAA,QACG,CAACJ,cAAc,CAACE,KAAK,CAACG,OAAO,CAAC,gBAC7BN,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAK,QAAA,QACG,OAAOF,KAAK,CAACG,OAAO,KAAK,QAAQ,gBAChCN,KAAA,CAAAI,aAAA,
|
|
1
|
+
{"version":3,"names":["React","isEmptyElement","DynamicRenderer","props","createElement","Fragment","TagName","_extends","attributes","actionAttributes","children"],"sourceRoot":"../../../../../src","sources":["components/dynamic-renderer/dynamic-renderer.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAiB9B,SAASC,cAAc;AAGvB,SAASC,eAAeA,CAACC,KAA2B,EAAE;EACpD,oBACEH,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAK,QAAA,QACG,CAACJ,cAAc,CAACE,KAAK,CAACG,OAAO,CAAC,gBAC7BN,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAK,QAAA,QACG,OAAOF,KAAK,CAACG,OAAO,KAAK,QAAQ,gBAChCN,KAAA,CAAAI,aAAA,CAACD,KAAK,CAACG,OAAO,EAAAC,QAAA,KAAKJ,KAAK,CAACK,UAAU,EAAML,KAAK,CAACM,gBAAgB,GAC5DN,KAAK,CAACO,QACM,CAAC,gBAEhBV,KAAA,CAAAI,aAAA,CAACD,KAAK,CAACG,OAAO,EAAAC,QAAA,KAAKJ,KAAK,CAACK,UAAU,EAAML,KAAK,CAACM,gBAAgB,GAC5DN,KAAK,CAACO,QACM,CAEjB,CAAC,gBAEHV,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAK,QAAA,qBACEL,KAAA,CAAAI,aAAA,CAACD,KAAK,CAACG,OAAO,EAAAC,QAAA,KAAKJ,KAAK,CAACK,UAAU,EAAML,KAAK,CAACM,gBAAgB,CAAG,CAClE,CAEJ,CAAC;AAEP;AAEA,eAAeP,eAAe"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.
|
|
1
|
+
export const SDK_VERSION = "1.0.13";
|
|
2
2
|
//# sourceMappingURL=sdk-version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getFunctionArguments","runInBrowser","code","builder","context","event","localState","rootSetState","rootState","functionArgs","state","flattenState","Function","map","name","value","Proxy","get","target","prop","val","undefined","subState","set","Error"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/browser-runtime/browser.ts"],"mappings":"AAEA,SAASA,oBAAoB;AAC7B,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAC3BC,IAAI;EACJC,OAAO;EACPC,OAAO;EACPC,KAAK;EACLC,UAAU;EACVC,YAAY;EACZC;AACY,CAAC,KAAK;EAClB,MAAMC,YAAY,GAAGT,oBAAoB,CAAC;IACxCG,OAAO;IACPC,OAAO;IACPC,KAAK;IACLK,KAAK,EAAEC,YAAY,CAAC;MAClBH,SAAS;MACTF,UAAU;MACVC;IACF,CAAC;EACH,CAAC,CAAC;EACF,OAAO,IAAIK,QAAQ,CAAC,GAAGH,YAAY,CAACI,GAAG,CAAC,CAAC,CAACC,IAAI,CAAC,KAAKA,IAAI,CAAC,EAAEZ,IAAI,CAAC,CAAC,GAAGO,YAAY,CAACI,GAAG,CAAC,CAAC,GAAGE,KAAK,CAAC,KAAKA,KAAK,CAAC,CAAC;AAC7G,CAAC;AACD,OAAO,SAASJ,YAAYA,CAAC;EAC3BH,SAAS;EACTF,UAAU;EACVC;AAKF,CAAC,EAAsB;EACrB,OAAO,IAAIS,KAAK,CAACR,SAAS,EAAE;IAC1BS,GAAG,EAAEA,CAACC,MAAM,EAAEC,IAAI,KAAK;MACrB,IAAIb,UAAU,IAAIa,IAAI,IAAIb,UAAU,EAAE;QACpC,OAAOA,UAAU,CAACa,IAAI,CAAC;MACzB;MACA,MAAMC,GAAG,GAAGF,MAAM,CAACC,IAAI,CAAC;MACxB,IAAI,OAAOC,GAAG,KAAK,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"names":["getFunctionArguments","runInBrowser","code","builder","context","event","localState","rootSetState","rootState","functionArgs","state","flattenState","Function","map","name","value","Proxy","get","target","prop","val","undefined","subState","set","Error"],"sourceRoot":"../../../../../../src","sources":["functions/evaluate/browser-runtime/browser.ts"],"mappings":"AAEA,SAASA,oBAAoB;AAC7B,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAC3BC,IAAI;EACJC,OAAO;EACPC,OAAO;EACPC,KAAK;EACLC,UAAU;EACVC,YAAY;EACZC;AACY,CAAC,KAAK;EAClB,MAAMC,YAAY,GAAGT,oBAAoB,CAAC;IACxCG,OAAO;IACPC,OAAO;IACPC,KAAK;IACLK,KAAK,EAAEC,YAAY,CAAC;MAClBH,SAAS;MACTF,UAAU;MACVC;IACF,CAAC;EACH,CAAC,CAAC;EACF,OAAO,IAAIK,QAAQ,CAAC,GAAGH,YAAY,CAACI,GAAG,CAAC,CAAC,CAACC,IAAI,CAAC,KAAKA,IAAI,CAAC,EAAEZ,IAAI,CAAC,CAAC,GAAGO,YAAY,CAACI,GAAG,CAAC,CAAC,GAAGE,KAAK,CAAC,KAAKA,KAAK,CAAC,CAAC;AAC7G,CAAC;AACD,OAAO,SAASJ,YAAYA,CAAC;EAC3BH,SAAS;EACTF,UAAU;EACVC;AAKF,CAAC,EAAsB;EACrB,OAAO,IAAIS,KAAK,CAACR,SAAS,EAAE;IAC1BS,GAAG,EAAEA,CAACC,MAAM,EAAEC,IAAI,KAAK;MACrB,IAAIb,UAAU,IAAIa,IAAI,IAAIb,UAAU,EAAE;QACpC,OAAOA,UAAU,CAACa,IAAI,CAAC;MACzB;MACA,MAAMC,GAAG,GAAGF,MAAM,CAACC,IAAI,CAAC;MACxB,IAAI,OAAOC,GAAG,KAAK,QAAQ,IAAIA,GAAG,KAAK,IAAI,EAAE;QAC3C,OAAOT,YAAY,CAAC;UAClBH,SAAS,EAAEY,GAAG;UACdd,UAAU,EAAEe,SAAS;UACrBd,YAAY,EAAEA,YAAY,GAAGe,QAAQ,IAAI;YACvCJ,MAAM,CAACC,IAAI,CAAC,GAAGG,QAAQ;YACvBf,YAAY,CAACW,MAAM,CAAC;UACtB,CAAC,GAAGG;QACN,CAAC,CAAC;MACJ;MACA,OAAOD,GAAG;IACZ,CAAC;IACDG,GAAG,EAAEA,CAACL,MAAM,EAAEC,IAAI,EAAEJ,KAAK,KAAK;MAC5B,IAAIT,UAAU,IAAIa,IAAI,IAAIb,UAAU,EAAE;QACpC,MAAM,IAAIkB,KAAK,CAAC,2DAA2D,CAAC;MAC9E;MACAN,MAAM,CAACC,IAAI,CAAC,GAAGJ,KAAK;MACpBR,YAAY,aAAZA,YAAY,eAAZA,YAAY,CAAGW,MAAM,CAAC;MACtB,OAAO,IAAI;IACb;EACF,CAAC,CAAC;AACJ"}
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import { logger } from "../../helpers/logger.js";
|
|
2
2
|
import { chooseBrowserOrServerEval } from "./choose-eval.js";
|
|
3
3
|
import { getBuilderGlobals, parseCode } from "./helpers.js";
|
|
4
|
+
class EvalCache {
|
|
5
|
+
static cacheLimit = 20;
|
|
6
|
+
static cache = new Map();
|
|
7
|
+
static getCacheKey(args) {
|
|
8
|
+
return JSON.stringify({
|
|
9
|
+
...args,
|
|
10
|
+
// replace the event with a random number to break cache
|
|
11
|
+
// thats because we can't serialize the event object due to circular refs in DOM node refs.
|
|
12
|
+
event: args.event ? Math.random() : undefined
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
static getCachedValue(key) {
|
|
16
|
+
const cachedVal = EvalCache.cache.get(key);
|
|
17
|
+
return cachedVal;
|
|
18
|
+
}
|
|
19
|
+
static setCachedValue(key, value) {
|
|
20
|
+
if (EvalCache.cache.size > 20) {
|
|
21
|
+
EvalCache.cache.delete(EvalCache.cache.keys().next().value);
|
|
22
|
+
}
|
|
23
|
+
EvalCache.cache.set(key, {
|
|
24
|
+
value
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
4
28
|
export function evaluate({
|
|
5
29
|
code,
|
|
6
30
|
context,
|
|
@@ -8,11 +32,12 @@ export function evaluate({
|
|
|
8
32
|
rootState,
|
|
9
33
|
rootSetState,
|
|
10
34
|
event,
|
|
11
|
-
isExpression = true
|
|
35
|
+
isExpression = true,
|
|
36
|
+
enableCache
|
|
12
37
|
}) {
|
|
13
38
|
if (code === '') {
|
|
14
39
|
logger.warn('Skipping evaluation of empty code block.');
|
|
15
|
-
return;
|
|
40
|
+
return undefined;
|
|
16
41
|
}
|
|
17
42
|
const args = {
|
|
18
43
|
code: parseCode(code, {
|
|
@@ -25,8 +50,20 @@ export function evaluate({
|
|
|
25
50
|
rootState,
|
|
26
51
|
localState
|
|
27
52
|
};
|
|
53
|
+
if (enableCache) {
|
|
54
|
+
const cacheKey = EvalCache.getCacheKey(args);
|
|
55
|
+
const cachedValue = EvalCache.getCachedValue(cacheKey);
|
|
56
|
+
if (cachedValue) {
|
|
57
|
+
return cachedValue.value;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
28
60
|
try {
|
|
29
|
-
|
|
61
|
+
const newEval = chooseBrowserOrServerEval(args);
|
|
62
|
+
if (enableCache) {
|
|
63
|
+
const cacheKey = EvalCache.getCacheKey(args);
|
|
64
|
+
EvalCache.setCachedValue(cacheKey, newEval);
|
|
65
|
+
}
|
|
66
|
+
return newEval;
|
|
30
67
|
} catch (e) {
|
|
31
68
|
logger.error('Failed code evaluation: ' + e.message, {
|
|
32
69
|
code
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["logger","chooseBrowserOrServerEval","getBuilderGlobals","parseCode","evaluate","code","context","localState","rootState","rootSetState","
|
|
1
|
+
{"version":3,"names":["logger","chooseBrowserOrServerEval","getBuilderGlobals","parseCode","EvalCache","cacheLimit","cache","Map","getCacheKey","args","JSON","stringify","event","Math","random","undefined","getCachedValue","key","cachedVal","get","setCachedValue","value","size","delete","keys","next","set","evaluate","code","context","localState","rootState","rootSetState","isExpression","enableCache","warn","builder","cacheKey","cachedValue","newEval","e","error","message"],"sourceRoot":"../../../../../src","sources":["functions/evaluate/evaluate.ts"],"mappings":"AAAA,SAASA,MAAM;AACf,SAASC,yBAAyB;AAElC,SAASC,iBAAiB,EAAEC,SAAS;AAErC,MAAMC,SAAS,CAAC;EACd,OAAOC,UAAU,GAAG,EAAE;EACtB,OAAOC,KAAK,GAAG,IAAIC,GAAG,CAEP,CAAC;EAChB,OAAOC,WAAWA,CAACC,IAAkB,EAAE;IACrC,OAAOC,IAAI,CAACC,SAAS,CAAC;MACpB,GAAGF,IAAI;MACP;MACA;MACAG,KAAK,EAAEH,IAAI,CAACG,KAAK,GAAGC,IAAI,CAACC,MAAM,CAAC,CAAC,GAAGC;IACtC,CAAC,CAAC;EACJ;EACA,OAAOC,cAAcA,CAACC,GAAW,EAAE;IACjC,MAAMC,SAAS,GAAGd,SAAS,CAACE,KAAK,CAACa,GAAG,CAACF,GAAG,CAAC;IAC1C,OAAOC,SAAS;EAClB;EACA,OAAOE,cAAcA,CAACH,GAAW,EAAEI,KAAgB,EAAE;IACnD,IAAIjB,SAAS,CAACE,KAAK,CAACgB,IAAI,GAAG,EAAE,EAAE;MAC7BlB,SAAS,CAACE,KAAK,CAACiB,MAAM,CAACnB,SAAS,CAACE,KAAK,CAACkB,IAAI,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC,CAACJ,KAAK,CAA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|
1
|
-
{"version":3,"names":["isBrowser","isEditing","getUserAttributes","getFunctionArguments","builder","context","event","state","Object","entries","Builder","getBuilderGlobals","isServer","parseCode","code","isExpression","useReturn","includes","trim","startsWith","useCode"],"sourceRoot":"../../../../../src","sources":["functions/evaluate/helpers.ts"],"mappings":"AACA,SAASA,SAAS;AAClB,SAASC,SAAS;AAClB,SAASC,iBAAiB;
|
|
1
|
+
{"version":3,"names":["isBrowser","isEditing","getUserAttributes","getFunctionArguments","builder","context","event","state","Object","entries","Builder","getBuilderGlobals","isServer","parseCode","code","isExpression","useReturn","includes","trim","startsWith","useCode"],"sourceRoot":"../../../../../src","sources":["functions/evaluate/helpers.ts"],"mappings":"AACA,SAASA,SAAS;AAClB,SAASC,SAAS;AAClB,SAASC,iBAAiB;AAmB1B,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EACnCC,OAAO;EACPC,OAAO;EACPC,KAAK;EACLC;AAGF,CAAC,KAAK;EACJ,OAAOC,MAAM,CAACC,OAAO,CAAC;IACpBF,KAAK;IACLG,OAAO,EAAEN,OAAO;IAChB;IACAA,OAAO;IACPC,OAAO;IACPC;EACF,CAAC,CAAC;AACJ,CAAC;AACD,OAAO,MAAMK,iBAAiB,GAAGA,CAAA,MAAuB;EACtDV,SAAS,EAAEA,SAAS,CAAC,CAAC;EACtBD,SAAS,EAAEA,SAAS,CAAC,CAAC;EACtBY,QAAQ,EAAE,CAACZ,SAAS,CAAC,CAAC;EACtBE,iBAAiB,EAAEA,CAAA,KAAMA,iBAAiB,CAAC;AAC7C,CAAC,CAAC;AACF,OAAO,MAAMW,SAAS,GAAGA,CAACC,IAAY,EAAE;EACtCC,YAAY,GAAG;AACoB,CAAC,KAAK;EACzC;EACA;EACA,MAAMC,SAAS;EACf;EACAD,YAAY,IAAI,EAAED,IAAI,CAACG,QAAQ,CAAC,GAAG,CAAC,IAAIH,IAAI,CAACG,QAAQ,CAAC,UAAU,CAAC,IAAIH,IAAI,CAACI,IAAI,CAAC,CAAC,CAACC,UAAU,CAAC,SAAS,CAAC,CAAC;EACvG,MAAMC,OAAO,GAAGJ,SAAS,GAAI,WAAUF,IAAK,IAAG,GAAGA,IAAI;EACtD,OAAOM,OAAO;AAChB,CAAC"}
|
|
@@ -6,6 +6,7 @@ export const createEventHandler = (value, options) => event => evaluate({
|
|
|
6
6
|
rootState: options.rootState,
|
|
7
7
|
rootSetState: options.rootSetState,
|
|
8
8
|
event,
|
|
9
|
-
isExpression: false
|
|
9
|
+
isExpression: false,
|
|
10
|
+
enableCache: true
|
|
10
11
|
});
|
|
11
12
|
//# sourceMappingURL=get-block-actions-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["evaluate","createEventHandler","value","options","event","code","context","localState","rootState","rootSetState","isExpression"],"sourceRoot":"../../../../src","sources":["functions/get-block-actions-handler.ts"],"mappings":"AAEA,SAASA,QAAQ;AAKjB,OAAO,MAAMC,kBAAkB,GAAGA,CAACC,KAAa,EAAEC,OAAgB,KAAmBC,KAAK,IAAIJ,QAAQ,CAAC;EACrGK,IAAI,EAAEH,KAAK;EACXI,OAAO,EAAEH,OAAO,CAACG,OAAO;EACxBC,UAAU,EAAEJ,OAAO,CAACI,UAAU;EAC9BC,SAAS,EAAEL,OAAO,CAACK,SAAS;EAC5BC,YAAY,EAAEN,OAAO,CAACM,YAAY;EAClCL,KAAK;EACLM,YAAY,EAAE;
|
|
1
|
+
{"version":3,"names":["evaluate","createEventHandler","value","options","event","code","context","localState","rootState","rootSetState","isExpression","enableCache"],"sourceRoot":"../../../../src","sources":["functions/get-block-actions-handler.ts"],"mappings":"AAEA,SAASA,QAAQ;AAKjB,OAAO,MAAMC,kBAAkB,GAAGA,CAACC,KAAa,EAAEC,OAAgB,KAAmBC,KAAK,IAAIJ,QAAQ,CAAC;EACrGK,IAAI,EAAEH,KAAK;EACXI,OAAO,EAAEH,OAAO,CAACG,OAAO;EACxBC,UAAU,EAAEJ,OAAO,CAACI,UAAU;EAC9BC,SAAS,EAAEL,OAAO,CAACK,SAAS;EAC5BC,YAAY,EAAEN,OAAO,CAACM,YAAY;EAClCL,KAAK;EACLM,YAAY,EAAE,KAAK;EACnBC,WAAW,EAAE;AACf,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["evaluate","fastClone","set","transformBlock","evaluateBindings","block","context","localState","rootState","rootSetState","bindings","copy","copied","properties","actions","binding","expression","value","code","getProcessedBlock","shouldEvaluateBindings","transformedBlock"],"sourceRoot":"../../../../src","sources":["functions/get-processed-block.ts"],"mappings":"AAEA,SAASA,QAAQ;AACjB,SAASC,SAAS;AAClB,SAASC,GAAG;AACZ,SAASC,cAAc;AACvB,MAAMC,gBAAgB,GAAGA,CAAC;EACxBC,KAAK;EACLC,OAAO;EACPC,UAAU;EACVC,SAAS;EACTC;AAGuF,CAAC,KAAmB;EAC3G,IAAI,CAACJ,KAAK,CAACK,QAAQ,EAAE;IACnB,OAAOL,KAAK;EACd;EACA,MAAMM,IAAI,GAAGV,SAAS,CAACI,KAAK,CAAC;EAC7B,MAAMO,MAAM,GAAG;IACb,GAAGD,IAAI;IACPE,UAAU,EAAE;MACV,GAAGF,IAAI,CAACE;IACV,CAAC;IACDC,OAAO,EAAE;MACP,GAAGH,IAAI,CAACG;IACV;EACF,CAAC;EACD,KAAK,MAAMC,OAAO,IAAIV,KAAK,CAACK,QAAQ,EAAE;IACpC,MAAMM,UAAU,GAAGX,KAAK,CAACK,QAAQ,CAACK,OAAO,CAAC;IAC1C,MAAME,KAAK,GAAGjB,QAAQ,CAAC;MACrBkB,IAAI,EAAEF,UAAU;MAChBT,UAAU;MACVC,SAAS;MACTC,YAAY;MACZH;
|
|
1
|
+
{"version":3,"names":["evaluate","fastClone","set","transformBlock","evaluateBindings","block","context","localState","rootState","rootSetState","bindings","copy","copied","properties","actions","binding","expression","value","code","enableCache","getProcessedBlock","shouldEvaluateBindings","transformedBlock"],"sourceRoot":"../../../../src","sources":["functions/get-processed-block.ts"],"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
|
|
|
1
|
-
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/columns/columns.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsB/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,iBAAS,OAAO,CAAC,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/columns/columns.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsB/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,iBAAS,OAAO,CAAC,KAAK,EAAE,WAAW,qBA6JlC;AAID,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../src/components/block/block.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,uBAAuB,CAAC;IACjC,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,aAAa,EAAE,GAAG,CAAC;CACpB,CAAC;AACF,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../src/components/block/block.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,uBAAuB,CAAC;IACjC,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,aAAa,EAAE,GAAG,CAAC;CACpB,CAAC;AACF,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAajE,iBAAS,KAAK,CAAC,KAAK,EAAE,UAAU,qBAqM/B;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -10,4 +10,8 @@ export declare const getRepeatItemData: ({ block, context }: {
|
|
|
10
10
|
block: BuilderBlock;
|
|
11
11
|
context: BuilderContextInterface;
|
|
12
12
|
}) => RepeatData[] | undefined;
|
|
13
|
+
export declare const getInheritedStyles: ({ block, context }: {
|
|
14
|
+
block: BuilderBlock;
|
|
15
|
+
context: BuilderContextInterface;
|
|
16
|
+
}) => Partial<CSSStyleDeclaration>;
|
|
13
17
|
//# sourceMappingURL=block.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/block/block.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"block.helpers.d.ts","sourceRoot":"","sources":["../../../../../src/components/block/block.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAK5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,eAAO,MAAM,YAAY;WAKhB,YAAY;aACV,uBAAuB;0BACV,oBAAoB;0DAuB3C,CAAC;AACF,eAAO,MAAM,iBAAiB;WAIrB,YAAY;aACV,uBAAuB;MAC9B,UAAU,EAAE,GAAG,SAuClB,CAAC;AACF,eAAO,MAAM,kBAAkB;WAItB,YAAY;aACV,uBAAuB;kCAUjC,CAAA"}
|
package/lib/edge/typescript/components/block/components/component-ref/component-ref.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-ref.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/block/components/component-ref/component-ref.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,iBAAS,YAAY,CAAC,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"component-ref.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/block/components/component-ref/component-ref.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAIjE,iBAAS,YAAY,CAAC,KAAK,EAAE,cAAc,qBA4C1C;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
type BuilderEditorProps = Omit<ContentProps, "customComponents" | "apiVersion" | "isSsrAbTest" | "blocksWrapper" | "blocksWrapperProps"> & {
|
|
2
|
+
type BuilderEditorProps = Omit<ContentProps, "customComponents" | "apiVersion" | "isSsrAbTest" | "blocksWrapper" | "blocksWrapperProps" | "isNestedRender"> & {
|
|
3
3
|
builderContextSignal: BuilderContextInterface;
|
|
4
4
|
setBuilderContextSignal?: (signal: any) => any;
|
|
5
5
|
children?: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-editor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/content/components/enable-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,KAAK,kBAAkB,GAAG,IAAI,CAC5B,YAAY,EACV,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,oBAAoB,
|
|
1
|
+
{"version":3,"file":"enable-editor.d.ts","sourceRoot":"","sources":["../../../../../../src/components/content/components/enable-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,KAAK,kBAAkB,GAAG,IAAI,CAC5B,YAAY,EACV,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,gBAAgB,CACnB,GAAG;IACF,oBAAoB,EAAE,uBAAuB,CAAC;IAC9C,uBAAuB,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;IAC/C,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAuBzE,OAAO,KAAK,EAEV,YAAY,EACb,MAAM,qBAAqB,CAAC;AAE7B,iBAAS,YAAY,CAAC,KAAK,EAAE,kBAAkB,qBAsa9C;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/content/components/styles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/content/components/styles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAGD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,iBAAS,aAAa,CAAC,KAAK,EAAE,KAAK,qBAelC;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -13,4 +13,5 @@ export declare const getCss: ({ cssCode, contentId }: {
|
|
|
13
13
|
cssCode?: string;
|
|
14
14
|
contentId?: string;
|
|
15
15
|
}) => string;
|
|
16
|
+
export declare const getDefaultStyles: (isNested: boolean | undefined) => "" | "\n.builder-button {\n all: unset;\n}\n\n.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {\n margin: 0;\n}\n.builder-text > p, .builder-text > .builder-paragraph {\n color: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n font-weight: inherit;\n font-size: inherit;\n text-align: inherit;\n font-family: inherit;\n}\n";
|
|
16
17
|
//# sourceMappingURL=styles.helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/content/components/styles.helpers.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;CACH;AAuCD,eAAO,MAAM,UAAU;kBAGP,UAAU,EAAE;YAQ3B,CAAC;AACF,eAAO,MAAM,MAAM;cAIP,MAAM;gBACJ,MAAM;YAanB,CAAA"}
|
|
1
|
+
{"version":3,"file":"styles.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/content/components/styles.helpers.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;CACH;AAuCD,eAAO,MAAM,UAAU;kBAGP,UAAU,EAAE;YAQ3B,CAAC;AACF,eAAO,MAAM,MAAM;cAIP,MAAM;gBACJ,MAAM;YAanB,CAAC;AAmBF,eAAO,MAAM,gBAAgB,aAAc,OAAO,GAAG,SAAS,gYAE7D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../../src/components/content/content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA8B/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../../../src/components/content/content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA8B/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,YAAY,qBA0G5C;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -8,6 +8,11 @@ interface InternalRenderProps {
|
|
|
8
8
|
* This is in a separate file so that we can override it (most notably in Vue,
|
|
9
9
|
* where prop types cannot be wrapped by generics like `EnforcePartials`).
|
|
10
10
|
*/
|
|
11
|
-
export type ContentProps = InternalRenderProps & EnforcePartials<ContentVariantsPrps
|
|
11
|
+
export type ContentProps = InternalRenderProps & EnforcePartials<ContentVariantsPrps> & {
|
|
12
|
+
/**
|
|
13
|
+
* For internal use only. Do not provide this prop.
|
|
14
|
+
*/
|
|
15
|
+
isNestedRender?: boolean;
|
|
16
|
+
};
|
|
12
17
|
export {};
|
|
13
18
|
//# sourceMappingURL=contentProps.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentProps.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/content/contentProps.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AACzF,UAAU,mBAAmB;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"contentProps.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/content/contentProps.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AACzF,UAAU,mBAAmB;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,mBAAmB,GAAG,eAAe,CAAC,mBAAmB,CAAC,GAAG;IACtF;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAA"}
|
|
@@ -3,7 +3,7 @@ type VariantsProviderProps = ContentVariantsPrps & {
|
|
|
3
3
|
/**
|
|
4
4
|
* For internal use only. Do not provide this prop.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
isNestedRender?: boolean;
|
|
7
7
|
};
|
|
8
8
|
import type { ContentVariantsPrps } from "./content-variants.types.js";
|
|
9
9
|
declare function ContentVariants(props: VariantsProviderProps): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-variants.d.ts","sourceRoot":"","sources":["../../../../../src/components/content-variants/content-variants.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,KAAK,qBAAqB,GAAG,mBAAmB,GAAG;IACjD;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"content-variants.d.ts","sourceRoot":"","sources":["../../../../../src/components/content-variants/content-variants.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,KAAK,qBAAqB,GAAG,mBAAmB,GAAG;IACjD;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAOF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAQvE,iBAAS,eAAe,CAAC,KAAK,EAAE,qBAAqB,qBAwGpD;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-renderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/dynamic-renderer/dynamic-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,EAAE,GAAG,CAAC;IACb,UAAU,EAAE,GAAG,CAAC;IAChB,gBAAgB,EAAE,GAAG,CAAC;CACvB;AAKD,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"dynamic-renderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/dynamic-renderer/dynamic-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,EAAE,GAAG,CAAC;IACb,UAAU,EAAE,GAAG,CAAC;IAChB,gBAAgB,EAAE,GAAG,CAAC;CACvB;AAKD,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,qBAsBnD;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.13";
|
|
2
2
|
//# sourceMappingURL=sdk-version.d.ts.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { EvaluatorArgs } from './helpers.js';
|
|
2
|
-
|
|
2
|
+
type EvalValue = unknown;
|
|
3
|
+
export declare function evaluate({ code, context, localState, rootState, rootSetState, event, isExpression, enableCache }: EvaluatorArgs): EvalValue;
|
|
4
|
+
export {};
|
|
3
5
|
//# sourceMappingURL=evaluate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evaluate.d.ts","sourceRoot":"","sources":["../../../../../src/functions/evaluate/evaluate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,cAAc,CAAC;AAEhE,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,OAAO,EACP,UAAU,EACV,SAAS,EACT,YAAY,EACZ,KAAK,EACL,YAAmB,
|
|
1
|
+
{"version":3,"file":"evaluate.d.ts","sourceRoot":"","sources":["../../../../../src/functions/evaluate/evaluate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAgB,MAAM,cAAc,CAAC;AAEhE,KAAK,SAAS,GAAG,OAAO,CAAC;AA2BzB,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,OAAO,EACP,UAAU,EACV,SAAS,EACT,YAAY,EACZ,KAAK,EACL,YAAmB,EACnB,WAAW,EACZ,EAAE,aAAa,GAAG,SAAS,CAoC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/functions/evaluate/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,MAAM,MAAM,aAAa,GA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H,eAAO,MAAM,SAAS,SAAU,MAAM,oBAEnC,KAAK,aAAa,EAAE,cAAc,CAAC,WAQrC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-block-actions-handler.d.ts","sourceRoot":"","sources":["../../../../src/functions/get-block-actions-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,YAAY,CAAC;CACrB,GAAG,IAAI,CAAC,uBAAuB,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,CAAC,CAAC;AAC3F,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAC;AAC1C,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAAW,OAAO,KAAG,
|
|
1
|
+
{"version":3,"file":"get-block-actions-handler.d.ts","sourceRoot":"","sources":["../../../../src/functions/get-block-actions-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,YAAY,CAAC;CACrB,GAAG,IAAI,CAAC,uBAAuB,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,CAAC,CAAC;AAC3F,KAAK,YAAY,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAC;AAC1C,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAAW,OAAO,KAAG,YASnE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-processed-block.d.ts","sourceRoot":"","sources":["../../../../src/functions/get-processed-block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"get-processed-block.d.ts","sourceRoot":"","sources":["../../../../src/functions/get-processed-block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAyC9D,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,OAAO,EACP,sBAAsB,EACtB,UAAU,EACV,SAAS,EACT,YAAY,EACb,EAAE;IACD,KAAK,EAAE,YAAY,CAAC;IACpB;;;OAGG;IACH,sBAAsB,EAAE,OAAO,CAAC;CACjC,GAAG,IAAI,CAAC,uBAAuB,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,CAAC,GAAG,YAAY,CAaxG"}
|
|
@@ -106,9 +106,9 @@ function Columns(props) {
|
|
|
106
106
|
dataSet: {
|
|
107
107
|
"builder-block-name": "builder-columns"
|
|
108
108
|
}
|
|
109
|
-
}, _target.TARGET !== "reactNative" ? /*#__PURE__*/React.createElement(
|
|
109
|
+
}, _target.TARGET !== "reactNative" ? /*#__PURE__*/React.createElement(_inlinedStyles.default, {
|
|
110
110
|
styles: columnsStyles()
|
|
111
|
-
})
|
|
111
|
+
}) : null, (_props$columns = props.columns) === null || _props$columns === void 0 ? void 0 : _props$columns.map((column, index) => /*#__PURE__*/React.createElement(_dynamicRenderer.default, {
|
|
112
112
|
key: index,
|
|
113
113
|
TagName: column.link ? props.builderLinkComponent || _BaseText.default : _reactNative.View,
|
|
114
114
|
actionAttributes: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_BaseText","_interopRequireDefault","require","_react","_interopRequireWildcard","React","_reactNative","_blocks","_dynamicRenderer","_inlinedStyles","_deviceSizes","_target","_getClassPropName","_getStyle","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","Columns","props","_props$columns","gutterSize","setGutterSize","useState","space","cols","setCols","columns","stackAt","setStackAt","stackColumnsAt","getWidth","index","_cols$index","width","length","getColumnCssWidth","subtractWidth","getTabletStyle","stackedStyle","desktopStyle","getMobileStyle","flexDir","setFlexDir","reverseColumnsWhenStacked","columnsCssVars","flexDirection","columnCssVars","gutter","gutterPixels","mobileWidth","mobileMarginLeft","marginLeftKey","sharedStyles","display","alignItems","marginLeft","getWidthForBreakpointSize","size","_props$builderContext","breakpointSizes","getSizesForBreakpoints","builderContext","content","meta","breakpoints","max","columnsStyles","builderBlock","id","createElement","View","style","styles","view1","dataSet","TARGET","
|
|
1
|
+
{"version":3,"names":["_BaseText","_interopRequireDefault","require","_react","_interopRequireWildcard","React","_reactNative","_blocks","_dynamicRenderer","_inlinedStyles","_deviceSizes","_target","_getClassPropName","_getStyle","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","Columns","props","_props$columns","gutterSize","setGutterSize","useState","space","cols","setCols","columns","stackAt","setStackAt","stackColumnsAt","getWidth","index","_cols$index","width","length","getColumnCssWidth","subtractWidth","getTabletStyle","stackedStyle","desktopStyle","getMobileStyle","flexDir","setFlexDir","reverseColumnsWhenStacked","columnsCssVars","flexDirection","columnCssVars","gutter","gutterPixels","mobileWidth","mobileMarginLeft","marginLeftKey","sharedStyles","display","alignItems","marginLeft","getWidthForBreakpointSize","size","_props$builderContext","breakpointSizes","getSizesForBreakpoints","builderContext","content","meta","breakpoints","max","columnsStyles","builderBlock","id","createElement","View","style","styles","view1","dataSet","TARGET","map","column","key","TagName","link","builderLinkComponent","BaseText","actionAttributes","attributes","href","getClassPropName","mapStyleObjToStrIfNeeded","path","parent","styleProp","flexGrow","context","registeredComponents","builderComponents","linkComponent","blocks","StyleSheet","create","_default","exports"],"sourceRoot":"../../../../../src","sources":["blocks/columns/columns.tsx"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAA+B,IAAAG,KAAA,GAAAF,MAAA;AAC/B,IAAAG,YAAA,GAAAJ,OAAA;AAWA,IAAAK,OAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,gBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,cAAA,GAAAR,sBAAA,CAAAC,OAAA;AAEA,IAAAQ,YAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AAEA,IAAAU,iBAAA,GAAAV,OAAA;AACA,IAAAW,SAAA,GAAAX,OAAA;AAAwE,SAAAY,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAA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