@builder.io/sdk-qwik 0.4.5 → 0.5.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.
Files changed (96) hide show
  1. package/lib/index.qwik.cjs +11393 -2965
  2. package/lib/index.qwik.mjs +11394 -2966
  3. package/package.json +2 -2
  4. package/types/blocks/button/button.d.ts +3 -1
  5. package/types/blocks/button/component-info.d.ts +1 -1
  6. package/types/blocks/columns/columns.d.ts +12 -11
  7. package/types/blocks/columns/component-info.d.ts +1 -1
  8. package/types/blocks/custom-code/component-info.d.ts +1 -1
  9. package/types/blocks/embed/component-info.d.ts +1 -1
  10. package/types/blocks/form/component-info.d.ts +1 -1
  11. package/types/blocks/fragment/component-info.d.ts +1 -1
  12. package/types/blocks/helpers.d.ts +13 -0
  13. package/types/blocks/image/component-info.d.ts +1 -1
  14. package/types/blocks/img/component-info.d.ts +1 -1
  15. package/types/blocks/img/img.d.ts +3 -1
  16. package/types/blocks/input/component-info.d.ts +1 -1
  17. package/types/blocks/input/input.d.ts +3 -1
  18. package/types/blocks/raw-text/component-info.d.ts +1 -1
  19. package/types/blocks/section/component-info.d.ts +1 -1
  20. package/types/blocks/section/section.d.ts +3 -1
  21. package/types/blocks/select/component-info.d.ts +1 -1
  22. package/types/blocks/select/select.d.ts +3 -1
  23. package/types/blocks/submit-button/component-info.d.ts +1 -1
  24. package/types/blocks/submit-button/submit-button.d.ts +3 -1
  25. package/types/blocks/symbol/component-info.d.ts +1 -1
  26. package/types/blocks/symbol/symbol.d.ts +9 -6
  27. package/types/blocks/symbol/symbol.helpers.d.ts +14 -0
  28. package/types/blocks/text/component-info.d.ts +1 -1
  29. package/types/blocks/textarea/component-info.d.ts +1 -1
  30. package/types/blocks/textarea/textarea.d.ts +3 -1
  31. package/types/blocks/video/component-info.d.ts +1 -1
  32. package/types/blocks/video/video.d.ts +1 -0
  33. package/types/components/block/block.d.ts +2 -3
  34. package/types/components/block/block.helpers.d.ts +7 -6
  35. package/types/components/block/components/block-wrapper/block-wrapper.d.ts +17 -0
  36. package/types/components/block/components/block-wrapper.d.ts +20 -0
  37. package/types/components/block/components/component-ref/component-ref.d.ts +3 -0
  38. package/types/components/block/components/component-ref/component-ref.helpers.d.ts +35 -0
  39. package/types/components/block/components/component-ref.d.ts +5 -3
  40. package/types/components/block/components/interactive-element/interactive-element.d.ts +4 -0
  41. package/types/components/block/components/interactive-element/interactive-element.helpers.d.ts +16 -0
  42. package/types/components/block/components/interactive-element.d.ts +11 -0
  43. package/types/components/block/components/repeated-block.d.ts +3 -4
  44. package/types/components/blocks/blocks-wrapper.d.ts +2 -4
  45. package/types/components/blocks/blocks.d.ts +2 -3
  46. package/types/components/content/builder-editing.d.ts +1 -22
  47. package/types/components/content/components/enable-editor.d.ts +3 -5
  48. package/types/components/content/components/styles.d.ts +8 -0
  49. package/types/components/content/components/styles.helpers.d.ts +15 -0
  50. package/types/components/content/content.d.ts +2 -4
  51. package/types/components/content/content.helpers.d.ts +5 -5
  52. package/types/components/content/content.types.d.ts +9 -23
  53. package/types/components/content-variants/content-variants.d.ts +9 -3
  54. package/types/components/content-variants/content-variants.types.d.ts +20 -0
  55. package/types/components/content-variants/helpers.d.ts +30 -6
  56. package/types/constants/sdk-version.d.ts +1 -1
  57. package/types/constants/target.d.ts +1 -1
  58. package/types/context/types.d.ts +1 -1
  59. package/types/functions/acorn_interpreter.d.ts +1 -0
  60. package/types/functions/apply-patch-with-mutation.d.ts +10 -0
  61. package/types/functions/apply-patch-with-mutation.test.d.ts +1 -0
  62. package/types/functions/evaluate/acorn.d.ts +0 -0
  63. package/types/functions/evaluate/evaluate.d.ts +10 -0
  64. package/types/functions/evaluate/evaluate.test.d.ts +1 -0
  65. package/types/functions/evaluate/index.d.ts +1 -0
  66. package/types/functions/evaluate/interpreter.d.ts +2 -0
  67. package/types/functions/evaluate/non-node-runtime.d.ts +2 -0
  68. package/types/functions/evaluate/types.d.ts +10 -0
  69. package/types/functions/evaluate.d.ts +18 -2
  70. package/types/functions/get-block-actions.d.ts +1 -0
  71. package/types/functions/get-block-properties.d.ts +5 -1
  72. package/types/functions/get-content/index.d.ts +2 -6
  73. package/types/functions/get-content/processCookies.d.ts +2 -0
  74. package/types/functions/get-processed-block.d.ts +1 -1
  75. package/types/functions/get-react-native-block-styles.d.ts +1 -1
  76. package/types/functions/if-target.d.ts +1 -1
  77. package/types/functions/is-non-node-server.d.ts +4 -0
  78. package/types/functions/register-component.d.ts +2 -1
  79. package/types/helpers/ab-tests.d.ts +2 -2
  80. package/types/helpers/cookie.d.ts +2 -2
  81. package/types/helpers/css.d.ts +1 -1
  82. package/types/helpers/localStorage.d.ts +2 -2
  83. package/types/helpers/preview-lru-cache/get.d.ts +1 -0
  84. package/types/helpers/preview-lru-cache/helpers.d.ts +1 -0
  85. package/types/helpers/preview-lru-cache/init.d.ts +6 -0
  86. package/types/helpers/preview-lru-cache/set.d.ts +7 -0
  87. package/types/helpers/preview-lru-cache/types.d.ts +12 -0
  88. package/types/helpers/sessionId.d.ts +2 -2
  89. package/types/helpers/visitorId.d.ts +1 -1
  90. package/types/index-helpers/blocks-exports.d.ts +2 -2
  91. package/types/index.d.ts +2 -2
  92. package/types/types/builder-props.d.ts +3 -4
  93. package/types/types/components.d.ts +8 -2
  94. package/types/types/enforced-partials.d.ts +1 -1
  95. package/types/types/targets.d.ts +1 -3
  96. package/types/types/typescript.d.ts +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.4.5",
3
+ "version": "0.5.0",
4
4
  "description": "Builder.io Qwik SDK",
5
5
  "type": "module",
6
6
  "main": "./lib/index.qwik.cjs",
@@ -27,7 +27,7 @@
27
27
  "devDependencies": {
28
28
  "@builder.io/qwik": "^1.0.0",
29
29
  "@types/node": "latest",
30
- "typescript": "^4",
30
+ "typescript": "^5.1.6",
31
31
  "vite": "^3.0.4"
32
32
  },
33
33
  "peerDependencies": {
@@ -1,4 +1,6 @@
1
- export interface ButtonProps {
1
+ /**
2
+ * This import is used by the Svelte SDK. Do not remove.
3
+ */ export interface ButtonProps {
2
4
  attributes?: any;
3
5
  text?: string;
4
6
  link?: string;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,31 +1,32 @@
1
- import { SizeName } from "../../constants/device-sizes";
2
- import { BuilderBlock } from "../../types/builder-block";
3
- import { Dictionary } from "../../types/typescript";
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";
4
5
  type Column = {
5
6
  blocks: BuilderBlock[];
6
7
  width?: number;
7
8
  };
8
9
  type CSSVal = string | number;
9
10
  type StackColumnsAt = "tablet" | "mobile" | "never";
10
- export interface ColumnProps {
11
+ export interface ColumnProps extends BuilderComponentsProp {
11
12
  columns?: Column[];
12
13
  builderBlock: BuilderBlock;
13
14
  space?: number;
14
15
  stackColumnsAt?: StackColumnsAt;
15
16
  reverseColumnsWhenStacked?: boolean;
16
17
  }
17
- export declare const getWidth: (props: any, state: any, builderContext: any, index: number) => any;
18
- export declare const getColumnCssWidth: (props: any, state: any, builderContext: any, index: number) => string;
19
- export declare const getTabletStyle: (props: any, state: any, builderContext: any, { stackedStyle, desktopStyle, }: {
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, }: {
20
21
  stackedStyle: CSSVal;
21
22
  desktopStyle: CSSVal;
22
23
  }) => CSSVal;
23
- export declare const getMobileStyle: (props: any, state: any, builderContext: any, { stackedStyle, desktopStyle, }: {
24
+ export declare const getMobileStyle: (props: any, state: any, { stackedStyle, desktopStyle, }: {
24
25
  stackedStyle: CSSVal;
25
26
  desktopStyle: CSSVal;
26
27
  }) => CSSVal;
27
- export declare const columnCssVars: (props: any, state: any, builderContext: any, index: number) => Dictionary<string>;
28
- export declare const getWidthForBreakpointSize: (props: any, state: any, builderContext: any, size: SizeName) => number;
29
- export declare const Columns: import("@builder.io/qwik").Component<ColumnProps>;
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>>;
30
31
  export default Columns;
31
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 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -0,0 +1,13 @@
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 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,4 +1,6 @@
1
- export interface ImgProps {
1
+ /**
2
+ * This import is used by the Svelte SDK. Do not remove.
3
+ */ export interface ImgProps {
2
4
  attributes?: any;
3
5
  imgSrc?: string;
4
6
  image?: string;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,4 +1,6 @@
1
- export interface FormInputProps {
1
+ /**
2
+ * This import is used by the Svelte SDK. Do not remove.
3
+ */ export interface FormInputProps {
2
4
  type?: string;
3
5
  attributes?: any;
4
6
  name?: string;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,4 +1,6 @@
1
- export interface SectionProps {
1
+ /**
2
+ * This import is used by the Svelte SDK. Do not remove.
3
+ */ export interface SectionProps {
2
4
  maxWidth?: number;
3
5
  attributes?: any;
4
6
  children?: any;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,4 +1,6 @@
1
- export interface FormSelectProps {
1
+ /**
2
+ * This import is used by the Svelte SDK. Do not remove.
3
+ */ export interface FormSelectProps {
2
4
  options?: {
3
5
  name?: string;
4
6
  value: string;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,4 +1,6 @@
1
- export interface ButtonProps {
1
+ /**
2
+ * This import is used by the Svelte SDK. Do not remove.
3
+ */ export interface ButtonProps {
2
4
  attributes?: any;
3
5
  text?: string;
4
6
  }
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,6 +1,8 @@
1
- import { BuilderBlock } from "../../types/builder-block.js";
2
1
  import { BuilderContent } from "../../types/builder-content.js";
3
- export interface SymbolInfo {
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 {
4
6
  model?: string;
5
7
  entry?: string;
6
8
  data?: any;
@@ -8,14 +10,15 @@ export interface SymbolInfo {
8
10
  inline?: boolean;
9
11
  dynamic?: boolean;
10
12
  }
11
- export interface SymbolProps {
13
+ /**
14
+ * This import is used by the Svelte SDK. Do not remove.
15
+ */ export interface SymbolProps extends BuilderComponentsProp {
12
16
  symbol?: SymbolInfo;
13
17
  dataOnly?: boolean;
14
18
  dynamic?: boolean;
15
- builderBlock?: BuilderBlock;
16
19
  attributes?: any;
17
20
  inheritState?: boolean;
18
21
  }
19
- export declare const fetchContent: (props: any, state: any, builderContext: any) => void;
20
- export declare const Symbol: import("@builder.io/qwik").Component<SymbolProps>;
22
+ export declare const setContent: (props: any, state: any) => void;
23
+ export declare const Symbol: import("@builder.io/qwik").Component<PropsWithBuilderData<SymbolProps>>;
21
24
  export default Symbol;
@@ -0,0 +1,14 @@
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 fetchContent: ({ builderContextValue, symbol }: {
12
+ symbol: SymbolInfo | undefined;
13
+ builderContextValue: BuilderContextInterface;
14
+ }) => Promise<BuilderContent | null | undefined>;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -1,4 +1,6 @@
1
- export interface TextareaProps {
1
+ /**
2
+ * This import is used by the Svelte SDK. Do not remove.
3
+ */ export interface TextareaProps {
2
4
  attributes?: any;
3
5
  name?: string;
4
6
  value?: string;
@@ -1,2 +1,2 @@
1
- import type { ComponentInfo } from '../../types/components';
1
+ import type { ComponentInfo } from '../../types/components.js';
2
2
  export declare const componentInfo: ComponentInfo;
@@ -10,6 +10,7 @@ export interface VideoProps {
10
10
  width?: number;
11
11
  height?: number;
12
12
  fit?: "contain" | "cover" | "fill";
13
+ preload?: "auto" | "metadata" | "none";
13
14
  position?: "center" | "top" | "left" | "right" | "bottom" | "top left" | "top right" | "bottom left" | "bottom right";
14
15
  posterImage?: string;
15
16
  lazyLoad?: boolean;
@@ -1,10 +1,9 @@
1
- import { BuilderContextInterface, RegisteredComponent } from "../../context/types.js";
1
+ import { BuilderContextInterface, RegisteredComponents } from "../../context/types.js";
2
2
  import { BuilderBlock } from "../../types/builder-block.js";
3
- import { Dictionary } from "../../types/typescript.js";
4
3
  export type BlockProps = {
5
4
  block: BuilderBlock;
6
5
  context: BuilderContextInterface;
7
- components: Dictionary<RegisteredComponent>;
6
+ registeredComponents: RegisteredComponents;
8
7
  };
9
8
  export declare const Block: import("@builder.io/qwik").Component<BlockProps>;
10
9
  export default Block;
@@ -1,12 +1,13 @@
1
- import type { BuilderContextInterface } from '../../context/types';
2
- import type { BuilderBlock } from '../../types/builder-block';
3
- import type { RepeatData } from './types';
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
4
  export declare const isEmptyHtmlElement: (tagName: unknown) => boolean;
5
- export declare const getComponent: ({ block, context, }: {
5
+ export declare const getComponent: ({ block, context, registeredComponents }: {
6
6
  block: BuilderBlock;
7
7
  context: BuilderContextInterface;
8
- }) => import("../../context/types").RegisteredComponent | null | undefined;
9
- export declare const getRepeatItemData: ({ block, context, }: {
8
+ registeredComponents: RegisteredComponents;
9
+ }) => import("../../context/types.js").RegisteredComponent | null | undefined;
10
+ export declare const getRepeatItemData: ({ block, context }: {
10
11
  block: BuilderBlock;
11
12
  context: BuilderContextInterface;
12
13
  }) => RepeatData[] | undefined;
@@ -0,0 +1,17 @@
1
+ import { BuilderContextInterface } from "../../../../context/types.js";
2
+ import { BuilderBlock } from "../../../../types/builder-block.js";
3
+ import { PropsWithChildren } from "../../../../types/typescript.js";
4
+ type BlockWrapperProps = {
5
+ Wrapper: string;
6
+ block: BuilderBlock;
7
+ context: BuilderContextInterface;
8
+ };
9
+ /**
10
+ * This component renders a block's wrapper HTML element (from the block's `tagName` property).
11
+ * It reuses the exact same logic as the `InteractiveElement` component, but we need to have 2 separate components for
12
+ * Svelte's sake, as it needs to know at compile-time whether to use:
13
+ * - `<svelte:element>` (for HTML element) or
14
+ * - `<svelte:component>` (for custom components)
15
+ */
16
+ export declare const BlockWrapper: import("@builder.io/qwik").Component<PropsWithChildren<BlockWrapperProps>>;
17
+ export default BlockWrapper;
@@ -0,0 +1,20 @@
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;
@@ -0,0 +1,3 @@
1
+ import { ComponentProps } from "./component-ref.helpers.js";
2
+ export declare const ComponentRef: import("@builder.io/qwik").Component<ComponentProps>;
3
+ export default ComponentRef;
@@ -0,0 +1,35 @@
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';
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,7 +1,6 @@
1
- import { BuilderContextInterface, RegisteredComponent } from "../../../context/types.js";
1
+ import { BuilderContextInterface, RegisteredComponents } from "../../../context/types.js";
2
2
  import { BuilderBlock } from "../../../types/builder-block.js";
3
3
  import { PropsWithBuilderData } from "../../../types/builder-props.js";
4
- import { Dictionary } from "../../../types/typescript.js";
5
4
  type ComponentOptions = PropsWithBuilderData<{
6
5
  [index: string]: any;
7
6
  attributes?: {
@@ -13,7 +12,10 @@ export interface ComponentProps {
13
12
  componentOptions: ComponentOptions;
14
13
  blockChildren: BuilderBlock[];
15
14
  context: BuilderContextInterface;
16
- components: Dictionary<RegisteredComponent>;
15
+ registeredComponents: RegisteredComponents;
16
+ builderBlock: BuilderBlock;
17
+ includeBlockProps: boolean;
18
+ isRSC: boolean | undefined;
17
19
  }
18
20
  export declare const ComponentRef: (props: ComponentProps & {
19
21
  key?: any;
@@ -0,0 +1,4 @@
1
+ import { PropsWithChildren } from "../../../../types/typescript.js";
2
+ import { InteractiveElementProps } from "./interactive-element.helpers.js";
3
+ export declare const InteractiveElement: import("@builder.io/qwik").Component<PropsWithChildren<InteractiveElementProps>>;
4
+ export default InteractiveElement;
@@ -0,0 +1,16 @@
1
+ import type { BuilderContextInterface } from '../../../../context/types';
2
+ import type { BuilderBlock } from '../../../../types/builder-block';
3
+ export type InteractiveElementProps = {
4
+ Wrapper: any;
5
+ block: BuilderBlock;
6
+ context: BuilderContextInterface;
7
+ wrapperProps: object;
8
+ };
9
+ export declare const getBlockProps: ({ block, contextValue }: Pick<InteractiveElementProps, "block"> & {
10
+ contextValue: BuilderContextInterface;
11
+ }) => {
12
+ 'builder-id': string | undefined;
13
+ style: string | Partial<CSSStyleDeclaration> | undefined;
14
+ class: string;
15
+ href: any;
16
+ };
@@ -0,0 +1,11 @@
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,10 +1,9 @@
1
- import { BuilderContextInterface, RegisteredComponent } from "../../../context/types.js";
2
- import { BuilderBlock } from "../../../types/builder-block";
3
- import { Dictionary } from "../../../types/typescript";
1
+ import { BuilderContextInterface, RegisteredComponents } from "../../../context/types.js";
2
+ import { BuilderBlock } from "../../../types/builder-block.js";
4
3
  type Props = {
5
4
  block: BuilderBlock;
6
5
  repeatContext: BuilderContextInterface;
7
- components: Dictionary<RegisteredComponent>;
6
+ registeredComponents: RegisteredComponents;
8
7
  };
9
8
  export declare const RepeatedBlock: import("@builder.io/qwik").Component<Props>;
10
9
  export default RepeatedBlock;
@@ -1,15 +1,13 @@
1
1
  import { BuilderBlock } from "../../types/builder-block.js";
2
+ import { PropsWithChildren } from "../../types/typescript.js";
2
3
  export type BlocksWrapperProps = {
3
4
  blocks: BuilderBlock[] | undefined;
4
5
  parent: string | undefined;
5
6
  path: string | undefined;
6
7
  styleProp: Record<string, any> | undefined;
7
8
  };
8
- type PropsWithChildren = BlocksWrapperProps & {
9
- children?: any;
10
- };
11
9
  export declare const onClick: (props: any, state: any) => void;
12
10
  export declare const onMouseEnter: (props: any, state: any) => void;
13
- export declare const BlocksWrapper: import("@builder.io/qwik").Component<PropsWithChildren>;
11
+ export declare const BlocksWrapper: import("@builder.io/qwik").Component<PropsWithChildren<BlocksWrapperProps>>;
14
12
  export default BlocksWrapper;
15
13
  export declare const STYLES = "\n.div-BlocksWrapper {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n";
@@ -1,9 +1,8 @@
1
- import { BuilderContextInterface, RegisteredComponent } from "../../context/types.js";
2
- import { Dictionary } from "../../types/typescript";
1
+ import { BuilderContextInterface, RegisteredComponents } from "../../context/types.js";
3
2
  import { BlocksWrapperProps } from "./blocks-wrapper";
4
3
  export type BlocksProps = Partial<BlocksWrapperProps> & {
5
4
  context: BuilderContextInterface;
6
- components: Dictionary<RegisteredComponent>;
5
+ registeredComponents: RegisteredComponents;
7
6
  };
8
7
  export declare const Blocks: import("@builder.io/qwik").Component<BlocksProps>;
9
8
  export default Blocks;
@@ -1,23 +1,2 @@
1
- import { BuilderContextInterface } from "../../context/types.js";
2
- import { BuilderContent } from "../../types/builder-content.js";
3
- import { ComponentInfo } from "../../types/components.js";
4
- import { Dictionary } from "../../types/typescript.js";
5
- import { RenderContentProps } from "./content.types.js";
6
- type BuilderEditorProps = Omit<RenderContentProps, "customComponents"> & {
7
- customComponents: Dictionary<ComponentInfo>;
8
- builderContextSignal: BuilderContextInterface;
9
- children?: any;
10
- };
11
- export declare const mergeNewContent: (props: any, state: any, elementRef: any, newContent: BuilderContent) => void;
12
- export declare const processMessage: (props: any, state: any, elementRef: any, event: MessageEvent) => void;
13
- export declare const evaluateJsCode: (props: any, state: any, elementRef: any) => void;
14
- export declare const onClick: (props: any, state: any, elementRef: any, event: any) => void;
15
- export declare const evalExpression: (props: any, state: any, elementRef: any, expression: string) => string;
16
- export declare const handleRequest: (props: any, state: any, elementRef: any, { url, key, }: {
17
- key: string;
18
- url: string;
19
- }) => void;
20
- export declare const runHttpRequests: (props: any, state: any, elementRef: any) => void;
21
- export declare const emitStateUpdate: (props: any, state: any, elementRef: any) => void;
22
- export declare const BuilderEditing: import("@builder.io/qwik").Component<BuilderEditorProps>;
1
+ export declare const BuilderEditing: import("@builder.io/qwik").Component<any>;
23
2
  export default BuilderEditing;
@@ -1,14 +1,12 @@
1
1
  import { BuilderContextInterface } from "../../../context/types.js";
2
2
  import { BuilderContent } from "../../../types/builder-content.js";
3
- import { ComponentInfo } from "../../../types/components.js";
4
- import { Dictionary } from "../../../types/typescript.js";
5
3
  import { ContentProps } from "../content.types.js";
6
- type BuilderEditorProps = Omit<ContentProps, "customComponents"> & {
7
- customComponents: Dictionary<ComponentInfo>;
4
+ type BuilderEditorProps = Omit<ContentProps, "customComponents" | "data" | "apiVersion" | "isSsrAbTest"> & {
8
5
  builderContextSignal: BuilderContextInterface;
9
- mergeNewContent: (newContent: BuilderContent) => void;
6
+ setBuilderContextSignal?: (signal: any) => any;
10
7
  children?: any;
11
8
  };
9
+ export declare const mergeNewContent: (props: any, state: any, elementRef: any, newContent: BuilderContent) => void;
12
10
  export declare const processMessage: (props: any, state: any, elementRef: any, event: MessageEvent) => void;
13
11
  export declare const evaluateJsCode: (props: any, state: any, elementRef: any) => void;
14
12
  export declare const onClick: (props: any, state: any, elementRef: any, event: any) => void;
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,15 @@
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,7 +1,5 @@
1
1
  import { BuilderRenderState } from "../../context/types.js";
2
- import { BuilderContent } from "../../types/builder-content.js";
3
2
  import { ContentProps } from "./content.types.js";
4
- export declare const mergeNewContent: (props: any, state: any, newContent: BuilderContent) => void;
5
3
  export declare const contentSetState: (props: any, state: any, newRootState: BuilderRenderState) => void;
6
- export declare const Content: import("@builder.io/qwik").Component<ContentProps>;
7
- export default Content;
4
+ export declare const ContentComponent: import("@builder.io/qwik").Component<ContentProps>;
5
+ export default ContentComponent;
@@ -1,7 +1,7 @@
1
- import type { BuilderContent } from '../../types/builder-content';
2
- import type { Nullable } from '../../types/typescript';
3
- import type { ContentProps } from './content.types';
4
- export declare const getContextStateInitialValue: ({ content, data, locale, }: Pick<ContentProps, 'content' | 'data' | 'locale'>) => {
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
5
  [x: string]: unknown;
6
6
  };
7
- export declare const getContentInitialValue: ({ content, data, }: Pick<ContentProps, 'content' | 'data'>) => Nullable<BuilderContent>;
7
+ export declare const getContentInitialValue: ({ content, data }: Pick<ContentProps, 'content' | 'data'>) => Nullable<BuilderContent>;