@builder.io/sdk-vue 0.5.9 → 0.6.1-0
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/README.md +0 -4
- package/package.json +145 -22
- package/vue2/css/package.json +4 -0
- package/vue2/node_modules/@types/node/LICENSE +21 -0
- package/vue2/node_modules/@types/node/README.md +16 -0
- package/vue2/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/vue2/node_modules/@types/node/assert.d.ts +962 -0
- package/vue2/node_modules/@types/node/async_hooks.d.ts +497 -0
- package/vue2/node_modules/@types/node/buffer.d.ts +2236 -0
- package/vue2/node_modules/@types/node/child_process.d.ts +1396 -0
- package/vue2/node_modules/@types/node/cluster.d.ts +414 -0
- package/vue2/node_modules/@types/node/console.d.ts +412 -0
- package/vue2/node_modules/@types/node/constants.d.ts +18 -0
- package/vue2/node_modules/@types/node/crypto.d.ts +3869 -0
- package/vue2/node_modules/@types/node/dgram.d.ts +545 -0
- package/vue2/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- package/vue2/node_modules/@types/node/dns/promises.d.ts +369 -0
- package/vue2/node_modules/@types/node/dns.d.ts +655 -0
- package/vue2/node_modules/@types/node/domain.d.ts +170 -0
- package/vue2/node_modules/@types/node/events.d.ts +641 -0
- package/vue2/node_modules/@types/node/fs/promises.d.ts +1094 -0
- package/vue2/node_modules/@types/node/fs.d.ts +3803 -0
- package/vue2/node_modules/@types/node/globals.d.ts +287 -0
- package/vue2/node_modules/@types/node/globals.global.d.ts +1 -0
- package/vue2/node_modules/@types/node/http.d.ts +1504 -0
- package/vue2/node_modules/@types/node/http2.d.ts +2100 -0
- package/vue2/node_modules/@types/node/https.d.ts +532 -0
- package/vue2/node_modules/@types/node/index.d.ts +131 -0
- package/vue2/node_modules/@types/node/inspector.d.ts +2745 -0
- package/vue2/node_modules/@types/node/module.d.ts +115 -0
- package/vue2/node_modules/@types/node/net.d.ts +828 -0
- package/vue2/node_modules/@types/node/os.d.ts +455 -0
- package/vue2/node_modules/@types/node/package.json +232 -0
- package/vue2/node_modules/@types/node/path.d.ts +191 -0
- package/vue2/node_modules/@types/node/perf_hooks.d.ts +586 -0
- package/vue2/node_modules/@types/node/process.d.ts +1481 -0
- package/vue2/node_modules/@types/node/punycode.d.ts +117 -0
- package/vue2/node_modules/@types/node/querystring.d.ts +131 -0
- package/vue2/node_modules/@types/node/readline.d.ts +543 -0
- package/vue2/node_modules/@types/node/repl.d.ts +424 -0
- package/vue2/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/vue2/node_modules/@types/node/stream/promises.d.ts +42 -0
- package/vue2/node_modules/@types/node/stream/web.d.ts +392 -0
- package/vue2/node_modules/@types/node/stream.d.ts +1363 -0
- package/vue2/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/vue2/node_modules/@types/node/test.d.ts +190 -0
- package/vue2/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/vue2/node_modules/@types/node/timers.d.ts +94 -0
- package/vue2/node_modules/@types/node/tls.d.ts +1019 -0
- package/vue2/node_modules/@types/node/trace_events.d.ts +161 -0
- package/vue2/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/vue2/node_modules/@types/node/ts4.8/assert.d.ts +962 -0
- package/vue2/node_modules/@types/node/ts4.8/async_hooks.d.ts +497 -0
- package/vue2/node_modules/@types/node/ts4.8/buffer.d.ts +2236 -0
- package/vue2/node_modules/@types/node/ts4.8/child_process.d.ts +1396 -0
- package/vue2/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
- package/vue2/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/vue2/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/vue2/node_modules/@types/node/ts4.8/crypto.d.ts +3866 -0
- package/vue2/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/vue2/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/vue2/node_modules/@types/node/ts4.8/dns/promises.d.ts +368 -0
- package/vue2/node_modules/@types/node/ts4.8/dns.d.ts +654 -0
- package/vue2/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/vue2/node_modules/@types/node/ts4.8/events.d.ts +641 -0
- package/vue2/node_modules/@types/node/ts4.8/fs/promises.d.ts +1094 -0
- package/vue2/node_modules/@types/node/ts4.8/fs.d.ts +3802 -0
- package/vue2/node_modules/@types/node/ts4.8/globals.d.ts +284 -0
- package/vue2/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/vue2/node_modules/@types/node/ts4.8/http.d.ts +1503 -0
- package/vue2/node_modules/@types/node/ts4.8/http2.d.ts +2100 -0
- package/vue2/node_modules/@types/node/ts4.8/https.d.ts +532 -0
- package/vue2/node_modules/@types/node/ts4.8/index.d.ts +86 -0
- package/vue2/node_modules/@types/node/ts4.8/inspector.d.ts +2745 -0
- package/vue2/node_modules/@types/node/ts4.8/module.d.ts +115 -0
- package/vue2/node_modules/@types/node/ts4.8/net.d.ts +828 -0
- package/vue2/node_modules/@types/node/ts4.8/os.d.ts +456 -0
- package/vue2/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/vue2/node_modules/@types/node/ts4.8/perf_hooks.d.ts +586 -0
- package/vue2/node_modules/@types/node/ts4.8/process.d.ts +1481 -0
- package/vue2/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/vue2/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/vue2/node_modules/@types/node/ts4.8/readline.d.ts +543 -0
- package/vue2/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/vue2/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/vue2/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/vue2/node_modules/@types/node/ts4.8/stream/web.d.ts +392 -0
- package/vue2/node_modules/@types/node/ts4.8/stream.d.ts +1363 -0
- package/vue2/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/vue2/node_modules/@types/node/ts4.8/test.d.ts +190 -0
- package/vue2/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/vue2/node_modules/@types/node/ts4.8/timers.d.ts +94 -0
- package/vue2/node_modules/@types/node/ts4.8/tls.d.ts +1019 -0
- package/vue2/node_modules/@types/node/ts4.8/trace_events.d.ts +161 -0
- package/vue2/node_modules/@types/node/ts4.8/tty.d.ts +204 -0
- package/vue2/node_modules/@types/node/ts4.8/url.d.ts +855 -0
- package/vue2/node_modules/@types/node/ts4.8/util.d.ts +1594 -0
- package/vue2/node_modules/@types/node/ts4.8/v8.d.ts +472 -0
- package/vue2/node_modules/@types/node/ts4.8/vm.d.ts +507 -0
- package/vue2/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/vue2/node_modules/@types/node/ts4.8/worker_threads.d.ts +649 -0
- package/vue2/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/vue2/node_modules/@types/node/tty.d.ts +204 -0
- package/vue2/node_modules/@types/node/url.d.ts +855 -0
- package/vue2/node_modules/@types/node/util.d.ts +1594 -0
- package/vue2/node_modules/@types/node/v8.d.ts +472 -0
- package/vue2/node_modules/@types/node/vm.d.ts +507 -0
- package/vue2/node_modules/@types/node/wasi.d.ts +158 -0
- package/vue2/node_modules/@types/node/worker_threads.d.ts +649 -0
- package/vue2/node_modules/@types/node/zlib.d.ts +517 -0
- package/vue2/node_modules/@vitejs/plugin-vue2/LICENSE +21 -0
- package/vue2/node_modules/@vitejs/plugin-vue2/README.md +115 -0
- package/vue2/node_modules/@vitejs/plugin-vue2/package.json +65 -0
- package/vue2/node_modules/@vue/compiler-sfc/LICENSE +21 -0
- package/vue2/node_modules/@vue/compiler-sfc/package.json +34 -0
- package/vue2/node_modules/@vue/tsconfig/README.md +31 -0
- package/vue2/node_modules/@vue/tsconfig/package.json +35 -0
- package/vue2/node_modules/@vue/tsconfig/tsconfig.json +40 -0
- package/vue2/node_modules/@vue/tsconfig/tsconfig.node.json +17 -0
- package/vue2/node_modules/@vue/tsconfig/tsconfig.web.json +19 -0
- package/vue2/node_modules/rollup/LICENSE.md +695 -0
- package/vue2/node_modules/rollup/README.md +125 -0
- package/vue2/node_modules/rollup/package.json +178 -0
- package/vue2/node_modules/vite/LICENSE.md +3396 -0
- package/vue2/node_modules/vite/README.md +20 -0
- package/vue2/node_modules/vite/bin/openChrome.applescript +95 -0
- package/vue2/node_modules/vite/bin/vite.js +61 -0
- package/vue2/node_modules/vite/client.d.ts +281 -0
- package/vue2/node_modules/vite/index.cjs +34 -0
- package/vue2/node_modules/vite/package.json +170 -0
- package/vue2/node_modules/vite-plugin-dts/LICENSE +21 -0
- package/vue2/node_modules/vite-plugin-dts/README.md +368 -0
- package/vue2/node_modules/vite-plugin-dts/README.zh-CN.md +368 -0
- package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/LICENSE +21 -0
- package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/README.md +36 -0
- package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/bin/vue-tsc.js +67 -0
- package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/index.d.ts +16 -0
- package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/index.js +120 -0
- package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/shared.d.ts +8 -0
- package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/shared.js +5 -0
- package/vue2/node_modules/vite-plugin-dts/node_modules/vue-tsc/package.json +28 -0
- package/vue2/node_modules/vite-plugin-dts/package.json +103 -0
- package/vue2/node_modules/vue/LICENSE +21 -0
- package/vue2/node_modules/vue/README.md +118 -0
- package/vue2/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/vue2/node_modules/vue/compiler-sfc/index.js +1 -0
- package/vue2/node_modules/vue/compiler-sfc/index.mjs +1 -0
- package/vue2/node_modules/vue/compiler-sfc/package.json +5 -0
- package/vue2/node_modules/vue/package.json +132 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/api-extractor.json +64 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/node_modules/.bin/lessc +17 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/node_modules/.bin/parser +17 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/node_modules/.bin/sass +17 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/node_modules/.bin/stylus +17 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/package.json +34 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/babelUtils.ts +423 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/compileScript.ts +1911 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/compileStyle.ts +147 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/compileTemplate.ts +205 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/cssVars.ts +179 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/index.ts +31 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/parse.ts +129 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/parseComponent.ts +220 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/prefixIdentifiers.ts +82 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/rewriteDefault.ts +115 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/stylePlugins/scoped.ts +203 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/stylePlugins/trim.ts +18 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/stylePreprocessors.ts +135 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/templateCompilerModules/assetUrl.ts +84 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/templateCompilerModules/srcset.ts +76 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/templateCompilerModules/utils.ts +86 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/types.ts +69 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/src/warn.ts +16 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/__snapshots__/compileScript.spec.ts.snap +925 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/__snapshots__/cssVars.spec.ts.snap +189 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/compileScript.spec.ts +1594 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/compileStyle.spec.ts +203 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/compileTemplate.spec.ts +258 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/cssVars.spec.ts +247 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/parseComponent.spec.ts +269 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/prefixIdentifiers.spec.ts +97 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/rewriteDefault.spec.ts +245 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/stylePluginScoped.spec.ts +137 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/tsconfig.json +7 -0
- package/vue2/node_modules/vue/packages/compiler-sfc/test/util.ts +35 -0
- package/vue2/node_modules/vue/src/compiler/codeframe.ts +52 -0
- package/vue2/node_modules/vue/src/compiler/codegen/events.ts +170 -0
- package/vue2/node_modules/vue/src/compiler/codegen/index.ts +668 -0
- package/vue2/node_modules/vue/src/compiler/create-compiler.ts +83 -0
- package/vue2/node_modules/vue/src/compiler/directives/bind.ts +9 -0
- package/vue2/node_modules/vue/src/compiler/directives/index.ts +9 -0
- package/vue2/node_modules/vue/src/compiler/directives/model.ts +145 -0
- package/vue2/node_modules/vue/src/compiler/directives/on.ts +9 -0
- package/vue2/node_modules/vue/src/compiler/error-detector.ts +158 -0
- package/vue2/node_modules/vue/src/compiler/helpers.ts +243 -0
- package/vue2/node_modules/vue/src/compiler/index.ts +24 -0
- package/vue2/node_modules/vue/src/compiler/optimizer.ts +135 -0
- package/vue2/node_modules/vue/src/compiler/parser/entity-decoder.ts +9 -0
- package/vue2/node_modules/vue/src/compiler/parser/filter-parser.ts +116 -0
- package/vue2/node_modules/vue/src/compiler/parser/html-parser.ts +341 -0
- package/vue2/node_modules/vue/src/compiler/parser/index.ts +999 -0
- package/vue2/node_modules/vue/src/compiler/parser/text-parser.ts +52 -0
- package/vue2/node_modules/vue/src/compiler/to-function.ts +119 -0
- package/vue2/node_modules/vue/src/core/components/index.ts +5 -0
- package/vue2/node_modules/vue/src/core/components/keep-alive.ts +165 -0
- package/vue2/node_modules/vue/src/core/config.ts +128 -0
- package/vue2/node_modules/vue/src/core/global-api/assets.ts +35 -0
- package/vue2/node_modules/vue/src/core/global-api/extend.ts +94 -0
- package/vue2/node_modules/vue/src/core/global-api/index.ts +68 -0
- package/vue2/node_modules/vue/src/core/global-api/mixin.ts +9 -0
- package/vue2/node_modules/vue/src/core/global-api/use.ts +23 -0
- package/vue2/node_modules/vue/src/core/index.ts +27 -0
- package/vue2/node_modules/vue/src/core/instance/events.ts +160 -0
- package/vue2/node_modules/vue/src/core/instance/index.ts +27 -0
- package/vue2/node_modules/vue/src/core/instance/init.ts +140 -0
- package/vue2/node_modules/vue/src/core/instance/inject.ts +80 -0
- package/vue2/node_modules/vue/src/core/instance/lifecycle.ts +415 -0
- package/vue2/node_modules/vue/src/core/instance/proxy.ts +97 -0
- package/vue2/node_modules/vue/src/core/instance/render-helpers/bind-dynamic-keys.ts +36 -0
- package/vue2/node_modules/vue/src/core/instance/render-helpers/bind-object-listeners.ts +18 -0
- package/vue2/node_modules/vue/src/core/instance/render-helpers/bind-object-props.ts +59 -0
- package/vue2/node_modules/vue/src/core/instance/render-helpers/check-keycodes.ts +33 -0
- package/vue2/node_modules/vue/src/core/instance/render-helpers/index.ts +31 -0
- package/vue2/node_modules/vue/src/core/instance/render-helpers/render-list.ts +49 -0
- package/vue2/node_modules/vue/src/core/instance/render-helpers/render-slot.ts +39 -0
- package/vue2/node_modules/vue/src/core/instance/render-helpers/render-static.ts +57 -0
- package/vue2/node_modules/vue/src/core/instance/render-helpers/resolve-filter.ts +8 -0
- package/vue2/node_modules/vue/src/core/instance/render-helpers/resolve-scoped-slots.ts +30 -0
- package/vue2/node_modules/vue/src/core/instance/render-helpers/resolve-slots.ts +51 -0
- package/vue2/node_modules/vue/src/core/instance/render.ts +173 -0
- package/vue2/node_modules/vue/src/core/instance/state.ts +387 -0
- package/vue2/node_modules/vue/src/core/observer/array.ts +54 -0
- package/vue2/node_modules/vue/src/core/observer/dep.ts +108 -0
- package/vue2/node_modules/vue/src/core/observer/index.ts +338 -0
- package/vue2/node_modules/vue/src/core/observer/scheduler.ts +199 -0
- package/vue2/node_modules/vue/src/core/observer/traverse.ts +47 -0
- package/vue2/node_modules/vue/src/core/observer/watcher.ts +278 -0
- package/vue2/node_modules/vue/src/core/util/debug.ts +105 -0
- package/vue2/node_modules/vue/src/core/util/env.ts +93 -0
- package/vue2/node_modules/vue/src/core/util/error.ts +81 -0
- package/vue2/node_modules/vue/src/core/util/index.ts +9 -0
- package/vue2/node_modules/vue/src/core/util/lang.ts +45 -0
- package/vue2/node_modules/vue/src/core/util/next-tick.ts +117 -0
- package/vue2/node_modules/vue/src/core/util/options.ts +489 -0
- package/vue2/node_modules/vue/src/core/util/perf.ts +28 -0
- package/vue2/node_modules/vue/src/core/util/props.ts +254 -0
- package/vue2/node_modules/vue/src/core/vdom/create-component.ts +275 -0
- package/vue2/node_modules/vue/src/core/vdom/create-element.ts +172 -0
- package/vue2/node_modules/vue/src/core/vdom/create-functional-component.ts +180 -0
- package/vue2/node_modules/vue/src/core/vdom/helpers/extract-props.ts +75 -0
- package/vue2/node_modules/vue/src/core/vdom/helpers/get-first-component-child.ts +16 -0
- package/vue2/node_modules/vue/src/core/vdom/helpers/index.ts +7 -0
- package/vue2/node_modules/vue/src/core/vdom/helpers/is-async-placeholder.ts +6 -0
- package/vue2/node_modules/vue/src/core/vdom/helpers/merge-hook.ts +40 -0
- package/vue2/node_modules/vue/src/core/vdom/helpers/normalize-children.ts +99 -0
- package/vue2/node_modules/vue/src/core/vdom/helpers/normalize-scoped-slots.ts +97 -0
- package/vue2/node_modules/vue/src/core/vdom/helpers/resolve-async-component.ts +157 -0
- package/vue2/node_modules/vue/src/core/vdom/helpers/update-listeners.ts +101 -0
- package/vue2/node_modules/vue/src/core/vdom/modules/directives.ts +137 -0
- package/vue2/node_modules/vue/src/core/vdom/modules/index.ts +4 -0
- package/vue2/node_modules/vue/src/core/vdom/modules/template-ref.ts +94 -0
- package/vue2/node_modules/vue/src/core/vdom/patch.ts +904 -0
- package/vue2/node_modules/vue/src/core/vdom/vnode.ts +119 -0
- package/vue2/node_modules/vue/src/global.d.ts +17 -0
- package/vue2/node_modules/vue/src/platforms/web/compiler/directives/html.ts +8 -0
- package/vue2/node_modules/vue/src/platforms/web/compiler/directives/index.ts +9 -0
- package/vue2/node_modules/vue/src/platforms/web/compiler/directives/model.ts +181 -0
- package/vue2/node_modules/vue/src/platforms/web/compiler/directives/text.ts +8 -0
- package/vue2/node_modules/vue/src/platforms/web/compiler/index.ts +6 -0
- package/vue2/node_modules/vue/src/platforms/web/compiler/modules/class.ts +44 -0
- package/vue2/node_modules/vue/src/platforms/web/compiler/modules/index.ts +5 -0
- package/vue2/node_modules/vue/src/platforms/web/compiler/modules/model.ts +89 -0
- package/vue2/node_modules/vue/src/platforms/web/compiler/modules/style.ts +47 -0
- package/vue2/node_modules/vue/src/platforms/web/compiler/options.ts +25 -0
- package/vue2/node_modules/vue/src/platforms/web/compiler/util.ts +22 -0
- package/vue2/node_modules/vue/src/platforms/web/entry-compiler.ts +4 -0
- package/vue2/node_modules/vue/src/platforms/web/entry-runtime-esm.ts +5 -0
- package/vue2/node_modules/vue/src/platforms/web/entry-runtime-with-compiler-esm.ts +5 -0
- package/vue2/node_modules/vue/src/platforms/web/entry-runtime-with-compiler.ts +10 -0
- package/vue2/node_modules/vue/src/platforms/web/entry-runtime.ts +7 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/class-util.ts +61 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/components/index.ts +7 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/components/transition-group.ts +204 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/components/transition.ts +205 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/directives/index.ts +7 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/directives/model.ts +148 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/directives/show.ts +61 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/index.ts +75 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/modules/attrs.ts +115 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/modules/class.ts +37 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/modules/dom-props.ts +123 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/modules/events.ts +127 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/modules/index.ts +8 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/modules/style.ts +104 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/modules/transition.ts +341 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/node-ops.ts +66 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/patch.ts +10 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime/transition-util.ts +215 -0
- package/vue2/node_modules/vue/src/platforms/web/runtime-with-compiler.ts +110 -0
- package/vue2/node_modules/vue/src/platforms/web/util/attrs.ts +58 -0
- package/vue2/node_modules/vue/src/platforms/web/util/class.ts +87 -0
- package/vue2/node_modules/vue/src/platforms/web/util/compat.ts +16 -0
- package/vue2/node_modules/vue/src/platforms/web/util/element.ts +76 -0
- package/vue2/node_modules/vue/src/platforms/web/util/index.ts +21 -0
- package/vue2/node_modules/vue/src/platforms/web/util/style.ts +71 -0
- package/vue2/node_modules/vue/src/shared/constants.ts +20 -0
- package/vue2/node_modules/vue/src/shared/util.ts +372 -0
- package/vue2/node_modules/vue/src/v3/apiAsyncComponent.ts +117 -0
- package/vue2/node_modules/vue/src/v3/apiInject.ts +71 -0
- package/vue2/node_modules/vue/src/v3/apiLifecycle.ts +68 -0
- package/vue2/node_modules/vue/src/v3/apiSetup.ts +246 -0
- package/vue2/node_modules/vue/src/v3/apiWatch.ts +349 -0
- package/vue2/node_modules/vue/src/v3/currentInstance.ts +23 -0
- package/vue2/node_modules/vue/src/v3/debug.ts +21 -0
- package/vue2/node_modules/vue/src/v3/h.ts +18 -0
- package/vue2/node_modules/vue/src/v3/index.ts +96 -0
- package/vue2/node_modules/vue/src/v3/reactivity/computed.ts +100 -0
- package/vue2/node_modules/vue/src/v3/reactivity/effect.ts +20 -0
- package/vue2/node_modules/vue/src/v3/reactivity/effectScope.ts +137 -0
- package/vue2/node_modules/vue/src/v3/reactivity/operations.ts +14 -0
- package/vue2/node_modules/vue/src/v3/reactivity/reactive.ts +137 -0
- package/vue2/node_modules/vue/src/v3/reactivity/readonly.ts +127 -0
- package/vue2/node_modules/vue/src/v3/reactivity/ref.ts +296 -0
- package/vue2/node_modules/vue/src/v3/sfc-helpers/useCssModule.ts +24 -0
- package/vue2/node_modules/vue/src/v3/sfc-helpers/useCssVars.ts +34 -0
- package/vue2/package.json +49 -0
- package/vue2/src/blocks/BaseText.vue +25 -0
- package/vue2/src/blocks/button/button.vue +68 -0
- package/vue2/src/blocks/button/component-info.ts +35 -0
- package/vue2/src/blocks/columns/columns.vue +238 -0
- package/vue2/src/blocks/columns/component-info.ts +219 -0
- package/vue2/src/blocks/custom-code/component-info.ts +24 -0
- package/vue2/src/blocks/custom-code/custom-code.vue +88 -0
- package/vue2/src/blocks/embed/component-info.ts +38 -0
- package/vue2/src/blocks/embed/embed.vue +71 -0
- package/vue2/src/blocks/embed/helpers.ts +2 -0
- package/vue2/src/blocks/form/component-info.ts +233 -0
- package/vue2/src/blocks/form/form.vue +7 -0
- package/vue2/src/blocks/fragment/component-info.ts +8 -0
- package/vue2/src/blocks/fragment/fragment.vue +19 -0
- package/vue2/src/blocks/helpers.ts +43 -0
- package/vue2/src/blocks/image/component-info.ts +124 -0
- package/vue2/src/blocks/image/image.helpers.ts +47 -0
- package/vue2/src/blocks/image/image.vue +174 -0
- package/vue2/src/blocks/img/component-info.ts +16 -0
- package/vue2/src/blocks/img/img.vue +59 -0
- package/vue2/src/blocks/input/component-info.ts +47 -0
- package/vue2/src/blocks/input/input.vue +52 -0
- package/vue2/src/blocks/raw-text/component-info.ts +11 -0
- package/vue2/src/blocks/raw-text/raw-text.vue +35 -0
- package/vue2/src/blocks/section/component-info.ts +41 -0
- package/vue2/src/blocks/section/section.vue +47 -0
- package/vue2/src/blocks/select/component-info.ts +44 -0
- package/vue2/src/blocks/select/select.vue +50 -0
- package/vue2/src/blocks/submit-button/component-info.ts +27 -0
- package/vue2/src/blocks/submit-button/submit-button.vue +34 -0
- package/vue2/src/blocks/symbol/component-info.ts +35 -0
- package/vue2/src/blocks/symbol/symbol.helpers.ts +47 -0
- package/vue2/src/blocks/symbol/symbol.vue +143 -0
- package/vue2/src/blocks/text/component-info.ts +20 -0
- package/vue2/src/blocks/text/text.vue +23 -0
- package/vue2/src/blocks/textarea/component-info.ts +38 -0
- package/vue2/src/blocks/textarea/textarea.vue +38 -0
- package/vue2/src/blocks/video/component-info.ts +83 -0
- package/vue2/src/blocks/video/video.vue +105 -0
- package/vue2/src/components/block/block.helpers.ts +89 -0
- package/vue2/src/components/block/block.vue +203 -0
- package/vue2/src/components/block/components/block-styles.vue +110 -0
- package/vue2/src/components/block/components/block-wrapper.vue +83 -0
- package/vue2/src/components/block/components/component-ref/component-ref.helpers.ts +52 -0
- package/vue2/src/components/block/components/component-ref/component-ref.vue +97 -0
- package/vue2/src/components/block/components/interactive-element.vue +48 -0
- package/vue2/src/components/block/components/repeated-block.vue +51 -0
- package/vue2/src/components/block/types.ts +6 -0
- package/vue2/src/components/blocks/blocks-wrapper.vue +91 -0
- package/vue2/src/components/blocks/blocks.vue +99 -0
- package/vue2/src/components/content/components/enable-editor.vue +418 -0
- package/vue2/src/components/content/components/styles.helpers.ts +77 -0
- package/vue2/src/components/content/components/styles.vue +60 -0
- package/vue2/src/components/content/content.helpers.ts +42 -0
- package/vue2/src/components/content/content.types.ts +23 -0
- package/vue2/src/components/content/content.vue +205 -0
- package/vue2/src/components/content/index.ts +1 -0
- package/vue2/src/components/content/wrap-component-ref.ts +6 -0
- package/vue2/src/components/content-variants/content-variants.types.ts +20 -0
- package/vue2/src/components/content-variants/content-variants.vue +177 -0
- package/vue2/src/components/content-variants/helpers.ts +207 -0
- package/vue2/src/components/inlined-script.vue +18 -0
- package/vue2/src/components/inlined-styles.vue +18 -0
- package/vue2/src/constants/builder-registered-components.ts +62 -0
- package/vue2/src/constants/device-sizes.ts +59 -0
- package/vue2/src/constants/sdk-version.ts +1 -0
- package/vue2/src/constants/target.ts +4 -0
- package/vue2/src/context/builder.context.ts +16 -0
- package/vue2/src/context/components.context.ts +6 -0
- package/vue2/src/context/types.ts +36 -0
- package/vue2/src/functions/apply-patch-with-mutation.ts +61 -0
- package/vue2/src/functions/camel-to-kebab-case.ts +1 -0
- package/vue2/src/functions/deopt.ts +6 -0
- package/vue2/src/functions/evaluate/browser-runtime/browser.ts +41 -0
- package/vue2/src/functions/evaluate/browser-runtime/index.ts +1 -0
- package/vue2/src/functions/evaluate/edge-runtime/acorn-interpreter.ts +2891 -0
- package/vue2/src/functions/evaluate/edge-runtime/edge-runtime.ts +96 -0
- package/vue2/src/functions/evaluate/edge-runtime/index.ts +1 -0
- package/vue2/src/functions/evaluate/evaluate.ts +66 -0
- package/vue2/src/functions/evaluate/helpers.ts +32 -0
- package/vue2/src/functions/evaluate/index.ts +1 -0
- package/vue2/src/functions/evaluate/node-runtime/index.ts +1 -0
- package/vue2/src/functions/evaluate/placeholder-runtime.ts +4 -0
- package/vue2/src/functions/event-handler-name.ts +1 -0
- package/vue2/src/functions/extract-text-styles.ts +24 -0
- package/vue2/src/functions/fast-clone.ts +4 -0
- package/vue2/src/functions/fetch-builder-props.ts +62 -0
- package/vue2/src/functions/get-block-actions-handler.ts +16 -0
- package/vue2/src/functions/get-block-actions.ts +36 -0
- package/vue2/src/functions/get-block-component-options.ts +11 -0
- package/vue2/src/functions/get-block-properties.ts +82 -0
- package/vue2/src/functions/get-builder-search-params/index.ts +40 -0
- package/vue2/src/functions/get-content/generate-content-url.ts +45 -0
- package/vue2/src/functions/get-content/index.ts +110 -0
- package/vue2/src/functions/get-content/types.ts +62 -0
- package/vue2/src/functions/get-fetch.ts +11 -0
- package/vue2/src/functions/get-global-this.ts +16 -0
- package/vue2/src/functions/get-processed-block.ts +69 -0
- package/vue2/src/functions/get-react-native-block-styles.ts +27 -0
- package/vue2/src/functions/is-browser.ts +3 -0
- package/vue2/src/functions/is-edge-runtime.ts +9 -0
- package/vue2/src/functions/is-editing.ts +5 -0
- package/vue2/src/functions/is-iframe.ts +4 -0
- package/vue2/src/functions/is-previewing.ts +11 -0
- package/vue2/src/functions/on-change.ts +29 -0
- package/vue2/src/functions/register-component.ts +48 -0
- package/vue2/src/functions/register.ts +44 -0
- package/vue2/src/functions/sanitize-react-native-block-styles.ts +58 -0
- package/vue2/src/functions/set-editor-settings.ts +15 -0
- package/vue2/src/functions/set.ts +14 -0
- package/vue2/src/functions/track/helpers.ts +51 -0
- package/vue2/src/functions/track/index.ts +131 -0
- package/vue2/src/functions/track/interaction.ts +63 -0
- package/vue2/src/functions/transform-block-properties.ts +18 -0
- package/vue2/src/functions/transform-block.ts +6 -0
- package/vue2/src/helpers/ab-tests.ts +166 -0
- package/vue2/src/helpers/canTrack.ts +2 -0
- package/vue2/src/helpers/cookie.ts +81 -0
- package/vue2/src/helpers/css.ts +33 -0
- package/vue2/src/helpers/flatten.ts +19 -0
- package/vue2/src/helpers/localStorage.ts +36 -0
- package/vue2/src/helpers/logger.ts +7 -0
- package/vue2/src/helpers/nullable.ts +2 -0
- package/vue2/src/helpers/preview-lru-cache/get.ts +4 -0
- package/vue2/src/helpers/preview-lru-cache/helpers.ts +0 -0
- package/vue2/src/helpers/preview-lru-cache/init.ts +7 -0
- package/vue2/src/helpers/preview-lru-cache/set.ts +12 -0
- package/vue2/src/helpers/preview-lru-cache/types.ts +0 -0
- package/vue2/src/helpers/sessionId.ts +37 -0
- package/vue2/src/helpers/time.ts +2 -0
- package/vue2/src/helpers/url.ts +15 -0
- package/vue2/src/helpers/uuid.ts +17 -0
- package/vue2/src/helpers/visitorId.ts +37 -0
- package/vue2/src/index-helpers/blocks-exports.ts +20 -0
- package/vue2/src/index-helpers/top-of-file.ts +4 -0
- package/vue2/src/index.ts +8 -0
- package/vue2/src/scripts/init-editing.ts +113 -0
- package/vue2/src/server-index.ts +15 -0
- package/vue2/tsconfig.config.json +8 -0
- package/vue2/tsconfig.json +16 -0
- package/vue2/vite.config.js +31 -0
- package/vue3/css/package.json +4 -0
- package/vue3/node_modules/@types/node/LICENSE +21 -0
- package/vue3/node_modules/@types/node/README.md +16 -0
- package/vue3/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/vue3/node_modules/@types/node/assert.d.ts +962 -0
- package/vue3/node_modules/@types/node/async_hooks.d.ts +497 -0
- package/vue3/node_modules/@types/node/buffer.d.ts +2236 -0
- package/vue3/node_modules/@types/node/child_process.d.ts +1396 -0
- package/vue3/node_modules/@types/node/cluster.d.ts +414 -0
- package/vue3/node_modules/@types/node/console.d.ts +412 -0
- package/vue3/node_modules/@types/node/constants.d.ts +18 -0
- package/vue3/node_modules/@types/node/crypto.d.ts +3869 -0
- package/vue3/node_modules/@types/node/dgram.d.ts +545 -0
- package/vue3/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- package/vue3/node_modules/@types/node/dns/promises.d.ts +369 -0
- package/vue3/node_modules/@types/node/dns.d.ts +655 -0
- package/vue3/node_modules/@types/node/domain.d.ts +170 -0
- package/vue3/node_modules/@types/node/events.d.ts +641 -0
- package/vue3/node_modules/@types/node/fs/promises.d.ts +1094 -0
- package/vue3/node_modules/@types/node/fs.d.ts +3803 -0
- package/vue3/node_modules/@types/node/globals.d.ts +287 -0
- package/vue3/node_modules/@types/node/globals.global.d.ts +1 -0
- package/vue3/node_modules/@types/node/http.d.ts +1504 -0
- package/vue3/node_modules/@types/node/http2.d.ts +2100 -0
- package/vue3/node_modules/@types/node/https.d.ts +532 -0
- package/vue3/node_modules/@types/node/index.d.ts +131 -0
- package/vue3/node_modules/@types/node/inspector.d.ts +2745 -0
- package/vue3/node_modules/@types/node/module.d.ts +115 -0
- package/vue3/node_modules/@types/node/net.d.ts +828 -0
- package/vue3/node_modules/@types/node/os.d.ts +455 -0
- package/vue3/node_modules/@types/node/package.json +232 -0
- package/vue3/node_modules/@types/node/path.d.ts +191 -0
- package/vue3/node_modules/@types/node/perf_hooks.d.ts +586 -0
- package/vue3/node_modules/@types/node/process.d.ts +1481 -0
- package/vue3/node_modules/@types/node/punycode.d.ts +117 -0
- package/vue3/node_modules/@types/node/querystring.d.ts +131 -0
- package/vue3/node_modules/@types/node/readline.d.ts +543 -0
- package/vue3/node_modules/@types/node/repl.d.ts +424 -0
- package/vue3/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/vue3/node_modules/@types/node/stream/promises.d.ts +42 -0
- package/vue3/node_modules/@types/node/stream/web.d.ts +392 -0
- package/vue3/node_modules/@types/node/stream.d.ts +1363 -0
- package/vue3/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/vue3/node_modules/@types/node/test.d.ts +190 -0
- package/vue3/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/vue3/node_modules/@types/node/timers.d.ts +94 -0
- package/vue3/node_modules/@types/node/tls.d.ts +1019 -0
- package/vue3/node_modules/@types/node/trace_events.d.ts +161 -0
- package/vue3/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/vue3/node_modules/@types/node/ts4.8/assert.d.ts +962 -0
- package/vue3/node_modules/@types/node/ts4.8/async_hooks.d.ts +497 -0
- package/vue3/node_modules/@types/node/ts4.8/buffer.d.ts +2236 -0
- package/vue3/node_modules/@types/node/ts4.8/child_process.d.ts +1396 -0
- package/vue3/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
- package/vue3/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/vue3/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/vue3/node_modules/@types/node/ts4.8/crypto.d.ts +3866 -0
- package/vue3/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/vue3/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/vue3/node_modules/@types/node/ts4.8/dns/promises.d.ts +368 -0
- package/vue3/node_modules/@types/node/ts4.8/dns.d.ts +654 -0
- package/vue3/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/vue3/node_modules/@types/node/ts4.8/events.d.ts +641 -0
- package/vue3/node_modules/@types/node/ts4.8/fs/promises.d.ts +1094 -0
- package/vue3/node_modules/@types/node/ts4.8/fs.d.ts +3802 -0
- package/vue3/node_modules/@types/node/ts4.8/globals.d.ts +284 -0
- package/vue3/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/vue3/node_modules/@types/node/ts4.8/http.d.ts +1503 -0
- package/vue3/node_modules/@types/node/ts4.8/http2.d.ts +2100 -0
- package/vue3/node_modules/@types/node/ts4.8/https.d.ts +532 -0
- package/vue3/node_modules/@types/node/ts4.8/index.d.ts +86 -0
- package/vue3/node_modules/@types/node/ts4.8/inspector.d.ts +2745 -0
- package/vue3/node_modules/@types/node/ts4.8/module.d.ts +115 -0
- package/vue3/node_modules/@types/node/ts4.8/net.d.ts +828 -0
- package/vue3/node_modules/@types/node/ts4.8/os.d.ts +456 -0
- package/vue3/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/vue3/node_modules/@types/node/ts4.8/perf_hooks.d.ts +586 -0
- package/vue3/node_modules/@types/node/ts4.8/process.d.ts +1481 -0
- package/vue3/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/vue3/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/vue3/node_modules/@types/node/ts4.8/readline.d.ts +543 -0
- package/vue3/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/vue3/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/vue3/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/vue3/node_modules/@types/node/ts4.8/stream/web.d.ts +392 -0
- package/vue3/node_modules/@types/node/ts4.8/stream.d.ts +1363 -0
- package/vue3/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/vue3/node_modules/@types/node/ts4.8/test.d.ts +190 -0
- package/vue3/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/vue3/node_modules/@types/node/ts4.8/timers.d.ts +94 -0
- package/vue3/node_modules/@types/node/ts4.8/tls.d.ts +1019 -0
- package/vue3/node_modules/@types/node/ts4.8/trace_events.d.ts +161 -0
- package/vue3/node_modules/@types/node/ts4.8/tty.d.ts +204 -0
- package/vue3/node_modules/@types/node/ts4.8/url.d.ts +855 -0
- package/vue3/node_modules/@types/node/ts4.8/util.d.ts +1594 -0
- package/vue3/node_modules/@types/node/ts4.8/v8.d.ts +472 -0
- package/vue3/node_modules/@types/node/ts4.8/vm.d.ts +507 -0
- package/vue3/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/vue3/node_modules/@types/node/ts4.8/worker_threads.d.ts +649 -0
- package/vue3/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/vue3/node_modules/@types/node/tty.d.ts +204 -0
- package/vue3/node_modules/@types/node/url.d.ts +855 -0
- package/vue3/node_modules/@types/node/util.d.ts +1594 -0
- package/vue3/node_modules/@types/node/v8.d.ts +472 -0
- package/vue3/node_modules/@types/node/vm.d.ts +507 -0
- package/vue3/node_modules/@types/node/wasi.d.ts +158 -0
- package/vue3/node_modules/@types/node/worker_threads.d.ts +649 -0
- package/vue3/node_modules/@types/node/zlib.d.ts +517 -0
- package/vue3/node_modules/@vitejs/plugin-vue/LICENSE +21 -0
- package/vue3/node_modules/@vitejs/plugin-vue/README.md +171 -0
- package/vue3/node_modules/@vitejs/plugin-vue/package.json +51 -0
- package/vue3/node_modules/@vue/server-renderer/LICENSE +21 -0
- package/vue3/node_modules/@vue/server-renderer/README.md +178 -0
- package/vue3/node_modules/@vue/server-renderer/index.js +7 -0
- package/vue3/node_modules/@vue/server-renderer/package.json +41 -0
- package/vue3/node_modules/@vue/tsconfig/README.md +31 -0
- package/vue3/node_modules/@vue/tsconfig/package.json +35 -0
- package/vue3/node_modules/@vue/tsconfig/tsconfig.json +40 -0
- package/vue3/node_modules/@vue/tsconfig/tsconfig.node.json +17 -0
- package/vue3/node_modules/@vue/tsconfig/tsconfig.web.json +19 -0
- package/vue3/node_modules/esbuild/LICENSE.md +21 -0
- package/vue3/node_modules/esbuild/README.md +3 -0
- package/vue3/node_modules/esbuild/bin/esbuild +212 -0
- package/vue3/node_modules/esbuild/install.js +245 -0
- package/vue3/node_modules/esbuild/package.json +42 -0
- package/vue3/node_modules/vite/LICENSE.md +3450 -0
- package/vue3/node_modules/vite/README.md +20 -0
- package/vue3/node_modules/vite/bin/openChrome.applescript +95 -0
- package/vue3/node_modules/vite/bin/vite.js +61 -0
- package/vue3/node_modules/vite/client.d.ts +248 -0
- package/vue3/node_modules/vite/index.cjs +34 -0
- package/vue3/node_modules/vite/package.json +154 -0
- package/vue3/node_modules/vite-plugin-dts/LICENSE +21 -0
- package/vue3/node_modules/vite-plugin-dts/README.md +368 -0
- package/vue3/node_modules/vite-plugin-dts/README.zh-CN.md +368 -0
- package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/LICENSE +21 -0
- package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/README.md +36 -0
- package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/bin/vue-tsc.js +67 -0
- package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/index.d.ts +16 -0
- package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/index.js +120 -0
- package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/shared.d.ts +8 -0
- package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/out/shared.js +5 -0
- package/vue3/node_modules/vite-plugin-dts/node_modules/vue-tsc/package.json +28 -0
- package/vue3/node_modules/vite-plugin-dts/package.json +103 -0
- package/vue3/node_modules/vue/LICENSE +21 -0
- package/vue3/node_modules/vue/README.md +54 -0
- package/vue3/node_modules/vue/compiler-sfc/index.d.mts +1 -0
- package/vue3/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/vue3/node_modules/vue/compiler-sfc/index.js +3 -0
- package/vue3/node_modules/vue/compiler-sfc/index.mjs +3 -0
- package/vue3/node_modules/vue/compiler-sfc/package.json +4 -0
- package/vue3/node_modules/vue/compiler-sfc/register-ts.js +5 -0
- package/vue3/node_modules/vue/index.js +7 -0
- package/vue3/node_modules/vue/index.mjs +1 -0
- package/vue3/node_modules/vue/jsx-runtime/index.d.ts +29 -0
- package/vue3/node_modules/vue/jsx-runtime/index.js +15 -0
- package/vue3/node_modules/vue/jsx-runtime/index.mjs +17 -0
- package/vue3/node_modules/vue/jsx-runtime/package.json +5 -0
- package/vue3/node_modules/vue/jsx.d.ts +26 -0
- package/vue3/node_modules/vue/macros-global.d.ts +19 -0
- package/vue3/node_modules/vue/macros.d.ts +112 -0
- package/vue3/node_modules/vue/package.json +103 -0
- package/vue3/node_modules/vue/ref-macros.d.ts +2 -0
- package/vue3/node_modules/vue/server-renderer/index.d.mts +1 -0
- package/vue3/node_modules/vue/server-renderer/index.d.ts +1 -0
- package/vue3/node_modules/vue/server-renderer/index.js +1 -0
- package/vue3/node_modules/vue/server-renderer/index.mjs +1 -0
- package/vue3/node_modules/vue/server-renderer/package.json +4 -0
- package/vue3/node_modules/vue-tsc/LICENSE +21 -0
- package/vue3/node_modules/vue-tsc/README.md +44 -0
- package/vue3/node_modules/vue-tsc/bin/vue-tsc.js +48 -0
- package/vue3/node_modules/vue-tsc/out/proxy.d.ts +4 -0
- package/vue3/node_modules/vue-tsc/out/proxy.js +110 -0
- package/vue3/node_modules/vue-tsc/package.json +26 -0
- package/vue3/package.json +48 -0
- package/vue3/src/blocks/BaseText.vue +25 -0
- package/vue3/src/blocks/button/button.vue +71 -0
- package/vue3/src/blocks/button/component-info.ts +35 -0
- package/vue3/src/blocks/columns/columns.vue +220 -0
- package/vue3/src/blocks/columns/component-info.ts +219 -0
- package/vue3/src/blocks/custom-code/component-info.ts +24 -0
- package/vue3/src/blocks/custom-code/custom-code.vue +88 -0
- package/vue3/src/blocks/embed/component-info.ts +38 -0
- package/vue3/src/blocks/embed/embed.vue +71 -0
- package/vue3/src/blocks/embed/helpers.ts +2 -0
- package/vue3/src/blocks/form/component-info.ts +233 -0
- package/vue3/src/blocks/form/form.vue +7 -0
- package/vue3/src/blocks/fragment/component-info.ts +8 -0
- package/vue3/src/blocks/fragment/fragment.vue +19 -0
- package/vue3/src/blocks/helpers.ts +43 -0
- package/vue3/src/blocks/image/component-info.ts +124 -0
- package/vue3/src/blocks/image/image.helpers.ts +47 -0
- package/vue3/src/blocks/image/image.vue +172 -0
- package/vue3/src/blocks/img/component-info.ts +16 -0
- package/vue3/src/blocks/img/img.vue +59 -0
- package/vue3/src/blocks/input/component-info.ts +47 -0
- package/vue3/src/blocks/input/input.vue +52 -0
- package/vue3/src/blocks/raw-text/component-info.ts +11 -0
- package/vue3/src/blocks/raw-text/raw-text.vue +35 -0
- package/vue3/src/blocks/section/component-info.ts +41 -0
- package/vue3/src/blocks/section/section.vue +47 -0
- package/vue3/src/blocks/select/component-info.ts +44 -0
- package/vue3/src/blocks/select/select.vue +46 -0
- package/vue3/src/blocks/submit-button/component-info.ts +27 -0
- package/vue3/src/blocks/submit-button/submit-button.vue +34 -0
- package/vue3/src/blocks/symbol/component-info.ts +35 -0
- package/vue3/src/blocks/symbol/symbol.helpers.ts +47 -0
- package/vue3/src/blocks/symbol/symbol.vue +134 -0
- package/vue3/src/blocks/text/component-info.ts +20 -0
- package/vue3/src/blocks/text/text.vue +23 -0
- package/vue3/src/blocks/textarea/component-info.ts +38 -0
- package/vue3/src/blocks/textarea/textarea.vue +38 -0
- package/vue3/src/blocks/video/component-info.ts +83 -0
- package/vue3/src/blocks/video/video.vue +105 -0
- package/vue3/src/components/block/block.helpers.ts +89 -0
- package/vue3/src/components/block/block.vue +214 -0
- package/vue3/src/components/block/components/block-styles.vue +100 -0
- package/vue3/src/components/block/components/block-wrapper.vue +86 -0
- package/vue3/src/components/block/components/component-ref/component-ref.helpers.ts +52 -0
- package/vue3/src/components/block/components/component-ref/component-ref.vue +74 -0
- package/vue3/src/components/block/components/interactive-element.vue +48 -0
- package/vue3/src/components/block/components/repeated-block.vue +51 -0
- package/vue3/src/components/block/types.ts +6 -0
- package/vue3/src/components/blocks/blocks-wrapper.vue +91 -0
- package/vue3/src/components/blocks/blocks.vue +78 -0
- package/vue3/src/components/content/components/enable-editor.vue +419 -0
- package/vue3/src/components/content/components/styles.helpers.ts +77 -0
- package/vue3/src/components/content/components/styles.vue +51 -0
- package/vue3/src/components/content/content.helpers.ts +42 -0
- package/vue3/src/components/content/content.types.ts +23 -0
- package/vue3/src/components/content/content.vue +169 -0
- package/vue3/src/components/content/index.ts +1 -0
- package/vue3/src/components/content/wrap-component-ref.ts +7 -0
- package/vue3/src/components/content-variants/content-variants.types.ts +20 -0
- package/vue3/src/components/content-variants/content-variants.vue +151 -0
- package/vue3/src/components/content-variants/helpers.ts +207 -0
- package/vue3/src/components/inlined-script.vue +12 -0
- package/vue3/src/components/inlined-styles.vue +12 -0
- package/vue3/src/constants/builder-registered-components.ts +62 -0
- package/vue3/src/constants/device-sizes.ts +59 -0
- package/vue3/src/constants/sdk-version.ts +1 -0
- package/vue3/src/constants/target.ts +4 -0
- package/vue3/src/context/builder.context.ts +16 -0
- package/vue3/src/context/components.context.ts +6 -0
- package/vue3/src/context/types.ts +36 -0
- package/vue3/src/functions/apply-patch-with-mutation.ts +61 -0
- package/vue3/src/functions/camel-to-kebab-case.ts +1 -0
- package/vue3/src/functions/deopt.ts +6 -0
- package/vue3/src/functions/evaluate/browser-runtime/browser.ts +41 -0
- package/vue3/src/functions/evaluate/browser-runtime/index.ts +1 -0
- package/vue3/src/functions/evaluate/edge-runtime/acorn-interpreter.ts +2891 -0
- package/vue3/src/functions/evaluate/edge-runtime/edge-runtime.ts +96 -0
- package/vue3/src/functions/evaluate/edge-runtime/index.ts +1 -0
- package/vue3/src/functions/evaluate/evaluate.ts +66 -0
- package/vue3/src/functions/evaluate/helpers.ts +32 -0
- package/vue3/src/functions/evaluate/index.ts +1 -0
- package/vue3/src/functions/evaluate/node-runtime/index.ts +1 -0
- package/vue3/src/functions/evaluate/placeholder-runtime.ts +4 -0
- package/vue3/src/functions/event-handler-name.ts +1 -0
- package/vue3/src/functions/extract-text-styles.ts +24 -0
- package/vue3/src/functions/fast-clone.ts +4 -0
- package/vue3/src/functions/fetch-builder-props.ts +62 -0
- package/vue3/src/functions/get-block-actions-handler.ts +16 -0
- package/vue3/src/functions/get-block-actions.ts +36 -0
- package/vue3/src/functions/get-block-component-options.ts +11 -0
- package/vue3/src/functions/get-block-properties.ts +82 -0
- package/vue3/src/functions/get-builder-search-params/index.ts +40 -0
- package/vue3/src/functions/get-content/generate-content-url.ts +45 -0
- package/vue3/src/functions/get-content/index.ts +110 -0
- package/vue3/src/functions/get-content/types.ts +62 -0
- package/vue3/src/functions/get-fetch.ts +11 -0
- package/vue3/src/functions/get-global-this.ts +16 -0
- package/vue3/src/functions/get-processed-block.ts +69 -0
- package/vue3/src/functions/get-react-native-block-styles.ts +27 -0
- package/vue3/src/functions/is-browser.ts +3 -0
- package/vue3/src/functions/is-edge-runtime.ts +9 -0
- package/vue3/src/functions/is-editing.ts +5 -0
- package/vue3/src/functions/is-iframe.ts +4 -0
- package/vue3/src/functions/is-previewing.ts +11 -0
- package/vue3/src/functions/on-change.ts +29 -0
- package/vue3/src/functions/register-component.ts +48 -0
- package/vue3/src/functions/register.ts +44 -0
- package/vue3/src/functions/sanitize-react-native-block-styles.ts +58 -0
- package/vue3/src/functions/set-editor-settings.ts +15 -0
- package/vue3/src/functions/set.ts +14 -0
- package/vue3/src/functions/track/helpers.ts +51 -0
- package/vue3/src/functions/track/index.ts +131 -0
- package/vue3/src/functions/track/interaction.ts +63 -0
- package/vue3/src/functions/transform-block-properties.ts +18 -0
- package/vue3/src/functions/transform-block.ts +6 -0
- package/vue3/src/helpers/ab-tests.ts +166 -0
- package/vue3/src/helpers/canTrack.ts +2 -0
- package/vue3/src/helpers/cookie.ts +81 -0
- package/vue3/src/helpers/css.ts +33 -0
- package/vue3/src/helpers/flatten.ts +19 -0
- package/vue3/src/helpers/localStorage.ts +36 -0
- package/vue3/src/helpers/logger.ts +7 -0
- package/vue3/src/helpers/nullable.ts +2 -0
- package/vue3/src/helpers/preview-lru-cache/get.ts +4 -0
- package/vue3/src/helpers/preview-lru-cache/helpers.ts +0 -0
- package/vue3/src/helpers/preview-lru-cache/init.ts +7 -0
- package/vue3/src/helpers/preview-lru-cache/set.ts +12 -0
- package/vue3/src/helpers/preview-lru-cache/types.ts +0 -0
- package/vue3/src/helpers/sessionId.ts +37 -0
- package/vue3/src/helpers/time.ts +2 -0
- package/vue3/src/helpers/url.ts +15 -0
- package/vue3/src/helpers/uuid.ts +17 -0
- package/vue3/src/helpers/visitorId.ts +37 -0
- package/vue3/src/index-helpers/blocks-exports.ts +20 -0
- package/vue3/src/index-helpers/top-of-file.ts +4 -0
- package/vue3/src/index.ts +8 -0
- package/vue3/src/scripts/init-editing.ts +113 -0
- package/vue3/src/server-index.ts +15 -0
- package/vue3/tsconfig.config.json +8 -0
- package/vue3/tsconfig.json +17 -0
- package/vue3/vite.config.js +31 -0
- package/packages/_vue2/dist/block-styles.2f2d681c.js +0 -78
- package/packages/_vue2/dist/block-styles.e0c362f1.cjs +0 -1
- package/packages/_vue2/dist/block-wrapper.60491ece.cjs +0 -1
- package/packages/_vue2/dist/block-wrapper.675417b1.js +0 -66
- package/packages/_vue2/dist/block.2b1ac86c.cjs +0 -3
- package/packages/_vue2/dist/block.b10ffc8d.js +0 -179
- package/packages/_vue2/dist/blocks-wrapper.1f4e53ec.js +0 -72
- package/packages/_vue2/dist/blocks-wrapper.87c356a1.cjs +0 -1
- package/packages/_vue2/dist/component-ref.d1a3e1db.js +0 -98
- package/packages/_vue2/dist/component-ref.e0e18275.cjs +0 -1
- package/packages/_vue2/dist/content.4dd9bed9.js +0 -913
- package/packages/_vue2/dist/content.e0c272e6.cjs +0 -1
- package/packages/_vue2/dist/css.3b52add0.js +0 -21
- package/packages/_vue2/dist/css.5b6afc6e.cjs +0 -6
- package/packages/_vue2/dist/enable-editor.29678a79.cjs +0 -1
- package/packages/_vue2/dist/enable-editor.c8c377d7.js +0 -427
- package/packages/_vue2/dist/evaluate.585803ce.cjs +0 -1
- package/packages/_vue2/dist/evaluate.b622b309.js +0 -97
- package/packages/_vue2/dist/get-block-actions.17f0418a.js +0 -36
- package/packages/_vue2/dist/get-block-actions.cc26a1a3.cjs +0 -1
- package/packages/_vue2/dist/get-block-properties.3a4c9314.js +0 -48
- package/packages/_vue2/dist/get-block-properties.fbe48fae.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block.5937bfa6.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block.92e6395c.js +0 -53
- package/packages/_vue2/dist/index.04a22940.cjs +0 -32
- package/packages/_vue2/dist/index.835b8ee0.js +0 -1413
- package/packages/_vue2/dist/inlined-script.0c7f9ce3.cjs +0 -1
- package/packages/_vue2/dist/inlined-script.3ec95873.js +0 -23
- package/packages/_vue2/dist/inlined-styles.89ce41e1.cjs +0 -1
- package/packages/_vue2/dist/inlined-styles.ccff7c47.js +0 -23
- package/packages/_vue2/dist/interactive-element.fa779554.js +0 -42
- package/packages/_vue2/dist/interactive-element.fdd261bc.cjs +0 -1
- package/packages/_vue2/dist/non-node-runtime.ddfeed94.cjs +0 -21
- package/packages/_vue2/dist/non-node-runtime.eb7f6595.js +0 -2477
- package/packages/_vue2/dist/repeated-block.3c989659.js +0 -38
- package/packages/_vue2/dist/repeated-block.48fbaaab.cjs +0 -1
- package/packages/_vue2/dist/sdk.cjs +0 -1
- package/packages/_vue2/dist/sdk.d.ts +0 -1
- package/packages/_vue2/dist/sdk.js +0 -29
- package/packages/_vue2/dist/set.87eb0329.cjs +0 -1
- package/packages/_vue2/dist/set.b219ab0e.js +0 -9
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +0 -17
- package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +0 -2
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +0 -44
- package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +0 -2
- package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +0 -2
- package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +0 -14
- package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +0 -2
- package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +0 -18
- package/packages/_vue2/dist/src/blocks/embed/helpers.d.ts +0 -1
- package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +0 -2
- package/packages/_vue2/dist/src/blocks/fragment/fragment.vue.d.ts +0 -7
- package/packages/_vue2/dist/src/blocks/helpers.d.ts +0 -13
- package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +0 -2
- package/packages/_vue2/dist/src/blocks/image/image.helpers.d.ts +0 -1
- package/packages/_vue2/dist/src/blocks/image/image.vue.d.ts +0 -72
- package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +0 -2
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +0 -38
- package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +0 -2
- package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +0 -22
- package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +0 -2
- package/packages/_vue2/dist/src/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +0 -37
- package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +0 -2
- package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +0 -11
- package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +0 -2
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +0 -64
- package/packages/_vue2/dist/src/components/block/block.helpers.d.ts +0 -13
- package/packages/_vue2/dist/src/components/block/block.vue.d.ts +0 -9
- package/packages/_vue2/dist/src/components/block/components/block-styles.vue.d.ts +0 -23
- package/packages/_vue2/dist/src/components/block/components/block-wrapper.vue.d.ts +0 -29
- package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
- package/packages/_vue2/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +0 -2
- package/packages/_vue2/dist/src/components/block/components/interactive-element.vue.d.ts +0 -30
- package/packages/_vue2/dist/src/components/block/components/repeated-block.vue.d.ts +0 -16
- package/packages/_vue2/dist/src/components/block/types.d.ts +0 -6
- package/packages/_vue2/dist/src/components/blocks/blocks-wrapper.vue.d.ts +0 -30
- package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +0 -29
- package/packages/_vue2/dist/src/components/content/components/enable-editor.vue.d.ts +0 -56
- package/packages/_vue2/dist/src/components/content/components/styles.helpers.d.ts +0 -15
- package/packages/_vue2/dist/src/components/content/components/styles.vue.d.ts +0 -16
- package/packages/_vue2/dist/src/components/content/content.helpers.d.ts +0 -7
- package/packages/_vue2/dist/src/components/content/content.types.d.ts +0 -24
- package/packages/_vue2/dist/src/components/content/content.vue.d.ts +0 -26
- package/packages/_vue2/dist/src/components/content/wrap-component-ref.d.ts +0 -6
- package/packages/_vue2/dist/src/components/content-variants/content-variants.types.d.ts +0 -20
- package/packages/_vue2/dist/src/components/content-variants/content-variants.vue.d.ts +0 -50
- package/packages/_vue2/dist/src/components/content-variants/helpers.d.ts +0 -18
- package/packages/_vue2/dist/src/components/inlined-script.vue.d.ts +0 -11
- package/packages/_vue2/dist/src/components/inlined-styles.vue.d.ts +0 -11
- package/packages/_vue2/dist/src/constants/builder-registered-components.d.ts +0 -6
- package/packages/_vue2/dist/src/constants/device-sizes.d.ts +0 -13
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +0 -1
- package/packages/_vue2/dist/src/constants/target.d.ts +0 -2
- package/packages/_vue2/dist/src/context/builder.context.d.ts +0 -15
- package/packages/_vue2/dist/src/context/components.context.d.ts +0 -7
- package/packages/_vue2/dist/src/context/types.d.ts +0 -35
- package/packages/_vue2/dist/src/functions/camel-to-kebab-case.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/packages/_vue2/dist/src/functions/evaluate/evaluate.d.ts +0 -6
- package/packages/_vue2/dist/src/functions/evaluate/helpers.d.ts +0 -18
- package/packages/_vue2/dist/src/functions/evaluate/index.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +0 -2
- package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime/index.d.ts +0 -6
- package/packages/_vue2/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
- package/packages/_vue2/dist/src/functions/event-handler-name.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/extract-text-styles.d.ts +0 -4
- package/packages/_vue2/dist/src/functions/fast-clone.d.ts +0 -4
- package/packages/_vue2/dist/src/functions/fetch-builder-props.d.ts +0 -39
- package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +0 -8
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +0 -10
- package/packages/_vue2/dist/src/functions/get-block-component-options.d.ts +0 -2
- package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +0 -6
- package/packages/_vue2/dist/src/functions/get-builder-search-params/index.d.ts +0 -12
- package/packages/_vue2/dist/src/functions/get-content/generate-content-url.d.ts +0 -2
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +0 -29
- package/packages/_vue2/dist/src/functions/get-content/types.d.ts +0 -51
- package/packages/_vue2/dist/src/functions/get-fetch.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +0 -10
- package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +0 -7
- package/packages/_vue2/dist/src/functions/is-browser.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/is-editing.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/is-iframe.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/is-non-node-server.d.ts +0 -4
- package/packages/_vue2/dist/src/functions/is-previewing.d.ts +0 -1
- package/packages/_vue2/dist/src/functions/register-component.d.ts +0 -15
- package/packages/_vue2/dist/src/functions/register.d.ts +0 -16
- package/packages/_vue2/dist/src/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/packages/_vue2/dist/src/functions/set-editor-settings.d.ts +0 -4
- package/packages/_vue2/dist/src/functions/set.d.ts +0 -7
- package/packages/_vue2/dist/src/functions/track/helpers.d.ts +0 -5
- package/packages/_vue2/dist/src/functions/track/index.d.ts +0 -51
- package/packages/_vue2/dist/src/functions/track/interaction.d.ts +0 -13
- package/packages/_vue2/dist/src/functions/transform-block-properties.d.ts +0 -2
- package/packages/_vue2/dist/src/functions/transform-block.d.ts +0 -2
- package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +0 -9
- package/packages/_vue2/dist/src/helpers/canTrack.d.ts +0 -1
- package/packages/_vue2/dist/src/helpers/cookie.d.ts +0 -19
- package/packages/_vue2/dist/src/helpers/css.d.ts +0 -7
- package/packages/_vue2/dist/src/helpers/flatten.d.ts +0 -6
- package/packages/_vue2/dist/src/helpers/localStorage.d.ts +0 -9
- package/packages/_vue2/dist/src/helpers/logger.d.ts +0 -6
- package/packages/_vue2/dist/src/helpers/nullable.d.ts +0 -2
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/get.d.ts +0 -2
- package/packages/_vue2/dist/src/helpers/preview-lru-cache/set.d.ts +0 -7
- package/packages/_vue2/dist/src/helpers/sessionId.d.ts +0 -6
- package/packages/_vue2/dist/src/helpers/url.d.ts +0 -6
- package/packages/_vue2/dist/src/helpers/uuid.d.ts +0 -8
- package/packages/_vue2/dist/src/helpers/visitorId.d.ts +0 -6
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +0 -88
- package/packages/_vue2/dist/src/index-helpers/top-of-file.d.ts +0 -1
- package/packages/_vue2/dist/src/index.d.ts +0 -7
- package/packages/_vue2/dist/src/scripts/init-editing.d.ts +0 -6
- package/packages/_vue2/dist/src/server-index.d.ts +0 -15
- package/packages/_vue2/dist/src/types/api-version.d.ts +0 -2
- package/packages/_vue2/dist/src/types/builder-block.d.ts +0 -66
- package/packages/_vue2/dist/src/types/builder-content.d.ts +0 -44
- package/packages/_vue2/dist/src/types/builder-props.d.ts +0 -9
- package/packages/_vue2/dist/src/types/can-track.d.ts +0 -3
- package/packages/_vue2/dist/src/types/components.d.ts +0 -111
- package/packages/_vue2/dist/src/types/deep-partial.d.ts +0 -3
- package/packages/_vue2/dist/src/types/element.d.ts +0 -59
- package/packages/_vue2/dist/src/types/enforced-partials.d.ts +0 -21
- package/packages/_vue2/dist/src/types/input.d.ts +0 -121
- package/packages/_vue2/dist/src/types/targets.d.ts +0 -1
- package/packages/_vue2/dist/src/types/typescript.d.ts +0 -11
- package/packages/_vue2/dist/style.css +0 -1
- package/packages/_vue2/dist/styles.22b87564.js +0 -89
- package/packages/_vue2/dist/styles.a3209286.cjs +0 -31
- package/packages/_vue3/dist/block-wrapper.4abbfa5d.cjs +0 -1
- package/packages/_vue3/dist/block-wrapper.e6a959ca.js +0 -54
- package/packages/_vue3/dist/component-ref.16c18e90.cjs +0 -1
- package/packages/_vue3/dist/component-ref.b3232d22.js +0 -111
- package/packages/_vue3/dist/get-block-actions.48118020.js +0 -79
- package/packages/_vue3/dist/get-block-actions.83a66ea4.cjs +0 -1
- package/packages/_vue3/dist/index.ee80c2d7.js +0 -3262
- package/packages/_vue3/dist/index.f36face2.cjs +0 -69
- package/packages/_vue3/dist/non-node-runtime.15581a63.js +0 -2475
- package/packages/_vue3/dist/non-node-runtime.fb2b33d0.cjs +0 -21
- package/packages/_vue3/dist/repeated-block.33f567b4.cjs +0 -1
- package/packages/_vue3/dist/repeated-block.53ae8c41.js +0 -33
- package/packages/_vue3/dist/sdk.cjs +0 -1
- package/packages/_vue3/dist/sdk.d.ts +0 -1
- package/packages/_vue3/dist/sdk.js +0 -29
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +0 -30
- package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +0 -2
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +0 -69
- package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +0 -2
- package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +0 -2
- package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +0 -21
- package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +0 -2
- package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +0 -22
- package/packages/_vue3/dist/src/blocks/embed/helpers.d.ts +0 -1
- package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +0 -2
- package/packages/_vue3/dist/src/blocks/fragment/fragment.vue.d.ts +0 -7
- package/packages/_vue3/dist/src/blocks/helpers.d.ts +0 -13
- package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +0 -2
- package/packages/_vue3/dist/src/blocks/image/image.helpers.d.ts +0 -1
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +0 -72
- package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +0 -2
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +0 -38
- package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +0 -2
- package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +0 -22
- package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +0 -2
- package/packages/_vue3/dist/src/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +0 -56
- package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +0 -2
- package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +0 -11
- package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +0 -2
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +0 -64
- package/packages/_vue3/dist/src/components/block/block.helpers.d.ts +0 -13
- package/packages/_vue3/dist/src/components/block/block.vue.d.ts +0 -9
- package/packages/_vue3/dist/src/components/block/components/block-styles.vue.d.ts +0 -23
- package/packages/_vue3/dist/src/components/block/components/block-wrapper.vue.d.ts +0 -29
- package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.helpers.d.ts +0 -30
- package/packages/_vue3/dist/src/components/block/components/component-ref/component-ref.vue.d.ts +0 -2
- package/packages/_vue3/dist/src/components/block/components/interactive-element.vue.d.ts +0 -30
- package/packages/_vue3/dist/src/components/block/components/repeated-block.vue.d.ts +0 -16
- package/packages/_vue3/dist/src/components/block/types.d.ts +0 -6
- package/packages/_vue3/dist/src/components/blocks/blocks-wrapper.vue.d.ts +0 -30
- package/packages/_vue3/dist/src/components/blocks/blocks.vue.d.ts +0 -29
- package/packages/_vue3/dist/src/components/content/components/enable-editor.vue.d.ts +0 -90
- package/packages/_vue3/dist/src/components/content/components/styles.helpers.d.ts +0 -15
- package/packages/_vue3/dist/src/components/content/components/styles.vue.d.ts +0 -16
- package/packages/_vue3/dist/src/components/content/content.helpers.d.ts +0 -7
- package/packages/_vue3/dist/src/components/content/content.types.d.ts +0 -24
- package/packages/_vue3/dist/src/components/content/content.vue.d.ts +0 -69
- package/packages/_vue3/dist/src/components/content/wrap-component-ref.d.ts +0 -6
- package/packages/_vue3/dist/src/components/content-variants/content-variants.types.d.ts +0 -20
- package/packages/_vue3/dist/src/components/content-variants/content-variants.vue.d.ts +0 -73
- package/packages/_vue3/dist/src/components/content-variants/helpers.d.ts +0 -41
- package/packages/_vue3/dist/src/components/inlined-script.vue.d.ts +0 -11
- package/packages/_vue3/dist/src/components/inlined-styles.vue.d.ts +0 -11
- package/packages/_vue3/dist/src/constants/builder-registered-components.d.ts +0 -6
- package/packages/_vue3/dist/src/constants/device-sizes.d.ts +0 -13
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +0 -1
- package/packages/_vue3/dist/src/constants/target.d.ts +0 -2
- package/packages/_vue3/dist/src/context/builder.context.d.ts +0 -15
- package/packages/_vue3/dist/src/context/components.context.d.ts +0 -7
- package/packages/_vue3/dist/src/context/types.d.ts +0 -35
- package/packages/_vue3/dist/src/functions/camel-to-kebab-case.d.ts +0 -1
- package/packages/_vue3/dist/src/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/packages/_vue3/dist/src/functions/evaluate/evaluate.d.ts +0 -6
- package/packages/_vue3/dist/src/functions/evaluate/helpers.d.ts +0 -18
- package/packages/_vue3/dist/src/functions/evaluate/index.d.ts +0 -1
- package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +0 -2
- package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime/index.d.ts +0 -6
- package/packages/_vue3/dist/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
- package/packages/_vue3/dist/src/functions/event-handler-name.d.ts +0 -1
- package/packages/_vue3/dist/src/functions/extract-text-styles.d.ts +0 -4
- package/packages/_vue3/dist/src/functions/fast-clone.d.ts +0 -4
- package/packages/_vue3/dist/src/functions/fetch-builder-props.d.ts +0 -39
- package/packages/_vue3/dist/src/functions/get-block-actions-handler.d.ts +0 -8
- package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +0 -10
- package/packages/_vue3/dist/src/functions/get-block-component-options.d.ts +0 -2
- package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +0 -6
- package/packages/_vue3/dist/src/functions/get-builder-search-params/index.d.ts +0 -12
- package/packages/_vue3/dist/src/functions/get-content/generate-content-url.d.ts +0 -2
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +0 -29
- package/packages/_vue3/dist/src/functions/get-content/types.d.ts +0 -51
- package/packages/_vue3/dist/src/functions/get-fetch.d.ts +0 -1
- package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +0 -10
- package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +0 -7
- package/packages/_vue3/dist/src/functions/is-browser.d.ts +0 -1
- package/packages/_vue3/dist/src/functions/is-editing.d.ts +0 -1
- package/packages/_vue3/dist/src/functions/is-iframe.d.ts +0 -1
- package/packages/_vue3/dist/src/functions/is-non-node-server.d.ts +0 -4
- package/packages/_vue3/dist/src/functions/is-previewing.d.ts +0 -1
- package/packages/_vue3/dist/src/functions/register-component.d.ts +0 -15
- package/packages/_vue3/dist/src/functions/register.d.ts +0 -16
- package/packages/_vue3/dist/src/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/packages/_vue3/dist/src/functions/set-editor-settings.d.ts +0 -4
- package/packages/_vue3/dist/src/functions/set.d.ts +0 -7
- package/packages/_vue3/dist/src/functions/track/helpers.d.ts +0 -5
- package/packages/_vue3/dist/src/functions/track/index.d.ts +0 -51
- package/packages/_vue3/dist/src/functions/track/interaction.d.ts +0 -13
- package/packages/_vue3/dist/src/functions/transform-block-properties.d.ts +0 -2
- package/packages/_vue3/dist/src/functions/transform-block.d.ts +0 -2
- package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +0 -9
- package/packages/_vue3/dist/src/helpers/canTrack.d.ts +0 -1
- package/packages/_vue3/dist/src/helpers/cookie.d.ts +0 -19
- package/packages/_vue3/dist/src/helpers/css.d.ts +0 -7
- package/packages/_vue3/dist/src/helpers/flatten.d.ts +0 -6
- package/packages/_vue3/dist/src/helpers/localStorage.d.ts +0 -9
- package/packages/_vue3/dist/src/helpers/logger.d.ts +0 -6
- package/packages/_vue3/dist/src/helpers/nullable.d.ts +0 -2
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/get.d.ts +0 -2
- package/packages/_vue3/dist/src/helpers/preview-lru-cache/set.d.ts +0 -7
- package/packages/_vue3/dist/src/helpers/sessionId.d.ts +0 -6
- package/packages/_vue3/dist/src/helpers/url.d.ts +0 -6
- package/packages/_vue3/dist/src/helpers/uuid.d.ts +0 -8
- package/packages/_vue3/dist/src/helpers/visitorId.d.ts +0 -6
- package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +0 -111
- package/packages/_vue3/dist/src/index-helpers/top-of-file.d.ts +0 -1
- package/packages/_vue3/dist/src/index.d.ts +0 -7
- package/packages/_vue3/dist/src/scripts/init-editing.d.ts +0 -6
- package/packages/_vue3/dist/src/server-index.d.ts +0 -15
- package/packages/_vue3/dist/src/types/api-version.d.ts +0 -2
- package/packages/_vue3/dist/src/types/builder-block.d.ts +0 -66
- package/packages/_vue3/dist/src/types/builder-content.d.ts +0 -44
- package/packages/_vue3/dist/src/types/builder-props.d.ts +0 -9
- package/packages/_vue3/dist/src/types/can-track.d.ts +0 -3
- package/packages/_vue3/dist/src/types/components.d.ts +0 -111
- package/packages/_vue3/dist/src/types/deep-partial.d.ts +0 -3
- package/packages/_vue3/dist/src/types/element.d.ts +0 -59
- package/packages/_vue3/dist/src/types/enforced-partials.d.ts +0 -21
- package/packages/_vue3/dist/src/types/input.d.ts +0 -121
- package/packages/_vue3/dist/src/types/targets.d.ts +0 -1
- package/packages/_vue3/dist/src/types/typescript.d.ts +0 -11
- package/packages/_vue3/dist/style.css +0 -1
- /package/{packages/_vue2/dist → vue2}/env.d.ts +0 -0
- /package/{packages/_vue3/dist → vue3}/env.d.ts +0 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { logger } from '../../../helpers/logger.js';
|
|
2
|
+
import { set } from '../../set.js';
|
|
3
|
+
import Interpreter from './acorn-interpreter.js';
|
|
4
|
+
import type { ExecutorArgs } from '../helpers.js';
|
|
5
|
+
import { getFunctionArguments } from '../helpers.js';
|
|
6
|
+
const processCode = (code: string) => {
|
|
7
|
+
return code.split('\n').map(line => {
|
|
8
|
+
const trimmed = line.trim();
|
|
9
|
+
|
|
10
|
+
// this async wrapper doesn't work in JS-interpreter, so we drop it.
|
|
11
|
+
if (line.includes('__awaiter')) return undefined;
|
|
12
|
+
|
|
13
|
+
// we find all state setter expressions and append a call to setRootState afterwards
|
|
14
|
+
const isStateSetter = trimmed.startsWith('state.');
|
|
15
|
+
if (!isStateSetter) return line;
|
|
16
|
+
const [lhs, rhs] = trimmed.split('=');
|
|
17
|
+
const setStr = lhs.replace('state.', '').trim();
|
|
18
|
+
const setExpr = `setRootState('${setStr}', ${rhs.trim()})`;
|
|
19
|
+
return `
|
|
20
|
+
${line}
|
|
21
|
+
${setExpr}
|
|
22
|
+
`;
|
|
23
|
+
}).filter(Boolean).join('\n');
|
|
24
|
+
};
|
|
25
|
+
const getJSONValName = (val: string) => val + 'JSON';
|
|
26
|
+
export const runInEdge = ({
|
|
27
|
+
builder,
|
|
28
|
+
context,
|
|
29
|
+
event,
|
|
30
|
+
rootState,
|
|
31
|
+
localState,
|
|
32
|
+
rootSetState,
|
|
33
|
+
code
|
|
34
|
+
}: ExecutorArgs) => {
|
|
35
|
+
const state = {
|
|
36
|
+
...rootState,
|
|
37
|
+
...localState
|
|
38
|
+
};
|
|
39
|
+
const properties = getFunctionArguments({
|
|
40
|
+
builder,
|
|
41
|
+
context,
|
|
42
|
+
event,
|
|
43
|
+
state
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Deserialize all properties from JSON strings to JS objects
|
|
48
|
+
*/
|
|
49
|
+
const prependedCode = properties.map(([key]) => {
|
|
50
|
+
const jsonValName = getJSONValName(key);
|
|
51
|
+
return `var ${key} = ${jsonValName} === undefined ? undefined : JSON.parse(${jsonValName});`;
|
|
52
|
+
}).join('\n');
|
|
53
|
+
const cleanedCode = processCode(code);
|
|
54
|
+
if (cleanedCode === '') {
|
|
55
|
+
logger.warn('Skipping evaluation of empty code block.');
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const transformed = `
|
|
59
|
+
function theFunction() {
|
|
60
|
+
${prependedCode}
|
|
61
|
+
|
|
62
|
+
${cleanedCode}
|
|
63
|
+
}
|
|
64
|
+
theFunction();
|
|
65
|
+
`;
|
|
66
|
+
const setRootState = (prop: string, value: any) => {
|
|
67
|
+
const newState = set(state, prop, value);
|
|
68
|
+
rootSetState?.(newState);
|
|
69
|
+
};
|
|
70
|
+
const initFunc = function (interpreter: any, globalObject: any) {
|
|
71
|
+
/**
|
|
72
|
+
* serialize all function args to JSON strings
|
|
73
|
+
*/
|
|
74
|
+
properties.forEach(([key, val]) => {
|
|
75
|
+
const jsonVal = JSON.stringify(val);
|
|
76
|
+
interpreter.setProperty(globalObject, getJSONValName(key), jsonVal);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Add a JavaScript function "setRootState" to the interpreter's global object, that will be called whenever a
|
|
81
|
+
* state property is set. This function will update the state object.
|
|
82
|
+
*/
|
|
83
|
+
interpreter.setProperty(globalObject, 'setRootState', interpreter.createNativeFunction(setRootState));
|
|
84
|
+
};
|
|
85
|
+
try {
|
|
86
|
+
const myInterpreter = new Interpreter(transformed, initFunc);
|
|
87
|
+
myInterpreter.run();
|
|
88
|
+
const output = myInterpreter.pseudoToNative(myInterpreter.value);
|
|
89
|
+
return output;
|
|
90
|
+
} catch (e) {
|
|
91
|
+
logger.warn('Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.', {
|
|
92
|
+
e
|
|
93
|
+
});
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { runInEdge as evaluator } from './edge-runtime.js'
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { logger } from '../../helpers/logger.js';
|
|
2
|
+
import { isBrowser } from '../is-browser.js';
|
|
3
|
+
import { isEditing } from '../is-editing.js';
|
|
4
|
+
import type { BuilderGlobals, ExecutorArgs } from './helpers.js';
|
|
5
|
+
import { getUserAttributes } from '../track/helpers.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* THIS IS A MAGICAL IMPORT. It is aliased by the build process of every SDK configuration, so that
|
|
9
|
+
* it points to the correct runtime for that configuration, which are expected to live exactly at:
|
|
10
|
+
* - ./browser-runtime/index.js
|
|
11
|
+
* - ./node-runtime/index.js
|
|
12
|
+
* - ./edge-runtime/index.js
|
|
13
|
+
*
|
|
14
|
+
* We have code in `/output-generation` that does this aliasing, and is re-used by each SDK.
|
|
15
|
+
* Also, each individual `tsconfig.json` aliases this import to the browser runtime so that the
|
|
16
|
+
* types can be resolved correctly.
|
|
17
|
+
*/
|
|
18
|
+
import { evaluator } from 'placeholder-runtime';
|
|
19
|
+
export type EvaluatorArgs = Omit<ExecutorArgs, 'builder' | 'event'> & {
|
|
20
|
+
event?: Event;
|
|
21
|
+
isExpression?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export function evaluate({
|
|
24
|
+
code,
|
|
25
|
+
context,
|
|
26
|
+
localState,
|
|
27
|
+
rootState,
|
|
28
|
+
rootSetState,
|
|
29
|
+
event,
|
|
30
|
+
isExpression = true
|
|
31
|
+
}: EvaluatorArgs): any {
|
|
32
|
+
if (code === '') {
|
|
33
|
+
logger.warn('Skipping evaluation of empty code block.');
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const builder: BuilderGlobals = {
|
|
37
|
+
isEditing: isEditing(),
|
|
38
|
+
isBrowser: isBrowser(),
|
|
39
|
+
isServer: !isBrowser(),
|
|
40
|
+
getUserAttributes: () => getUserAttributes()
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// Be able to handle simple expressions like "state.foo" or "1 + 1"
|
|
44
|
+
// as well as full blocks like "var foo = "bar"; return foo"
|
|
45
|
+
const useReturn =
|
|
46
|
+
// we disable this for cases where we definitely don't want a return
|
|
47
|
+
isExpression && !(code.includes(';') || code.includes(' return ') || code.trim().startsWith('return '));
|
|
48
|
+
const useCode = useReturn ? `return (${code});` : code;
|
|
49
|
+
const args: ExecutorArgs = {
|
|
50
|
+
code: useCode,
|
|
51
|
+
builder,
|
|
52
|
+
context,
|
|
53
|
+
event,
|
|
54
|
+
rootSetState,
|
|
55
|
+
rootState,
|
|
56
|
+
localState
|
|
57
|
+
};
|
|
58
|
+
try {
|
|
59
|
+
return evaluator(args);
|
|
60
|
+
} catch (e: any) {
|
|
61
|
+
logger.error('Failed code evaluation: ' + e.message, {
|
|
62
|
+
code
|
|
63
|
+
});
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { BuilderContextInterface, BuilderRenderState } from '../../context/types.js';
|
|
2
|
+
import type { getUserAttributes } from '../track/helpers.js';
|
|
3
|
+
export type BuilderGlobals = {
|
|
4
|
+
isEditing: boolean | undefined;
|
|
5
|
+
isBrowser: boolean | undefined;
|
|
6
|
+
isServer: boolean | undefined;
|
|
7
|
+
getUserAttributes: typeof getUserAttributes;
|
|
8
|
+
};
|
|
9
|
+
export type ExecutorArgs = Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'> & {
|
|
10
|
+
code: string;
|
|
11
|
+
builder: BuilderGlobals;
|
|
12
|
+
event: Event | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type Executor = (args: ExecutorArgs) => any;
|
|
15
|
+
export type FunctionArguments = ReturnType<typeof getFunctionArguments>;
|
|
16
|
+
export const getFunctionArguments = ({
|
|
17
|
+
builder,
|
|
18
|
+
context,
|
|
19
|
+
event,
|
|
20
|
+
state
|
|
21
|
+
}: Pick<ExecutorArgs, 'builder' | 'context' | 'event'> & {
|
|
22
|
+
state: BuilderRenderState;
|
|
23
|
+
}) => {
|
|
24
|
+
return Object.entries({
|
|
25
|
+
state,
|
|
26
|
+
Builder: builder,
|
|
27
|
+
// legacy
|
|
28
|
+
builder,
|
|
29
|
+
context,
|
|
30
|
+
event
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { evaluate } from './evaluate.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { evaluator } from '../browser-runtime/index.js'
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ExecutorArgs } from './helpers.js';
|
|
2
|
+
export const evaluator = (_args: ExecutorArgs) => {
|
|
3
|
+
throw new Error('Placeholder evaluator not implemented. Make sure the SDK is properly replacing the import to the evaluator with one of edge/node/browser runtime evaluators.');
|
|
4
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const getEventHandlerName = (key: string) => `v-on:${key.toLowerCase()}`;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const TEXT_STYLE_KEYS = ['color', 'whiteSpace', 'direction', 'hyphens', 'overflowWrap'];
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Check if the key represent a CSS style property that applies to text
|
|
5
|
+
* See MDN docs for refrence of what properties apply to text.
|
|
6
|
+
* https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Fundamentals#summary
|
|
7
|
+
*/
|
|
8
|
+
const isTextStyle = (key: string) => {
|
|
9
|
+
return TEXT_STYLE_KEYS.includes(key) || key.startsWith('font') || key.startsWith('text') || key.startsWith('letter') || key.startsWith('line') || key.startsWith('word') || key.startsWith('writing');
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Extract styles that apply to text from a style object.
|
|
14
|
+
*/
|
|
15
|
+
export const extractTextStyles = (styles: Partial<CSSStyleDeclaration>) => {
|
|
16
|
+
const textStyles: Partial<CSSStyleDeclaration> = {};
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
+
Object.entries(styles).forEach(([key, value]: [any, any]) => {
|
|
19
|
+
if (isTextStyle(key)) {
|
|
20
|
+
textStyles[key] = value;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return textStyles;
|
|
24
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { getBuilderSearchParams } from './get-builder-search-params/index.js';
|
|
2
|
+
import type { ContentVariantsPrps } from '../components/content-variants/content-variants.types.js';
|
|
3
|
+
import type { Dictionary } from '../types/typescript.js';
|
|
4
|
+
import { fetchOneEntry } from './get-content/index.js';
|
|
5
|
+
import type { GetContentOptions } from './get-content/types.js';
|
|
6
|
+
type GetBuilderPropsOptions = (Omit<GetContentOptions, 'model'> & {
|
|
7
|
+
model?: string;
|
|
8
|
+
}) & ({
|
|
9
|
+
/**
|
|
10
|
+
* The current URL path. Used to determine the `urlPath` for targeting content.
|
|
11
|
+
*
|
|
12
|
+
* Cannot be used with `url`.
|
|
13
|
+
*/
|
|
14
|
+
path: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The current URL search params. Used to parse the `searchParams` for targeting content.
|
|
18
|
+
*
|
|
19
|
+
* Cannot be used with `url`.
|
|
20
|
+
*/
|
|
21
|
+
searchParams?: URLSearchParams | Dictionary<string | string[]>;
|
|
22
|
+
url?: undefined;
|
|
23
|
+
} | {
|
|
24
|
+
/**
|
|
25
|
+
* The current URL. Used to determine the `urlPath` for targeting content and
|
|
26
|
+
* to parse the `searchParams` for targeting content.
|
|
27
|
+
*
|
|
28
|
+
* Cannot be used with `path` or `searchParams`.
|
|
29
|
+
*/
|
|
30
|
+
url: URL;
|
|
31
|
+
path?: undefined;
|
|
32
|
+
searchParams?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
url?: undefined;
|
|
35
|
+
path?: undefined;
|
|
36
|
+
searchParams?: undefined;
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Given an `apiKey` and `url` (or `path` + `searchParams`), provides all props that `Content` needs to render Builder Content.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export const fetchBuilderProps = async (_args: GetBuilderPropsOptions): Promise<ContentVariantsPrps> => {
|
|
44
|
+
const urlPath = _args.path || _args.url?.pathname || _args.userAttributes?.urlPath;
|
|
45
|
+
const getContentArgs: GetContentOptions = {
|
|
46
|
+
..._args,
|
|
47
|
+
apiKey: _args.apiKey,
|
|
48
|
+
model: _args.model || 'page',
|
|
49
|
+
userAttributes: {
|
|
50
|
+
..._args.userAttributes,
|
|
51
|
+
...(urlPath ? {
|
|
52
|
+
urlPath
|
|
53
|
+
} : {})
|
|
54
|
+
},
|
|
55
|
+
options: getBuilderSearchParams(_args.searchParams || _args.url?.searchParams || _args.options)
|
|
56
|
+
};
|
|
57
|
+
return {
|
|
58
|
+
apiKey: getContentArgs.apiKey,
|
|
59
|
+
model: getContentArgs.model,
|
|
60
|
+
content: await fetchOneEntry(getContentArgs)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
+
import { evaluate } from './evaluate/index.js';
|
|
4
|
+
type Options = {
|
|
5
|
+
block: BuilderBlock;
|
|
6
|
+
} & Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'>;
|
|
7
|
+
type EventHandler = (event: Event) => any;
|
|
8
|
+
export const createEventHandler = (value: string, options: Options): EventHandler => event => evaluate({
|
|
9
|
+
code: value,
|
|
10
|
+
context: options.context,
|
|
11
|
+
localState: options.localState,
|
|
12
|
+
rootState: options.rootState,
|
|
13
|
+
rootSetState: options.rootSetState,
|
|
14
|
+
event,
|
|
15
|
+
isExpression: false
|
|
16
|
+
})
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TARGET } from '../constants/target.js';
|
|
2
|
+
import type { BuilderContextInterface } from '../context/types.js';
|
|
3
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
4
|
+
import { getEventHandlerName } from './event-handler-name.js';
|
|
5
|
+
import { createEventHandler } from './get-block-actions-handler.js';
|
|
6
|
+
type Actions = {
|
|
7
|
+
[index: string]: (event: Event) => any;
|
|
8
|
+
};
|
|
9
|
+
export function getBlockActions(options: {
|
|
10
|
+
block: BuilderBlock;
|
|
11
|
+
stripPrefix?: boolean;
|
|
12
|
+
} & Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'>): Actions {
|
|
13
|
+
const obj: Actions = {};
|
|
14
|
+
const optionActions = options.block.actions ?? {};
|
|
15
|
+
for (const key in optionActions) {
|
|
16
|
+
// eslint-disable-next-line no-prototype-builtins
|
|
17
|
+
if (!optionActions.hasOwnProperty(key)) {
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
const value = optionActions[key];
|
|
21
|
+
let eventHandlerName = getEventHandlerName(key);
|
|
22
|
+
if (options.stripPrefix) {
|
|
23
|
+
switch (TARGET) {
|
|
24
|
+
case 'vue2':
|
|
25
|
+
case 'vue3':
|
|
26
|
+
eventHandlerName = eventHandlerName.replace('v-on:', '');
|
|
27
|
+
break;
|
|
28
|
+
case 'svelte':
|
|
29
|
+
eventHandlerName = eventHandlerName.replace('on:', '');
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
obj[eventHandlerName] = createEventHandler(value, options);
|
|
34
|
+
}
|
|
35
|
+
return obj;
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
2
|
+
export function getBlockComponentOptions(block: BuilderBlock) {
|
|
3
|
+
return {
|
|
4
|
+
...block.component?.options,
|
|
5
|
+
...(block as any).options,
|
|
6
|
+
/**
|
|
7
|
+
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
8
|
+
*/
|
|
9
|
+
builderBlock: block
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { TARGET } from '../constants/target.js';
|
|
2
|
+
import type { BuilderContextInterface } from '../context/types.js';
|
|
3
|
+
import { convertStyleMapToCSSArray } from '../helpers/css.js';
|
|
4
|
+
import type { BuilderBlock } from '../types/builder-block.js';
|
|
5
|
+
import { getReactNativeBlockStyles } from './get-react-native-block-styles.js';
|
|
6
|
+
import { transformBlockProperties } from './transform-block-properties.js';
|
|
7
|
+
const extractRelevantRootBlockProperties = (block: BuilderBlock) => {
|
|
8
|
+
// currently we are only spreading the `href` property
|
|
9
|
+
// TO-DO: potentially spread all properties from block, but only if they are not already defined by BuilderBlock
|
|
10
|
+
|
|
11
|
+
// const {
|
|
12
|
+
// '@type': _type,
|
|
13
|
+
// '@version': _version,
|
|
14
|
+
// id: _id,
|
|
15
|
+
// tagName: _tagName,
|
|
16
|
+
// layerName: _layerName,
|
|
17
|
+
// groupLocked: _groupLocked,
|
|
18
|
+
// layerLocked: _layerLocked,
|
|
19
|
+
// class: _class,
|
|
20
|
+
// children: _children,
|
|
21
|
+
// responsiveStyles: _responsiveStyles,
|
|
22
|
+
// component: _component,
|
|
23
|
+
// bindings: _bindings,
|
|
24
|
+
// meta: _meta,
|
|
25
|
+
// actions: _actions,
|
|
26
|
+
// properties: _properties,
|
|
27
|
+
// code: _code,
|
|
28
|
+
// repeat: _repeat,
|
|
29
|
+
// animations: _animations,
|
|
30
|
+
// style: _style,
|
|
31
|
+
// hide: _hide,
|
|
32
|
+
// show: _show,
|
|
33
|
+
// // anything set by dynamic bindings outside of predefined `BuilderBlock` properties
|
|
34
|
+
// ...remainingBlockProperties
|
|
35
|
+
// } = block;
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
href: (block as any).href
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export function getBlockProperties({
|
|
42
|
+
block,
|
|
43
|
+
context
|
|
44
|
+
}: {
|
|
45
|
+
block: BuilderBlock;
|
|
46
|
+
context: BuilderContextInterface;
|
|
47
|
+
}) {
|
|
48
|
+
const properties = {
|
|
49
|
+
...extractRelevantRootBlockProperties(block),
|
|
50
|
+
...block.properties,
|
|
51
|
+
'builder-id': block.id,
|
|
52
|
+
style: block.style ? getStyleAttribute(block.style) : undefined,
|
|
53
|
+
class: [block.id, 'builder-block', block.class, block.properties?.class].filter(Boolean).join(' ')
|
|
54
|
+
};
|
|
55
|
+
if (TARGET === 'reactNative') {
|
|
56
|
+
properties.style = getReactNativeBlockStyles({
|
|
57
|
+
block,
|
|
58
|
+
context,
|
|
59
|
+
blockStyles: properties.style
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return transformBlockProperties(properties);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Svelte does not support style attribute as an object so we need to flatten it.
|
|
66
|
+
*
|
|
67
|
+
* Additionally, Svelte, Vue and other frameworks use kebab-case styles, so we need to convert them.
|
|
68
|
+
*/
|
|
69
|
+
function getStyleAttribute(style: Partial<CSSStyleDeclaration>): string | Partial<CSSStyleDeclaration> {
|
|
70
|
+
switch (TARGET) {
|
|
71
|
+
case 'svelte':
|
|
72
|
+
case 'vue2':
|
|
73
|
+
case 'vue3':
|
|
74
|
+
case 'solid':
|
|
75
|
+
return convertStyleMapToCSSArray(style).join(' ');
|
|
76
|
+
case 'qwik':
|
|
77
|
+
case 'reactNative':
|
|
78
|
+
case 'react':
|
|
79
|
+
case 'rsc':
|
|
80
|
+
return style;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { isBrowser } from '../is-browser.js';
|
|
2
|
+
const BUILDER_SEARCHPARAMS_PREFIX = 'builder.';
|
|
3
|
+
const BUILDER_OPTIONS_PREFIX = 'options.';
|
|
4
|
+
type QueryObject = Record<string, string | string[]>;
|
|
5
|
+
export const convertSearchParamsToQueryObject = (searchParams: URLSearchParams): QueryObject => {
|
|
6
|
+
const options: Record<string, string> = {};
|
|
7
|
+
searchParams.forEach((value, key) => {
|
|
8
|
+
options[key] = value;
|
|
9
|
+
});
|
|
10
|
+
return options;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Receives a `URLSearchParams` object or a regular query object, and returns the subset of query params that are
|
|
15
|
+
* relevant to the Builder SDK.
|
|
16
|
+
*
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export const getBuilderSearchParams = (_options: QueryObject | URLSearchParams | undefined) => {
|
|
20
|
+
if (!_options) {
|
|
21
|
+
return {};
|
|
22
|
+
}
|
|
23
|
+
const options = normalizeSearchParams(_options);
|
|
24
|
+
const newOptions: QueryObject = {};
|
|
25
|
+
Object.keys(options).forEach(key => {
|
|
26
|
+
if (key.startsWith(BUILDER_SEARCHPARAMS_PREFIX)) {
|
|
27
|
+
const trimmedKey = key.replace(BUILDER_SEARCHPARAMS_PREFIX, '').replace(BUILDER_OPTIONS_PREFIX, '');
|
|
28
|
+
newOptions[trimmedKey] = options[key];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return newOptions;
|
|
32
|
+
};
|
|
33
|
+
export const getBuilderSearchParamsFromWindow = () => {
|
|
34
|
+
if (!isBrowser()) {
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
const searchParams = new URLSearchParams(window.location.search);
|
|
38
|
+
return getBuilderSearchParams(searchParams);
|
|
39
|
+
};
|
|
40
|
+
export const normalizeSearchParams = (searchParams: QueryObject | URLSearchParams): QueryObject => searchParams instanceof URLSearchParams ? convertSearchParamsToQueryObject(searchParams) : searchParams
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { flatten } from '../../helpers/flatten.js';
|
|
2
|
+
import { getBuilderSearchParamsFromWindow, normalizeSearchParams } from '../get-builder-search-params/index.js';
|
|
3
|
+
import type { GetContentOptions } from './types.js';
|
|
4
|
+
import { DEFAULT_API_VERSION } from '../../types/api-version.js';
|
|
5
|
+
export const generateContentUrl = (options: GetContentOptions): URL => {
|
|
6
|
+
const {
|
|
7
|
+
limit = 30,
|
|
8
|
+
userAttributes,
|
|
9
|
+
query,
|
|
10
|
+
noTraverse = false,
|
|
11
|
+
model,
|
|
12
|
+
apiKey,
|
|
13
|
+
includeRefs = true,
|
|
14
|
+
enrich,
|
|
15
|
+
locale,
|
|
16
|
+
apiVersion = DEFAULT_API_VERSION
|
|
17
|
+
} = options;
|
|
18
|
+
if (!apiKey) {
|
|
19
|
+
throw new Error('Missing API key');
|
|
20
|
+
}
|
|
21
|
+
if (!['v2', 'v3'].includes(apiVersion)) {
|
|
22
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${apiVersion}'`);
|
|
23
|
+
}
|
|
24
|
+
const url = new URL(`https://cdn.builder.io/api/${apiVersion}/content/${model}?apiKey=${apiKey}&limit=${limit}&noTraverse=${noTraverse}&includeRefs=${includeRefs}${locale ? `&locale=${locale}` : ''}${enrich ? `&enrich=${enrich}` : ''}`);
|
|
25
|
+
const queryOptions = {
|
|
26
|
+
...getBuilderSearchParamsFromWindow(),
|
|
27
|
+
...normalizeSearchParams(options.options || {})
|
|
28
|
+
};
|
|
29
|
+
const flattened = flatten(queryOptions);
|
|
30
|
+
for (const key in flattened) {
|
|
31
|
+
url.searchParams.set(key, String(flattened[key]));
|
|
32
|
+
}
|
|
33
|
+
if (userAttributes) {
|
|
34
|
+
url.searchParams.set('userAttributes', JSON.stringify(userAttributes));
|
|
35
|
+
}
|
|
36
|
+
if (query) {
|
|
37
|
+
const flattened = flatten({
|
|
38
|
+
query
|
|
39
|
+
});
|
|
40
|
+
for (const key in flattened) {
|
|
41
|
+
url.searchParams.set(key, JSON.stringify((flattened as any)[key]));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return url;
|
|
45
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { TARGET } from '../../constants/target.js';
|
|
2
|
+
import { handleABTesting } from '../../helpers/ab-tests.js';
|
|
3
|
+
import { getDefaultCanTrack } from '../../helpers/canTrack.js';
|
|
4
|
+
import { logger } from '../../helpers/logger.js';
|
|
5
|
+
import { getPreviewContent } from '../../helpers/preview-lru-cache/get.js';
|
|
6
|
+
import type { BuilderContent } from '../../types/builder-content.js';
|
|
7
|
+
import { fetch } from '../get-fetch.js';
|
|
8
|
+
import { isBrowser } from '../is-browser.js';
|
|
9
|
+
import { generateContentUrl } from './generate-content-url.js';
|
|
10
|
+
import type { GetContentOptions } from './types.js';
|
|
11
|
+
const checkContentHasResults = (content: ContentResponse): content is ContentResults => 'results' in content;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Returns a the first entry that matches the given options.
|
|
15
|
+
*/
|
|
16
|
+
export async function fetchOneEntry(options: GetContentOptions): Promise<BuilderContent | null> {
|
|
17
|
+
const allContent = await fetchEntries({
|
|
18
|
+
...options,
|
|
19
|
+
limit: 1
|
|
20
|
+
});
|
|
21
|
+
if (allContent) {
|
|
22
|
+
return allContent.results[0] || null;
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated `getContent` was renamed to `fetchOneEntry`. This is a temporary alias to avoid breaking changes.
|
|
29
|
+
*
|
|
30
|
+
* NOTE: consider using `fetchBuilderProps` instead for easier setup.
|
|
31
|
+
*/
|
|
32
|
+
export const getContent = fetchOneEntry;
|
|
33
|
+
type ContentResults = {
|
|
34
|
+
results: BuilderContent[];
|
|
35
|
+
};
|
|
36
|
+
type ContentResponse = ContentResults | {
|
|
37
|
+
status: number;
|
|
38
|
+
message: string;
|
|
39
|
+
};
|
|
40
|
+
const _fetchContent = async (options: GetContentOptions) => {
|
|
41
|
+
const url = generateContentUrl(options);
|
|
42
|
+
const res = await fetch(url.href);
|
|
43
|
+
const content = await (res.json() as Promise<ContentResponse>);
|
|
44
|
+
return content;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal Exported only for testing purposes. Do not use.
|
|
49
|
+
*/
|
|
50
|
+
export const _processContentResult = async (options: GetContentOptions, content: ContentResults, url: URL = generateContentUrl(options)) => {
|
|
51
|
+
const canTrack = getDefaultCanTrack(options.canTrack);
|
|
52
|
+
const isPreviewing = url.search.includes(`preview=`);
|
|
53
|
+
if (TARGET === 'rsc' && isPreviewing) {
|
|
54
|
+
const newResults: BuilderContent[] = [];
|
|
55
|
+
for (const item of content.results) {
|
|
56
|
+
const previewContent = getPreviewContent(url.searchParams);
|
|
57
|
+
newResults.push(previewContent || item);
|
|
58
|
+
}
|
|
59
|
+
content.results = newResults;
|
|
60
|
+
}
|
|
61
|
+
if (!canTrack) return content;
|
|
62
|
+
if (!(isBrowser() || TARGET === 'reactNative')) return content;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* For client-side navigations, it is ideal to handle AB testing at this point instead of using our
|
|
66
|
+
* complex multi-rendering variants approach, which is only needed for SSR'd content.
|
|
67
|
+
*
|
|
68
|
+
* This is also where react-native would handle AB testing.
|
|
69
|
+
*/
|
|
70
|
+
try {
|
|
71
|
+
const newResults: BuilderContent[] = [];
|
|
72
|
+
for (const item of content.results) {
|
|
73
|
+
newResults.push(await handleABTesting({
|
|
74
|
+
item,
|
|
75
|
+
canTrack
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
content.results = newResults;
|
|
79
|
+
} catch (e) {
|
|
80
|
+
logger.error('Could not process A/B tests. ', e);
|
|
81
|
+
}
|
|
82
|
+
return content;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Returns a paginated array of entries that match the given options.
|
|
87
|
+
*/
|
|
88
|
+
export async function fetchEntries(options: GetContentOptions) {
|
|
89
|
+
try {
|
|
90
|
+
const url = generateContentUrl(options);
|
|
91
|
+
const content = await _fetchContent(options);
|
|
92
|
+
if (!checkContentHasResults(content)) {
|
|
93
|
+
logger.error('Error fetching data. ', {
|
|
94
|
+
url,
|
|
95
|
+
content,
|
|
96
|
+
options
|
|
97
|
+
});
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
return _processContentResult(options, content);
|
|
101
|
+
} catch (error) {
|
|
102
|
+
logger.error('Error fetching data. ', error);
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated `getAllContent` was renamed to `fetchEntries`. This is a temporary alias to avoid breaking changes.
|
|
109
|
+
*/
|
|
110
|
+
export const getAllContent = fetchEntries
|