@builder.io/sdk-vue 0.0.2-1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.4b780e2e.js → block-styles.a3384cd8.js} +31 -15
- package/packages/_vue2/dist/block-styles.b8f018af.cjs +10 -0
- package/packages/_vue2/dist/env.d.ts +1 -0
- package/packages/_vue2/dist/get-processed-block.53761199.js +40 -0
- package/packages/_vue2/dist/get-processed-block.5b7d0290.cjs +1 -0
- package/packages/_vue2/dist/index.3fb2f85b.cjs +4 -0
- package/packages/_vue2/dist/{index.35b10c2f.js → index.93374a52.js} +124 -120
- package/packages/_vue2/dist/render-block.31ab55d9.cjs +3 -0
- package/packages/_vue2/dist/{render-block.3112f40b.js → render-block.f95552ec.js} +64 -77
- package/packages/_vue2/dist/{render-component.7c5a2af0.js → render-component.10d6d66e.js} +3 -3
- package/packages/_vue2/dist/{render-component.3c148966.cjs → render-component.4714b27b.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.f67a4c7d.js → render-inlined-styles.0fed22b4.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.c3478295.cjs → render-inlined-styles.3826da36.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.ea4adce6.cjs → render-repeated-block.d8e1f3e2.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.006af118.js → render-repeated-block.f29194a7.js} +2 -2
- package/packages/_vue2/dist/{render-styles.e6d20f13.cjs → render-styles.9ff97301.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.90704267.js → render-styles.cd30abd1.js} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.d.ts +1 -0
- package/packages/_vue2/dist/sdk.js +1 -1
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/blocks/button/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +174 -0
- package/packages/_vue2/dist/src/blocks/columns/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/custom-code/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
- package/packages/_vue2/dist/src/blocks/embed/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +22 -0
- package/packages/_vue2/dist/src/blocks/embed/helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/fragment/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
- package/packages/_vue2/dist/src/blocks/image/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/image/image.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/img/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +17 -0
- package/packages/_vue2/dist/src/blocks/section/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +11 -0
- package/packages/_vue2/dist/src/blocks/symbol/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +264 -0
- package/packages/_vue2/dist/src/blocks/text/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/text/text.vue.d.ts +8 -0
- package/packages/_vue2/dist/src/blocks/util.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/video/component-info.d.ts +2 -0
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +24 -0
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +105 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +108 -0
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +99 -0
- package/packages/_vue2/dist/src/components/render-block/types.d.ts +6 -0
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +146 -0
- package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +236 -0
- package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
- package/packages/_vue2/dist/src/constants/builder-registered-components.d.ts +6 -0
- package/packages/_vue2/dist/src/constants/device-sizes.d.ts +2 -0
- package/packages/_vue2/dist/src/constants/target.d.ts +2 -0
- package/packages/_vue2/dist/src/context/builder.context.d.ts +2 -0
- package/packages/_vue2/dist/src/context/types.d.ts +16 -0
- package/packages/_vue2/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/evaluate.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/event-handler-name.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-block-actions.d.ts +9 -0
- package/packages/_vue2/dist/src/functions/get-block-component-options.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-block-styles.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-block-tag.d.ts +3 -0
- package/packages/_vue2/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
- package/packages/_vue2/dist/src/functions/get-content/ab-testing.d.ts +5 -0
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +9 -0
- package/packages/_vue2/dist/src/functions/get-content/types.d.ts +31 -0
- package/packages/_vue2/dist/src/functions/get-fetch.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-global-this.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-processed-block.d.ts +10 -0
- package/packages/_vue2/dist/src/functions/is-browser.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-editing.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-iframe.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/is-previewing.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/mark-mutable.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/register-component.d.ts +14 -0
- package/packages/_vue2/dist/src/functions/register.d.ts +16 -0
- package/packages/_vue2/dist/src/functions/set-editor-settings.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/set.d.ts +7 -0
- package/packages/_vue2/dist/src/functions/track.d.ts +21 -0
- package/packages/_vue2/dist/src/functions/transform-block.d.ts +2 -0
- package/packages/_vue2/dist/src/helpers/ab-tests.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/cookie.d.ts +15 -0
- package/packages/_vue2/dist/src/helpers/css.d.ts +1 -0
- package/packages/_vue2/dist/src/helpers/flatten.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/localStorage.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/nullable.d.ts +2 -0
- package/packages/_vue2/dist/src/helpers/sessionId.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/url.d.ts +6 -0
- package/packages/_vue2/dist/src/helpers/uuid.d.ts +8 -0
- package/packages/_vue2/dist/src/helpers/visitorId.d.ts +6 -0
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +10 -0
- package/packages/_vue2/dist/src/index-helpers/top-of-file.d.ts +1 -0
- package/packages/_vue2/dist/src/index.d.ts +8 -0
- package/packages/_vue2/dist/src/scripts/init-editing.d.ts +2 -0
- package/packages/_vue2/dist/src/types/builder-block.d.ts +57 -0
- package/packages/_vue2/dist/src/types/builder-content.d.ts +38 -0
- package/packages/_vue2/dist/src/types/can-track.d.ts +3 -0
- package/packages/_vue2/dist/src/types/components.d.ts +177 -0
- package/packages/_vue2/dist/src/types/deep-partial.d.ts +3 -0
- package/packages/_vue2/dist/src/types/element.d.ts +59 -0
- package/packages/_vue2/dist/src/types/typescript.d.ts +5 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.867fd8f0.js +69 -0
- package/packages/_vue3/dist/block-styles.b9355d79.cjs +10 -0
- package/packages/_vue3/dist/env.d.ts +1 -0
- package/packages/_vue3/dist/get-processed-block.4d9c7a48.cjs +1 -0
- package/packages/_vue3/dist/get-processed-block.77923ee6.js +40 -0
- package/packages/_vue3/dist/{index.fa54ce28.js → index.7b49e825.js} +36 -32
- package/packages/_vue3/dist/index.bbfd8c89.cjs +4 -0
- package/packages/_vue3/dist/render-block.1e996e4e.cjs +3 -0
- package/packages/_vue3/dist/render-block.3110fec0.js +243 -0
- package/packages/_vue3/dist/{render-component.c2e224cc.cjs → render-component.470525d5.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.9668419b.js → render-component.7ca6729a.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.08569ffb.js → render-inlined-styles.0b1e087d.js} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.32f5f3bc.cjs → render-inlined-styles.56082955.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.73309b84.js → render-repeated-block.0b974ccc.js} +2 -2
- package/packages/_vue3/dist/{render-repeated-block.8c10514d.cjs → render-repeated-block.10c41242.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.63eb2def.js → render-styles.65bace65.js} +2 -2
- package/packages/_vue3/dist/{render-styles.22ddc0bf.cjs → render-styles.d4412af2.cjs} +1 -1
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.d.ts +1 -0
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/blocks/button/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +77 -0
- package/packages/_vue3/dist/src/blocks/columns/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/custom-code/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +18 -0
- package/packages/_vue3/dist/src/blocks/embed/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +22 -0
- package/packages/_vue3/dist/src/blocks/embed/helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/fragment/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/fragment/fragment.vue.d.ts +10 -0
- package/packages/_vue3/dist/src/blocks/image/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/image/image.helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +31 -0
- package/packages/_vue3/dist/src/blocks/img/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +17 -0
- package/packages/_vue3/dist/src/blocks/section/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +11 -0
- package/packages/_vue3/dist/src/blocks/symbol/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +167 -0
- package/packages/_vue3/dist/src/blocks/text/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/text/text.vue.d.ts +8 -0
- package/packages/_vue3/dist/src/blocks/util.d.ts +1 -0
- package/packages/_vue3/dist/src/blocks/video/component-info.d.ts +2 -0
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +24 -0
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +31 -0
- package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/render-block.vue.d.ts +8 -0
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +10 -0
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +17 -0
- package/packages/_vue3/dist/src/components/render-block/types.d.ts +6 -0
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +49 -0
- package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +27 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +139 -0
- package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +12 -0
- package/packages/_vue3/dist/src/constants/builder-registered-components.d.ts +6 -0
- package/packages/_vue3/dist/src/constants/device-sizes.d.ts +2 -0
- package/packages/_vue3/dist/src/constants/target.d.ts +2 -0
- package/packages/_vue3/dist/src/context/builder.context.d.ts +2 -0
- package/packages/_vue3/dist/src/context/types.d.ts +16 -0
- package/packages/_vue3/dist/src/functions/camel-to-kebab-case.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/evaluate.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/event-handler-name.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-block-actions-handler.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-block-actions.d.ts +9 -0
- package/packages/_vue3/dist/src/functions/get-block-component-options.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-block-styles.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-block-tag.d.ts +3 -0
- package/packages/_vue3/dist/src/functions/get-builder-search-params/index.d.ts +6 -0
- package/packages/_vue3/dist/src/functions/get-content/ab-testing.d.ts +5 -0
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +9 -0
- package/packages/_vue3/dist/src/functions/get-content/types.d.ts +31 -0
- package/packages/_vue3/dist/src/functions/get-fetch.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-global-this.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-processed-block.d.ts +10 -0
- package/packages/_vue3/dist/src/functions/is-browser.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-editing.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-iframe.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/is-previewing.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/mark-mutable.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/register-component.d.ts +14 -0
- package/packages/_vue3/dist/src/functions/register.d.ts +16 -0
- package/packages/_vue3/dist/src/functions/set-editor-settings.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/set.d.ts +7 -0
- package/packages/_vue3/dist/src/functions/track.d.ts +21 -0
- package/packages/_vue3/dist/src/functions/transform-block.d.ts +2 -0
- package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/cookie.d.ts +15 -0
- package/packages/_vue3/dist/src/helpers/css.d.ts +1 -0
- package/packages/_vue3/dist/src/helpers/flatten.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/localStorage.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/nullable.d.ts +2 -0
- package/packages/_vue3/dist/src/helpers/sessionId.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/url.d.ts +6 -0
- package/packages/_vue3/dist/src/helpers/uuid.d.ts +8 -0
- package/packages/_vue3/dist/src/helpers/visitorId.d.ts +6 -0
- package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +10 -0
- package/packages/_vue3/dist/src/index-helpers/top-of-file.d.ts +1 -0
- package/packages/_vue3/dist/src/index.d.ts +8 -0
- package/packages/_vue3/dist/src/scripts/init-editing.d.ts +2 -0
- package/packages/_vue3/dist/src/types/builder-block.d.ts +57 -0
- package/packages/_vue3/dist/src/types/builder-content.d.ts +38 -0
- package/packages/_vue3/dist/src/types/can-track.d.ts +3 -0
- package/packages/_vue3/dist/src/types/components.d.ts +177 -0
- package/packages/_vue3/dist/src/types/deep-partial.d.ts +3 -0
- package/packages/_vue3/dist/src/types/element.d.ts +59 -0
- package/packages/_vue3/dist/src/types/typescript.d.ts +5 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.d7caff48.cjs +0 -10
- package/packages/_vue2/dist/get-processed-block.1b0392ce.js +0 -57
- package/packages/_vue2/dist/get-processed-block.a69f90d1.cjs +0 -1
- package/packages/_vue2/dist/index.e881a81c.cjs +0 -4
- package/packages/_vue2/dist/render-block.37a4bbe9.cjs +0 -3
- package/packages/_vue3/dist/block-styles.13caf8d7.js +0 -53
- package/packages/_vue3/dist/block-styles.8cb7f734.cjs +0 -10
- package/packages/_vue3/dist/get-processed-block.15d39b53.cjs +0 -1
- package/packages/_vue3/dist/get-processed-block.bebdc794.js +0 -57
- package/packages/_vue3/dist/index.f58628dd.cjs +0 -4
- package/packages/_vue3/dist/render-block.23c16bfb.cjs +0 -3
- package/packages/_vue3/dist/render-block.9c550b26.js +0 -253
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getFetch(): Promise<typeof global.fetch>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getGlobalThis(): any;
|
|
@@ -0,0 +1,10 @@
|
|
|
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, state, }: {
|
|
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, 'state' | 'context'>): BuilderBlock;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isBrowser(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isEditing(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isIframe(): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isPreviewing(): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
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: ({ component: _, ...info }: RegisteredComponent) => {
|
|
12
|
+
type: string;
|
|
13
|
+
data: ComponentInfo;
|
|
14
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
+
interface Event {
|
|
3
|
+
type: 'click' | 'impression';
|
|
4
|
+
data: {
|
|
5
|
+
contentId?: string;
|
|
6
|
+
ownerId: string;
|
|
7
|
+
metadata?: string;
|
|
8
|
+
sessionId: string | undefined;
|
|
9
|
+
visitorId: string | undefined;
|
|
10
|
+
[index: string]: any;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
declare type EventProperties = {
|
|
14
|
+
type: Event['type'];
|
|
15
|
+
orgId: Event['data']['ownerId'];
|
|
16
|
+
contentId: Event['data']['contentId'];
|
|
17
|
+
[index: string]: any;
|
|
18
|
+
};
|
|
19
|
+
export declare type EventProps = EventProperties & CanTrack;
|
|
20
|
+
export declare function track(eventProps: EventProps): Promise<void | Response>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
+
export declare const getContentVariationCookie: ({ contentId, canTrack, }: {
|
|
3
|
+
contentId: string;
|
|
4
|
+
} & CanTrack) => Promise<string | undefined>;
|
|
5
|
+
export declare const setContentVariationCookie: ({ contentId, canTrack, value, }: {
|
|
6
|
+
contentId: string;
|
|
7
|
+
value: string;
|
|
8
|
+
} & CanTrack) => Promise<undefined>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
+
/**
|
|
3
|
+
* NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
|
|
4
|
+
*/
|
|
5
|
+
export declare const getCookie: ({ name, canTrack, }: {
|
|
6
|
+
name: string;
|
|
7
|
+
} & CanTrack) => Promise<string | undefined>;
|
|
8
|
+
/**
|
|
9
|
+
* NOTE: This function is `async` because its react-native override is async. Do not remove the `async` keyword!
|
|
10
|
+
*/
|
|
11
|
+
export declare const setCookie: ({ name, value, expires, canTrack, }: {
|
|
12
|
+
name: string;
|
|
13
|
+
value: string;
|
|
14
|
+
expires?: Date | undefined;
|
|
15
|
+
} & CanTrack) => Promise<undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const convertStyleMaptoCSS: (style: Partial<CSSStyleDeclaration>) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CanTrack } from '../types/can-track.js';
|
|
2
|
+
export declare const getLocalStorageItem: ({ key, canTrack, }: {
|
|
3
|
+
key: string;
|
|
4
|
+
} & CanTrack) => string | null | undefined;
|
|
5
|
+
export declare const setLocalStorageItem: ({ key, canTrack, value, }: {
|
|
6
|
+
key: string;
|
|
7
|
+
value: string;
|
|
8
|
+
} & CanTrack) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
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<undefined>;
|
|
@@ -0,0 +1,6 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as Columns } from '../blocks/columns/columns.vue';
|
|
2
|
+
export { default as Image } from '../blocks/image/image.vue';
|
|
3
|
+
export { default as Text } from '../blocks/text/text.vue';
|
|
4
|
+
export { default as Video } from '../blocks/video/video.vue';
|
|
5
|
+
export { default as Symbol } from '../blocks/symbol/symbol.vue';
|
|
6
|
+
export { default as Button } from '../blocks/button/button.vue';
|
|
7
|
+
export { default as Section } from '../blocks/section/section.vue';
|
|
8
|
+
export { default as Fragment } from '../blocks/fragment/fragment.vue';
|
|
9
|
+
export { default as RenderContent } from '../components/render-content/render-content.vue';
|
|
10
|
+
export { default as RenderBlocks } from '../components/render-blocks.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './index-helpers/blocks-exports.js';
|
|
2
|
+
export * from './functions/is-editing.js';
|
|
3
|
+
export * from './functions/is-previewing.js';
|
|
4
|
+
export * from './functions/register-component.js';
|
|
5
|
+
export * from './functions/register.js';
|
|
6
|
+
export * from './functions/set-editor-settings.js';
|
|
7
|
+
export * from './functions/get-content/index.js';
|
|
8
|
+
export * from './functions/get-builder-search-params/index.js';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
declare 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
|
+
}
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { BuilderBlock } from './builder-block.js';
|
|
2
|
+
declare type Input = any;
|
|
3
|
+
export interface BuilderContentVariation {
|
|
4
|
+
data?: {
|
|
5
|
+
title?: string;
|
|
6
|
+
blocks?: BuilderBlock[];
|
|
7
|
+
inputs?: Input[];
|
|
8
|
+
state?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
jsCode?: string;
|
|
12
|
+
tsCode?: string;
|
|
13
|
+
httpRequests?: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
name?: string;
|
|
19
|
+
testRatio?: number;
|
|
20
|
+
id?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface BuilderContent extends BuilderContentVariation {
|
|
23
|
+
'@version'?: number;
|
|
24
|
+
id?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
published?: 'published' | 'draft' | 'archived';
|
|
27
|
+
modelId?: string;
|
|
28
|
+
priority?: number;
|
|
29
|
+
lastUpdated?: number;
|
|
30
|
+
startDate?: number;
|
|
31
|
+
endDate?: number;
|
|
32
|
+
variations?: {
|
|
33
|
+
[id: string]: BuilderContentVariation | undefined;
|
|
34
|
+
};
|
|
35
|
+
testVariationId?: string;
|
|
36
|
+
testVariationName?: string;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import type { BuilderElement } from './element';
|
|
2
|
+
export interface Input {
|
|
3
|
+
name: string;
|
|
4
|
+
friendlyName?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
defaultValue?: any;
|
|
7
|
+
type: string;
|
|
8
|
+
valueType?: {
|
|
9
|
+
type?: string;
|
|
10
|
+
};
|
|
11
|
+
required?: boolean;
|
|
12
|
+
autoFocus?: boolean;
|
|
13
|
+
subFields?: Input[];
|
|
14
|
+
helperText?: string;
|
|
15
|
+
allowedFileTypes?: string[];
|
|
16
|
+
imageHeight?: number;
|
|
17
|
+
imageWidth?: number;
|
|
18
|
+
mediaHeight?: number;
|
|
19
|
+
mediaWidth?: number;
|
|
20
|
+
hideFromUI?: boolean;
|
|
21
|
+
modelId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Number field type validation maximum accepted input
|
|
24
|
+
*/
|
|
25
|
+
max?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Number field type validation minimum accepted input
|
|
28
|
+
*/
|
|
29
|
+
min?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number field type step size when using arrows
|
|
32
|
+
*/
|
|
33
|
+
step?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Set this to `true` to show the editor for this input when
|
|
36
|
+
* children of this component are selected. This is useful for things
|
|
37
|
+
* like Tabs, such that users may not always select the Tabs component
|
|
38
|
+
* directly but will still be looking for how to add additional tabs
|
|
39
|
+
*/
|
|
40
|
+
broadcast?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Set this to `true` to show the editor for this input when
|
|
43
|
+
* group locked parents of this component are selected. This is useful
|
|
44
|
+
* to bubble up important inputs for locked groups, like text and images
|
|
45
|
+
*/
|
|
46
|
+
bubble?: boolean;
|
|
47
|
+
options?: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
enum?: string[] | {
|
|
51
|
+
label: string;
|
|
52
|
+
value: any;
|
|
53
|
+
helperText?: string;
|
|
54
|
+
}[];
|
|
55
|
+
/** Regex field validation for all string types (text, longText, html, url, etc) */
|
|
56
|
+
regex?: {
|
|
57
|
+
/** pattern to test, like "^\/[a-z]$" */
|
|
58
|
+
pattern: string;
|
|
59
|
+
/** flags for the RegExp constructor, e.g. "gi" */
|
|
60
|
+
options?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Friendly message to display to end-users if the regex fails, e.g.
|
|
63
|
+
* "You must use a relative url starting with '/...' "
|
|
64
|
+
*/
|
|
65
|
+
message: string;
|
|
66
|
+
};
|
|
67
|
+
advanced?: boolean;
|
|
68
|
+
onChange?: ((options: Map<string, any>) => void | Promise<void>) | string;
|
|
69
|
+
code?: boolean;
|
|
70
|
+
richText?: boolean;
|
|
71
|
+
showIf?: ((options: Map<string, any>) => boolean) | string;
|
|
72
|
+
copyOnAdd?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface ComponentInfo {
|
|
75
|
+
/**
|
|
76
|
+
* Name your component something unique, e.g. 'MyButton'. You can override built-in components
|
|
77
|
+
* by registering a component with the same name, e.g. 'Text', to replace the built-in text component
|
|
78
|
+
*/
|
|
79
|
+
name: string;
|
|
80
|
+
description?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Link to a documentation page for this component
|
|
83
|
+
*/
|
|
84
|
+
docsLink?: string;
|
|
85
|
+
image?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Input schema for your component for users to fill in the options
|
|
88
|
+
*/
|
|
89
|
+
inputs?: Input[];
|
|
90
|
+
class?: any;
|
|
91
|
+
type?: 'angular' | 'webcomponent' | 'react' | 'vue';
|
|
92
|
+
defaultStyles?: {
|
|
93
|
+
[key: string]: string;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Turn on if your component can accept children. Be sure to use in combination with
|
|
97
|
+
* withChildren(YourComponent) like here
|
|
98
|
+
* github.com/BuilderIO/builder/blob/master/examples/react-design-system/src/components/HeroWithChildren/HeroWithChildren.builder.js#L5
|
|
99
|
+
*/
|
|
100
|
+
canHaveChildren?: boolean;
|
|
101
|
+
fragment?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Do not wrap a component in a dom element. Be sure to use {...props.attributes} with this option
|
|
104
|
+
* like here github.com/BuilderIO/builder/blob/master/packages/react/src/blocks/forms/Input.tsx#L34
|
|
105
|
+
*/
|
|
106
|
+
noWrap?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Default children
|
|
109
|
+
*/
|
|
110
|
+
defaultChildren?: BuilderElement[];
|
|
111
|
+
defaults?: Partial<BuilderElement>;
|
|
112
|
+
hooks?: {
|
|
113
|
+
[key: string]: string | Function;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Hide your component in editor, useful for gradually deprecating components
|
|
117
|
+
*/
|
|
118
|
+
hideFromInsertMenu?: boolean;
|
|
119
|
+
tag?: string;
|
|
120
|
+
static?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Passing a list of model names will restrict using the component to only the models listed here, otherwise it'll be available for all models
|
|
123
|
+
*/
|
|
124
|
+
models?: string[];
|
|
125
|
+
builtIn: true;
|
|
126
|
+
/**
|
|
127
|
+
* Specify restrictions direct children must match
|
|
128
|
+
*/
|
|
129
|
+
childRequirements?: {
|
|
130
|
+
/** Message to show when this doesn't match, e.g. "Children of 'Columns' must be a 'Column'" */
|
|
131
|
+
message: string;
|
|
132
|
+
/** Simple way to say children must be a specific component name */
|
|
133
|
+
component?: string;
|
|
134
|
+
/**
|
|
135
|
+
* More advanced - specify a MongoDB-style query (using sift.js github.com/crcn/sift.js)
|
|
136
|
+
* of what the children objects should match, e.g.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* query: {
|
|
140
|
+
* // Child of this element must be a 'Button' or 'Text' component
|
|
141
|
+
* 'component.name': { $in: ['Button', 'Text'] }
|
|
142
|
+
* }
|
|
143
|
+
*/
|
|
144
|
+
query?: any;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Specify restrictions any parent must match
|
|
148
|
+
*/
|
|
149
|
+
requiresParent?: {
|
|
150
|
+
/** Message to show when this doesn't match, e.g. "'Add to cart' buttons must be within a 'Product box'" */
|
|
151
|
+
message: string;
|
|
152
|
+
/** Simple way to say a parent must be a specific component name, e.g. 'Product box' */
|
|
153
|
+
component?: string;
|
|
154
|
+
/**
|
|
155
|
+
* More advanced - specify a MongoDB-style query (using sift.js github.com/crcn/sift.js)
|
|
156
|
+
* of what at least one parent in the parents hierarchy should match, e.g.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* query: {
|
|
160
|
+
* // Thils element must be somewhere inside either a 'Product box' or 'Collection' component
|
|
161
|
+
* 'component.name': { $in: ['Product Box', 'Collection'] }
|
|
162
|
+
* }
|
|
163
|
+
*/
|
|
164
|
+
query?: any;
|
|
165
|
+
};
|
|
166
|
+
/** not yet implemented */
|
|
167
|
+
friendlyName?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Use to restrict access to your component based on a the current user permissions
|
|
170
|
+
* By default components will show to all users
|
|
171
|
+
* for more information on permissions in builder check https://www.builder.io/c/docs/guides/roles-and-permissions
|
|
172
|
+
*/
|
|
173
|
+
requiredPermissions?: Array<Permission>;
|
|
174
|
+
hidden?: boolean;
|
|
175
|
+
}
|
|
176
|
+
declare type Permission = 'read' | 'publish' | 'editCode' | 'editDesigns' | 'admin' | 'create';
|
|
177
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare 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 BuilderElement {
|
|
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?: BuilderElement[];
|
|
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?: Animation[];
|
|
56
|
+
}
|
|
57
|
+
interface Animation {
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.div-
|
|
1
|
+
.div-20351ewpue7[data-v-074f8045]{display:flex;align-items:stretch;line-height:normal}@media (max-width: 991px){.div-20351ewpue7[data-v-074f8045]{flex-direction:var(--flex-dir-tablet)}}@media (max-width: 639px){.div-20351ewpue7[data-v-074f8045]{flex-direction:var(--flex-dir)}}.div-20351ewpue7-2[data-v-074f8045]{flex-grow:1}@media (max-width: 991px){.div-20351ewpue7-2[data-v-074f8045]{width:var(--column-width-tablet)!important;margin-left:var(--column-margin-left-tablet)!important}}@media (max-width: 639px){.div-20351ewpue7-2[data-v-074f8045]{width:var(--column-width)!important;margin-left:var(--column-margin-left)!important}}.div-1ifnufbde19[data-v-9208289b]{position:relative}.img-1ifnufbde19[data-v-9208289b]{opacity:1;transition:opacity .2s ease-in-out;position:absolute;height:100%;width:100%;top:0px;left:0px}.div-1ifnufbde19-2[data-v-9208289b]{width:100%;pointer-events:none;font-size:0}.div-1ifnufbde19-3[data-v-9208289b]{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:0;left:0;width:100%;height:100%}.button-4wbls88y960[data-v-e55cf307]{all:unset}.div-23e8fqt91nf[data-v-69abb8b2]{display:flex;flex-direction:column;align-items:stretch}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { defineAsyncComponent as i, resolveComponent as a, openBlock as m, createBlock as d, createCommentVNode as u } from "vue";
|
|
2
|
+
import { T as p, _ as $ } from "./index.7b49e825.js";
|
|
3
|
+
import { g as y } from "./get-processed-block.77923ee6.js";
|
|
4
|
+
const f = {
|
|
5
|
+
small: {
|
|
6
|
+
min: 320,
|
|
7
|
+
default: 321,
|
|
8
|
+
max: 640
|
|
9
|
+
},
|
|
10
|
+
medium: {
|
|
11
|
+
min: 641,
|
|
12
|
+
default: 642,
|
|
13
|
+
max: 991
|
|
14
|
+
},
|
|
15
|
+
large: {
|
|
16
|
+
min: 990,
|
|
17
|
+
default: 991,
|
|
18
|
+
max: 1200
|
|
19
|
+
}
|
|
20
|
+
}, r = (e) => `@media (max-width: ${f[e].max}px)`, h = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), s = (e) => Object.entries(e).map(([o, t]) => {
|
|
21
|
+
if (typeof t == "string")
|
|
22
|
+
return `${h(o)}: ${t};`;
|
|
23
|
+
}).join(`
|
|
24
|
+
`), k = () => import("./render-inlined-styles.0b1e087d.js").then((e) => e.default).catch((e) => {
|
|
25
|
+
throw console.error(
|
|
26
|
+
"Error while attempting to dynamically import component RenderInlinedStyles at ../render-inlined-styles.vue",
|
|
27
|
+
e
|
|
28
|
+
), e;
|
|
29
|
+
}), S = {
|
|
30
|
+
name: "block-styles",
|
|
31
|
+
components: {
|
|
32
|
+
"render-inlined-styles": i(k)
|
|
33
|
+
},
|
|
34
|
+
props: ["block", "context"],
|
|
35
|
+
data: () => ({ TARGET: p }),
|
|
36
|
+
computed: {
|
|
37
|
+
useBlock() {
|
|
38
|
+
return y({
|
|
39
|
+
block: this.block,
|
|
40
|
+
state: this.context.state,
|
|
41
|
+
context: this.context.context,
|
|
42
|
+
shouldEvaluateBindings: !0
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
css() {
|
|
46
|
+
const e = this.useBlock.responsiveStyles, n = e == null ? void 0 : e.large, o = e == null ? void 0 : e.medium, t = e == null ? void 0 : e.small;
|
|
47
|
+
return `
|
|
48
|
+
${n ? `.${this.useBlock.id} {${s(n)}}` : ""}
|
|
49
|
+
${o ? `${r("medium")} {
|
|
50
|
+
.${this.useBlock.id} {${s(o)}}
|
|
51
|
+
}` : ""}
|
|
52
|
+
${t ? `${r("small")} {
|
|
53
|
+
.${this.useBlock.id} {${s(t)}}
|
|
54
|
+
}` : ""}
|
|
55
|
+
}`;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
function T(e, n, o, t, x, l) {
|
|
60
|
+
const c = a("render-inlined-styles");
|
|
61
|
+
return e.TARGET === "vue2" || e.TARGET === "vue3" || e.TARGET === "svelte" || e.TARGET === "qwik" ? (m(), d(c, {
|
|
62
|
+
key: 0,
|
|
63
|
+
styles: l.css
|
|
64
|
+
}, null, 8, ["styles"])) : u("", !0);
|
|
65
|
+
}
|
|
66
|
+
const b = /* @__PURE__ */ $(S, [["render", T]]);
|
|
67
|
+
export {
|
|
68
|
+
b as default
|
|
69
|
+
};
|