@builder.io/sdk-qwik 0.6.5-4 → 0.7.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/lib/browser/index.qwik.cjs +48 -61
- package/lib/browser/index.qwik.mjs +49 -62
- package/lib/edge/index.qwik.cjs +48 -61
- package/lib/edge/index.qwik.mjs +49 -62
- package/lib/node/index.qwik.cjs +48 -61
- package/lib/node/index.qwik.mjs +49 -62
- package/package.json +1 -1
- package/lib/index.qwik.cjs +0 -8790
- package/lib/index.qwik.mjs +0 -8790
- package/types/blocks/BaseText.d.ts +0 -5
- package/types/blocks/button/button.d.ts +0 -11
- package/types/blocks/button/component-info.d.ts +0 -2
- package/types/blocks/columns/columns.d.ts +0 -32
- package/types/blocks/columns/component-info.d.ts +0 -2
- package/types/blocks/custom-code/component-info.d.ts +0 -2
- package/types/blocks/custom-code/custom-code.d.ts +0 -7
- package/types/blocks/embed/component-info.d.ts +0 -2
- package/types/blocks/embed/embed.d.ts +0 -6
- package/types/blocks/embed/helpers.d.ts +0 -1
- package/types/blocks/form/component-info.d.ts +0 -2
- package/types/blocks/fragment/component-info.d.ts +0 -2
- package/types/blocks/fragment/fragment.d.ts +0 -7
- package/types/blocks/helpers.d.ts +0 -13
- package/types/blocks/image/component-info.d.ts +0 -2
- package/types/blocks/image/image.d.ts +0 -23
- package/types/blocks/image/image.helpers.d.ts +0 -1
- package/types/blocks/img/component-info.d.ts +0 -2
- package/types/blocks/img/img.d.ts +0 -12
- package/types/blocks/input/component-info.d.ts +0 -2
- package/types/blocks/input/input.d.ts +0 -13
- package/types/blocks/raw-text/component-info.d.ts +0 -2
- package/types/blocks/raw-text/raw-text.d.ts +0 -6
- package/types/blocks/section/component-info.d.ts +0 -2
- package/types/blocks/section/section.d.ts +0 -10
- package/types/blocks/select/component-info.d.ts +0 -2
- package/types/blocks/select/select.d.ts +0 -14
- package/types/blocks/submit-button/component-info.d.ts +0 -2
- package/types/blocks/submit-button/submit-button.d.ts +0 -8
- package/types/blocks/symbol/component-info.d.ts +0 -2
- package/types/blocks/symbol/symbol.d.ts +0 -24
- package/types/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/types/blocks/text/component-info.d.ts +0 -2
- package/types/blocks/text/text.d.ts +0 -5
- package/types/blocks/textarea/component-info.d.ts +0 -2
- package/types/blocks/textarea/textarea.d.ts +0 -11
- package/types/blocks/video/component-info.d.ts +0 -2
- package/types/blocks/video/video.d.ts +0 -19
- package/types/components/block/block.d.ts +0 -9
- package/types/components/block/block.helpers.d.ts +0 -13
- package/types/components/block/components/block-styles.d.ts +0 -8
- package/types/components/block/components/block-wrapper.d.ts +0 -20
- package/types/components/block/components/component-ref/component-ref.d.ts +0 -3
- package/types/components/block/components/component-ref/component-ref.helpers.d.ts +0 -35
- package/types/components/block/components/interactive-element.d.ts +0 -11
- package/types/components/block/components/repeated-block.d.ts +0 -9
- package/types/components/block/types.d.ts +0 -6
- package/types/components/blocks/blocks-wrapper.d.ts +0 -13
- package/types/components/blocks/blocks.d.ts +0 -8
- package/types/components/blocks/deopt.d.ts +0 -4
- package/types/components/content/components/enable-editor.d.ts +0 -21
- package/types/components/content/components/styles.d.ts +0 -8
- package/types/components/content/components/styles.helpers.d.ts +0 -15
- package/types/components/content/content.d.ts +0 -5
- package/types/components/content/content.helpers.d.ts +0 -7
- package/types/components/content/content.types.d.ts +0 -24
- package/types/components/content/index.d.ts +0 -1
- package/types/components/content/wrap-component-ref.d.ts +0 -6
- package/types/components/content-variants/content-variants.d.ts +0 -9
- package/types/components/content-variants/content-variants.types.d.ts +0 -20
- package/types/components/content-variants/helpers.d.ts +0 -41
- package/types/components/inlined-script.d.ts +0 -6
- package/types/components/inlined-styles.d.ts +0 -6
- package/types/constants/builder-registered-components.d.ts +0 -6
- package/types/constants/device-sizes.d.ts +0 -13
- package/types/constants/sdk-version.d.ts +0 -1
- package/types/constants/target.d.ts +0 -2
- package/types/context/builder.context.d.ts +0 -2
- package/types/context/components.context.d.ts +0 -2
- package/types/context/types.d.ts +0 -35
- package/types/functions/apply-patch-with-mutation.d.ts +0 -10
- package/types/functions/camel-to-kebab-case.d.ts +0 -1
- package/types/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/types/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
- package/types/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
- package/types/functions/evaluate/edge-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/evaluate.d.ts +0 -6
- package/types/functions/evaluate/helpers.d.ts +0 -18
- package/types/functions/evaluate/index.d.ts +0 -1
- package/types/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +0 -2
- package/types/functions/evaluate/non-node-runtime/index.d.ts +0 -1
- package/types/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
- package/types/functions/evaluate/placeholder-runtime.d.ts +0 -2
- package/types/functions/event-handler-name.d.ts +0 -1
- package/types/functions/extract-text-styles.d.ts +0 -4
- package/types/functions/fast-clone.d.ts +0 -4
- package/types/functions/fetch-builder-props.d.ts +0 -40
- package/types/functions/get-block-actions-handler.d.ts +0 -5
- package/types/functions/get-block-actions.d.ts +0 -10
- package/types/functions/get-block-component-options.d.ts +0 -2
- package/types/functions/get-block-properties.d.ts +0 -11
- package/types/functions/get-builder-search-params/index.d.ts +0 -12
- package/types/functions/get-content/generate-content-url.d.ts +0 -2
- package/types/functions/get-content/index.d.ts +0 -28
- package/types/functions/get-content/types.d.ts +0 -51
- package/types/functions/get-fetch.d.ts +0 -1
- package/types/functions/get-global-this.d.ts +0 -4
- package/types/functions/get-processed-block.d.ts +0 -10
- package/types/functions/get-react-native-block-styles.d.ts +0 -7
- package/types/functions/is-browser.d.ts +0 -1
- package/types/functions/is-edge-runtime.d.ts +0 -4
- package/types/functions/is-editing.d.ts +0 -1
- package/types/functions/is-iframe.d.ts +0 -1
- package/types/functions/is-non-node-server.d.ts +0 -4
- package/types/functions/is-previewing.d.ts +0 -1
- package/types/functions/on-change.d.ts +0 -7
- package/types/functions/register-component.d.ts +0 -15
- package/types/functions/register.d.ts +0 -16
- package/types/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/types/functions/set-editor-settings.d.ts +0 -4
- package/types/functions/set.d.ts +0 -7
- package/types/functions/track/helpers.d.ts +0 -5
- package/types/functions/track/index.d.ts +0 -51
- package/types/functions/track/interaction.d.ts +0 -13
- package/types/functions/transform-block-properties.d.ts +0 -1
- package/types/functions/transform-block.d.ts +0 -2
- package/types/helpers/ab-tests.d.ts +0 -9
- package/types/helpers/canTrack.d.ts +0 -1
- package/types/helpers/cookie.d.ts +0 -19
- package/types/helpers/css.d.ts +0 -7
- package/types/helpers/flatten.d.ts +0 -6
- package/types/helpers/localStorage.d.ts +0 -9
- package/types/helpers/logger.d.ts +0 -6
- package/types/helpers/nullable.d.ts +0 -2
- package/types/helpers/preview-lru-cache/get.d.ts +0 -2
- package/types/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/types/helpers/preview-lru-cache/init.d.ts +0 -6
- package/types/helpers/preview-lru-cache/set.d.ts +0 -7
- package/types/helpers/preview-lru-cache/types.d.ts +0 -0
- package/types/helpers/sessionId.d.ts +0 -6
- package/types/helpers/time.d.ts +0 -1
- package/types/helpers/url.d.ts +0 -6
- package/types/helpers/uuid.d.ts +0 -8
- package/types/helpers/visitorId.d.ts +0 -6
- package/types/index-helpers/blocks-exports.d.ts +0 -21
- package/types/index-helpers/top-of-file.d.ts +0 -1
- package/types/index.d.ts +0 -7
- package/types/scripts/init-editing.d.ts +0 -6
- package/types/server-index.d.ts +0 -15
- package/types/src/blocks/BaseText.d.ts +0 -5
- package/types/src/blocks/button/button.d.ts +0 -11
- package/types/src/blocks/button/component-info.d.ts +0 -2
- package/types/src/blocks/columns/columns.d.ts +0 -32
- package/types/src/blocks/columns/component-info.d.ts +0 -2
- package/types/src/blocks/custom-code/component-info.d.ts +0 -2
- package/types/src/blocks/custom-code/custom-code.d.ts +0 -7
- package/types/src/blocks/embed/component-info.d.ts +0 -2
- package/types/src/blocks/embed/embed.d.ts +0 -6
- package/types/src/blocks/embed/helpers.d.ts +0 -1
- package/types/src/blocks/form/component-info.d.ts +0 -2
- package/types/src/blocks/fragment/component-info.d.ts +0 -2
- package/types/src/blocks/fragment/fragment.d.ts +0 -7
- package/types/src/blocks/helpers.d.ts +0 -13
- package/types/src/blocks/image/component-info.d.ts +0 -2
- package/types/src/blocks/image/image.d.ts +0 -22
- package/types/src/blocks/image/image.helpers.d.ts +0 -1
- package/types/src/blocks/img/component-info.d.ts +0 -2
- package/types/src/blocks/img/img.d.ts +0 -12
- package/types/src/blocks/input/component-info.d.ts +0 -2
- package/types/src/blocks/input/input.d.ts +0 -13
- package/types/src/blocks/raw-text/component-info.d.ts +0 -2
- package/types/src/blocks/raw-text/raw-text.d.ts +0 -6
- package/types/src/blocks/section/component-info.d.ts +0 -2
- package/types/src/blocks/section/section.d.ts +0 -10
- package/types/src/blocks/select/component-info.d.ts +0 -2
- package/types/src/blocks/select/select.d.ts +0 -14
- package/types/src/blocks/submit-button/component-info.d.ts +0 -2
- package/types/src/blocks/submit-button/submit-button.d.ts +0 -8
- package/types/src/blocks/symbol/component-info.d.ts +0 -2
- package/types/src/blocks/symbol/symbol.d.ts +0 -24
- package/types/src/blocks/symbol/symbol.helpers.d.ts +0 -14
- package/types/src/blocks/text/component-info.d.ts +0 -2
- package/types/src/blocks/text/text.d.ts +0 -5
- package/types/src/blocks/textarea/component-info.d.ts +0 -2
- package/types/src/blocks/textarea/textarea.d.ts +0 -11
- package/types/src/blocks/video/component-info.d.ts +0 -2
- package/types/src/blocks/video/video.d.ts +0 -19
- package/types/src/components/block/block.d.ts +0 -9
- package/types/src/components/block/block.helpers.d.ts +0 -13
- package/types/src/components/block/components/block-styles.d.ts +0 -8
- package/types/src/components/block/components/block-wrapper.d.ts +0 -20
- package/types/src/components/block/components/component-ref/component-ref.d.ts +0 -3
- package/types/src/components/block/components/component-ref/component-ref.helpers.d.ts +0 -35
- package/types/src/components/block/components/interactive-element.d.ts +0 -11
- package/types/src/components/block/components/repeated-block.d.ts +0 -9
- package/types/src/components/block/types.d.ts +0 -6
- package/types/src/components/blocks/blocks-wrapper.d.ts +0 -13
- package/types/src/components/blocks/blocks.d.ts +0 -8
- package/types/src/components/blocks/deopt.d.ts +0 -4
- package/types/src/components/content/components/enable-editor.d.ts +0 -25
- package/types/src/components/content/components/styles.d.ts +0 -8
- package/types/src/components/content/components/styles.helpers.d.ts +0 -15
- package/types/src/components/content/content.d.ts +0 -5
- package/types/src/components/content/content.helpers.d.ts +0 -7
- package/types/src/components/content/content.types.d.ts +0 -24
- package/types/src/components/content/index.d.ts +0 -1
- package/types/src/components/content/wrap-component-ref.d.ts +0 -6
- package/types/src/components/content-variants/content-variants.d.ts +0 -9
- package/types/src/components/content-variants/content-variants.types.d.ts +0 -20
- package/types/src/components/content-variants/helpers.d.ts +0 -41
- package/types/src/components/inlined-script.d.ts +0 -6
- package/types/src/components/inlined-styles.d.ts +0 -6
- package/types/src/constants/builder-registered-components.d.ts +0 -6
- package/types/src/constants/device-sizes.d.ts +0 -13
- package/types/src/constants/sdk-version.d.ts +0 -1
- package/types/src/constants/target.d.ts +0 -2
- package/types/src/context/builder.context.d.ts +0 -2
- package/types/src/context/components.context.d.ts +0 -2
- package/types/src/context/types.d.ts +0 -35
- package/types/src/functions/apply-patch-with-mutation.d.ts +0 -10
- package/types/src/functions/camel-to-kebab-case.d.ts +0 -1
- package/types/src/functions/deopt.d.ts +0 -4
- package/types/src/functions/evaluate/browser-runtime/browser.d.ts +0 -4
- package/types/src/functions/evaluate/browser-runtime/index.d.ts +0 -1
- package/types/src/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
- package/types/src/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
- package/types/src/functions/evaluate/edge-runtime/index.d.ts +0 -1
- package/types/src/functions/evaluate/evaluate.d.ts +0 -6
- package/types/src/functions/evaluate/helpers.d.ts +0 -18
- package/types/src/functions/evaluate/index.d.ts +0 -1
- package/types/src/functions/evaluate/node-runtime/index.d.ts +0 -1
- package/types/src/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +0 -2
- package/types/src/functions/evaluate/non-node-runtime/index.d.ts +0 -1
- package/types/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
- package/types/src/functions/evaluate/placeholder-runtime.d.ts +0 -2
- package/types/src/functions/event-handler-name.d.ts +0 -1
- package/types/src/functions/extract-text-styles.d.ts +0 -4
- package/types/src/functions/fast-clone.d.ts +0 -4
- package/types/src/functions/fetch-builder-props.d.ts +0 -53
- package/types/src/functions/get-block-actions-handler.d.ts +0 -5
- package/types/src/functions/get-block-actions.d.ts +0 -10
- package/types/src/functions/get-block-component-options.d.ts +0 -2
- package/types/src/functions/get-block-properties.d.ts +0 -11
- package/types/src/functions/get-builder-search-params/index.d.ts +0 -12
- package/types/src/functions/get-content/generate-content-url.d.ts +0 -2
- package/types/src/functions/get-content/index.d.ts +0 -28
- package/types/src/functions/get-content/types.d.ts +0 -51
- package/types/src/functions/get-fetch.d.ts +0 -1
- package/types/src/functions/get-global-this.d.ts +0 -4
- package/types/src/functions/get-processed-block.d.ts +0 -10
- package/types/src/functions/get-react-native-block-styles.d.ts +0 -7
- package/types/src/functions/is-browser.d.ts +0 -1
- package/types/src/functions/is-edge-runtime.d.ts +0 -4
- package/types/src/functions/is-editing.d.ts +0 -1
- package/types/src/functions/is-iframe.d.ts +0 -1
- package/types/src/functions/is-non-node-server.d.ts +0 -4
- package/types/src/functions/is-previewing.d.ts +0 -1
- package/types/src/functions/on-change.d.ts +0 -7
- package/types/src/functions/register-component.d.ts +0 -15
- package/types/src/functions/register.d.ts +0 -16
- package/types/src/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/types/src/functions/set-editor-settings.d.ts +0 -4
- package/types/src/functions/set.d.ts +0 -7
- package/types/src/functions/track/helpers.d.ts +0 -5
- package/types/src/functions/track/index.d.ts +0 -51
- package/types/src/functions/track/interaction.d.ts +0 -13
- package/types/src/functions/transform-block-properties.d.ts +0 -1
- package/types/src/functions/transform-block.d.ts +0 -2
- package/types/src/helpers/ab-tests.d.ts +0 -9
- package/types/src/helpers/canTrack.d.ts +0 -1
- package/types/src/helpers/cookie.d.ts +0 -19
- package/types/src/helpers/css.d.ts +0 -7
- package/types/src/helpers/flatten.d.ts +0 -6
- package/types/src/helpers/localStorage.d.ts +0 -9
- package/types/src/helpers/logger.d.ts +0 -6
- package/types/src/helpers/nullable.d.ts +0 -2
- package/types/src/helpers/preview-lru-cache/get.d.ts +0 -2
- package/types/src/helpers/preview-lru-cache/helpers.d.ts +0 -0
- package/types/src/helpers/preview-lru-cache/init.d.ts +0 -6
- package/types/src/helpers/preview-lru-cache/set.d.ts +0 -7
- package/types/src/helpers/preview-lru-cache/types.d.ts +0 -0
- package/types/src/helpers/sessionId.d.ts +0 -6
- package/types/src/helpers/time.d.ts +0 -1
- package/types/src/helpers/url.d.ts +0 -6
- package/types/src/helpers/uuid.d.ts +0 -8
- package/types/src/helpers/visitorId.d.ts +0 -6
- package/types/src/index-helpers/blocks-exports.d.ts +0 -21
- package/types/src/index-helpers/top-of-file.d.ts +0 -1
- package/types/src/index.d.ts +0 -7
- package/types/src/scripts/init-editing.d.ts +0 -6
- package/types/src/server-index.d.ts +0 -15
- package/types/src/types/api-version.d.ts +0 -2
- package/types/src/types/builder-block.d.ts +0 -66
- package/types/src/types/builder-content.d.ts +0 -44
- package/types/src/types/builder-props.d.ts +0 -9
- package/types/src/types/can-track.d.ts +0 -3
- package/types/src/types/components.d.ts +0 -110
- package/types/src/types/deep-partial.d.ts +0 -3
- package/types/src/types/element.d.ts +0 -59
- package/types/src/types/enforced-partials.d.ts +0 -21
- package/types/src/types/input.d.ts +0 -121
- package/types/src/types/targets.d.ts +0 -1
- package/types/src/types/typescript.d.ts +0 -11
- package/types/types/api-version.d.ts +0 -2
- package/types/types/builder-block.d.ts +0 -66
- package/types/types/builder-content.d.ts +0 -44
- package/types/types/builder-props.d.ts +0 -9
- package/types/types/can-track.d.ts +0 -3
- package/types/types/components.d.ts +0 -111
- package/types/types/deep-partial.d.ts +0 -3
- package/types/types/element.d.ts +0 -59
- package/types/types/enforced-partials.d.ts +0 -21
- package/types/types/input.d.ts +0 -121
- package/types/types/targets.d.ts +0 -1
- package/types/types/typescript.d.ts +0 -11
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export interface GetContentOptions {
|
|
2
|
-
/** The model to get content for */
|
|
3
|
-
model: string;
|
|
4
|
-
/** Your public API key */
|
|
5
|
-
apiKey: string;
|
|
6
|
-
/** Number of items to fetch. Default is 1 */
|
|
7
|
-
limit?: number;
|
|
8
|
-
/** User attributes to target on, such as { urlPath: '/foo', device: 'mobile', ...etc } */
|
|
9
|
-
userAttributes?: (Record<string, string> & {
|
|
10
|
-
urlPath?: string;
|
|
11
|
-
}) | null;
|
|
12
|
-
/** Custom query */
|
|
13
|
-
query?: Record<string, any>;
|
|
14
|
-
/**
|
|
15
|
-
* Any other API options.
|
|
16
|
-
* Accepts both a key/value object or a `URLSearchParams` instance
|
|
17
|
-
* */
|
|
18
|
-
options?: Record<string, any> | URLSearchParams;
|
|
19
|
-
/**
|
|
20
|
-
* If set to `true`, it will lazy load symbols/references.
|
|
21
|
-
* If set to `false`, it will render the entire content tree eagerly.
|
|
22
|
-
* @deprecated use `enrich` instead
|
|
23
|
-
*/
|
|
24
|
-
noTraverse?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* If set to `false`, it will not use cookies to target content. Therefore, A/B Testing will be disabled and
|
|
27
|
-
* only the default variation will be returned to every user.
|
|
28
|
-
*
|
|
29
|
-
* Defaults to `true`.
|
|
30
|
-
*/
|
|
31
|
-
canTrack?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Include references in the response. Defaults to `true`.
|
|
34
|
-
* @deprecated use `enrich` instead
|
|
35
|
-
*/
|
|
36
|
-
includeRefs?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Include multilevel references in the response.
|
|
39
|
-
*/
|
|
40
|
-
enrich?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* If provided, the API will auto-resolve localized objects to the value of this `locale` key.
|
|
43
|
-
*/
|
|
44
|
-
locale?: string;
|
|
45
|
-
/**
|
|
46
|
-
* If provided, sets the Builder API version used to fetch content.
|
|
47
|
-
*
|
|
48
|
-
* Defaults to `v3`.
|
|
49
|
-
*/
|
|
50
|
-
apiVersion?: 'v2' | 'v3';
|
|
51
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fetch: typeof globalThis.fetch;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
-
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
-
export declare function getProcessedBlock({ block, context, shouldEvaluateBindings, localState, rootState, rootSetState }: {
|
|
4
|
-
block: BuilderBlock;
|
|
5
|
-
/**
|
|
6
|
-
* In some cases, we want to avoid evaluating bindings and only want framework-specific block transformation. It is
|
|
7
|
-
* also sometimes too early to consider bindings, e.g. when we might be looking at a repeated block.
|
|
8
|
-
*/
|
|
9
|
-
shouldEvaluateBindings: boolean;
|
|
10
|
-
} & Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'>): BuilderBlock;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
-
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
-
export declare function getReactNativeBlockStyles({ block, context, blockStyles }: {
|
|
4
|
-
block: BuilderBlock;
|
|
5
|
-
context: BuilderContextInterface;
|
|
6
|
-
blockStyles: any;
|
|
7
|
-
}): CSSStyleDeclaration | Record<string, string | undefined>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isBrowser(): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isEditing(): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isIframe(): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isPreviewing(): boolean;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { RegisteredComponent } from '../context/types.js';
|
|
2
|
-
import type { ComponentInfo } from '../types/components.js';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.
|
|
5
|
-
*/
|
|
6
|
-
export declare const components: RegisteredComponent[];
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK.
|
|
9
|
-
*/
|
|
10
|
-
export declare function registerComponent(component: any, info: ComponentInfo): void;
|
|
11
|
-
export declare const createRegisterComponentMessage: (info: ComponentInfo) => {
|
|
12
|
-
type: string;
|
|
13
|
-
data: ComponentInfo;
|
|
14
|
-
};
|
|
15
|
-
export declare const serializeComponentInfo: ({ inputs, ...info }: ComponentInfo) => ComponentInfo;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { BuilderBlock } from '../types/builder-block.js';
|
|
2
|
-
import type { DeepPartial } from '../types/deep-partial.js';
|
|
3
|
-
export interface InsertMenuItem {
|
|
4
|
-
name: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
item: DeepPartial<BuilderBlock>;
|
|
7
|
-
}
|
|
8
|
-
export interface InsertMenuConfig {
|
|
9
|
-
name: string;
|
|
10
|
-
priority?: number;
|
|
11
|
-
persist?: boolean;
|
|
12
|
-
advanced?: boolean;
|
|
13
|
-
items: InsertMenuItem[];
|
|
14
|
-
}
|
|
15
|
-
export declare function register(type: 'insertMenu', info: InsertMenuConfig): void;
|
|
16
|
-
export declare function register(type: string, info: any): void;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { CanTrack } from '../../types/can-track.js';
|
|
2
|
-
import type { Dictionary } from '../../types/typescript.js';
|
|
3
|
-
interface Event {
|
|
4
|
-
/**
|
|
5
|
-
* The type of your event.
|
|
6
|
-
*
|
|
7
|
-
* Examples: `click`, `conversion`, `pageview`, `impression`
|
|
8
|
-
*/
|
|
9
|
-
type: string;
|
|
10
|
-
data: {
|
|
11
|
-
/**
|
|
12
|
-
* (Optional) The content's ID. Useful if this event pertains to a specific piece of content.
|
|
13
|
-
*/
|
|
14
|
-
contentId?: string;
|
|
15
|
-
/**
|
|
16
|
-
* This is the ID of the space that the content belongs to.
|
|
17
|
-
*/
|
|
18
|
-
ownerId: string;
|
|
19
|
-
/**
|
|
20
|
-
* (Optional) metadata that you want to provide with your event.
|
|
21
|
-
*/
|
|
22
|
-
metadata?: Dictionary<any>;
|
|
23
|
-
/**
|
|
24
|
-
* Session ID of the user. This is provided by the SDK by checking session storage.
|
|
25
|
-
*/
|
|
26
|
-
sessionId: string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Visitor ID of the user. This is provided by the SDK by checking cookies.
|
|
29
|
-
*/
|
|
30
|
-
visitorId: string | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* (Optional) If running an A/B test, the ID of the variation that the user is in.
|
|
33
|
-
*/
|
|
34
|
-
variationId?: string;
|
|
35
|
-
[index: string]: any;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
type EventProperties = Pick<Event, 'type'> & Pick<Event['data'], 'contentId' | 'variationId' | 'metadata'> & {
|
|
39
|
-
/**
|
|
40
|
-
* Your organization's API key.
|
|
41
|
-
*/
|
|
42
|
-
apiKey: Event['data']['ownerId'];
|
|
43
|
-
/**
|
|
44
|
-
* (Optional) Any additional (non-metadata) properties to add to the event.
|
|
45
|
-
*/
|
|
46
|
-
[index: string]: any;
|
|
47
|
-
};
|
|
48
|
-
export type EventProps = EventProperties & CanTrack;
|
|
49
|
-
export declare function _track(eventProps: EventProps): Promise<void | Response>;
|
|
50
|
-
export declare const track: (args: EventProperties) => Promise<void | Response>;
|
|
51
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type Offset = {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
};
|
|
5
|
-
export declare const getInteractionPropertiesForEvent: (event: MouseEvent) => {
|
|
6
|
-
targetBuilderElement: string | undefined;
|
|
7
|
-
metadata: {
|
|
8
|
-
targetOffset: Offset | undefined;
|
|
9
|
-
builderTargetOffset: Offset | undefined;
|
|
10
|
-
builderElementIndex: number | undefined;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function transformBlockProperties<T>(properties: T): T;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
-
import type { BuilderContent } from '../types/builder-content.js';
|
|
3
|
-
import type { Nullable } from '../types/typescript.js';
|
|
4
|
-
export declare const handleABTestingSync: ({ item, canTrack }: {
|
|
5
|
-
item: Nullable<BuilderContent>;
|
|
6
|
-
} & CanTrack) => Nullable<BuilderContent>;
|
|
7
|
-
export declare const handleABTesting: ({ item, canTrack }: {
|
|
8
|
-
item: BuilderContent;
|
|
9
|
-
} & CanTrack) => Promise<BuilderContent>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getDefaultCanTrack: (canTrack?: boolean) => boolean;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
-
type GetCookieArgs = {
|
|
3
|
-
name: string;
|
|
4
|
-
} & CanTrack;
|
|
5
|
-
export declare const getCookieSync: ({ name, canTrack }: GetCookieArgs) => string | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
|
|
8
|
-
* The sync version is only safe to use in code blocks that `react-native` is guaranteed not to not run.
|
|
9
|
-
*/
|
|
10
|
-
export declare const getCookie: (args: GetCookieArgs) => Promise<string | undefined>;
|
|
11
|
-
/**
|
|
12
|
-
* NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
|
|
13
|
-
*/
|
|
14
|
-
export declare const setCookie: ({ name, value, expires, canTrack }: {
|
|
15
|
-
name: string;
|
|
16
|
-
value: string;
|
|
17
|
-
expires?: Date | undefined;
|
|
18
|
-
} & CanTrack) => Promise<void>;
|
|
19
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const convertStyleMapToCSSArray: (style: Partial<CSSStyleDeclaration>) => string[];
|
|
2
|
-
export declare const convertStyleMapToCSS: (style: Partial<CSSStyleDeclaration>) => string;
|
|
3
|
-
export declare const createCssClass: ({ mediaQuery, className, styles }: {
|
|
4
|
-
mediaQuery?: string | undefined;
|
|
5
|
-
className: string;
|
|
6
|
-
styles: Partial<CSSStyleDeclaration>;
|
|
7
|
-
}) => string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
-
import type { Nullable } from './nullable.js';
|
|
3
|
-
export declare const getLocalStorageItem: ({ key, canTrack }: {
|
|
4
|
-
key: string;
|
|
5
|
-
} & CanTrack) => Nullable<string>;
|
|
6
|
-
export declare const setLocalStorageItem: ({ key, canTrack, value }: {
|
|
7
|
-
key: string;
|
|
8
|
-
value: string;
|
|
9
|
-
} & CanTrack) => void;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
-
export declare const getSessionId: ({ canTrack }: CanTrack) => Promise<string | undefined>;
|
|
3
|
-
export declare const createSessionId: () => string;
|
|
4
|
-
export declare const setSessionId: ({ id, canTrack }: {
|
|
5
|
-
id: string;
|
|
6
|
-
} & CanTrack) => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCurrentDatePlusMinutes: (minutes?: number) => Date;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
-
export declare const getVisitorId: ({ canTrack }: CanTrack) => string | undefined;
|
|
3
|
-
export declare const createVisitorId: () => string;
|
|
4
|
-
export declare const setVisitorId: ({ id, canTrack }: {
|
|
5
|
-
id: string;
|
|
6
|
-
} & CanTrack) => void;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export { default as Button } from '../blocks/button/button.jsx';
|
|
2
|
-
export { default as Columns } from '../blocks/columns/columns.jsx';
|
|
3
|
-
export { default as Fragment } from '../blocks/fragment/fragment.jsx';
|
|
4
|
-
export { default as Image } from '../blocks/image/image.jsx';
|
|
5
|
-
export { default as Section } from '../blocks/section/section.jsx';
|
|
6
|
-
export { default as Symbol } from '../blocks/symbol/symbol.jsx';
|
|
7
|
-
export { default as Text } from '../blocks/text/text.jsx';
|
|
8
|
-
export { default as Video } from '../blocks/video/video.jsx';
|
|
9
|
-
import { default as Blocks } from '../components/blocks/blocks.jsx';
|
|
10
|
-
import { default as Content } from '../components/content-variants/content-variants.jsx';
|
|
11
|
-
export { Blocks, Content };
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Renamed to `Blocks`.
|
|
14
|
-
*/
|
|
15
|
-
export declare const RenderBlocks: import("@builder.io/qwik").Component<import("../components/blocks/blocks.jsx").BlocksProps>;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated Renamed to `Content`.
|
|
18
|
-
*/
|
|
19
|
-
export declare const RenderContent: import("@builder.io/qwik").Component<import("../components/content-variants/content-variants.types.js").ContentVariantsPrps & {
|
|
20
|
-
__isNestedRender?: boolean | undefined;
|
|
21
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default undefined;
|
package/types/src/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './index-helpers/top-of-file.js';
|
|
2
|
-
export * from './index-helpers/blocks-exports.js';
|
|
3
|
-
/**
|
|
4
|
-
* We have a separate entry point to the SDKs that guarantees no components are being imported. This is useful
|
|
5
|
-
* for React SDK, which would break in the NextJS App directory because the component imports have `use client` in them.
|
|
6
|
-
*/
|
|
7
|
-
export * from './server-index.js';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './index-helpers/top-of-file.js';
|
|
2
|
-
export { isEditing } from './functions/is-editing.js';
|
|
3
|
-
export { isPreviewing } from './functions/is-previewing.js';
|
|
4
|
-
export { createRegisterComponentMessage } from './functions/register-component.js';
|
|
5
|
-
export { register } from './functions/register.js';
|
|
6
|
-
export type { InsertMenuConfig, InsertMenuItem } from './functions/register.js';
|
|
7
|
-
export { setEditorSettings } from './functions/set-editor-settings.js';
|
|
8
|
-
export type { Settings } from './functions/set-editor-settings.js';
|
|
9
|
-
export { fetchEntries, fetchOneEntry, getAllContent, getContent, _processContentResult } from './functions/get-content/index.js';
|
|
10
|
-
export { getBuilderSearchParams } from './functions/get-builder-search-params/index.js';
|
|
11
|
-
export { track } from './functions/track/index.js';
|
|
12
|
-
export type { RegisteredComponent } from './context/types.js';
|
|
13
|
-
export type { ComponentInfo } from './types/components.js';
|
|
14
|
-
export type { ContentProps } from './components/content/content.types.js';
|
|
15
|
-
export { fetchBuilderProps } from './functions/fetch-builder-props.js';
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
type JSONValue = string | number | boolean | JSONObject | JSONArray;
|
|
2
|
-
interface JSONObject {
|
|
3
|
-
[x: string]: JSONValue;
|
|
4
|
-
}
|
|
5
|
-
interface JSONArray extends Array<JSONValue> {
|
|
6
|
-
}
|
|
7
|
-
/** @todo typedoc this */
|
|
8
|
-
export interface BuilderBlock {
|
|
9
|
-
'@type': '@builder.io/sdk:Element';
|
|
10
|
-
'@version'?: number;
|
|
11
|
-
id?: string;
|
|
12
|
-
tagName?: string;
|
|
13
|
-
layerName?: string;
|
|
14
|
-
groupLocked?: boolean;
|
|
15
|
-
layerLocked?: boolean;
|
|
16
|
-
/** @todo make alias for properties.class */
|
|
17
|
-
class?: string;
|
|
18
|
-
children?: BuilderBlock[];
|
|
19
|
-
responsiveStyles?: {
|
|
20
|
-
large?: Partial<CSSStyleDeclaration>;
|
|
21
|
-
medium?: Partial<CSSStyleDeclaration>;
|
|
22
|
-
small?: Partial<CSSStyleDeclaration>;
|
|
23
|
-
/** @deprecated */
|
|
24
|
-
xsmall?: Partial<CSSStyleDeclaration>;
|
|
25
|
-
};
|
|
26
|
-
component?: {
|
|
27
|
-
name: string;
|
|
28
|
-
options?: any;
|
|
29
|
-
tag?: string;
|
|
30
|
-
};
|
|
31
|
-
bindings?: {
|
|
32
|
-
[key: string]: string;
|
|
33
|
-
};
|
|
34
|
-
meta?: {
|
|
35
|
-
[key: string]: JSONValue;
|
|
36
|
-
};
|
|
37
|
-
actions?: {
|
|
38
|
-
[key: string]: string;
|
|
39
|
-
};
|
|
40
|
-
properties?: {
|
|
41
|
-
[key: string]: string;
|
|
42
|
-
};
|
|
43
|
-
code?: {
|
|
44
|
-
bindings?: {
|
|
45
|
-
[key: string]: string;
|
|
46
|
-
};
|
|
47
|
-
actions?: {
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
repeat?: {
|
|
52
|
-
collection: string;
|
|
53
|
-
itemName?: string;
|
|
54
|
-
} | null;
|
|
55
|
-
animations?: any[];
|
|
56
|
-
style?: Partial<CSSStyleDeclaration>;
|
|
57
|
-
/**
|
|
58
|
-
* generated by the "Hide If" binding
|
|
59
|
-
*/
|
|
60
|
-
hide?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* generated by the "Show If" binding
|
|
63
|
-
*/
|
|
64
|
-
show?: boolean;
|
|
65
|
-
}
|
|
66
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { BuilderBlock } from './builder-block.js';
|
|
2
|
-
import type { Input } from './input.js';
|
|
3
|
-
import type { Nullable } from './typescript.js';
|
|
4
|
-
export interface Breakpoints {
|
|
5
|
-
small: number;
|
|
6
|
-
medium: number;
|
|
7
|
-
}
|
|
8
|
-
export interface BuilderContentVariation {
|
|
9
|
-
data?: {
|
|
10
|
-
title?: string;
|
|
11
|
-
blocks?: BuilderBlock[];
|
|
12
|
-
inputs?: Input[];
|
|
13
|
-
state?: {
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
};
|
|
16
|
-
jsCode?: string;
|
|
17
|
-
tsCode?: string;
|
|
18
|
-
httpRequests?: {
|
|
19
|
-
[key: string]: string;
|
|
20
|
-
};
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
};
|
|
23
|
-
name?: string;
|
|
24
|
-
testRatio?: number;
|
|
25
|
-
id?: string;
|
|
26
|
-
meta?: {
|
|
27
|
-
breakpoints?: Nullable<Breakpoints>;
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export interface BuilderContent extends BuilderContentVariation {
|
|
32
|
-
'@version'?: number;
|
|
33
|
-
published?: 'published' | 'draft' | 'archived';
|
|
34
|
-
modelId?: string;
|
|
35
|
-
priority?: number;
|
|
36
|
-
lastUpdated?: number;
|
|
37
|
-
startDate?: number;
|
|
38
|
-
endDate?: number;
|
|
39
|
-
variations?: {
|
|
40
|
-
[id: string]: BuilderContentVariation;
|
|
41
|
-
};
|
|
42
|
-
testVariationId?: string;
|
|
43
|
-
testVariationName?: string;
|
|
44
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { BuilderContextInterface, RegisteredComponents } from '../context/types.js';
|
|
2
|
-
import type { BuilderBlock } from './builder-block.js';
|
|
3
|
-
export type PropsWithBuilderData<T> = T & {
|
|
4
|
-
builderBlock: BuilderBlock;
|
|
5
|
-
builderContext: BuilderContextInterface;
|
|
6
|
-
};
|
|
7
|
-
export type BuilderComponentsProp = {
|
|
8
|
-
builderComponents: RegisteredComponents;
|
|
9
|
-
};
|