@builder.io/sdk-react-native 3.0.0 → 3.0.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/browser/commonjs/blocks/image/component-info.js +2 -1
- package/lib/browser/commonjs/blocks/image/component-info.js.map +1 -1
- package/lib/browser/commonjs/blocks/img/component-info.js +2 -1
- package/lib/browser/commonjs/blocks/img/component-info.js.map +1 -1
- package/lib/browser/commonjs/blocks/text/text.js +3 -17
- package/lib/browser/commonjs/blocks/text/text.js.map +1 -1
- package/lib/browser/commonjs/blocks/video/component-info.js +3 -2
- package/lib/browser/commonjs/blocks/video/component-info.js.map +1 -1
- package/lib/browser/commonjs/components/block/block.helpers.js +17 -6
- package/lib/browser/commonjs/components/block/block.helpers.js.map +1 -1
- package/lib/browser/commonjs/components/block/block.js +5 -5
- package/lib/browser/commonjs/components/block/block.js.map +1 -1
- package/lib/browser/commonjs/components/content/components/enable-editor.helpers.js +24 -0
- package/lib/browser/commonjs/components/content/components/enable-editor.helpers.js.map +1 -0
- package/lib/browser/commonjs/components/content/components/enable-editor.js +35 -13
- package/lib/browser/commonjs/components/content/components/enable-editor.js.map +1 -1
- package/lib/browser/commonjs/components/content/content.js +37 -54
- package/lib/browser/commonjs/components/content/content.js.map +1 -1
- package/lib/browser/commonjs/constants/file-types.js +9 -0
- package/lib/browser/commonjs/constants/file-types.js.map +1 -0
- package/lib/browser/commonjs/constants/sdk-version.js +1 -1
- package/lib/browser/commonjs/context/builder.context.js +2 -1
- package/lib/browser/commonjs/context/builder.context.js.map +1 -1
- package/lib/browser/commonjs/functions/evaluate/edge-runtime/edge-runtime.js +1 -5
- package/lib/browser/commonjs/functions/evaluate/edge-runtime/edge-runtime.js.map +1 -1
- package/lib/browser/commonjs/functions/extract-localized-values.js +45 -0
- package/lib/browser/commonjs/functions/extract-localized-values.js.map +1 -0
- package/lib/browser/commonjs/functions/get-block-component-options.js +19 -2
- package/lib/browser/commonjs/functions/get-block-component-options.js.map +1 -1
- package/lib/browser/commonjs/functions/get-content/generate-content-url.js +29 -2
- package/lib/browser/commonjs/functions/get-content/generate-content-url.js.map +1 -1
- package/lib/browser/commonjs/functions/get-processed-block.js +10 -13
- package/lib/browser/commonjs/functions/get-processed-block.js.map +1 -1
- package/lib/browser/commonjs/functions/register-component.js +4 -1
- package/lib/browser/commonjs/functions/register-component.js.map +1 -1
- package/lib/browser/commonjs/functions/traverse.js +69 -0
- package/lib/browser/commonjs/functions/traverse.js.map +1 -0
- package/lib/browser/commonjs/helpers/flatten.js +24 -0
- package/lib/browser/commonjs/helpers/flatten.js.map +1 -1
- package/lib/browser/module/blocks/image/component-info.js +2 -1
- package/lib/browser/module/blocks/image/component-info.js.map +1 -1
- package/lib/browser/module/blocks/img/component-info.js +2 -1
- package/lib/browser/module/blocks/img/component-info.js.map +1 -1
- package/lib/browser/module/blocks/text/text.js +3 -17
- package/lib/browser/module/blocks/text/text.js.map +1 -1
- package/lib/browser/module/blocks/video/component-info.js +3 -2
- package/lib/browser/module/blocks/video/component-info.js.map +1 -1
- package/lib/browser/module/components/block/block.helpers.js +17 -6
- package/lib/browser/module/components/block/block.helpers.js.map +1 -1
- package/lib/browser/module/components/block/block.js +5 -5
- package/lib/browser/module/components/block/block.js.map +1 -1
- package/lib/browser/module/components/content/components/enable-editor.helpers.js +17 -0
- package/lib/browser/module/components/content/components/enable-editor.helpers.js.map +1 -0
- package/lib/browser/module/components/content/components/enable-editor.js +35 -13
- package/lib/browser/module/components/content/components/enable-editor.js.map +1 -1
- package/lib/browser/module/components/content/content.js +37 -54
- package/lib/browser/module/components/content/content.js.map +1 -1
- package/lib/browser/module/constants/file-types.js +3 -0
- package/lib/browser/module/constants/file-types.js.map +1 -0
- package/lib/browser/module/constants/sdk-version.js +1 -1
- package/lib/browser/module/context/builder.context.js +2 -1
- package/lib/browser/module/context/builder.context.js.map +1 -1
- package/lib/browser/module/functions/evaluate/edge-runtime/edge-runtime.js +1 -5
- package/lib/browser/module/functions/evaluate/edge-runtime/edge-runtime.js.map +1 -1
- package/lib/browser/module/functions/extract-localized-values.js +39 -0
- package/lib/browser/module/functions/extract-localized-values.js.map +1 -0
- package/lib/browser/module/functions/get-block-component-options.js +19 -2
- package/lib/browser/module/functions/get-block-component-options.js.map +1 -1
- package/lib/browser/module/functions/get-content/generate-content-url.js +30 -3
- package/lib/browser/module/functions/get-content/generate-content-url.js.map +1 -1
- package/lib/browser/module/functions/get-processed-block.js +10 -13
- package/lib/browser/module/functions/get-processed-block.js.map +1 -1
- package/lib/browser/module/functions/register-component.js +4 -1
- package/lib/browser/module/functions/register-component.js.map +1 -1
- package/lib/browser/module/functions/traverse.js +63 -0
- package/lib/browser/module/functions/traverse.js.map +1 -0
- package/lib/browser/module/helpers/flatten.js +23 -0
- package/lib/browser/module/helpers/flatten.js.map +1 -1
- package/lib/browser/typescript/blocks/image/component-info.d.ts.map +1 -1
- package/lib/browser/typescript/blocks/text/text.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 +6 -3
- package/lib/browser/typescript/components/block/block.helpers.d.ts.map +1 -1
- package/lib/browser/typescript/components/content/components/enable-editor.d.ts.map +1 -1
- package/lib/browser/typescript/components/content/components/enable-editor.helpers.d.ts +12 -0
- package/lib/browser/typescript/components/content/components/enable-editor.helpers.d.ts.map +1 -0
- package/lib/browser/typescript/components/content/content.d.ts.map +1 -1
- package/lib/browser/typescript/constants/file-types.d.ts +3 -0
- package/lib/browser/typescript/constants/file-types.d.ts.map +1 -0
- package/lib/browser/typescript/constants/sdk-version.d.ts +1 -1
- package/lib/browser/typescript/context/builder.context.d.ts.map +1 -1
- package/lib/browser/typescript/context/types.d.ts +1 -0
- package/lib/browser/typescript/context/types.d.ts.map +1 -1
- package/lib/browser/typescript/functions/extract-localized-values.d.ts +3 -0
- package/lib/browser/typescript/functions/extract-localized-values.d.ts.map +1 -0
- package/lib/browser/typescript/functions/get-block-component-options.d.ts +2 -1
- package/lib/browser/typescript/functions/get-block-component-options.d.ts.map +1 -1
- package/lib/browser/typescript/functions/get-content/generate-content-url.d.ts.map +1 -1
- package/lib/browser/typescript/functions/get-processed-block.d.ts +1 -6
- package/lib/browser/typescript/functions/get-processed-block.d.ts.map +1 -1
- package/lib/browser/typescript/functions/register-component.d.ts.map +1 -1
- package/lib/browser/typescript/functions/traverse.d.ts +35 -0
- package/lib/browser/typescript/functions/traverse.d.ts.map +1 -0
- package/lib/browser/typescript/helpers/flatten.d.ts +6 -0
- package/lib/browser/typescript/helpers/flatten.d.ts.map +1 -1
- package/lib/browser/typescript/server-index.d.ts +1 -1
- package/lib/browser/typescript/server-index.d.ts.map +1 -1
- package/lib/browser/typescript/types/components.d.ts +3 -0
- package/lib/browser/typescript/types/components.d.ts.map +1 -1
- package/lib/edge/commonjs/blocks/image/component-info.js +2 -1
- package/lib/edge/commonjs/blocks/image/component-info.js.map +1 -1
- package/lib/edge/commonjs/blocks/img/component-info.js +2 -1
- package/lib/edge/commonjs/blocks/img/component-info.js.map +1 -1
- package/lib/edge/commonjs/blocks/text/text.js +3 -17
- package/lib/edge/commonjs/blocks/text/text.js.map +1 -1
- package/lib/edge/commonjs/blocks/video/component-info.js +3 -2
- package/lib/edge/commonjs/blocks/video/component-info.js.map +1 -1
- package/lib/edge/commonjs/components/block/block.helpers.js +17 -6
- package/lib/edge/commonjs/components/block/block.helpers.js.map +1 -1
- package/lib/edge/commonjs/components/block/block.js +5 -5
- package/lib/edge/commonjs/components/block/block.js.map +1 -1
- package/lib/edge/commonjs/components/content/components/enable-editor.helpers.js +24 -0
- package/lib/edge/commonjs/components/content/components/enable-editor.helpers.js.map +1 -0
- package/lib/edge/commonjs/components/content/components/enable-editor.js +35 -13
- package/lib/edge/commonjs/components/content/components/enable-editor.js.map +1 -1
- package/lib/edge/commonjs/components/content/content.js +37 -54
- package/lib/edge/commonjs/components/content/content.js.map +1 -1
- package/lib/edge/commonjs/constants/file-types.js +9 -0
- package/lib/edge/commonjs/constants/file-types.js.map +1 -0
- package/lib/edge/commonjs/constants/sdk-version.js +1 -1
- package/lib/edge/commonjs/context/builder.context.js +2 -1
- package/lib/edge/commonjs/context/builder.context.js.map +1 -1
- package/lib/edge/commonjs/functions/evaluate/edge-runtime/edge-runtime.js +1 -5
- package/lib/edge/commonjs/functions/evaluate/edge-runtime/edge-runtime.js.map +1 -1
- package/lib/edge/commonjs/functions/extract-localized-values.js +45 -0
- package/lib/edge/commonjs/functions/extract-localized-values.js.map +1 -0
- package/lib/edge/commonjs/functions/get-block-component-options.js +19 -2
- package/lib/edge/commonjs/functions/get-block-component-options.js.map +1 -1
- package/lib/edge/commonjs/functions/get-content/generate-content-url.js +29 -2
- package/lib/edge/commonjs/functions/get-content/generate-content-url.js.map +1 -1
- package/lib/edge/commonjs/functions/get-processed-block.js +10 -13
- package/lib/edge/commonjs/functions/get-processed-block.js.map +1 -1
- package/lib/edge/commonjs/functions/register-component.js +4 -1
- package/lib/edge/commonjs/functions/register-component.js.map +1 -1
- package/lib/edge/commonjs/functions/traverse.js +69 -0
- package/lib/edge/commonjs/functions/traverse.js.map +1 -0
- package/lib/edge/commonjs/helpers/flatten.js +24 -0
- package/lib/edge/commonjs/helpers/flatten.js.map +1 -1
- package/lib/edge/module/blocks/image/component-info.js +2 -1
- package/lib/edge/module/blocks/image/component-info.js.map +1 -1
- package/lib/edge/module/blocks/img/component-info.js +2 -1
- package/lib/edge/module/blocks/img/component-info.js.map +1 -1
- package/lib/edge/module/blocks/text/text.js +3 -17
- package/lib/edge/module/blocks/text/text.js.map +1 -1
- package/lib/edge/module/blocks/video/component-info.js +3 -2
- package/lib/edge/module/blocks/video/component-info.js.map +1 -1
- package/lib/edge/module/components/block/block.helpers.js +17 -6
- package/lib/edge/module/components/block/block.helpers.js.map +1 -1
- package/lib/edge/module/components/block/block.js +5 -5
- package/lib/edge/module/components/block/block.js.map +1 -1
- package/lib/edge/module/components/content/components/enable-editor.helpers.js +17 -0
- package/lib/edge/module/components/content/components/enable-editor.helpers.js.map +1 -0
- package/lib/edge/module/components/content/components/enable-editor.js +35 -13
- package/lib/edge/module/components/content/components/enable-editor.js.map +1 -1
- package/lib/edge/module/components/content/content.js +37 -54
- package/lib/edge/module/components/content/content.js.map +1 -1
- package/lib/edge/module/constants/file-types.js +3 -0
- package/lib/edge/module/constants/file-types.js.map +1 -0
- package/lib/edge/module/constants/sdk-version.js +1 -1
- package/lib/edge/module/context/builder.context.js +2 -1
- package/lib/edge/module/context/builder.context.js.map +1 -1
- package/lib/edge/module/functions/evaluate/edge-runtime/edge-runtime.js +1 -5
- package/lib/edge/module/functions/evaluate/edge-runtime/edge-runtime.js.map +1 -1
- package/lib/edge/module/functions/extract-localized-values.js +39 -0
- package/lib/edge/module/functions/extract-localized-values.js.map +1 -0
- package/lib/edge/module/functions/get-block-component-options.js +19 -2
- package/lib/edge/module/functions/get-block-component-options.js.map +1 -1
- package/lib/edge/module/functions/get-content/generate-content-url.js +30 -3
- package/lib/edge/module/functions/get-content/generate-content-url.js.map +1 -1
- package/lib/edge/module/functions/get-processed-block.js +10 -13
- package/lib/edge/module/functions/get-processed-block.js.map +1 -1
- package/lib/edge/module/functions/register-component.js +4 -1
- package/lib/edge/module/functions/register-component.js.map +1 -1
- package/lib/edge/module/functions/traverse.js +63 -0
- package/lib/edge/module/functions/traverse.js.map +1 -0
- package/lib/edge/module/helpers/flatten.js +23 -0
- package/lib/edge/module/helpers/flatten.js.map +1 -1
- package/lib/edge/typescript/blocks/image/component-info.d.ts.map +1 -1
- package/lib/edge/typescript/blocks/text/text.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 +6 -3
- package/lib/edge/typescript/components/block/block.helpers.d.ts.map +1 -1
- package/lib/edge/typescript/components/content/components/enable-editor.d.ts.map +1 -1
- package/lib/edge/typescript/components/content/components/enable-editor.helpers.d.ts +12 -0
- package/lib/edge/typescript/components/content/components/enable-editor.helpers.d.ts.map +1 -0
- package/lib/edge/typescript/components/content/content.d.ts.map +1 -1
- package/lib/edge/typescript/constants/file-types.d.ts +3 -0
- package/lib/edge/typescript/constants/file-types.d.ts.map +1 -0
- package/lib/edge/typescript/constants/sdk-version.d.ts +1 -1
- package/lib/edge/typescript/context/builder.context.d.ts.map +1 -1
- package/lib/edge/typescript/context/types.d.ts +1 -0
- package/lib/edge/typescript/context/types.d.ts.map +1 -1
- package/lib/edge/typescript/functions/extract-localized-values.d.ts +3 -0
- package/lib/edge/typescript/functions/extract-localized-values.d.ts.map +1 -0
- package/lib/edge/typescript/functions/get-block-component-options.d.ts +2 -1
- package/lib/edge/typescript/functions/get-block-component-options.d.ts.map +1 -1
- package/lib/edge/typescript/functions/get-content/generate-content-url.d.ts.map +1 -1
- package/lib/edge/typescript/functions/get-processed-block.d.ts +1 -6
- package/lib/edge/typescript/functions/get-processed-block.d.ts.map +1 -1
- package/lib/edge/typescript/functions/register-component.d.ts.map +1 -1
- package/lib/edge/typescript/functions/traverse.d.ts +35 -0
- package/lib/edge/typescript/functions/traverse.d.ts.map +1 -0
- package/lib/edge/typescript/helpers/flatten.d.ts +6 -0
- package/lib/edge/typescript/helpers/flatten.d.ts.map +1 -1
- package/lib/edge/typescript/server-index.d.ts +1 -1
- package/lib/edge/typescript/server-index.d.ts.map +1 -1
- package/lib/edge/typescript/types/components.d.ts +3 -0
- package/lib/edge/typescript/types/components.d.ts.map +1 -1
- package/lib/node/commonjs/blocks/image/component-info.js +2 -1
- package/lib/node/commonjs/blocks/image/component-info.js.map +1 -1
- package/lib/node/commonjs/blocks/img/component-info.js +2 -1
- package/lib/node/commonjs/blocks/img/component-info.js.map +1 -1
- package/lib/node/commonjs/blocks/text/text.js +3 -17
- package/lib/node/commonjs/blocks/text/text.js.map +1 -1
- package/lib/node/commonjs/blocks/video/component-info.js +3 -2
- package/lib/node/commonjs/blocks/video/component-info.js.map +1 -1
- package/lib/node/commonjs/components/block/block.helpers.js +17 -6
- package/lib/node/commonjs/components/block/block.helpers.js.map +1 -1
- package/lib/node/commonjs/components/block/block.js +5 -5
- package/lib/node/commonjs/components/block/block.js.map +1 -1
- package/lib/node/commonjs/components/content/components/enable-editor.helpers.js +24 -0
- package/lib/node/commonjs/components/content/components/enable-editor.helpers.js.map +1 -0
- package/lib/node/commonjs/components/content/components/enable-editor.js +35 -13
- package/lib/node/commonjs/components/content/components/enable-editor.js.map +1 -1
- package/lib/node/commonjs/components/content/content.js +37 -54
- package/lib/node/commonjs/components/content/content.js.map +1 -1
- package/lib/node/commonjs/constants/file-types.js +9 -0
- package/lib/node/commonjs/constants/file-types.js.map +1 -0
- package/lib/node/commonjs/constants/sdk-version.js +1 -1
- package/lib/node/commonjs/context/builder.context.js +2 -1
- package/lib/node/commonjs/context/builder.context.js.map +1 -1
- package/lib/node/commonjs/functions/evaluate/edge-runtime/edge-runtime.js +1 -5
- package/lib/node/commonjs/functions/evaluate/edge-runtime/edge-runtime.js.map +1 -1
- package/lib/node/commonjs/functions/extract-localized-values.js +45 -0
- package/lib/node/commonjs/functions/extract-localized-values.js.map +1 -0
- package/lib/node/commonjs/functions/get-block-component-options.js +19 -2
- package/lib/node/commonjs/functions/get-block-component-options.js.map +1 -1
- package/lib/node/commonjs/functions/get-content/generate-content-url.js +29 -2
- package/lib/node/commonjs/functions/get-content/generate-content-url.js.map +1 -1
- package/lib/node/commonjs/functions/get-processed-block.js +10 -13
- package/lib/node/commonjs/functions/get-processed-block.js.map +1 -1
- package/lib/node/commonjs/functions/register-component.js +4 -1
- package/lib/node/commonjs/functions/register-component.js.map +1 -1
- package/lib/node/commonjs/functions/traverse.js +69 -0
- package/lib/node/commonjs/functions/traverse.js.map +1 -0
- package/lib/node/commonjs/helpers/flatten.js +24 -0
- package/lib/node/commonjs/helpers/flatten.js.map +1 -1
- package/lib/node/module/blocks/image/component-info.js +2 -1
- package/lib/node/module/blocks/image/component-info.js.map +1 -1
- package/lib/node/module/blocks/img/component-info.js +2 -1
- package/lib/node/module/blocks/img/component-info.js.map +1 -1
- package/lib/node/module/blocks/text/text.js +3 -17
- package/lib/node/module/blocks/text/text.js.map +1 -1
- package/lib/node/module/blocks/video/component-info.js +3 -2
- package/lib/node/module/blocks/video/component-info.js.map +1 -1
- package/lib/node/module/components/block/block.helpers.js +17 -6
- package/lib/node/module/components/block/block.helpers.js.map +1 -1
- package/lib/node/module/components/block/block.js +5 -5
- package/lib/node/module/components/block/block.js.map +1 -1
- package/lib/node/module/components/content/components/enable-editor.helpers.js +17 -0
- package/lib/node/module/components/content/components/enable-editor.helpers.js.map +1 -0
- package/lib/node/module/components/content/components/enable-editor.js +35 -13
- package/lib/node/module/components/content/components/enable-editor.js.map +1 -1
- package/lib/node/module/components/content/content.js +37 -54
- package/lib/node/module/components/content/content.js.map +1 -1
- package/lib/node/module/constants/file-types.js +3 -0
- package/lib/node/module/constants/file-types.js.map +1 -0
- package/lib/node/module/constants/sdk-version.js +1 -1
- package/lib/node/module/context/builder.context.js +2 -1
- package/lib/node/module/context/builder.context.js.map +1 -1
- package/lib/node/module/functions/evaluate/edge-runtime/edge-runtime.js +1 -5
- package/lib/node/module/functions/evaluate/edge-runtime/edge-runtime.js.map +1 -1
- package/lib/node/module/functions/extract-localized-values.js +39 -0
- package/lib/node/module/functions/extract-localized-values.js.map +1 -0
- package/lib/node/module/functions/get-block-component-options.js +19 -2
- package/lib/node/module/functions/get-block-component-options.js.map +1 -1
- package/lib/node/module/functions/get-content/generate-content-url.js +30 -3
- package/lib/node/module/functions/get-content/generate-content-url.js.map +1 -1
- package/lib/node/module/functions/get-processed-block.js +10 -13
- package/lib/node/module/functions/get-processed-block.js.map +1 -1
- package/lib/node/module/functions/register-component.js +4 -1
- package/lib/node/module/functions/register-component.js.map +1 -1
- package/lib/node/module/functions/traverse.js +63 -0
- package/lib/node/module/functions/traverse.js.map +1 -0
- package/lib/node/module/helpers/flatten.js +23 -0
- package/lib/node/module/helpers/flatten.js.map +1 -1
- package/lib/node/typescript/blocks/image/component-info.d.ts.map +1 -1
- package/lib/node/typescript/blocks/text/text.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 +6 -3
- package/lib/node/typescript/components/block/block.helpers.d.ts.map +1 -1
- package/lib/node/typescript/components/content/components/enable-editor.d.ts.map +1 -1
- package/lib/node/typescript/components/content/components/enable-editor.helpers.d.ts +12 -0
- package/lib/node/typescript/components/content/components/enable-editor.helpers.d.ts.map +1 -0
- package/lib/node/typescript/components/content/content.d.ts.map +1 -1
- package/lib/node/typescript/constants/file-types.d.ts +3 -0
- package/lib/node/typescript/constants/file-types.d.ts.map +1 -0
- package/lib/node/typescript/constants/sdk-version.d.ts +1 -1
- package/lib/node/typescript/context/builder.context.d.ts.map +1 -1
- package/lib/node/typescript/context/types.d.ts +1 -0
- package/lib/node/typescript/context/types.d.ts.map +1 -1
- package/lib/node/typescript/functions/extract-localized-values.d.ts +3 -0
- package/lib/node/typescript/functions/extract-localized-values.d.ts.map +1 -0
- package/lib/node/typescript/functions/get-block-component-options.d.ts +2 -1
- package/lib/node/typescript/functions/get-block-component-options.d.ts.map +1 -1
- package/lib/node/typescript/functions/get-content/generate-content-url.d.ts.map +1 -1
- package/lib/node/typescript/functions/get-processed-block.d.ts +1 -6
- package/lib/node/typescript/functions/get-processed-block.d.ts.map +1 -1
- package/lib/node/typescript/functions/register-component.d.ts.map +1 -1
- package/lib/node/typescript/functions/traverse.d.ts +35 -0
- package/lib/node/typescript/functions/traverse.d.ts.map +1 -0
- package/lib/node/typescript/helpers/flatten.d.ts +6 -0
- package/lib/node/typescript/helpers/flatten.d.ts.map +1 -1
- package/lib/node/typescript/server-index.d.ts +1 -1
- package/lib/node/typescript/server-index.d.ts.map +1 -1
- package/lib/node/typescript/types/components.d.ts +3 -0
- package/lib/node/typescript/types/components.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/blocks/image/component-info.ts +2 -1
- package/src/blocks/img/component-info.ts +2 -1
- package/src/blocks/text/text.tsx +3 -25
- package/src/blocks/video/component-info.ts +3 -2
- package/src/components/block/block.helpers.ts +18 -6
- package/src/components/block/block.tsx +4 -3
- package/src/components/content/components/enable-editor.helpers.ts +18 -0
- package/src/components/content/components/enable-editor.tsx +51 -13
- package/src/components/content/content.tsx +3 -10
- package/src/constants/file-types.ts +2 -0
- package/src/constants/sdk-version.ts +1 -1
- package/src/context/builder.context.ts +1 -0
- package/src/context/types.ts +1 -0
- package/src/functions/evaluate/edge-runtime/edge-runtime.ts +1 -5
- package/src/functions/extract-localized-values.ts +38 -0
- package/src/functions/get-block-component-options.ts +19 -2
- package/src/functions/get-content/generate-content-url.ts +30 -3
- package/src/functions/get-processed-block.ts +10 -18
- package/src/functions/register-component.ts +4 -1
- package/src/functions/traverse.ts +64 -0
- package/src/helpers/flatten.ts +23 -0
- package/src/server-index.ts +1 -1
- package/src/types/components.ts +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["flatten","flattenMongoQuery","normalizeSearchParams","DEFAULT_API_VERSION","getBuilderSearchParamsFromWindow","isPositiveNumber","thing","isNaN","generateContentUrl","options","limit","userAttributes","query","model","apiKey","enrich","locale","apiVersion","fields","omit","offset","cacheSeconds","staleCacheSeconds","sort","includeUnpublished","apiHost","Error","includes","noTraverse","baseUrl","url","URL","searchParams","set","String","finalLocale","finalUserAttributes","Number","isFinite","Math","floor","flattened","key","JSON","stringify","queryOptions"],"sourceRoot":"../../../../../src","sources":["functions/get-content/generate-content-url.ts"],"mappings":"AAAA,SAASA,OAAO,EAAEC,iBAAiB;
|
|
1
|
+
{"version":3,"names":["flatten","flattenMongoQuery","unflatten","normalizeSearchParams","DEFAULT_API_VERSION","getBuilderSearchParamsFromWindow","isBrowser","isPositiveNumber","thing","isNaN","generateContentUrl","options","limit","userAttributes","query","model","apiKey","enrich","locale","apiVersion","fields","omit","offset","cacheSeconds","staleCacheSeconds","sort","includeUnpublished","apiHost","Error","includes","noTraverse","baseUrl","url","URL","searchParams","set","String","finalLocale","finalUserAttributes","Number","isFinite","Math","floor","flattened","key","JSON","stringify","queryOptions","getUserAttributesAsJSON","Object","keys","length","getUserAttributesFromQueryOptions","newUserAttributes","startsWith","window","location","pathname","host","queryOptionsForUserAttributes"],"sourceRoot":"../../../../../src","sources":["functions/get-content/generate-content-url.ts"],"mappings":"AAAA,SAASA,OAAO,EAAEC,iBAAiB,EAAEC,SAAS;AAC9C,SAASC,qBAAqB;AAC9B,SAASC,mBAAmB;AAC5B,SAASC,gCAAgC;AACzC,SAASC,SAAS;AAElB,MAAMC,gBAAgB,GAAIC,KAAc,IAAK,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACC,KAAK,CAACD,KAAK,CAAC,IAAIA,KAAK,IAAI,CAAC;AACrG,OAAO,MAAME,kBAAkB,GAAIC,OAA0B,IAAU;EACrE,MAAM;IACJC,KAAK,GAAG,EAAE;IACVC,cAAc;IACdC,KAAK;IACLC,KAAK;IACLC,MAAM;IACNC,MAAM;IACNC,MAAM;IACNC,UAAU,GAAGf,mBAAmB;IAChCgB,MAAM;IACNC,IAAI;IACJC,MAAM;IACNC,YAAY;IACZC,iBAAiB;IACjBC,IAAI;IACJC,kBAAkB;IAClBC;EACF,CAAC,GAAGhB,OAAO;EACX,IAAI,CAACK,MAAM,EAAE;IACX,MAAM,IAAIY,KAAK,CAAC,iBAAiB,CAAC;EACpC;EACA,IAAI,CAAC,CAAC,IAAI,CAAC,CAACC,QAAQ,CAACV,UAAU,CAAC,EAAE;IAChC,MAAM,IAAIS,KAAK,CAAE,gDAA+CT,UAAW,GAAE,CAAC;EAChF;;EAEA;EACA,MAAMW,UAAU,GAAGlB,KAAK,KAAK,CAAC;EAC9B,MAAMmB,OAAO,GAAGJ,OAAO,IAAI,wBAAwB;EACnD,MAAMK,GAAG,GAAG,IAAIC,GAAG,CAAE,GAAEF,OAAQ,QAAOZ,UAAW,YAAWJ,KAAM,EAAC,CAAC;EACpEiB,GAAG,CAACE,YAAY,CAACC,G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BAAmB,CAAC,CAAC;EAC7E;EACA,IAAIxB,KAAK,EAAE;IACT,MAAM6B,SAAS,GAAG1C,iBAAiB,CAAC;MAClCa;IACF,CAAC,CAAC;IACF,KAAK,MAAM8B,GAAG,IAAID,SAAS,EAAE;MAC3BX,GAAG,CAACE,YAAY,CAACC,GAAG,CAACS,GAAG,EAAEC,IAAI,CAACC,SAAS,CAACH,SAAS,CAACC,GAAG,CAAC,CAAC,CAAC;IAC3D;EACF;EACA,OAAOZ,GAAG;AACZ,CAAC;AACD,MAAMoB,iCAAiC,GAAIL,YAAiB,IAAK;EAC/D,MAAMM,iBAAsB,GAAG,CAAC,CAAC;EACjC,KAAK,MAAMT,GAAG,IAAIG,YAAY,EAAE;IAC9B,IAAIH,GAAG,CAACU,UAAU,CAAC,iBAAiB,CAAC,EAAE;MACrCD,iBAAiB,CAACT,GAAG,CAAC,GAAGG,YAAY,CAACH,GAAG,CAAC;MAC1C,OAAOG,YAAY,CAACH,GAAG,CAAC;IAC1B;EACF;EACA,OAAOS,iBAAiB;AAC1B,CAAC;AACD,MAAML,uBAAuB,GAAID,YAAiB,IAAK;EACrD,IAAIzC,SAAS,CAAC,CAAC,IAAIyC,YAAY,CAAC,SAAS,CAAC,KAAK,gBAAgB,EAAE;IAC/DA,YAAY,CAAC,wBAAwB,CAAC,GAAGQ,MAAM,CAACC,QAAQ,CAACC,QAAQ;IACjEV,YAAY,CAAC,qBAAqB,CAAC,GAAGQ,MAAM,CAACC,QAAQ,CAACE,IAAI;IAC1D,MAAMC,6BAA6B,GAAGP,iCAAiC,CAACL,YAAY,CAAC;IACrF,MAAM;MACJlC;IACF,CAAC,GAAGX,SAAS,CAACyD,6BAA6B,CAAC;IAC5C,OAAO9C,cAAc;EACvB;EACA,OAAO,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TARGET } from "../constants/target";
|
|
2
2
|
import { omit } from "../helpers/omit";
|
|
3
3
|
import { evaluate } from "./evaluate/index";
|
|
4
|
+
import { resolveLocalizedValues } from "./extract-localized-values";
|
|
4
5
|
import { fastClone } from "./fast-clone";
|
|
5
6
|
import { set } from "./set";
|
|
6
7
|
import { transformBlock } from "./transform-block";
|
|
@@ -80,22 +81,18 @@ const evaluateBindings = ({
|
|
|
80
81
|
export function getProcessedBlock({
|
|
81
82
|
block,
|
|
82
83
|
context,
|
|
83
|
-
shouldEvaluateBindings,
|
|
84
84
|
localState,
|
|
85
85
|
rootState,
|
|
86
86
|
rootSetState
|
|
87
87
|
}) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
} else {
|
|
98
|
-
return transformedBlock;
|
|
99
|
-
}
|
|
88
|
+
let transformedBlock = resolveLocalizedValues(block, rootState.locale);
|
|
89
|
+
transformedBlock = transformBlock(transformedBlock);
|
|
90
|
+
return evaluateBindings({
|
|
91
|
+
block: transformedBlock,
|
|
92
|
+
localState,
|
|
93
|
+
rootState,
|
|
94
|
+
rootSetState,
|
|
95
|
+
context
|
|
96
|
+
});
|
|
100
97
|
}
|
|
101
98
|
//# sourceMappingURL=get-processed-block.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TARGET","omit","evaluate","fastClone","set","transformBlock","deepCloneWithConditions","obj","Array","isArray","map","item","clonedObj","key","Object","prototype","hasOwnProperty","call","IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK","includes","getCopy","block","copy","copied","properties","actions","children","meta","evaluateBindings","context","localState","rootState","rootSetState","bindings","binding","expression","value","code","getProcessedBlock","
|
|
1
|
+
{"version":3,"names":["TARGET","omit","evaluate","resolveLocalizedValues","fastClone","set","transformBlock","deepCloneWithConditions","obj","Array","isArray","map","item","clonedObj","key","Object","prototype","hasOwnProperty","call","IS_SDK_WITHOUT_CACHED_PROCESSED_BLOCK","includes","getCopy","block","copy","copied","properties","actions","children","meta","evaluateBindings","context","localState","rootState","rootSetState","bindings","binding","expression","value","code","getProcessedBlock","transformedBlock","locale"],"sourceRoot":"../../../../src","sources":["functions/get-processed-block.ts"],"mappings":"AAAA,SAASA,MAAM;AAEf,SAASC,IAAI;AAEb,SAASC,QAAQ;AACjB,SAASC,sBAAsB;AAC/B,SAASC,SAAS;AAClB,SAASC,GAAG;AACZ,SAASC,cAAc;;AAEvB;AACA,OAAO,SAASC,uBAAuBA,CAAUC,GAAM,EAAK;EAC1D,IAAIA,GAAG,KAAK,IAAI,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;IAC3C,OAAOA,GAAG;EACZ;EACA,IAAIC,KAAK,CAACC,OAAO,CAACF,GAAG,CAAC,EAAE;IACtB,OAAQA,GAAG,CAACG,GAAG,CAAEC,IAAS,IAAKL,uBAAuB,CAACK,IAAI,CAAC,CAAC;EAC/D;EACA,IAAKJ,GAAG,CAAS,OAAO,CAAC,KAAK,yBAAyB,EAAE;IACvD,OAAOA,GAAG;EACZ;EACA,MAAMK,SAAc,GAAG,CAAC,CAAC;EACzB,KAAK,MAAMC,GAAG,IAAIN,GAAG,EAAE;IACrB,IAAIM,GAAG,KAAK,MAAM,IAAIC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACV,GAAG,EAAEM,GAAG,CAAC,EAAE;MACpED,SAAS,CAACC,GAAG,CAAC,GAAGP,uBAAuB,CAACC,GAAG,CAACM,GAAG,CAAC,CAAC;IACpD;EACF;EACA,OAAOD,SAAS;AAClB;AACA,MAAMM,qCAAqC,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAACC,QAAQ,CAACpB,MAAM,CAAC;AAC5G,MAAMqB,OAAO,GAAIC,KAAmB,IAAmB;EACrD,IAAIH,qCAAqC,EAAE;IACzC,MAAMI,IAAI,GAAGnB,SAAS,CAACkB,KAAK,CAAC;IAC7B,MAAME,MAAM,GAAG;MACb,GAAGD,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,CAACS,MAA6B,CAAC;EAC9FD,gBAAgB,GAAGlC,cAAc,CAACkC,gBAAgB,CAAC;EACnD,OAAOX,gBAAgB,CAAC;IACtBP,KAAK,EAAEkB,gBAAgB;IACvBT,UAAU;IACVC,SAAS;IACTC,YAAY;IACZH;EACF,CAAC,CAAC;AACJ"}
|
|
@@ -12,8 +12,11 @@ const serializeFn = fnValue => {
|
|
|
12
12
|
// 2. `name(args) => {code}`
|
|
13
13
|
// 3. `(args) => {}`
|
|
14
14
|
// 4. `args => {}`
|
|
15
|
+
// 5. `async function(args) {code}`
|
|
16
|
+
// 6. `async (args) => {}`
|
|
17
|
+
// 7. `async args => {}`
|
|
15
18
|
const isArrowWithoutParens = /^[a-zA-Z0-9_]+\s*=>/i.test(fnStr);
|
|
16
|
-
const appendFunction = !fnStr.startsWith('function') && !fnStr.startsWith('(') && !isArrowWithoutParens;
|
|
19
|
+
const appendFunction = !fnStr.startsWith('function') && !fnStr.startsWith('async') && !fnStr.startsWith('(') && !isArrowWithoutParens;
|
|
17
20
|
return `return (${appendFunction ? 'function ' : ''}${fnStr}).apply(this, arguments)`;
|
|
18
21
|
};
|
|
19
22
|
export function serializeIncludingFunctions(info) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createRegisterComponentMessage","info","type","data","serializeIncludingFunctions","serializeFn","fnValue","fnStr","toString","trim","isArrowWithoutParens","test","appendFunction","startsWith","JSON","parse","stringify","key","value"],"sourceRoot":"../../../../src","sources":["functions/register-component.ts"],"mappings":"AACA,OAAO,MAAMA,8BAA8B,GAAIC,IAAmB,KAAM;EACtEC,IAAI,EAAE,2BAA2B;EACjCC,IAAI,EAAEC,2BAA2B,CAACH,IAAI;AACxC,CAAC,CAAC;;AAEF;AACA,MAAMI,WAAW,GAAIC,OAAiB,IAAK;EACzC,MAAMC,KAAK,GAAGD,OAAO,CAACE,QAAQ,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC;;EAEvC;EACA;EACA;EACA;EACA;EACA,MAAMC,oBAAoB,GAAG,sBAAsB,CAACC,IAAI,CAACJ,KAAK,CAAC;EAC/D,MAAMK,cAAc,GAAG,CAACL,KAAK,CAACM,UAAU,CAAC,UAAU,CAAC,IAAI,CAACN,KAAK,CAACM,UAAU,CAAC,GAAG,CAAC,IAAI,CAACH,oBAAoB;
|
|
1
|
+
{"version":3,"names":["createRegisterComponentMessage","info","type","data","serializeIncludingFunctions","serializeFn","fnValue","fnStr","toString","trim","isArrowWithoutParens","test","appendFunction","startsWith","JSON","parse","stringify","key","value"],"sourceRoot":"../../../../src","sources":["functions/register-component.ts"],"mappings":"AACA,OAAO,MAAMA,8BAA8B,GAAIC,IAAmB,KAAM;EACtEC,IAAI,EAAE,2BAA2B;EACjCC,IAAI,EAAEC,2BAA2B,CAACH,IAAI;AACxC,CAAC,CAAC;;AAEF;AACA,MAAMI,WAAW,GAAIC,OAAiB,IAAK;EACzC,MAAMC,KAAK,GAAGD,OAAO,CAACE,QAAQ,CAAC,CAAC,CAACC,IAAI,CAAC,CAAC;;EAEvC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,MAAMC,oBAAoB,GAAG,sBAAsB,CAACC,IAAI,CAACJ,KAAK,CAAC;EAC/D,MAAMK,cAAc,GAAG,CAACL,KAAK,CAACM,UAAU,CAAC,UAAU,CAAC,IAAI,CAACN,KAAK,CAACM,UAAU,CAAC,OAAO,CAAC,IAAI,CAACN,KAAK,CAACM,UAAU,CAAC,GAAG,CAAC,IAAI,CAACH,oBAAoB;EACrI,OAAQ,WAAUE,cAAc,GAAG,WAAW,GAAG,EAAG,GAAEL,KAAM,0BAAyB;AACvF,CAAC;AACD,OAAO,SAASH,2BAA2BA,CAACH,IAAmB,EAAE;EAC/D,OAAOa,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,SAAS,CAACf,IAAI,EAAE,CAACgB,GAAG,EAAEC,KAAK,KAAK;IACrD,IAAI,OAAOA,KAAK,KAAK,UAAU,EAAE;MAC/B,OAAOb,WAAW,CAACa,KAAK,CAAC;IAC3B;IACA,OAAOA,KAAK;EACd,CAAC,CAAC,CAAC;AACL"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursively traverses an object or array, invoking a callback on each value.
|
|
3
|
+
*
|
|
4
|
+
* @param {any} obj - The object or array to traverse. Can also handle primitives, null, or undefined.
|
|
5
|
+
* @param {TraverseCallback} callback - The function to invoke on each value. Receives the current value
|
|
6
|
+
* and an `update` function to modify the value in its parent container.
|
|
7
|
+
* @param {any} [parent=null] - The parent object or array of the current value. Used internally.
|
|
8
|
+
* @param {any} [key=null] - The key or index of the current value in its parent. Used internally.
|
|
9
|
+
* @param {WeakSet} [visited=new WeakSet()] - Tracks visited objects to handle circular references. Used internally.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* // Example: Doubling all numbers in an object
|
|
13
|
+
* const obj = { a: 1, b: [2, 3, { c: 4 }] };
|
|
14
|
+
* traverse(obj, (value, update) => {
|
|
15
|
+
* if (typeof value === 'number') {
|
|
16
|
+
* update(value * 2);
|
|
17
|
+
* }
|
|
18
|
+
* });
|
|
19
|
+
* console.log(obj); // { a: 2, b: [4, 6, { c: 8 }] }
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* // Example: Handling circular references
|
|
23
|
+
* const obj = { a: 1 };
|
|
24
|
+
* obj.self = obj;
|
|
25
|
+
* traverse(obj, (value, update) => {
|
|
26
|
+
* if (typeof value === 'number') {
|
|
27
|
+
* update(value * 2);
|
|
28
|
+
* }
|
|
29
|
+
* });
|
|
30
|
+
* console.log(obj.a); // 2
|
|
31
|
+
*/
|
|
32
|
+
export function traverse(obj, callback, parent = null, key = null, visited = new WeakSet()) {
|
|
33
|
+
if (obj == null || typeof obj !== 'object') {
|
|
34
|
+
callback(obj, newValue => {
|
|
35
|
+
if (parent !== null && key !== null) {
|
|
36
|
+
parent[key] = newValue;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (visited.has(obj)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
visited.add(obj);
|
|
45
|
+
if (Array.isArray(obj)) {
|
|
46
|
+
obj.forEach((item, index) => {
|
|
47
|
+
const update = newValue => {
|
|
48
|
+
obj[index] = newValue;
|
|
49
|
+
};
|
|
50
|
+
callback(item, update);
|
|
51
|
+
traverse(item, callback, obj, index, visited);
|
|
52
|
+
});
|
|
53
|
+
} else {
|
|
54
|
+
Object.entries(obj).forEach(([key, value]) => {
|
|
55
|
+
const update = newValue => {
|
|
56
|
+
obj[key] = newValue;
|
|
57
|
+
};
|
|
58
|
+
callback(value, update);
|
|
59
|
+
traverse(value, callback, obj, key, visited);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=traverse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["traverse","obj","callback","parent","key","visited","WeakSet","newValue","has","add","Array","isArray","forEach","item","index","update","Object","entries","value"],"sourceRoot":"../../../../src","sources":["functions/traverse.ts"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,QAAQA,CAACC,GAAQ,EAAEC,QAA0B,EAAEC,MAAW,GAAG,IAAI,EAAEC,GAAQ,GAAG,IAAI,EAAEC,OAAO,GAAG,IAAIC,OAAO,CAAC,CAAC,EAAQ;EACjI,IAAIL,GAAG,IAAI,IAAI,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;IAC1CC,QAAQ,CAACD,GAAG,EAAGM,QAAa,IAAK;MAC/B,IAAIJ,MAAM,KAAK,IAAI,IAAIC,GAAG,KAAK,IAAI,EAAE;QACnCD,MAAM,CAACC,GAAG,CAAC,GAAGG,QAAQ;MACxB;IACF,CAAC,CAAC;IACF;EACF;EACA,IAAIF,OAAO,CAACG,GAAG,CAACP,GAAG,CAAC,EAAE;IACpB;EACF;EACAI,OAAO,CAACI,GAAG,CAACR,GAAG,CAAC;EAChB,IAAIS,KAAK,CAACC,OAAO,CAACV,GAAG,CAAC,EAAE;IACtBA,GAAG,CAACW,OAAO,CAAC,CAACC,IAAI,EAAEC,KAAK,KAAK;MAC3B,MAAMC,MAAM,GAAIR,QAAa,IAAK;QAChCN,GAAG,CAACa,KAAK,CAAC,GAAGP,QAAQ;MACvB,CAAC;MACDL,QAAQ,CAACW,IAAI,EAAEE,MAAM,CAAC;MACtBf,QAAQ,CAACa,IAAI,EAAEX,QAAQ,EAAED,GAAG,EAAEa,KAAK,EAAET,OAAO,CAAC;IAC/C,CAAC,CAAC;EACJ,CAAC,MAAM;IACLW,MAAM,CAACC,OAAO,CAAChB,GAAG,CAAC,CAACW,OAAO,CAAC,CAAC,CAACR,GAAG,EAAEc,KAAK,CAAC,KAAK;MAC5C,MAAMH,MAAM,GAAIR,QAAa,IAAK;QAChCN,GAAG,CAACG,GAAG,CAAC,GAAGG,QAAQ;MACrB,CAAC;MACDL,QAAQ,CAACgB,KAAK,EAAEH,MAAM,CAAC;MACvBf,QAAQ,CAACkB,KAAK,EAAEhB,QAAQ,EAAED,GAAG,EAAEG,GAAG,EAAEC,OAAO,CAAC;IAC9C,CAAC,CAAC;EACJ;AACF"}
|
|
@@ -37,4 +37,27 @@ export function flattenMongoQuery(obj, _current, _res = {}) {
|
|
|
37
37
|
}
|
|
38
38
|
return _res;
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Unflatten a flat object with dot-separated keys back into a nested object.
|
|
43
|
+
*
|
|
44
|
+
* { 'foo.bar': 'baz' } -> { foo: { bar: 'baz' }}
|
|
45
|
+
*/
|
|
46
|
+
export function unflatten(obj) {
|
|
47
|
+
const result = {};
|
|
48
|
+
for (const key in obj) {
|
|
49
|
+
const parts = key.split('.');
|
|
50
|
+
let current = result;
|
|
51
|
+
for (let i = 0; i < parts.length; i++) {
|
|
52
|
+
const part = parts[i];
|
|
53
|
+
if (i === parts.length - 1) {
|
|
54
|
+
current[part] = obj[key];
|
|
55
|
+
} else {
|
|
56
|
+
current[part] = current[part] || {};
|
|
57
|
+
current = current[part];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
40
63
|
//# sourceMappingURL=flatten.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["flatten","object","path","separator","Object","keys","reduce","acc","key","value","newPath","filter","Boolean","join","isObject","Array","isArray","length","every","flattenMongoQuery","obj","_current","_res","newKey","find","item","startsWith"],"sourceRoot":"../../../../src","sources":["helpers/flatten.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,OAAOA,CAAgCC,MAAS,EAAEC,IAAmB,GAAG,IAAI,EAAEC,SAAS,GAAG,GAAG,EAAK;EAChH,OAAOC,MAAM,CAACC,IAAI,CAACJ,MAAM,CAAC,CAACK,MAAM,CAAC,CAACC,GAAM,EAAEC,GAAW,KAAQ;IAC5D,MAAMC,KAAK,GAAGR,MAAM,CAACO,GAAG,CAAC;IACzB,MAAME,OAAO,GAAG,CAACR,IAAI,EAAEM,GAAG,CAAC,CAACG,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAACV,SAAS,CAAC;IAC3D,MAAMW,QAAQ,GAAG,CAAC,OAAOL,KAAK,KAAK,QAAQ,EAAEA,KAAK,KAAK,IAAI,EAAE,EAAEM,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,IAAIA,KAAK,CAACQ,MAAM,KAAK,CAAC,CAAC,CAAC,CAACC,KAAK,CAACN,OAAO,CAAC;IAC1H,OAAOE,QAAQ,GAAG;MAChB,GAAGP,GAAG;MACN,GAAGP,OAAO,CAACS,KAAK,EAAEC,OAAO,EAAEP,SAAS;IACtC,CAAC,GAAG;MACF,GAAGI,GAAG;MACN,CAACG,OAAO,GAAGD;IACb,CAAC;EACH,CAAC,EAAG,CAAC,CAAO,CAAC;AACf;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASU,iBAAiBA,CAACC,GAAQ,EAAEC,QAAc,EAAEC,IAAS,GAAG,CAAC,CAAC,EAExE;EACA,KAAK,MAAMd,GAAG,IAAIY,GAAG,EAAE;IACrB,MAAMX,KAAK,GAAGW,GAAG,CAACZ,GAAG,CAAC;IACtB,MAAMe,MAAM,GAAGF,QAAQ,GAAGA,QAAQ,GAAG,GAAG,GAAGb,GAAG,GAAGA,GAAG;IACpD,IAAIC,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACM,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,IAAI,CAACL,MAAM,CAACC,IAAI,CAACI,KAAK,CAAC,CAACe,IAAI,CAACC,IAAI,IAAIA,IAAI,CAACC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE;MACzHP,iBAAiB,CAACV,KAAK,EAAEc,MAAM,EAAED,IAAI,CAAC;IACxC,CAAC,MAAM;MACLA,IAAI,CAACC,MAAM,CAAC,GAAGd,KAAK;IACtB;EACF;EACA,OAAOa,IAAI;AACb"}
|
|
1
|
+
{"version":3,"names":["flatten","object","path","separator","Object","keys","reduce","acc","key","value","newPath","filter","Boolean","join","isObject","Array","isArray","length","every","flattenMongoQuery","obj","_current","_res","newKey","find","item","startsWith","unflatten","result","parts","split","current","i","part"],"sourceRoot":"../../../../src","sources":["helpers/flatten.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,OAAOA,CAAgCC,MAAS,EAAEC,IAAmB,GAAG,IAAI,EAAEC,SAAS,GAAG,GAAG,EAAK;EAChH,OAAOC,MAAM,CAACC,IAAI,CAACJ,MAAM,CAAC,CAACK,MAAM,CAAC,CAACC,GAAM,EAAEC,GAAW,KAAQ;IAC5D,MAA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Gd,KAAK;IACtB;EACF;EACA,OAAOa,IAAI;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASK,SAASA,CAACP,GAAQ,EAAO;EACvC,MAAMQ,MAAW,GAAG,CAAC,CAAC;EACtB,KAAK,MAAMpB,GAAG,IAAIY,GAAG,EAAE;IACrB,MAAMS,KAAK,GAAGrB,GAAG,CAACsB,KAAK,CAAC,GAAG,CAAC;IAC5B,IAAIC,OAAO,GAAGH,MAAM;IACpB,KAAK,IAAII,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,KAAK,CAACZ,MAAM,EAAEe,CAAC,EAAE,EAAE;MACrC,MAAMC,IAAI,GAAGJ,KAAK,CAACG,CAAC,CAAC;MACrB,IAAIA,CAAC,KAAKH,KAAK,CAACZ,MAAM,GAAG,CAAC,EAAE;QAC1Bc,OAAO,CAACE,IAAI,CAAC,GAAGb,GAAG,CAACZ,GAAG,CAAC;MAC1B,CAAC,MAAM;QACLuB,OAAO,CAACE,IAAI,CAAC,GAAGF,OAAO,CAACE,IAAI,CAAC,IAAI,CAAC,CAAC;QACnCF,OAAO,GAAGA,OAAO,CAACE,IAAI,CAAC;MACzB;IACF;EACF;EACA,OAAOL,MAAM;AACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-info.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/image/component-info.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"component-info.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/image/component-info.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,eAAO,MAAM,aAAa,EAAE,aAkI3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/text/text.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../../src/blocks/text/text.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuF/B;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,KAAA,qBAYjC"}
|
|
@@ -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;AAgB/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;AAEF,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAkB9D,iBAAS,KAAK,CAAC,KAAK,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../src/components/block/block.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/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;AAEF,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAkB9D,iBAAS,KAAK,CAAC,KAAK,EAAE,UAAU,qBAuM/B;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { BuilderContextInterface, RegisteredComponent, RegisteredComponents } from '../../context/types';
|
|
2
2
|
import type { BuilderBlock } from '../../types/builder-block';
|
|
3
3
|
import type { RepeatData } from './types';
|
|
4
|
-
export declare const getComponent: ({ block, registeredComponents }: {
|
|
4
|
+
export declare const getComponent: ({ block, registeredComponents, model }: {
|
|
5
5
|
block: BuilderBlock;
|
|
6
6
|
registeredComponents: RegisteredComponents;
|
|
7
|
+
model: string;
|
|
7
8
|
}) => RegisteredComponent;
|
|
8
9
|
export declare const getRepeatItemData: ({ block, context }: {
|
|
9
10
|
block: BuilderBlock;
|
|
@@ -18,8 +19,10 @@ export declare const provideLinkComponent: (block: RegisteredComponent | null |
|
|
|
18
19
|
} | {
|
|
19
20
|
builderLinkComponent?: undefined;
|
|
20
21
|
};
|
|
21
|
-
export declare const provideRegisteredComponents: (block: RegisteredComponent | null | undefined, registeredComponents: RegisteredComponents) => {
|
|
22
|
-
builderComponents:
|
|
22
|
+
export declare const provideRegisteredComponents: (block: RegisteredComponent | null | undefined, registeredComponents: RegisteredComponents, model: string) => {
|
|
23
|
+
builderComponents: {
|
|
24
|
+
[k: string]: RegisteredComponent;
|
|
25
|
+
};
|
|
23
26
|
} | {
|
|
24
27
|
builderComponents?: undefined;
|
|
25
28
|
};
|
|
@@ -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,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAI9G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,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,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAI9G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAM1C,eAAO,MAAM,YAAY;WAKhB,YAAY;0BACG,oBAAoB;WACnC,MAAM;yBAgBd,CAAC;AACF,eAAO,MAAM,iBAAiB;WAIrB,YAAY;aACV,uBAAuB;MAC9B,UAAU,EAAE,GAAG,SAsClB,CAAC;AACF,eAAO,MAAM,kBAAkB;WAItB,YAAY;aACV,uBAAuB;kCAUjC,CAAC;AACF,eAAO,MAAM,oBAAoB,UAAW,mBAAmB,GAAG,IAAI,GAAG,SAAS,iBAAiB,GAAG;;;;CAKrG,CAAC;AACF,eAAO,MAAM,2BAA2B,UAAW,mBAAmB,GAAG,IAAI,GAAG,SAAS,wBAAwB,oBAAoB,SAAS,MAAM;;;;;;CAUnJ,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAW,mBAAmB,GAAG,IAAI,GAAG,SAAS,gBAAgB,YAAY;;;;CAK5G,CAAC;AACF,eAAO,MAAM,qBAAqB,UAAW,mBAAmB,GAAG,IAAI,GAAG,SAAS,WAAW,uBAAuB;;;;CAKpH,CAAA"}
|
|
@@ -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;AAgB/B,KAAK,kBAAkB,GAAG,IAAI,CAC5B,YAAY,EACV,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,eAAe,CAClB,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,wBAAwB,CAAC;AAuBtE,OAAO,KAAK,EAEV,YAAY,EACb,MAAM,kBAAkB,CAAC;
|
|
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;AAgB/B,KAAK,kBAAkB,GAAG,IAAI,CAC5B,YAAY,EACV,kBAAkB,GAClB,YAAY,GACZ,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,eAAe,CAClB,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,wBAAwB,CAAC;AAuBtE,OAAO,KAAK,EAEV,YAAY,EACb,MAAM,kBAAkB,CAAC;AAI1B,iBAAS,YAAY,CAAC,KAAK,EAAE,kBAAkB,qBAua9C;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Target } from '../../../types/targets';
|
|
2
|
+
/**
|
|
3
|
+
* SDKS that use the elementRef approach to enable visual editing.
|
|
4
|
+
* We don't need to render the div for other SDKs as they attach event listeners to the window.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SDKS_USING_ELEMENT_REF_APPROACH: Target[];
|
|
7
|
+
/**
|
|
8
|
+
* We need to attach this div only when content exists or isPreviewing/isEditing even when content is null,
|
|
9
|
+
* as we need to set the elementRef and allow previewing and visual editing
|
|
10
|
+
*/
|
|
11
|
+
export declare const needsElementRefDivForEditing: () => boolean;
|
|
12
|
+
//# sourceMappingURL=enable-editor.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enable-editor.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/components/content/components/enable-editor.helpers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,+BAA+B,UAA0C,CAAC;AAEvF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,eAExC,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;AAsC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,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;AAsC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,YAAY,qBAwJ5C;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-types.d.ts","sourceRoot":"","sources":["../../../../src/constants/file-types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,UAA2L,CAAC;AACzN,eAAO,MAAM,gBAAgB,UAAsR,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.0.
|
|
1
|
+
export declare const SDK_VERSION = "3.0.2";
|
|
2
2
|
//# sourceMappingURL=sdk-version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.context.d.ts","sourceRoot":"","sources":["../../../../src/context/builder.context.ts"],"names":[],"mappings":";;AAEA,
|
|
1
|
+
{"version":3,"file":"builder.context.d.ts","sourceRoot":"","sources":["../../../../src/context/builder.context.ts"],"names":[],"mappings":";;AAEA,wBAcG"}
|
|
@@ -36,6 +36,7 @@ export interface BuilderContextInterface extends Pick<BlocksWrapperProps, 'Block
|
|
|
36
36
|
componentInfos: Dictionary<ComponentInfo>;
|
|
37
37
|
inheritedStyles: Record<string, unknown>;
|
|
38
38
|
nonce: string;
|
|
39
|
+
model: string;
|
|
39
40
|
canTrack?: boolean;
|
|
40
41
|
}
|
|
41
42
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/context/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD,SAAS,EAAE,kBAAkB,CAAC;CAC/B,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACzD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3D,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,eAAe,GAAG,oBAAoB,CAAC,EAAE,iBAA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,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACzD,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3D,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,eAAe,GAAG,oBAAoB,CAAC,EAAE,iBAAiB;IAClI,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IAClC,OAAO,EAAE,oBAAoB,CAAC;IAC9B;;;;OAIG;IACH,SAAS,EAAE,kBAAkB,CAAC;IAC9B;;;OAGG;IACH,YAAY,EAAE,CAAC,CAAC,SAAS,EAAE,kBAAkB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACpE;;;;OAIG;IACH,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC3C,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC;IACnC,cAAc,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;IAE1C,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-localized-values.d.ts","sourceRoot":"","sources":["../../../../src/functions/extract-localized-values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AA6B3D,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,gBAQrF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from '../context/types';
|
|
1
2
|
import type { BuilderBlock } from '../types/builder-block';
|
|
2
|
-
export declare function getBlockComponentOptions(block: BuilderBlock): any;
|
|
3
|
+
export declare function getBlockComponentOptions(block: BuilderBlock, context: Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'>): any;
|
|
3
4
|
//# sourceMappingURL=get-block-component-options.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-block-component-options.d.ts","sourceRoot":"","sources":["../../../../src/functions/get-block-component-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-block-component-options.d.ts","sourceRoot":"","sources":["../../../../src/functions/get-block-component-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,CAAC,uBAAuB,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,CAAC,OAM5J"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-content-url.d.ts","sourceRoot":"","sources":["../../../../../src/functions/get-content/generate-content-url.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate-content-url.d.ts","sourceRoot":"","sources":["../../../../../src/functions/get-content/generate-content-url.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,kBAAkB,YAAa,iBAAiB,KAAG,GA+F/D,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import type { BuilderContextInterface } from '../context/types';
|
|
2
2
|
import type { BuilderBlock } from '../types/builder-block';
|
|
3
3
|
export declare function deepCloneWithConditions<T = any>(obj: T): T;
|
|
4
|
-
export declare function getProcessedBlock({ block, context,
|
|
4
|
+
export declare function getProcessedBlock({ block, context, localState, rootState, rootSetState }: {
|
|
5
5
|
block: BuilderBlock;
|
|
6
|
-
/**
|
|
7
|
-
* In some cases, we want to avoid evaluating bindings and only want framework-specific block transformation. It is
|
|
8
|
-
* also sometimes too early to consider bindings, e.g. when we might be looking at a repeated block.
|
|
9
|
-
*/
|
|
10
|
-
shouldEvaluateBindings: boolean;
|
|
11
6
|
} & Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'>): BuilderBlock;
|
|
12
7
|
//# sourceMappingURL=get-processed-block.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-processed-block.d.ts","sourceRoot":"","sources":["../../../../src/functions/get-processed-block.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-processed-block.d.ts","sourceRoot":"","sources":["../../../../src/functions/get-processed-block.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAQ3D,wBAAgB,uBAAuB,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAiB1D;AAwDD,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,OAAO,EACP,UAAU,EACV,SAAS,EACT,YAAY,EACb,EAAE;IACD,KAAK,EAAE,YAAY,CAAC;CACrB,GAAG,IAAI,CAAC,uBAAuB,EAAE,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,CAAC,GAAG,YAAY,CAUxG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-component.d.ts","sourceRoot":"","sources":["../../../../src/functions/register-component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,eAAO,MAAM,8BAA8B,SAAU,aAAa;;;CAGhE,CAAC;
|
|
1
|
+
{"version":3,"file":"register-component.d.ts","sourceRoot":"","sources":["../../../../src/functions/register-component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,eAAO,MAAM,8BAA8B,SAAU,aAAa;;;CAGhE,CAAC;AAkBH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,aAAa,OAO9D"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type TraverseCallback = (value: any, update: (newValue: any) => void) => void;
|
|
2
|
+
/**
|
|
3
|
+
* Recursively traverses an object or array, invoking a callback on each value.
|
|
4
|
+
*
|
|
5
|
+
* @param {any} obj - The object or array to traverse. Can also handle primitives, null, or undefined.
|
|
6
|
+
* @param {TraverseCallback} callback - The function to invoke on each value. Receives the current value
|
|
7
|
+
* and an `update` function to modify the value in its parent container.
|
|
8
|
+
* @param {any} [parent=null] - The parent object or array of the current value. Used internally.
|
|
9
|
+
* @param {any} [key=null] - The key or index of the current value in its parent. Used internally.
|
|
10
|
+
* @param {WeakSet} [visited=new WeakSet()] - Tracks visited objects to handle circular references. Used internally.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // Example: Doubling all numbers in an object
|
|
14
|
+
* const obj = { a: 1, b: [2, 3, { c: 4 }] };
|
|
15
|
+
* traverse(obj, (value, update) => {
|
|
16
|
+
* if (typeof value === 'number') {
|
|
17
|
+
* update(value * 2);
|
|
18
|
+
* }
|
|
19
|
+
* });
|
|
20
|
+
* console.log(obj); // { a: 2, b: [4, 6, { c: 8 }] }
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // Example: Handling circular references
|
|
24
|
+
* const obj = { a: 1 };
|
|
25
|
+
* obj.self = obj;
|
|
26
|
+
* traverse(obj, (value, update) => {
|
|
27
|
+
* if (typeof value === 'number') {
|
|
28
|
+
* update(value * 2);
|
|
29
|
+
* }
|
|
30
|
+
* });
|
|
31
|
+
* console.log(obj.a); // 2
|
|
32
|
+
*/
|
|
33
|
+
export declare function traverse(obj: any, callback: TraverseCallback, parent?: any, key?: any, visited?: WeakSet<object>): void;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=traverse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traverse.d.ts","sourceRoot":"","sources":["../../../../src/functions/traverse.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,KAAK,IAAI,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,GAAE,GAAU,EAAE,GAAG,GAAE,GAAU,EAAE,OAAO,kBAAgB,GAAG,IAAI,CA8BjI"}
|
|
@@ -14,4 +14,10 @@ export declare function flatten<T extends Record<string, any>>(object: T, path?:
|
|
|
14
14
|
export declare function flattenMongoQuery(obj: any, _current?: any, _res?: any): {
|
|
15
15
|
[key: string]: string;
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Unflatten a flat object with dot-separated keys back into a nested object.
|
|
19
|
+
*
|
|
20
|
+
* { 'foo.bar': 'baz' } -> { foo: { bar: 'baz' }}
|
|
21
|
+
*/
|
|
22
|
+
export declare function unflatten(obj: any): any;
|
|
17
23
|
//# sourceMappingURL=flatten.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../../../src/helpers/flatten.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,GAAE,MAAM,GAAG,IAAW,EAAE,SAAS,SAAM,GAAG,CAAC,CAahH;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,IAAI,GAAE,GAAQ,GAAG;IAC3E,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAWA"}
|
|
1
|
+
{"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../../../src/helpers/flatten.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,GAAE,MAAM,GAAG,IAAW,EAAE,SAAS,SAAM,GAAG,CAAC,CAahH;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,IAAI,GAAE,GAAQ,GAAG;IAC3E,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAWA;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAgBvC"}
|
|
@@ -15,7 +15,7 @@ export type { ContentVariantsPrps as ContentProps } from './components/content-v
|
|
|
15
15
|
/**
|
|
16
16
|
* General Builder types
|
|
17
17
|
*/
|
|
18
|
-
export type { RegisteredComponent } from './context/types';
|
|
18
|
+
export type { BuilderContextInterface, RegisteredComponent, RegisteredComponents } from './context/types';
|
|
19
19
|
export type { BuilderBlock } from './types/builder-block';
|
|
20
20
|
export type { BuilderContent } from './types/builder-content';
|
|
21
21
|
export type { ComponentInfo } from './types/components';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-index.d.ts","sourceRoot":"","sources":["../../../src/server-index.ts"],"names":[],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xC,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,yBAAyB,CAAC,EAAE;QAC1B;;;;WAIG;QACH,YAAY,CAAC,EAAE,OAAO,CAAC;QAEvB;;;;;;WAMG;QACH,cAAc,CAAC,EAAE,OAAO,CAAC;QAEzB;;;;WAIG;QACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAE5B;;;;WAIG;QACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;IACF,IAAI,CAAC,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AACD,KAAK,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,GAAG,OAAO,GAAG,QAAQ,CAAA"}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.componentInfo = void 0;
|
|
7
|
+
var _fileTypes = require("../../constants/file-types");
|
|
7
8
|
const componentInfo = exports.componentInfo = {
|
|
8
9
|
name: 'Image',
|
|
9
10
|
static: true,
|
|
@@ -19,7 +20,7 @@ const componentInfo = exports.componentInfo = {
|
|
|
19
20
|
name: 'image',
|
|
20
21
|
type: 'file',
|
|
21
22
|
bubble: true,
|
|
22
|
-
allowedFileTypes:
|
|
23
|
+
allowedFileTypes: _fileTypes.IMAGE_FILE_TYPES,
|
|
23
24
|
required: true,
|
|
24
25
|
defaultValue: 'https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a',
|
|
25
26
|
onChange: options => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["componentInfo","exports","name","static","image","defaultStyles","position","minHeight","minWidth","overflow","canHaveChildren","inputs","type","bubble","allowedFileTypes","required","defaultValue","onChange","options","DEFAULT_ASPECT_RATIO","delete","loadImage","url","timeout","Promise","resolve","reject","img","document","createElement","loaded","onload","addEventListener","event","console","warn","error","src","setTimeout","Error","round","num","Math","value","get","aspectRatio","fetch","then","res","blob","includes","set","possiblyUpdatedAspectRatio","width","height","enum","label","helperText","hideFromUI","advanced","shouldReceiveBuilderProps","builderBlock"],"sourceRoot":"../../../../../src","sources":["blocks/image/component-info.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["_fileTypes","require","componentInfo","exports","name","static","image","defaultStyles","position","minHeight","minWidth","overflow","canHaveChildren","inputs","type","bubble","allowedFileTypes","IMAGE_FILE_TYPES","required","defaultValue","onChange","options","DEFAULT_ASPECT_RATIO","delete","loadImage","url","timeout","Promise","resolve","reject","img","document","createElement","loaded","onload","addEventListener","event","console","warn","error","src","setTimeout","Error","round","num","Math","value","get","aspectRatio","fetch","then","res","blob","includes","set","possiblyUpdatedAspectRatio","width","height","enum","label","helperText","hideFromUI","advanced","shouldReceiveBuilderProps","builderBlock"],"sourceRoot":"../../../../../src","sources":["blocks/image/component-info.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEO,MAAMC,aAA4B,GAAAC,OAAA,CAAAD,aAAA,GAAG;EAC1CE,IAAI,EAAE,OAAO;EACbC,MAAM,EAAE,IAAI;EACZC,KAAK,EAAE,sKAAsK;EAC7KC,aAAa,EAAE;IACbC,QAAQ,EAAE,UAAU;IACpBC,SAAS,EAAE,MAAM;IACjBC,QAAQ,EAAE,MAAM;IAChBC,QAAQ,EAAE;EACZ,CAAC;EACDC,eAAe,EAAE,IAAI;EACrBC,MAAM,EAAE,CAAC;IACPT,IAAI,EAAE,OAAO;IACbU,IAAI,EAAE,MAAM;IACZC,MAAM,EAAE,IAAI;IACZC,gBAAgB,EAAEC,2BAAgB;IAClCC,QAAQ,EAAE,IAAI;IACdC,YAAY,EAAE,sGAAsG;IACpHC,QAAQ,EAAGC,OAAyB,IAA2B;MAC7D,MAAM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
|
|
6
6
|
exports.componentInfo = void 0;
|
|
7
|
+
var _fileTypes = require("../../constants/file-types");
|
|
7
8
|
const componentInfo = exports.componentInfo = {
|
|
8
9
|
// friendlyName?
|
|
9
10
|
name: 'Raw:Img',
|
|
@@ -13,7 +14,7 @@ const componentInfo = exports.componentInfo = {
|
|
|
13
14
|
name: 'image',
|
|
14
15
|
bubble: true,
|
|
15
16
|
type: 'file',
|
|
16
|
-
allowedFileTypes:
|
|
17
|
+
allowedFileTypes: _fileTypes.IMAGE_FILE_TYPES,
|
|
17
18
|
required: true
|
|
18
19
|
}],
|
|
19
20
|
noWrap: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["componentInfo","exports","name","hideFromInsertMenu","image","inputs","bubble","type","allowedFileTypes","required","noWrap","static"],"sourceRoot":"../../../../../src","sources":["blocks/img/component-info.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["_fileTypes","require","componentInfo","exports","name","hideFromInsertMenu","image","inputs","bubble","type","allowedFileTypes","IMAGE_FILE_TYPES","required","noWrap","static"],"sourceRoot":"../../../../../src","sources":["blocks/img/component-info.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEO,MAAMC,aAA4B,GAAAC,OAAA,CAAAD,aAAA,GAAG;EAC1C;EACAE,IAAI,EAAE,SAAS;EACfC,kBAAkB,EAAE,IAAI;EACxBC,KAAK,EAAE,sKAAsK;EAC7KC,MAAM,EAAE,CAAC;IACPH,IAAI,EAAE,OAAO;IACbI,MAAM,EAAE,IAAI;IACZC,IAAI,EAAE,MAAM;IACZC,gBAAgB,EAAEC,2BAAgB;IAClCC,QAAQ,EAAE;EACZ,CAAC,CAAC;EACFC,MAAM,EAAE,IAAI;EACZC,MAAM,EAAE;AACV,CAAC"}
|