@builder.io/sdk-qwik 0.13.2 → 0.13.3

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.
@@ -4347,7 +4347,7 @@ function isFromTrustedHost(trustedHosts, e) {
4347
4347
  const url = new URL(e.origin), hostname = url.hostname;
4348
4348
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4349
4349
  }
4350
- const SDK_VERSION = "0.13.2";
4350
+ const SDK_VERSION = "0.13.3";
4351
4351
  const registry = {};
4352
4352
  function register(type, info) {
4353
4353
  let typeList = registry[type];
@@ -4345,7 +4345,7 @@ function isFromTrustedHost(trustedHosts, e) {
4345
4345
  const url = new URL(e.origin), hostname = url.hostname;
4346
4346
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4347
4347
  }
4348
- const SDK_VERSION = "0.13.2";
4348
+ const SDK_VERSION = "0.13.3";
4349
4349
  const registry = {};
4350
4350
  function register(type, info) {
4351
4351
  let typeList = registry[type];
@@ -7578,7 +7578,7 @@ function isFromTrustedHost(trustedHosts, e) {
7578
7578
  const url = new URL(e.origin), hostname = url.hostname;
7579
7579
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
7580
7580
  }
7581
- const SDK_VERSION = "0.13.2";
7581
+ const SDK_VERSION = "0.13.3";
7582
7582
  const registry = {};
7583
7583
  function register(type, info) {
7584
7584
  let typeList = registry[type];
@@ -7576,7 +7576,7 @@ function isFromTrustedHost(trustedHosts, e) {
7576
7576
  const url = new URL(e.origin), hostname = url.hostname;
7577
7577
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
7578
7578
  }
7579
- const SDK_VERSION = "0.13.2";
7579
+ const SDK_VERSION = "0.13.3";
7580
7580
  const registry = {};
7581
7581
  function register(type, info) {
7582
7582
  let typeList = registry[type];
@@ -4448,7 +4448,7 @@ function isFromTrustedHost(trustedHosts, e) {
4448
4448
  const url = new URL(e.origin), hostname = url.hostname;
4449
4449
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4450
4450
  }
4451
- const SDK_VERSION = "0.13.2";
4451
+ const SDK_VERSION = "0.13.3";
4452
4452
  const registry = {};
4453
4453
  function register(type, info) {
4454
4454
  let typeList = registry[type];
@@ -4446,7 +4446,7 @@ function isFromTrustedHost(trustedHosts, e) {
4446
4446
  const url = new URL(e.origin), hostname = url.hostname;
4447
4447
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
4448
4448
  }
4449
- const SDK_VERSION = "0.13.2";
4449
+ const SDK_VERSION = "0.13.3";
4450
4450
  const registry = {};
4451
4451
  function register(type, info) {
4452
4452
  let typeList = registry[type];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/qwik",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,4 @@
1
1
  import { SizeName } from "../../constants/device-sizes.js";
2
- import { PropsWithBuilderData } from "../../types/builder-props.js";
3
2
  import { Dictionary } from "../../types/typescript.js";
4
3
  import { ColumnProps } from "./columns.types.js";
5
4
  type CSSVal = string | number;
@@ -15,6 +14,6 @@ export declare const getMobileStyle: (props: any, state: any, { stackedStyle, de
15
14
  }) => CSSVal;
16
15
  export declare const columnCssVars: (props: any, state: any, index: number) => Dictionary<string>;
17
16
  export declare const getWidthForBreakpointSize: (props: any, state: any, size: SizeName) => number;
18
- export declare const Columns: import("@builder.io/qwik").Component<PropsWithBuilderData<ColumnProps>>;
17
+ export declare const Columns: import("@builder.io/qwik").Component<ColumnProps>;
19
18
  export default Columns;
20
19
  export declare const STYLES = "\n.div-Columns {\n display: flex;\n line-height: normal;\n}\n";
@@ -1,12 +1,12 @@
1
1
  import type { BuilderBlock } from '../../types/builder-block.js';
2
- import type { BuilderComponentsProp, BuilderLinkComponentProp } from '../../types/builder-props.js';
2
+ import type { BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp } from '../../types/builder-props.js';
3
3
  type Column = {
4
4
  blocks: BuilderBlock[];
5
5
  width?: number;
6
6
  link?: string;
7
7
  };
8
8
  type StackColumnsAt = 'tablet' | 'mobile' | 'never';
9
- export interface ColumnProps extends BuilderComponentsProp, BuilderLinkComponentProp {
9
+ export interface ColumnProps extends BuilderComponentsProp, BuilderLinkComponentProp, BuilderDataProps {
10
10
  columns?: Column[];
11
11
  space?: number;
12
12
  stackColumnsAt?: StackColumnsAt;
@@ -1,10 +1,10 @@
1
1
  import { BuilderBlock } from "../../../types/builder-block.js";
2
- import { BuilderComponentsProp, BuilderLinkComponentProp, PropsWithBuilderData } from "../../../types/builder-props.js";
2
+ import { BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp } from "../../../types/builder-props.js";
3
3
  import { Dictionary } from "../../../types/typescript.js";
4
4
  /**
5
5
  * This import is used by the Svelte SDK. Do not remove.
6
6
  */
7
- export type FormProps = PropsWithBuilderData<BuilderComponentsProp & BuilderLinkComponentProp & {
7
+ export type FormProps = BuilderDataProps & BuilderComponentsProp & BuilderLinkComponentProp & {
8
8
  attributes?: any;
9
9
  name?: string;
10
10
  action?: string;
@@ -24,7 +24,7 @@ export type FormProps = PropsWithBuilderData<BuilderComponentsProp & BuilderLink
24
24
  sendingMessage?: BuilderBlock[];
25
25
  resetFormOnSubmit?: boolean;
26
26
  errorMessagePath?: string;
27
- }>;
27
+ };
28
28
  /**
29
29
  * This import is used by the Svelte SDK. Do not remove.
30
30
  */
@@ -1,7 +1,7 @@
1
- import { PropsWithBuilderData } from "../../types/builder-props.js";
2
- export type DropzoneProps = PropsWithBuilderData<{
1
+ import { BuilderDataProps } from "../../types/builder-props.js";
2
+ export type DropzoneProps = BuilderDataProps & {
3
3
  name: string;
4
4
  attributes: any;
5
- }>;
5
+ };
6
6
  export declare const Slot: import("@builder.io/qwik").Component<DropzoneProps>;
7
7
  export default Slot;
@@ -1,5 +1,4 @@
1
- import { PropsWithBuilderData } from "../../types/builder-props.js";
2
1
  import { SymbolProps } from "./symbol.types.js";
3
2
  export declare const setContent: (props: any, state: any) => void;
4
- export declare const Symbol: import("@builder.io/qwik").Component<PropsWithBuilderData<SymbolProps>>;
3
+ export declare const Symbol: import("@builder.io/qwik").Component<SymbolProps>;
5
4
  export default Symbol;
@@ -1,5 +1,5 @@
1
1
  import type { BuilderContent } from '../../types/builder-content.js';
2
- import type { BuilderComponentsProp, BuilderLinkComponentProp } from '../../types/builder-props.js';
2
+ import type { BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp } from '../../types/builder-props.js';
3
3
  interface SymbolInfo {
4
4
  model?: string;
5
5
  entry?: string;
@@ -8,7 +8,7 @@ interface SymbolInfo {
8
8
  inline?: boolean;
9
9
  dynamic?: boolean;
10
10
  }
11
- export interface SymbolProps extends BuilderComponentsProp, BuilderLinkComponentProp {
11
+ export interface SymbolProps extends BuilderComponentsProp, BuilderDataProps, BuilderLinkComponentProp {
12
12
  symbol?: SymbolInfo;
13
13
  dataOnly?: boolean;
14
14
  dynamic?: boolean;
@@ -1,14 +1,14 @@
1
1
  import { BuilderContextInterface } from "../../../context/types.js";
2
2
  import { BuilderBlock } from "../../../types/builder-block.js";
3
- import { PropsWithChildren } from "../../../types/typescript.js";
4
3
  type BlockWrapperProps = {
5
4
  Wrapper: string;
6
5
  block: BuilderBlock;
7
6
  context: BuilderContextInterface;
8
7
  linkComponent: any;
8
+ children?: any;
9
9
  };
10
10
  /**
11
11
  * This component renders a block's wrapper HTML element (from the block's `tagName` property).
12
12
  */
13
- export declare const BlockWrapper: import("@builder.io/qwik").Component<PropsWithChildren<BlockWrapperProps>>;
13
+ export declare const BlockWrapper: import("@builder.io/qwik").Component<BlockWrapperProps>;
14
14
  export default BlockWrapper;
@@ -1,13 +1,13 @@
1
1
  import type { BuilderContextInterface, RegisteredComponents } from '../../../../context/types.js';
2
2
  import type { BuilderBlock } from '../../../../types/builder-block.js';
3
- import type { PropsWithBuilderData } from '../../../../types/builder-props.js';
3
+ import type { BuilderDataProps } from '../../../../types/builder-props.js';
4
4
  import type { InteractiveElementProps } from '../interactive-element.jsx';
5
- type ComponentOptions = PropsWithBuilderData<{
5
+ type ComponentOptions = BuilderDataProps & {
6
6
  [index: string]: any;
7
7
  attributes?: {
8
8
  [index: string]: any;
9
9
  };
10
- }>;
10
+ };
11
11
  export interface ComponentProps {
12
12
  componentRef: any;
13
13
  componentOptions: ComponentOptions;
@@ -1,12 +1,13 @@
1
1
  import { BuilderContextInterface } from "../../../context/types.js";
2
2
  import { BuilderBlock } from "../../../types/builder-block.js";
3
- import { Dictionary, PropsWithChildren } from "../../../types/typescript.js";
3
+ import { Dictionary } from "../../../types/typescript.js";
4
4
  export type InteractiveElementProps = {
5
5
  Wrapper: any;
6
6
  block: BuilderBlock;
7
7
  context: BuilderContextInterface;
8
8
  wrapperProps: Dictionary<any>;
9
9
  includeBlockProps: boolean;
10
+ children?: any;
10
11
  };
11
- export declare const InteractiveElement: import("@builder.io/qwik").Component<PropsWithChildren<InteractiveElementProps>>;
12
+ export declare const InteractiveElement: import("@builder.io/qwik").Component<InteractiveElementProps>;
12
13
  export default InteractiveElement;
@@ -1,5 +1,4 @@
1
1
  import { BuilderBlock } from "../../types/builder-block.js";
2
- import { PropsWithChildren } from "../../types/typescript.js";
3
2
  export type BlocksWrapperProps = {
4
3
  blocks: BuilderBlock[] | undefined;
5
4
  parent: string | undefined;
@@ -13,9 +12,10 @@ export type BlocksWrapperProps = {
13
12
  * Additonal props to pass to `blocksWrapper`. Defaults to `{}`.
14
13
  */
15
14
  BlocksWrapperProps: any;
15
+ children?: any;
16
16
  };
17
17
  export declare const onClick: (props: any, state: any) => void;
18
18
  export declare const onMouseEnter: (props: any, state: any) => void;
19
- export declare const BlocksWrapper: import("@builder.io/qwik").Component<PropsWithChildren<BlocksWrapperProps>>;
19
+ export declare const BlocksWrapper: import("@builder.io/qwik").Component<BlocksWrapperProps>;
20
20
  export default BlocksWrapper;
21
21
  export declare const STYLES = "\n.props-blocks-wrapper-BlocksWrapper {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n";
@@ -1,11 +1,5 @@
1
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
- showContent: boolean;
6
- isSsrAbTest: boolean;
7
- }
8
- export type ContentProps = InternalRenderProps & EnforcePartials<ContentVariantsPrps>;
2
+ export type { ContentProps } from './contentProps.types.js';
9
3
  export interface BuilderComponentStateChange {
10
4
  state: BuilderRenderState;
11
5
  ref: {
@@ -17,4 +11,3 @@ export interface BuilderComponentStateChange {
17
11
  };
18
12
  };
19
13
  }
20
- export {};
@@ -0,0 +1,12 @@
1
+ import type { EnforcePartials } from '../../types/enforced-partials.js';
2
+ import type { ContentVariantsPrps } from '../content-variants/content-variants.types.js';
3
+ interface InternalRenderProps {
4
+ showContent: boolean;
5
+ isSsrAbTest: boolean;
6
+ }
7
+ /**
8
+ * This is in a separate file so that we can override it (most notably in Vue,
9
+ * where prop types cannot be wrapped by generics like `EnforcePartials`).
10
+ */
11
+ export type ContentProps = InternalRenderProps & EnforcePartials<ContentVariantsPrps>;
12
+ export {};
@@ -1,7 +1,8 @@
1
- import { PropsWithChildren } from "../../types/typescript.js";
2
- export declare const DynamicRenderer: import("@builder.io/qwik").Component<PropsWithChildren<{
1
+ export interface DynamicRendererProps {
2
+ children?: any;
3
3
  TagName: any;
4
4
  attributes: any;
5
5
  actionAttributes: any;
6
- }>>;
6
+ }
7
+ export declare const DynamicRenderer: import("@builder.io/qwik").Component<DynamicRendererProps>;
7
8
  export default DynamicRenderer;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.13.2";
1
+ export declare const SDK_VERSION = "0.13.3";
@@ -1,6 +1,6 @@
1
1
  import type { BuilderContextInterface, RegisteredComponents } from '../context/types.js';
2
2
  import type { BuilderBlock } from './builder-block.js';
3
- export type PropsWithBuilderData<T> = T & {
3
+ export type BuilderDataProps = {
4
4
  builderBlock: BuilderBlock;
5
5
  builderContext: BuilderContextInterface;
6
6
  };
@@ -118,4 +118,5 @@ export interface Input {
118
118
  type?: string;
119
119
  };
120
120
  onChange?: ((options: Map<string, any>) => void | Promise<void>) | string;
121
+ meta?: Record<string, any>;
121
122
  }
@@ -6,6 +6,3 @@ export type Overwrite<T, U> = keyof U extends keyof T ? Pick<T, Exclude<keyof T,
6
6
  export type Prettify<T> = {
7
7
  [K in keyof T]: T[K];
8
8
  } & {};
9
- export type PropsWithChildren<P> = P & {
10
- children?: any;
11
- };