@builder.io/sdk-qwik 0.7.1-6 → 0.7.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.
Files changed (181) hide show
  1. package/lib/browser/index.qwik.cjs +332 -234
  2. package/lib/browser/index.qwik.mjs +333 -235
  3. package/lib/edge/index.qwik.cjs +339 -241
  4. package/lib/edge/index.qwik.mjs +340 -242
  5. package/lib/node/index.qwik.cjs +341 -243
  6. package/lib/node/index.qwik.mjs +341 -243
  7. package/lib/node/{node-evaluate-fc9f27d1.cjs → node-evaluate-1a278bf5.cjs} +2 -1
  8. package/package.json +2 -3
  9. package/types/src/blocks/button/button.d.ts +2 -1
  10. package/types/src/blocks/img/img.d.ts +2 -1
  11. package/types/src/blocks/input/input.d.ts +2 -1
  12. package/types/src/blocks/section/section.d.ts +2 -1
  13. package/types/src/blocks/select/select.d.ts +2 -1
  14. package/types/src/blocks/submit-button/submit-button.d.ts +2 -1
  15. package/types/src/blocks/symbol/symbol.d.ts +4 -2
  16. package/types/src/blocks/textarea/textarea.d.ts +2 -1
  17. package/types/src/components/block/components/block-wrapper.d.ts +2 -1
  18. package/types/src/constants/sdk-version.d.ts +1 -1
  19. package/types/src/context/types.d.ts +1 -1
  20. package/types/src/functions/evaluate/node-runtime/safeDynamicRequire.d.ts +2 -4
  21. package/types/src/helpers/ab-tests.d.ts +1 -1
  22. package/types/src/server-index.d.ts +2 -2
  23. package/lib/index.qwik.js +0 -7609
  24. package/types/blocks/BaseText.d.ts +0 -5
  25. package/types/blocks/button/button.d.ts +0 -11
  26. package/types/blocks/button/component-info.d.ts +0 -2
  27. package/types/blocks/columns/columns.d.ts +0 -32
  28. package/types/blocks/columns/component-info.d.ts +0 -2
  29. package/types/blocks/custom-code/component-info.d.ts +0 -2
  30. package/types/blocks/custom-code/custom-code.d.ts +0 -7
  31. package/types/blocks/embed/component-info.d.ts +0 -2
  32. package/types/blocks/embed/embed.d.ts +0 -6
  33. package/types/blocks/embed/helpers.d.ts +0 -1
  34. package/types/blocks/form/component-info.d.ts +0 -2
  35. package/types/blocks/fragment/component-info.d.ts +0 -2
  36. package/types/blocks/fragment/fragment.d.ts +0 -7
  37. package/types/blocks/helpers.d.ts +0 -13
  38. package/types/blocks/image/component-info.d.ts +0 -2
  39. package/types/blocks/image/image.d.ts +0 -23
  40. package/types/blocks/image/image.helpers.d.ts +0 -1
  41. package/types/blocks/img/component-info.d.ts +0 -2
  42. package/types/blocks/img/img.d.ts +0 -12
  43. package/types/blocks/input/component-info.d.ts +0 -2
  44. package/types/blocks/input/input.d.ts +0 -13
  45. package/types/blocks/raw-text/component-info.d.ts +0 -2
  46. package/types/blocks/raw-text/raw-text.d.ts +0 -6
  47. package/types/blocks/section/component-info.d.ts +0 -2
  48. package/types/blocks/section/section.d.ts +0 -10
  49. package/types/blocks/select/component-info.d.ts +0 -2
  50. package/types/blocks/select/select.d.ts +0 -14
  51. package/types/blocks/submit-button/component-info.d.ts +0 -2
  52. package/types/blocks/submit-button/submit-button.d.ts +0 -8
  53. package/types/blocks/symbol/component-info.d.ts +0 -2
  54. package/types/blocks/symbol/symbol.d.ts +0 -24
  55. package/types/blocks/symbol/symbol.helpers.d.ts +0 -14
  56. package/types/blocks/text/component-info.d.ts +0 -2
  57. package/types/blocks/text/text.d.ts +0 -5
  58. package/types/blocks/textarea/component-info.d.ts +0 -2
  59. package/types/blocks/textarea/textarea.d.ts +0 -11
  60. package/types/blocks/video/component-info.d.ts +0 -2
  61. package/types/blocks/video/video.d.ts +0 -19
  62. package/types/components/block/block.d.ts +0 -9
  63. package/types/components/block/block.helpers.d.ts +0 -13
  64. package/types/components/block/components/block-styles.d.ts +0 -8
  65. package/types/components/block/components/block-wrapper.d.ts +0 -20
  66. package/types/components/block/components/component-ref/component-ref.d.ts +0 -3
  67. package/types/components/block/components/component-ref/component-ref.helpers.d.ts +0 -35
  68. package/types/components/block/components/interactive-element.d.ts +0 -11
  69. package/types/components/block/components/repeated-block.d.ts +0 -9
  70. package/types/components/block/types.d.ts +0 -6
  71. package/types/components/blocks/blocks-wrapper.d.ts +0 -13
  72. package/types/components/blocks/blocks.d.ts +0 -8
  73. package/types/components/blocks/deopt.d.ts +0 -4
  74. package/types/components/content/components/enable-editor.d.ts +0 -21
  75. package/types/components/content/components/styles.d.ts +0 -8
  76. package/types/components/content/components/styles.helpers.d.ts +0 -15
  77. package/types/components/content/content.d.ts +0 -5
  78. package/types/components/content/content.helpers.d.ts +0 -7
  79. package/types/components/content/content.types.d.ts +0 -24
  80. package/types/components/content/index.d.ts +0 -1
  81. package/types/components/content/wrap-component-ref.d.ts +0 -6
  82. package/types/components/content-variants/content-variants.d.ts +0 -9
  83. package/types/components/content-variants/content-variants.types.d.ts +0 -20
  84. package/types/components/content-variants/helpers.d.ts +0 -41
  85. package/types/components/inlined-script.d.ts +0 -6
  86. package/types/components/inlined-styles.d.ts +0 -6
  87. package/types/constants/builder-registered-components.d.ts +0 -6
  88. package/types/constants/device-sizes.d.ts +0 -13
  89. package/types/constants/sdk-version.d.ts +0 -1
  90. package/types/constants/target.d.ts +0 -2
  91. package/types/context/builder.context.d.ts +0 -2
  92. package/types/context/components.context.d.ts +0 -2
  93. package/types/context/types.d.ts +0 -35
  94. package/types/functions/apply-patch-with-mutation.d.ts +0 -10
  95. package/types/functions/camel-to-kebab-case.d.ts +0 -1
  96. package/types/functions/evaluate/browser-runtime/browser.d.ts +0 -4
  97. package/types/functions/evaluate/browser-runtime/index.d.ts +0 -1
  98. package/types/functions/evaluate/edge-runtime/acorn-interpreter.d.ts +0 -2
  99. package/types/functions/evaluate/edge-runtime/edge-runtime.d.ts +0 -2
  100. package/types/functions/evaluate/edge-runtime/index.d.ts +0 -1
  101. package/types/functions/evaluate/evaluate.d.ts +0 -6
  102. package/types/functions/evaluate/helpers.d.ts +0 -18
  103. package/types/functions/evaluate/index.d.ts +0 -1
  104. package/types/functions/evaluate/node-runtime/index.d.ts +0 -1
  105. package/types/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +0 -2
  106. package/types/functions/evaluate/non-node-runtime/index.d.ts +0 -1
  107. package/types/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
  108. package/types/functions/evaluate/placeholder-runtime.d.ts +0 -2
  109. package/types/functions/event-handler-name.d.ts +0 -1
  110. package/types/functions/extract-text-styles.d.ts +0 -4
  111. package/types/functions/fast-clone.d.ts +0 -4
  112. package/types/functions/fetch-builder-props.d.ts +0 -40
  113. package/types/functions/get-block-actions-handler.d.ts +0 -5
  114. package/types/functions/get-block-actions.d.ts +0 -10
  115. package/types/functions/get-block-component-options.d.ts +0 -2
  116. package/types/functions/get-block-properties.d.ts +0 -11
  117. package/types/functions/get-builder-search-params/index.d.ts +0 -12
  118. package/types/functions/get-content/generate-content-url.d.ts +0 -2
  119. package/types/functions/get-content/index.d.ts +0 -28
  120. package/types/functions/get-content/types.d.ts +0 -51
  121. package/types/functions/get-fetch.d.ts +0 -1
  122. package/types/functions/get-global-this.d.ts +0 -4
  123. package/types/functions/get-processed-block.d.ts +0 -10
  124. package/types/functions/get-react-native-block-styles.d.ts +0 -7
  125. package/types/functions/is-browser.d.ts +0 -1
  126. package/types/functions/is-edge-runtime.d.ts +0 -4
  127. package/types/functions/is-editing.d.ts +0 -1
  128. package/types/functions/is-iframe.d.ts +0 -1
  129. package/types/functions/is-non-node-server.d.ts +0 -4
  130. package/types/functions/is-previewing.d.ts +0 -1
  131. package/types/functions/on-change.d.ts +0 -7
  132. package/types/functions/register-component.d.ts +0 -15
  133. package/types/functions/register.d.ts +0 -16
  134. package/types/functions/sanitize-react-native-block-styles.d.ts +0 -3
  135. package/types/functions/set-editor-settings.d.ts +0 -4
  136. package/types/functions/set.d.ts +0 -7
  137. package/types/functions/track/helpers.d.ts +0 -5
  138. package/types/functions/track/index.d.ts +0 -51
  139. package/types/functions/track/interaction.d.ts +0 -13
  140. package/types/functions/transform-block-properties.d.ts +0 -1
  141. package/types/functions/transform-block.d.ts +0 -2
  142. package/types/helpers/ab-tests.d.ts +0 -9
  143. package/types/helpers/canTrack.d.ts +0 -1
  144. package/types/helpers/cookie.d.ts +0 -19
  145. package/types/helpers/css.d.ts +0 -7
  146. package/types/helpers/flatten.d.ts +0 -6
  147. package/types/helpers/localStorage.d.ts +0 -9
  148. package/types/helpers/logger.d.ts +0 -6
  149. package/types/helpers/nullable.d.ts +0 -2
  150. package/types/helpers/preview-lru-cache/get.d.ts +0 -2
  151. package/types/helpers/preview-lru-cache/helpers.d.ts +0 -0
  152. package/types/helpers/preview-lru-cache/init.d.ts +0 -6
  153. package/types/helpers/preview-lru-cache/set.d.ts +0 -7
  154. package/types/helpers/preview-lru-cache/types.d.ts +0 -0
  155. package/types/helpers/sessionId.d.ts +0 -6
  156. package/types/helpers/time.d.ts +0 -1
  157. package/types/helpers/url.d.ts +0 -6
  158. package/types/helpers/uuid.d.ts +0 -8
  159. package/types/helpers/visitorId.d.ts +0 -6
  160. package/types/index-helpers/blocks-exports.d.ts +0 -21
  161. package/types/index-helpers/top-of-file.d.ts +0 -1
  162. package/types/index.d.ts +0 -7
  163. package/types/scripts/init-editing.d.ts +0 -6
  164. package/types/server-index.d.ts +0 -15
  165. package/types/src/components/blocks/deopt.d.ts +0 -4
  166. package/types/src/functions/evaluate/non-node-runtime/acorn-interpreter.d.ts +0 -2
  167. package/types/src/functions/evaluate/non-node-runtime/index.d.ts +0 -1
  168. package/types/src/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
  169. package/types/src/functions/is-non-node-server.d.ts +0 -4
  170. package/types/types/api-version.d.ts +0 -2
  171. package/types/types/builder-block.d.ts +0 -66
  172. package/types/types/builder-content.d.ts +0 -44
  173. package/types/types/builder-props.d.ts +0 -9
  174. package/types/types/can-track.d.ts +0 -3
  175. package/types/types/components.d.ts +0 -111
  176. package/types/types/deep-partial.d.ts +0 -3
  177. package/types/types/element.d.ts +0 -59
  178. package/types/types/enforced-partials.d.ts +0 -21
  179. package/types/types/input.d.ts +0 -121
  180. package/types/types/targets.d.ts +0 -1
  181. package/types/types/typescript.d.ts +0 -11
@@ -1,5 +0,0 @@
1
- export interface BaseTextProps {
2
- text: string;
3
- }
4
- export declare const BaseText: import("@builder.io/qwik").Component<BaseTextProps>;
5
- export default BaseText;
@@ -1,11 +0,0 @@
1
- /**
2
- * This import is used by the Svelte SDK. Do not remove.
3
- */ export interface ButtonProps {
4
- attributes?: any;
5
- text?: string;
6
- link?: string;
7
- openLinkInNewTab?: boolean;
8
- }
9
- export declare const Button: import("@builder.io/qwik").Component<ButtonProps>;
10
- export default Button;
11
- export declare const STYLES = "\n.button-Button {\n all: unset;\n}\n";
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,32 +0,0 @@
1
- import { SizeName } from "../../constants/device-sizes.js";
2
- import { BuilderBlock } from "../../types/builder-block.js";
3
- import { BuilderComponentsProp, PropsWithBuilderData } from "../../types/builder-props.js";
4
- import { Dictionary } from "../../types/typescript.js";
5
- type Column = {
6
- blocks: BuilderBlock[];
7
- width?: number;
8
- };
9
- type CSSVal = string | number;
10
- type StackColumnsAt = "tablet" | "mobile" | "never";
11
- export interface ColumnProps extends BuilderComponentsProp {
12
- columns?: Column[];
13
- builderBlock: BuilderBlock;
14
- space?: number;
15
- stackColumnsAt?: StackColumnsAt;
16
- reverseColumnsWhenStacked?: boolean;
17
- }
18
- export declare const getWidth: (props: any, state: any, index: number) => any;
19
- export declare const getColumnCssWidth: (props: any, state: any, index: number) => string;
20
- export declare const getTabletStyle: (props: any, state: any, { stackedStyle, desktopStyle, }: {
21
- stackedStyle: CSSVal;
22
- desktopStyle: CSSVal;
23
- }) => CSSVal;
24
- export declare const getMobileStyle: (props: any, state: any, { stackedStyle, desktopStyle, }: {
25
- stackedStyle: CSSVal;
26
- desktopStyle: CSSVal;
27
- }) => CSSVal;
28
- export declare const columnCssVars: (props: any, state: any, index: number) => Dictionary<string>;
29
- export declare const getWidthForBreakpointSize: (props: any, state: any, size: SizeName) => number;
30
- export declare const Columns: import("@builder.io/qwik").Component<PropsWithBuilderData<ColumnProps>>;
31
- export default Columns;
32
- export declare const STYLES = "\n.div-Columns {\n display: flex;\n line-height: normal;\n}\n.div-Columns-2 {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n";
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,7 +0,0 @@
1
- export interface CustomCodeProps {
2
- code: string;
3
- replaceNodes?: boolean;
4
- }
5
- export declare const findAndRunScripts: (props: any, state: any, elem: any) => void;
6
- export declare const CustomCode: import("@builder.io/qwik").Component<CustomCodeProps>;
7
- export default CustomCode;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,6 +0,0 @@
1
- export interface EmbedProps {
2
- content: string;
3
- }
4
- export declare const findAndRunScripts: (props: any, state: any, elem: any) => void;
5
- export declare const Embed: import("@builder.io/qwik").Component<EmbedProps>;
6
- export default Embed;
@@ -1 +0,0 @@
1
- export declare const isJsScript: (script: HTMLScriptElement) => boolean;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,7 +0,0 @@
1
- export interface FragmentProps {
2
- maxWidth?: number;
3
- attributes?: any;
4
- children?: any;
5
- }
6
- export declare const FragmentComponent: import("@builder.io/qwik").Component<FragmentProps>;
7
- export default FragmentComponent;
@@ -1,13 +0,0 @@
1
- export declare function filterAttrs(attrs: {
2
- [index: string]: any;
3
- } | undefined, prefix: string, isEvent: boolean): {
4
- [index: string]: any;
5
- };
6
- /**
7
- * Svelte SDK: workaround to dynamically provide event handlers to components/elements.
8
- * https://svelte.dev/repl/1246699e266f41218a8eeb45b9b58b54?version=3.24.1
9
- */
10
- export declare function setAttrs(node: HTMLElement, attrs?: Record<string, (event: Event) => void>): {
11
- update(attrs?: {}): void;
12
- destroy(): void;
13
- };
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,23 +0,0 @@
1
- import { BuilderBlock } from "../../types/builder-block.js";
2
- import { JSX } from "@builder.io/mitosis/jsx-runtime";
3
- export interface ImageProps {
4
- className?: string;
5
- image: string;
6
- sizes?: string;
7
- lazy?: boolean;
8
- height?: number;
9
- width?: number;
10
- altText?: string;
11
- backgroundSize?: "cover" | "contain";
12
- backgroundPosition?: string;
13
- srcset?: string;
14
- aspectRatio?: number;
15
- children?: JSX.Element;
16
- fitContent?: boolean;
17
- builderBlock?: BuilderBlock;
18
- noWebp?: boolean;
19
- src?: string;
20
- }
21
- export declare const Image: import("@builder.io/qwik").Component<ImageProps>;
22
- export default Image;
23
- export declare const STYLES = "\n.img-Image {\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n.div-Image {\n width: 100%;\n pointer-events: none;\n font-size: 0;\n}\n.div-Image-2 {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n";
@@ -1 +0,0 @@
1
- export declare function getSrcSet(url: string): string;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,12 +0,0 @@
1
- /**
2
- * This import is used by the Svelte SDK. Do not remove.
3
- */ export interface ImgProps {
4
- attributes?: any;
5
- imgSrc?: string;
6
- image?: string;
7
- altText?: string;
8
- backgroundSize?: "cover" | "contain";
9
- backgroundPosition?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
10
- }
11
- export declare const ImgComponent: import("@builder.io/qwik").Component<ImgProps>;
12
- export default ImgComponent;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,13 +0,0 @@
1
- /**
2
- * This import is used by the Svelte SDK. Do not remove.
3
- */ export interface FormInputProps {
4
- type?: string;
5
- attributes?: any;
6
- name?: string;
7
- value?: string;
8
- placeholder?: string;
9
- defaultValue?: string;
10
- required?: boolean;
11
- }
12
- export declare const FormInputComponent: import("@builder.io/qwik").Component<FormInputProps>;
13
- export default FormInputComponent;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,6 +0,0 @@
1
- export interface RawTextProps {
2
- attributes?: any;
3
- text?: string;
4
- }
5
- export declare const RawText: import("@builder.io/qwik").Component<RawTextProps>;
6
- export default RawText;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,10 +0,0 @@
1
- /**
2
- * This import is used by the Svelte SDK. Do not remove.
3
- */ export interface SectionProps {
4
- maxWidth?: number;
5
- attributes?: any;
6
- children?: any;
7
- builderBlock?: any;
8
- }
9
- export declare const SectionComponent: import("@builder.io/qwik").Component<SectionProps>;
10
- export default SectionComponent;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,14 +0,0 @@
1
- /**
2
- * This import is used by the Svelte SDK. Do not remove.
3
- */ export interface FormSelectProps {
4
- options?: {
5
- name?: string;
6
- value: string;
7
- }[];
8
- attributes?: any;
9
- name?: string;
10
- value?: string;
11
- defaultValue?: string;
12
- }
13
- export declare const SelectComponent: import("@builder.io/qwik").Component<FormSelectProps>;
14
- export default SelectComponent;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,8 +0,0 @@
1
- /**
2
- * This import is used by the Svelte SDK. Do not remove.
3
- */ export interface ButtonProps {
4
- attributes?: any;
5
- text?: string;
6
- }
7
- export declare const SubmitButton: import("@builder.io/qwik").Component<ButtonProps>;
8
- export default SubmitButton;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,24 +0,0 @@
1
- import { BuilderContent } from "../../types/builder-content.js";
2
- import { BuilderComponentsProp, PropsWithBuilderData } from "../../types/builder-props.js";
3
- /**
4
- * This import is used by the Svelte SDK. Do not remove.
5
- */ export interface SymbolInfo {
6
- model?: string;
7
- entry?: string;
8
- data?: any;
9
- content?: BuilderContent;
10
- inline?: boolean;
11
- dynamic?: boolean;
12
- }
13
- /**
14
- * This import is used by the Svelte SDK. Do not remove.
15
- */ export interface SymbolProps extends BuilderComponentsProp {
16
- symbol?: SymbolInfo;
17
- dataOnly?: boolean;
18
- dynamic?: boolean;
19
- attributes?: any;
20
- inheritState?: boolean;
21
- }
22
- export declare const setContent: (props: any, state: any) => void;
23
- export declare const Symbol: import("@builder.io/qwik").Component<PropsWithBuilderData<SymbolProps>>;
24
- export default Symbol;
@@ -1,14 +0,0 @@
1
- import type { BuilderContextInterface } from '../../context/types.js';
2
- import type { BuilderContent } from '../../types/builder-content.js';
3
- export interface SymbolInfo {
4
- model?: string;
5
- entry?: string;
6
- data?: any;
7
- content?: BuilderContent;
8
- inline?: boolean;
9
- dynamic?: boolean;
10
- }
11
- export declare const fetchSymbolContent: ({ builderContextValue, symbol }: {
12
- symbol: SymbolInfo | undefined;
13
- builderContextValue: BuilderContextInterface;
14
- }) => Promise<BuilderContent | null | undefined>;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,5 +0,0 @@
1
- export interface TextProps {
2
- text?: string;
3
- }
4
- export declare const Text: import("@builder.io/qwik").Component<TextProps>;
5
- export default Text;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,11 +0,0 @@
1
- /**
2
- * This import is used by the Svelte SDK. Do not remove.
3
- */ export interface TextareaProps {
4
- attributes?: any;
5
- name?: string;
6
- value?: string;
7
- defaultValue?: string;
8
- placeholder?: string;
9
- }
10
- export declare const Textarea: import("@builder.io/qwik").Component<TextareaProps>;
11
- export default Textarea;
@@ -1,2 +0,0 @@
1
- import type { ComponentInfo } from '../../types/components.js';
2
- export declare const componentInfo: ComponentInfo;
@@ -1,19 +0,0 @@
1
- export interface VideoProps {
2
- attributes?: any;
3
- video?: string;
4
- autoPlay?: boolean;
5
- controls?: boolean;
6
- muted?: boolean;
7
- loop?: boolean;
8
- playsInline?: boolean;
9
- aspectRatio?: number;
10
- width?: number;
11
- height?: number;
12
- fit?: "contain" | "cover" | "fill";
13
- preload?: "auto" | "metadata" | "none";
14
- position?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
15
- posterImage?: string;
16
- lazyLoad?: boolean;
17
- }
18
- export declare const Video: import("@builder.io/qwik").Component<VideoProps>;
19
- export default Video;
@@ -1,9 +0,0 @@
1
- import { BuilderContextInterface, RegisteredComponents } from "../../context/types.js";
2
- import { BuilderBlock } from "../../types/builder-block.js";
3
- export type BlockProps = {
4
- block: BuilderBlock;
5
- context: BuilderContextInterface;
6
- registeredComponents: RegisteredComponents;
7
- };
8
- export declare const Block: import("@builder.io/qwik").Component<BlockProps>;
9
- export default Block;
@@ -1,13 +0,0 @@
1
- import type { BuilderContextInterface, RegisteredComponents } from '../../context/types.js';
2
- import type { BuilderBlock } from '../../types/builder-block.js';
3
- import type { RepeatData } from './types.js';
4
- export declare const isEmptyHtmlElement: (tagName: unknown) => boolean;
5
- export declare const getComponent: ({ block, context, registeredComponents }: {
6
- block: BuilderBlock;
7
- context: BuilderContextInterface;
8
- registeredComponents: RegisteredComponents;
9
- }) => import("../../context/types.js").RegisteredComponent | null | undefined;
10
- export declare const getRepeatItemData: ({ block, context }: {
11
- block: BuilderBlock;
12
- context: BuilderContextInterface;
13
- }) => RepeatData[] | undefined;
@@ -1,8 +0,0 @@
1
- import { BuilderContextInterface } from "../../../context/types.js";
2
- import { BuilderBlock } from "../../../types/builder-block.js";
3
- export type BlockStylesProps = {
4
- block: BuilderBlock;
5
- context: BuilderContextInterface;
6
- };
7
- export declare const BlockStyles: import("@builder.io/qwik").Component<BlockStylesProps>;
8
- export default BlockStyles;
@@ -1,20 +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
- /**
5
- * This import is used by the Svelte SDK. Do not remove.
6
- */ type BlockWrapperProps = {
7
- Wrapper: string;
8
- block: BuilderBlock;
9
- context: BuilderContextInterface;
10
- hasChildren: boolean;
11
- };
12
- /**
13
- * This component renders a block's wrapper HTML element (from the block's `tagName` property).
14
- * It reuses the exact same logic as the `InteractiveElement` component, but we need to have 2 separate components for
15
- * Svelte's sake, as it needs to know at compile-time whether to use:
16
- * - `<svelte:element>` (for HTML element) or
17
- * - `<svelte:component>` (for custom components)
18
- */
19
- export declare const BlockWrapper: import("@builder.io/qwik").Component<PropsWithChildren<BlockWrapperProps>>;
20
- export default BlockWrapper;
@@ -1,3 +0,0 @@
1
- import { ComponentProps } from "./component-ref.helpers.js";
2
- export declare const ComponentRef: import("@builder.io/qwik").Component<ComponentProps>;
3
- export default ComponentRef;
@@ -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,6 +0,0 @@
1
- import type { BuilderContextInterface } from '../../context/types.js';
2
- import type { BuilderBlock } from '../../types/builder-block.js';
3
- export interface RepeatData {
4
- block: BuilderBlock;
5
- context: BuilderContextInterface;
6
- }
@@ -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,4 +0,0 @@
1
- /**
2
- * Workaround until https://github.com/BuilderIO/qwik/issues/5017 is fixed.
3
- */
4
- export declare function deoptSignal<T>(value: T): T;
@@ -1,21 +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 EnableEditor: import("@builder.io/qwik").Component<BuilderEditorProps>;
21
- export default EnableEditor;
@@ -1,8 +0,0 @@
1
- import { CustomFont } from "./styles.helpers.js";
2
- interface Props {
3
- cssCode?: string;
4
- customFonts?: CustomFont[];
5
- contentId?: string;
6
- }
7
- export declare const ContentStyles: import("@builder.io/qwik").Component<Props>;
8
- export default ContentStyles;
@@ -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,6 +0,0 @@
1
- /**
2
- * Apply target-specific transformations to the component reference.
3
- *
4
- * See overrides/* for examples.
5
- */
6
- export declare const wrapComponentRef: (component: any) => any;
@@ -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;