@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,35 +0,0 @@
|
|
|
1
|
-
import type { BuilderContextInterface, RegisteredComponents } from '../../../../context/types.js';
|
|
2
|
-
import type { BuilderBlock } from '../../../../types/builder-block.js';
|
|
3
|
-
import type { PropsWithBuilderData } from '../../../../types/builder-props.js';
|
|
4
|
-
import type { InteractiveElementProps } from '../interactive-element.jsx';
|
|
5
|
-
type ComponentOptions = PropsWithBuilderData<{
|
|
6
|
-
[index: string]: any;
|
|
7
|
-
attributes?: {
|
|
8
|
-
[index: string]: any;
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
11
|
-
export interface ComponentProps {
|
|
12
|
-
componentRef: any;
|
|
13
|
-
componentOptions: ComponentOptions;
|
|
14
|
-
blockChildren: BuilderBlock[];
|
|
15
|
-
context: BuilderContextInterface;
|
|
16
|
-
registeredComponents: RegisteredComponents;
|
|
17
|
-
builderBlock: BuilderBlock;
|
|
18
|
-
includeBlockProps: boolean;
|
|
19
|
-
isInteractive: boolean | undefined;
|
|
20
|
-
}
|
|
21
|
-
export declare const getWrapperProps: ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }: Omit<ComponentProps, "registeredComponents" | "blockChildren"> & {
|
|
22
|
-
contextValue: BuilderContextInterface;
|
|
23
|
-
}) => InteractiveElementProps | {
|
|
24
|
-
attributes?: {
|
|
25
|
-
'builder-id': string | undefined;
|
|
26
|
-
style: string | Partial<CSSStyleDeclaration> | undefined;
|
|
27
|
-
class: string;
|
|
28
|
-
href: any;
|
|
29
|
-
} | {
|
|
30
|
-
[index: string]: any;
|
|
31
|
-
} | undefined;
|
|
32
|
-
builderBlock: BuilderBlock;
|
|
33
|
-
builderContext: BuilderContextInterface;
|
|
34
|
-
};
|
|
35
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BuilderContextInterface } from "../../../context/types.js";
|
|
2
|
-
import { BuilderBlock } from "../../../types/builder-block.js";
|
|
3
|
-
import { PropsWithChildren } from "../../../types/typescript.js";
|
|
4
|
-
export type InteractiveElementProps = {
|
|
5
|
-
Wrapper: any;
|
|
6
|
-
block: BuilderBlock;
|
|
7
|
-
context: BuilderContextInterface;
|
|
8
|
-
wrapperProps: object;
|
|
9
|
-
};
|
|
10
|
-
export declare const InteractiveElement: import("@builder.io/qwik").Component<PropsWithChildren<InteractiveElementProps>>;
|
|
11
|
-
export default InteractiveElement;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BuilderContextInterface, RegisteredComponents } from "../../../context/types.js";
|
|
2
|
-
import { BuilderBlock } from "../../../types/builder-block.js";
|
|
3
|
-
type Props = {
|
|
4
|
-
block: BuilderBlock;
|
|
5
|
-
repeatContext: BuilderContextInterface;
|
|
6
|
-
registeredComponents: RegisteredComponents;
|
|
7
|
-
};
|
|
8
|
-
export declare const RepeatedBlock: import("@builder.io/qwik").Component<Props>;
|
|
9
|
-
export default RepeatedBlock;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BuilderBlock } from "../../types/builder-block.js";
|
|
2
|
-
import { PropsWithChildren } from "../../types/typescript.js";
|
|
3
|
-
export type BlocksWrapperProps = {
|
|
4
|
-
blocks: BuilderBlock[] | undefined;
|
|
5
|
-
parent: string | undefined;
|
|
6
|
-
path: string | undefined;
|
|
7
|
-
styleProp: Record<string, any> | undefined;
|
|
8
|
-
};
|
|
9
|
-
export declare const onClick: (props: any, state: any) => void;
|
|
10
|
-
export declare const onMouseEnter: (props: any, state: any) => void;
|
|
11
|
-
export declare const BlocksWrapper: import("@builder.io/qwik").Component<PropsWithChildren<BlocksWrapperProps>>;
|
|
12
|
-
export default BlocksWrapper;
|
|
13
|
-
export declare const STYLES = "\n.div-BlocksWrapper {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BuilderContextInterface, RegisteredComponents } from "../../context/types.js";
|
|
2
|
-
import { BlocksWrapperProps } from "./blocks-wrapper.jsx";
|
|
3
|
-
export type BlocksProps = Partial<BlocksWrapperProps> & {
|
|
4
|
-
context?: BuilderContextInterface;
|
|
5
|
-
registeredComponents?: RegisteredComponents;
|
|
6
|
-
};
|
|
7
|
-
export declare const Blocks: import("@builder.io/qwik").Component<BlocksProps>;
|
|
8
|
-
export default Blocks;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { BuilderContextInterface } from "../../../context/types.js";
|
|
2
|
-
import { BuilderContent } from "../../../types/builder-content.js";
|
|
3
|
-
import { ContentProps } from "../content.types.js";
|
|
4
|
-
type BuilderEditorProps = Omit<ContentProps, "customComponents" | "data" | "apiVersion" | "isSsrAbTest"> & {
|
|
5
|
-
builderContextSignal: BuilderContextInterface;
|
|
6
|
-
setBuilderContextSignal?: (signal: any) => any;
|
|
7
|
-
children?: any;
|
|
8
|
-
};
|
|
9
|
-
export declare const mergeNewContent: (props: any, state: any, elementRef: any, newContent: BuilderContent) => void;
|
|
10
|
-
export declare const processMessage: (props: any, state: any, elementRef: any, event: MessageEvent) => void;
|
|
11
|
-
export declare const evaluateJsCode: (props: any, state: any, elementRef: any) => void;
|
|
12
|
-
export declare const onClick: (props: any, state: any, elementRef: any, event: any) => void;
|
|
13
|
-
export declare const evalExpression: (props: any, state: any, elementRef: any, expression: string) => string;
|
|
14
|
-
export declare const handleRequest: (props: any, state: any, elementRef: any, { url, key, }: {
|
|
15
|
-
key: string;
|
|
16
|
-
url: string;
|
|
17
|
-
}) => void;
|
|
18
|
-
export declare const runHttpRequests: (props: any, state: any, elementRef: any) => void;
|
|
19
|
-
export declare const emitStateUpdate: (props: any, state: any, elementRef: any) => void;
|
|
20
|
-
export declare const initEditing: (props: any, state: any, elementRef: any, _event: Event) => void;
|
|
21
|
-
export declare const initPreview: (props: any, state: any, elementRef: any, _event: Event) => void;
|
|
22
|
-
export declare const elementRef_onInitEditingBldr: (props: any, state: any, elementRef: any, event: any) => void;
|
|
23
|
-
export declare const elementRef_onInitPreviewingBldr: (props: any, state: any, elementRef: any, event: any) => void;
|
|
24
|
-
export declare const EnableEditor: import("@builder.io/qwik").Component<BuilderEditorProps>;
|
|
25
|
-
export default EnableEditor;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface CustomFont {
|
|
2
|
-
family?: string;
|
|
3
|
-
kind?: string;
|
|
4
|
-
fileUrl?: string;
|
|
5
|
-
files?: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export declare const getFontCss: ({ customFonts }: {
|
|
10
|
-
customFonts?: CustomFont[] | undefined;
|
|
11
|
-
}) => string;
|
|
12
|
-
export declare const getCss: ({ cssCode, contentId }: {
|
|
13
|
-
cssCode?: string | undefined;
|
|
14
|
-
contentId?: string | undefined;
|
|
15
|
-
}) => string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BuilderRenderState } from "../../context/types.js";
|
|
2
|
-
import { ContentProps } from "./content.types.js";
|
|
3
|
-
export declare const contentSetState: (props: any, state: any, newRootState: BuilderRenderState) => void;
|
|
4
|
-
export declare const ContentComponent: import("@builder.io/qwik").Component<ContentProps>;
|
|
5
|
-
export default ContentComponent;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BuilderContent } from '../../types/builder-content.js';
|
|
2
|
-
import type { Nullable } from '../../types/typescript.js';
|
|
3
|
-
import type { ContentProps } from './content.types.js';
|
|
4
|
-
export declare const getContextStateInitialValue: ({ content, data, locale }: Pick<ContentProps, 'content' | 'data' | 'locale'>) => {
|
|
5
|
-
[x: string]: unknown;
|
|
6
|
-
};
|
|
7
|
-
export declare const getContentInitialValue: ({ content, data }: Pick<ContentProps, 'content' | 'data'>) => Nullable<BuilderContent>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { BuilderRenderState } from '../../context/types.js';
|
|
2
|
-
import type { EnforcePartials } from '../../types/enforced-partials.js';
|
|
3
|
-
import type { ContentVariantsPrps } from '../content-variants/content-variants.types.js';
|
|
4
|
-
interface InternalRenderProps {
|
|
5
|
-
/**
|
|
6
|
-
* TO-DO: improve qwik generator to not remap this name for non-HTML tags, then name it `className`
|
|
7
|
-
*/
|
|
8
|
-
classNameProp: string | undefined;
|
|
9
|
-
showContent: boolean;
|
|
10
|
-
isSsrAbTest: boolean;
|
|
11
|
-
}
|
|
12
|
-
export type ContentProps = InternalRenderProps & EnforcePartials<ContentVariantsPrps>;
|
|
13
|
-
export interface BuilderComponentStateChange {
|
|
14
|
-
state: BuilderRenderState;
|
|
15
|
-
ref: {
|
|
16
|
-
name?: string;
|
|
17
|
-
props?: {
|
|
18
|
-
builderBlock?: {
|
|
19
|
-
id?: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './content.jsx';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ContentVariantsPrps } from "./content-variants.types.js";
|
|
2
|
-
type VariantsProviderProps = ContentVariantsPrps & {
|
|
3
|
-
/**
|
|
4
|
-
* For internal use only. Do not provide this prop.
|
|
5
|
-
*/
|
|
6
|
-
__isNestedRender?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const ContentVariants: import("@builder.io/qwik").Component<VariantsProviderProps>;
|
|
9
|
-
export default ContentVariants;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { BuilderRenderContext, RegisteredComponent } from '../../context/types.js';
|
|
2
|
-
import type { ApiVersion } from '../../types/api-version.js';
|
|
3
|
-
import type { BuilderContent } from '../../types/builder-content.js';
|
|
4
|
-
import type { Nullable } from '../../types/typescript.js';
|
|
5
|
-
export interface ContentVariantsPrps {
|
|
6
|
-
content?: Nullable<BuilderContent>;
|
|
7
|
-
model?: string;
|
|
8
|
-
data?: {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
};
|
|
11
|
-
context?: BuilderRenderContext;
|
|
12
|
-
apiKey: string;
|
|
13
|
-
apiVersion?: ApiVersion;
|
|
14
|
-
customComponents?: RegisteredComponent[];
|
|
15
|
-
canTrack?: boolean;
|
|
16
|
-
locale?: string;
|
|
17
|
-
/** @deprecated use `enrich` instead **/
|
|
18
|
-
includeRefs?: boolean;
|
|
19
|
-
enrich?: boolean;
|
|
20
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { Nullable } from '../../helpers/nullable.js';
|
|
2
|
-
import type { BuilderContent } from '../../types/builder-content.js';
|
|
3
|
-
export declare const getVariants: (content: Nullable<BuilderContent>) => {
|
|
4
|
-
testVariationId: string | undefined;
|
|
5
|
-
id: string | undefined;
|
|
6
|
-
data?: {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
title?: string | undefined;
|
|
9
|
-
blocks?: import("../../types/builder-block.js").BuilderBlock[] | undefined;
|
|
10
|
-
inputs?: import("../../types/input.js").Input[] | undefined;
|
|
11
|
-
state?: {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
} | undefined;
|
|
14
|
-
jsCode?: string | undefined;
|
|
15
|
-
tsCode?: string | undefined;
|
|
16
|
-
httpRequests?: {
|
|
17
|
-
[key: string]: string;
|
|
18
|
-
} | undefined;
|
|
19
|
-
} | undefined;
|
|
20
|
-
name?: string | undefined;
|
|
21
|
-
testRatio?: number | undefined;
|
|
22
|
-
meta?: {
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
breakpoints?: import("../../types/typescript.js").Nullable<import("../../types/builder-content.js").Breakpoints>;
|
|
25
|
-
} | undefined;
|
|
26
|
-
}[];
|
|
27
|
-
export declare const checkShouldRunVariants: ({ canTrack, content }: {
|
|
28
|
-
canTrack: Nullable<boolean>;
|
|
29
|
-
content: Nullable<BuilderContent>;
|
|
30
|
-
}) => boolean;
|
|
31
|
-
type VariantData = {
|
|
32
|
-
id: string;
|
|
33
|
-
testRatio?: number;
|
|
34
|
-
};
|
|
35
|
-
export declare const getScriptString: () => string;
|
|
36
|
-
export declare const getVariantsScriptString: (variants: VariantData[], contentId: string) => string;
|
|
37
|
-
export declare const getRenderContentScriptString: ({ contentId, variationId }: {
|
|
38
|
-
variationId: string;
|
|
39
|
-
contentId: string;
|
|
40
|
-
}) => string;
|
|
41
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { RegisteredComponent } from '../context/types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Returns a list of all registered components.
|
|
4
|
-
* NOTE: This needs to be a function to work around ESM circular dependencies.
|
|
5
|
-
*/
|
|
6
|
-
export declare const getDefaultRegisteredComponents: () => RegisteredComponent[];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type SizeName = 'large' | 'medium' | 'small';
|
|
2
|
-
interface Size {
|
|
3
|
-
min: number;
|
|
4
|
-
default: number;
|
|
5
|
-
max: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const getMaxWidthQueryForSize: (size: SizeName, sizeValues?: Record<SizeName, Size>) => string;
|
|
8
|
-
interface Breakpoints {
|
|
9
|
-
small?: number;
|
|
10
|
-
medium?: number;
|
|
11
|
-
}
|
|
12
|
-
export declare const getSizesForBreakpoints: ({ small, medium }: Breakpoints) => Record<SizeName, Size>;
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.6.5-4";
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { BuilderContent } from '../types/builder-content.js';
|
|
2
|
-
import type { ComponentInfo } from '../types/components.js';
|
|
3
|
-
import type { Dictionary, Nullable } from '../types/typescript.js';
|
|
4
|
-
import type { ApiVersion } from '../types/api-version.js';
|
|
5
|
-
export type RegisteredComponent = ComponentInfo & {
|
|
6
|
-
component: any;
|
|
7
|
-
};
|
|
8
|
-
export type RegisteredComponents = Dictionary<RegisteredComponent>;
|
|
9
|
-
export type BuilderRenderState = Record<string, unknown>;
|
|
10
|
-
export type BuilderRenderContext = Record<string, unknown>;
|
|
11
|
-
export interface BuilderContextInterface {
|
|
12
|
-
content: Nullable<BuilderContent>;
|
|
13
|
-
context: BuilderRenderContext;
|
|
14
|
-
/**
|
|
15
|
-
* The state of the application.
|
|
16
|
-
*
|
|
17
|
-
* NOTE: see `localState` below to understand how it is different from `rootState`.
|
|
18
|
-
*/
|
|
19
|
-
rootState: BuilderRenderState;
|
|
20
|
-
/**
|
|
21
|
-
* Some frameworks have a `setState` function which needs to be invoked to notify
|
|
22
|
-
* the framework of state change. (other frameworks don't in which case it is `undefined')
|
|
23
|
-
*/
|
|
24
|
-
rootSetState: ((rootState: BuilderRenderState) => void) | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* The local state of the current component. This is different from `rootState` in that
|
|
27
|
-
* it can be a child state created by a repeater containing local state.
|
|
28
|
-
* The `rootState` is where all of the state mutations are actually stored.
|
|
29
|
-
*/
|
|
30
|
-
localState: BuilderRenderState | undefined;
|
|
31
|
-
apiKey: string | null;
|
|
32
|
-
apiVersion: ApiVersion | undefined;
|
|
33
|
-
componentInfos: Dictionary<ComponentInfo>;
|
|
34
|
-
inheritedStyles: Record<string, unknown>;
|
|
35
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type Patch = {
|
|
2
|
-
path: string;
|
|
3
|
-
op: 'add' | 'remove' | 'replace';
|
|
4
|
-
value: any;
|
|
5
|
-
};
|
|
6
|
-
export declare const applyPatchWithMinimalMutationChain: <T extends object>(obj: T, patch: {
|
|
7
|
-
path: string;
|
|
8
|
-
op: 'add' | 'remove' | 'replace';
|
|
9
|
-
value: any;
|
|
10
|
-
}, preserveRoot?: boolean) => T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const camelToKebabCase: (string: string) => string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { BuilderRenderState } from '../../../context/types.js';
|
|
2
|
-
import type { ExecutorArgs } from '../helpers.js';
|
|
3
|
-
export declare const runInBrowser: ({ code, builder, context, event, localState, rootSetState, rootState }: ExecutorArgs) => any;
|
|
4
|
-
export declare function flattenState(rootState: Record<string | symbol, any>, localState: Record<string | symbol, any> | undefined, rootSetState: ((rootState: BuilderRenderState) => void) | undefined): BuilderRenderState;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { runInBrowser as evaluator } from './browser.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { runInEdge as evaluator } from './edge-runtime.js';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ExecutorArgs } from './helpers.js';
|
|
2
|
-
export type EvaluatorArgs = Omit<ExecutorArgs, 'builder' | 'event'> & {
|
|
3
|
-
event?: Event;
|
|
4
|
-
isExpression?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare function evaluate({ code, context, localState, rootState, rootSetState, event, isExpression }: EvaluatorArgs): any;
|
|
@@ -1,18 +0,0 @@
|
|
|
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 declare const getFunctionArguments: ({ builder, context, event, state }: Pick<ExecutorArgs, "context" | "builder" | "event"> & {
|
|
17
|
-
state: BuilderRenderState;
|
|
18
|
-
}) => [string, Event | BuilderRenderState | import("../../context/types.js").BuilderRenderContext | BuilderGlobals | undefined][];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { evaluate } from './evaluate.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { evaluator } from '../browser-runtime/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { runInNonNode } from './non-node-runtime.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getEventHandlerName: (key: string) => string;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { ContentVariantsPrps } from '../components/content-variants/content-variants.types.js';
|
|
2
|
-
import type { Dictionary } from '../types/typescript.js';
|
|
3
|
-
import type { GetContentOptions } from './get-content/types.js';
|
|
4
|
-
type GetBuilderPropsOptions = (Omit<GetContentOptions, 'model'> & {
|
|
5
|
-
model?: string;
|
|
6
|
-
}) & ({
|
|
7
|
-
/**
|
|
8
|
-
* The current URL path. Used to determine the `urlPath` for targeting content.
|
|
9
|
-
*
|
|
10
|
-
* Cannot be used with `url`.
|
|
11
|
-
*/
|
|
12
|
-
path: string;
|
|
13
|
-
/**
|
|
14
|
-
* The current URL search params. Used to parse the `searchParams` for targeting content.
|
|
15
|
-
*
|
|
16
|
-
* Cannot be used with `url`.
|
|
17
|
-
*/
|
|
18
|
-
searchParams?: URLSearchParams | Dictionary<string | string[]>;
|
|
19
|
-
url?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
/**
|
|
22
|
-
* The current URL. Used to determine the `urlPath` for targeting content and
|
|
23
|
-
* to parse the `searchParams` for targeting content.
|
|
24
|
-
*
|
|
25
|
-
* Cannot be used with `path` or `searchParams`.
|
|
26
|
-
*/
|
|
27
|
-
url: URL;
|
|
28
|
-
path?: undefined;
|
|
29
|
-
searchParams?: undefined;
|
|
30
|
-
} | {
|
|
31
|
-
url?: undefined;
|
|
32
|
-
path?: undefined;
|
|
33
|
-
searchParams?: undefined;
|
|
34
|
-
});
|
|
35
|
-
/**
|
|
36
|
-
* Given an `apiKey` and `url` (or `path` + `searchParams`), provides all props that `Content` needs to render Builder Content.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```jsx
|
|
40
|
-
* const builderProps = await fetchBuilderProps({
|
|
41
|
-
* apiKey: 'API_KEY',
|
|
42
|
-
* // provide `url`
|
|
43
|
-
* url: yourPageUrl,
|
|
44
|
-
* // OR provide `path` + `searchParams`
|
|
45
|
-
* path: yourPath,
|
|
46
|
-
* searchParams: yourSearchParams,
|
|
47
|
-
* });
|
|
48
|
-
*
|
|
49
|
-
* return <Content {...builderProps} />;
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
export declare const fetchBuilderProps: (_args: GetBuilderPropsOptions) => Promise<ContentVariantsPrps>;
|
|
53
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
-
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
-
export declare function createEventHandler(value: string, options: {
|
|
4
|
-
block: BuilderBlock;
|
|
5
|
-
} & Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'>): (event: Event) => any;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
-
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
-
type Actions = {
|
|
4
|
-
[index: string]: (event: Event) => any;
|
|
5
|
-
};
|
|
6
|
-
export declare function getBlockActions(options: {
|
|
7
|
-
block: BuilderBlock;
|
|
8
|
-
stripPrefix?: boolean;
|
|
9
|
-
} & Pick<BuilderContextInterface, 'localState' | 'context' | 'rootState' | 'rootSetState'>): Actions;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { BuilderContextInterface } from '../context/types.js';
|
|
2
|
-
import type { BuilderBlock } from '../types/builder-block.js';
|
|
3
|
-
export declare function getBlockProperties({ block, context }: {
|
|
4
|
-
block: BuilderBlock;
|
|
5
|
-
context: BuilderContextInterface;
|
|
6
|
-
}): {
|
|
7
|
-
'builder-id': string | undefined;
|
|
8
|
-
style: string | Partial<CSSStyleDeclaration> | undefined;
|
|
9
|
-
class: string;
|
|
10
|
-
href: any;
|
|
11
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type QueryObject = Record<string, string | string[]>;
|
|
2
|
-
export declare const convertSearchParamsToQueryObject: (searchParams: URLSearchParams) => QueryObject;
|
|
3
|
-
/**
|
|
4
|
-
* Receives a `URLSearchParams` object or a regular query object, and returns the subset of query params that are
|
|
5
|
-
* relevant to the Builder SDK.
|
|
6
|
-
*
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare const getBuilderSearchParams: (_options: QueryObject | URLSearchParams | undefined) => QueryObject;
|
|
10
|
-
export declare const getBuilderSearchParamsFromWindow: () => QueryObject;
|
|
11
|
-
export declare const normalizeSearchParams: (searchParams: QueryObject | URLSearchParams) => QueryObject;
|
|
12
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { BuilderContent } from '../../types/builder-content.js';
|
|
2
|
-
import type { GetContentOptions } from './types.js';
|
|
3
|
-
/**
|
|
4
|
-
* Returns a the first entry that matches the given options.
|
|
5
|
-
*/
|
|
6
|
-
export declare function fetchOneEntry(options: GetContentOptions): Promise<BuilderContent | null>;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated `getContent` was renamed to `fetchOneEntry`. This is a temporary alias to avoid breaking changes.
|
|
9
|
-
*
|
|
10
|
-
* NOTE: consider using `fetchBuilderProps` instead for easier setup.
|
|
11
|
-
*/
|
|
12
|
-
export declare const getContent: typeof fetchOneEntry;
|
|
13
|
-
type ContentResults = {
|
|
14
|
-
results: BuilderContent[];
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @internal Exported only for testing purposes. Do not use.
|
|
18
|
-
*/
|
|
19
|
-
export declare const _processContentResult: (options: GetContentOptions, content: ContentResults, url?: URL) => Promise<ContentResults>;
|
|
20
|
-
/**
|
|
21
|
-
* Returns a paginated array of entries that match the given options.
|
|
22
|
-
*/
|
|
23
|
-
export declare function fetchEntries(options: GetContentOptions): Promise<ContentResults | null>;
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated `getAllContent` was renamed to `fetchEntries`. This is a temporary alias to avoid breaking changes.
|
|
26
|
-
*/
|
|
27
|
-
export declare const getAllContent: typeof fetchEntries;
|
|
28
|
-
export {};
|