@plasmicapp/host 1.0.151 → 1.0.154

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 (53) hide show
  1. package/dist/data.d.ts +2 -2
  2. package/dist/global-actions.d.ts +1 -1
  3. package/dist/host.esm.js +20 -18
  4. package/dist/host.esm.js.map +1 -1
  5. package/dist/index.cjs.js +40 -46
  6. package/dist/index.cjs.js.map +1 -1
  7. package/dist/link.d.ts +1 -1
  8. package/dist/prop-types.d.ts +1 -0
  9. package/dist/registerComponent.d.ts +9 -4
  10. package/dist/type-utils.d.ts +6 -0
  11. package/dist/version.d.ts +1 -1
  12. package/package.json +16 -16
  13. package/registerComponent/dist/data.d.ts +2 -2
  14. package/registerComponent/dist/global-actions.d.ts +1 -1
  15. package/registerComponent/dist/index.cjs.js +3 -1
  16. package/registerComponent/dist/index.cjs.js.map +1 -1
  17. package/registerComponent/dist/index.esm.js +2 -0
  18. package/registerComponent/dist/index.esm.js.map +1 -1
  19. package/registerComponent/dist/link.d.ts +1 -1
  20. package/registerComponent/dist/prop-types.d.ts +1 -0
  21. package/registerComponent/dist/registerComponent.d.ts +9 -4
  22. package/registerComponent/dist/type-utils.d.ts +6 -0
  23. package/registerComponent/dist/version.d.ts +1 -1
  24. package/registerGlobalContext/dist/data.d.ts +2 -2
  25. package/registerGlobalContext/dist/global-actions.d.ts +1 -1
  26. package/registerGlobalContext/dist/index.cjs.js +1 -1
  27. package/registerGlobalContext/dist/index.cjs.js.map +1 -1
  28. package/registerGlobalContext/dist/index.esm.js.map +1 -1
  29. package/registerGlobalContext/dist/link.d.ts +1 -1
  30. package/registerGlobalContext/dist/prop-types.d.ts +1 -0
  31. package/registerGlobalContext/dist/registerComponent.d.ts +9 -4
  32. package/registerGlobalContext/dist/type-utils.d.ts +6 -0
  33. package/registerGlobalContext/dist/version.d.ts +1 -1
  34. package/registerToken/dist/data.d.ts +2 -2
  35. package/registerToken/dist/global-actions.d.ts +1 -1
  36. package/registerToken/dist/index.cjs.js +1 -1
  37. package/registerToken/dist/index.cjs.js.map +1 -1
  38. package/registerToken/dist/index.esm.js.map +1 -1
  39. package/registerToken/dist/link.d.ts +1 -1
  40. package/registerToken/dist/prop-types.d.ts +1 -0
  41. package/registerToken/dist/registerComponent.d.ts +9 -4
  42. package/registerToken/dist/type-utils.d.ts +6 -0
  43. package/registerToken/dist/version.d.ts +1 -1
  44. package/registerTrait/dist/data.d.ts +2 -2
  45. package/registerTrait/dist/global-actions.d.ts +1 -1
  46. package/registerTrait/dist/index.cjs.js +1 -1
  47. package/registerTrait/dist/index.cjs.js.map +1 -1
  48. package/registerTrait/dist/index.esm.js.map +1 -1
  49. package/registerTrait/dist/link.d.ts +1 -1
  50. package/registerTrait/dist/prop-types.d.ts +1 -0
  51. package/registerTrait/dist/registerComponent.d.ts +9 -4
  52. package/registerTrait/dist/type-utils.d.ts +6 -0
  53. package/registerTrait/dist/version.d.ts +1 -1
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Converts a union type to a tuple type of the same members
3
+ */
4
+ export type TupleUnion<U extends string, R extends string[] = []> = {
5
+ [S in U]: Exclude<U, S> extends never ? [...R, S] : TupleUnion<Exclude<U, S>, [...R, S]>;
6
+ }[U] & string[];
@@ -1 +1 @@
1
- export declare const hostVersion = "1.0.151";
1
+ export declare const hostVersion = "1.0.154";
@@ -31,13 +31,13 @@ export interface DataProviderProps {
31
31
  label?: string;
32
32
  children?: ReactNode;
33
33
  }
34
- export declare function DataProvider({ name, data, hidden, label, children, }: DataProviderProps): JSX.Element;
34
+ export declare function DataProvider({ name, data, hidden, label, children, }: DataProviderProps): React.JSX.Element;
35
35
  export interface PageParamsProviderProps {
36
36
  params?: Record<string, string | string[] | undefined>;
37
37
  query?: Record<string, string | string[] | undefined>;
38
38
  children?: ReactNode;
39
39
  }
40
- export declare function PageParamsProvider({ children, params, query, }: PageParamsProviderProps): JSX.Element;
40
+ export declare function PageParamsProvider({ children, params, query, }: PageParamsProviderProps): React.JSX.Element;
41
41
  export declare function DataCtxReader({ children, }: {
42
42
  children: ($ctx: DataDict | undefined) => ReactNode;
43
43
  }): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -5,5 +5,5 @@ export declare function GlobalActionsProvider(props: {
5
5
  contextName: string;
6
6
  children?: React.ReactNode;
7
7
  actions: GlobalActionDict;
8
- }): JSX.Element;
8
+ }): React.JSX.Element;
9
9
  export declare function useGlobalActions(): GlobalActionDict;
@@ -17,5 +17,5 @@ function registerGlobalContext(component, meta) {
17
17
  root.__PlasmicContextRegistry.push({ component: component, meta: meta });
18
18
  }
19
19
 
20
- exports['default'] = registerGlobalContext;
20
+ exports.default = registerGlobalContext;
21
21
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../src/registerGlobalContext.ts"],"sourcesContent":["import {\n BooleanType,\n ChoiceType,\n CustomType,\n JSONLikeType,\n NumberType,\n StringType,\n DataSourceType,\n} from \"./prop-types\";\nimport { FunctionParam } from \"./registerComponent\";\n\nconst root = globalThis as any;\n\n// Using just a subset of types from prop-types\nexport type PropType<P> =\n | StringType<P>\n | BooleanType<P>\n | NumberType<P>\n | JSONLikeType<P>\n | ChoiceType<P>\n | CustomType<P>\n | DataSourceType<P>;\n\ntype RestrictPropType<T, P> = T extends string\n ? StringType<P> | ChoiceType<P> | JSONLikeType<P> | CustomType<P>\n : T extends boolean\n ? BooleanType<P> | JSONLikeType<P> | CustomType<P>\n : T extends number\n ? NumberType<P> | JSONLikeType<P> | CustomType<P>\n : PropType<P>;\n\ntype DistributedKeyOf<T> = T extends any ? keyof T : never;\n\nexport interface GlobalContextMeta<P> {\n /**\n * Any unique string name used to identify that context. Each context\n * should be registered with a different `meta.name`, even if they have the\n * same name in the code.\n */\n name: string;\n /**\n * The name to be displayed for the context in Studio. Optional: if not\n * specified, `meta.name` is used.\n */\n displayName?: string;\n /**\n * The description of the context to be shown in Studio.\n */\n description?: string;\n /**\n * The javascript name to be used when generating code. Optional: if not\n * provided, `meta.name` is used.\n */\n importName?: string;\n /**\n * An object describing the context properties to be used in Studio.\n * For each `prop`, there should be an entry `meta.props[prop]` describing\n * its type.\n */\n props: { [prop in DistributedKeyOf<P>]?: RestrictPropType<P[prop], P> } & {\n [prop: string]: PropType<P>;\n };\n /**\n * The path to be used when importing the context in the generated code.\n * It can be the name of the package that contains the context, or the path\n * to the file in the project (relative to the root directory).\n */\n importPath: string;\n /**\n * Whether the context is the default export from that path. Optional: if\n * not specified, it's considered `false`.\n */\n isDefaultExport?: boolean;\n /**\n * The prop that receives and forwards a React `ref`. Plasmic only uses `ref`\n * to interact with components, so it's not used in the generated code.\n * Optional: If not provided, the usual `ref` is used.\n */\n refProp?: string;\n /**\n * Whether the global context provides data to its children using DataProvider.\n */\n providesData?: boolean;\n\n unstable__globalActions?: Record<string, GlobalActionRegistration<P>>;\n}\n\nexport interface GlobalContextRegistration {\n component: React.ComponentType<any>;\n meta: GlobalContextMeta<any>;\n}\n\nexport interface GlobalActionRegistration<P> {\n displayName?: string;\n description?: string;\n parameters: FunctionParam<P>[];\n}\n\ndeclare global {\n interface Window {\n __PlasmicContextRegistry: GlobalContextRegistration[];\n }\n}\n\nif (root.__PlasmicContextRegistry == null) {\n root.__PlasmicContextRegistry = [];\n}\n\nexport default function registerGlobalContext<\n T extends React.ComponentType<any>\n>(component: T, meta: GlobalContextMeta<React.ComponentProps<T>>) {\n // Check for duplicates\n if (\n root.__PlasmicContextRegistry.some(\n (r: GlobalContextRegistration) =>\n r.component === component && r.meta.name === meta.name\n )\n ) {\n return;\n }\n root.__PlasmicContextRegistry.push({ component, meta });\n}\n"],"names":[],"mappings":";;;;;AAWA,IAAM,IAAI,GAAG,UAAiB,CAAC;AA6F/B,IAAI,IAAI,CAAC,wBAAwB,IAAI,IAAI,EAAE;IACzC,IAAI,CAAC,wBAAwB,GAAG,EAAE,CAAC;CACpC;SAEuB,qBAAqB,CAE3C,SAAY,EAAE,IAAgD;;IAE9D,IACE,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAChC,UAAC,CAA4B;QAC3B,OAAA,CAAC,CAAC,SAAS,KAAK,SAAS,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI;KAAA,CACzD,EACD;QACA,OAAO;KACR;IACD,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,SAAS,WAAA,EAAE,IAAI,MAAA,EAAE,CAAC,CAAC;AAC1D;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../src/registerGlobalContext.ts"],"sourcesContent":["import {\n BooleanType,\n ChoiceType,\n CustomType,\n JSONLikeType,\n NumberType,\n StringType,\n DataSourceType,\n} from \"./prop-types\";\nimport { FunctionParam } from \"./registerComponent\";\n\nconst root = globalThis as any;\n\n// Using just a subset of types from prop-types\nexport type PropType<P> =\n | StringType<P>\n | BooleanType<P>\n | NumberType<P>\n | JSONLikeType<P>\n | ChoiceType<P>\n | CustomType<P>\n | DataSourceType<P>;\n\ntype RestrictPropType<T, P> = T extends string\n ? StringType<P> | ChoiceType<P> | JSONLikeType<P> | CustomType<P>\n : T extends boolean\n ? BooleanType<P> | JSONLikeType<P> | CustomType<P>\n : T extends number\n ? NumberType<P> | JSONLikeType<P> | CustomType<P>\n : PropType<P>;\n\ntype DistributedKeyOf<T> = T extends any ? keyof T : never;\n\nexport interface GlobalContextMeta<P> {\n /**\n * Any unique string name used to identify that context. Each context\n * should be registered with a different `meta.name`, even if they have the\n * same name in the code.\n */\n name: string;\n /**\n * The name to be displayed for the context in Studio. Optional: if not\n * specified, `meta.name` is used.\n */\n displayName?: string;\n /**\n * The description of the context to be shown in Studio.\n */\n description?: string;\n /**\n * The javascript name to be used when generating code. Optional: if not\n * provided, `meta.name` is used.\n */\n importName?: string;\n /**\n * An object describing the context properties to be used in Studio.\n * For each `prop`, there should be an entry `meta.props[prop]` describing\n * its type.\n */\n props: { [prop in DistributedKeyOf<P>]?: RestrictPropType<P[prop], P> } & {\n [prop: string]: PropType<P>;\n };\n /**\n * The path to be used when importing the context in the generated code.\n * It can be the name of the package that contains the context, or the path\n * to the file in the project (relative to the root directory).\n */\n importPath: string;\n /**\n * Whether the context is the default export from that path. Optional: if\n * not specified, it's considered `false`.\n */\n isDefaultExport?: boolean;\n /**\n * The prop that receives and forwards a React `ref`. Plasmic only uses `ref`\n * to interact with components, so it's not used in the generated code.\n * Optional: If not provided, the usual `ref` is used.\n */\n refProp?: string;\n /**\n * Whether the global context provides data to its children using DataProvider.\n */\n providesData?: boolean;\n\n unstable__globalActions?: Record<string, GlobalActionRegistration<P>>;\n}\n\nexport interface GlobalContextRegistration {\n component: React.ComponentType<any>;\n meta: GlobalContextMeta<any>;\n}\n\nexport interface GlobalActionRegistration<P> {\n displayName?: string;\n description?: string;\n parameters: FunctionParam<P>[];\n}\n\ndeclare global {\n interface Window {\n __PlasmicContextRegistry: GlobalContextRegistration[];\n }\n}\n\nif (root.__PlasmicContextRegistry == null) {\n root.__PlasmicContextRegistry = [];\n}\n\nexport default function registerGlobalContext<\n T extends React.ComponentType<any>\n>(component: T, meta: GlobalContextMeta<React.ComponentProps<T>>) {\n // Check for duplicates\n if (\n root.__PlasmicContextRegistry.some(\n (r: GlobalContextRegistration) =>\n r.component === component && r.meta.name === meta.name\n )\n ) {\n return;\n }\n root.__PlasmicContextRegistry.push({ component, meta });\n}\n"],"names":[],"mappings":";;;;;AAWA,IAAM,IAAI,GAAG,UAAiB,CAAC;AA6F/B,IAAI,IAAI,CAAC,wBAAwB,IAAI,IAAI,EAAE;AACzC,IAAA,IAAI,CAAC,wBAAwB,GAAG,EAAE,CAAC;AACpC,CAAA;AAEa,SAAU,qBAAqB,CAE3C,SAAY,EAAE,IAAgD,EAAA;;AAE9D,IAAA,IACE,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAChC,UAAC,CAA4B,EAAA;AAC3B,QAAA,OAAA,CAAC,CAAC,SAAS,KAAK,SAAS,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAA;AAAtD,KAAsD,CACzD,EACD;QACA,OAAO;AACR,KAAA;AACD,IAAA,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAA,SAAA,EAAE,IAAI,EAAA,IAAA,EAAE,CAAC,CAAC;AAC1D;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../src/registerGlobalContext.ts"],"sourcesContent":["import {\n BooleanType,\n ChoiceType,\n CustomType,\n JSONLikeType,\n NumberType,\n StringType,\n DataSourceType,\n} from \"./prop-types\";\nimport { FunctionParam } from \"./registerComponent\";\n\nconst root = globalThis as any;\n\n// Using just a subset of types from prop-types\nexport type PropType<P> =\n | StringType<P>\n | BooleanType<P>\n | NumberType<P>\n | JSONLikeType<P>\n | ChoiceType<P>\n | CustomType<P>\n | DataSourceType<P>;\n\ntype RestrictPropType<T, P> = T extends string\n ? StringType<P> | ChoiceType<P> | JSONLikeType<P> | CustomType<P>\n : T extends boolean\n ? BooleanType<P> | JSONLikeType<P> | CustomType<P>\n : T extends number\n ? NumberType<P> | JSONLikeType<P> | CustomType<P>\n : PropType<P>;\n\ntype DistributedKeyOf<T> = T extends any ? keyof T : never;\n\nexport interface GlobalContextMeta<P> {\n /**\n * Any unique string name used to identify that context. Each context\n * should be registered with a different `meta.name`, even if they have the\n * same name in the code.\n */\n name: string;\n /**\n * The name to be displayed for the context in Studio. Optional: if not\n * specified, `meta.name` is used.\n */\n displayName?: string;\n /**\n * The description of the context to be shown in Studio.\n */\n description?: string;\n /**\n * The javascript name to be used when generating code. Optional: if not\n * provided, `meta.name` is used.\n */\n importName?: string;\n /**\n * An object describing the context properties to be used in Studio.\n * For each `prop`, there should be an entry `meta.props[prop]` describing\n * its type.\n */\n props: { [prop in DistributedKeyOf<P>]?: RestrictPropType<P[prop], P> } & {\n [prop: string]: PropType<P>;\n };\n /**\n * The path to be used when importing the context in the generated code.\n * It can be the name of the package that contains the context, or the path\n * to the file in the project (relative to the root directory).\n */\n importPath: string;\n /**\n * Whether the context is the default export from that path. Optional: if\n * not specified, it's considered `false`.\n */\n isDefaultExport?: boolean;\n /**\n * The prop that receives and forwards a React `ref`. Plasmic only uses `ref`\n * to interact with components, so it's not used in the generated code.\n * Optional: If not provided, the usual `ref` is used.\n */\n refProp?: string;\n /**\n * Whether the global context provides data to its children using DataProvider.\n */\n providesData?: boolean;\n\n unstable__globalActions?: Record<string, GlobalActionRegistration<P>>;\n}\n\nexport interface GlobalContextRegistration {\n component: React.ComponentType<any>;\n meta: GlobalContextMeta<any>;\n}\n\nexport interface GlobalActionRegistration<P> {\n displayName?: string;\n description?: string;\n parameters: FunctionParam<P>[];\n}\n\ndeclare global {\n interface Window {\n __PlasmicContextRegistry: GlobalContextRegistration[];\n }\n}\n\nif (root.__PlasmicContextRegistry == null) {\n root.__PlasmicContextRegistry = [];\n}\n\nexport default function registerGlobalContext<\n T extends React.ComponentType<any>\n>(component: T, meta: GlobalContextMeta<React.ComponentProps<T>>) {\n // Check for duplicates\n if (\n root.__PlasmicContextRegistry.some(\n (r: GlobalContextRegistration) =>\n r.component === component && r.meta.name === meta.name\n )\n ) {\n return;\n }\n root.__PlasmicContextRegistry.push({ component, meta });\n}\n"],"names":[],"mappings":";AAWA,IAAM,IAAI,GAAG,UAAiB,CAAC;AA6F/B,IAAI,IAAI,CAAC,wBAAwB,IAAI,IAAI,EAAE;IACzC,IAAI,CAAC,wBAAwB,GAAG,EAAE,CAAC;CACpC;SAEuB,qBAAqB,CAE3C,SAAY,EAAE,IAAgD;;IAE9D,IACE,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAChC,UAAC,CAA4B;QAC3B,OAAA,CAAC,CAAC,SAAS,KAAK,SAAS,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI;KAAA,CACzD,EACD;QACA,OAAO;KACR;IACD,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,SAAS,WAAA,EAAE,IAAI,MAAA,EAAE,CAAC,CAAC;AAC1D;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../src/registerGlobalContext.ts"],"sourcesContent":["import {\n BooleanType,\n ChoiceType,\n CustomType,\n JSONLikeType,\n NumberType,\n StringType,\n DataSourceType,\n} from \"./prop-types\";\nimport { FunctionParam } from \"./registerComponent\";\n\nconst root = globalThis as any;\n\n// Using just a subset of types from prop-types\nexport type PropType<P> =\n | StringType<P>\n | BooleanType<P>\n | NumberType<P>\n | JSONLikeType<P>\n | ChoiceType<P>\n | CustomType<P>\n | DataSourceType<P>;\n\ntype RestrictPropType<T, P> = T extends string\n ? StringType<P> | ChoiceType<P> | JSONLikeType<P> | CustomType<P>\n : T extends boolean\n ? BooleanType<P> | JSONLikeType<P> | CustomType<P>\n : T extends number\n ? NumberType<P> | JSONLikeType<P> | CustomType<P>\n : PropType<P>;\n\ntype DistributedKeyOf<T> = T extends any ? keyof T : never;\n\nexport interface GlobalContextMeta<P> {\n /**\n * Any unique string name used to identify that context. Each context\n * should be registered with a different `meta.name`, even if they have the\n * same name in the code.\n */\n name: string;\n /**\n * The name to be displayed for the context in Studio. Optional: if not\n * specified, `meta.name` is used.\n */\n displayName?: string;\n /**\n * The description of the context to be shown in Studio.\n */\n description?: string;\n /**\n * The javascript name to be used when generating code. Optional: if not\n * provided, `meta.name` is used.\n */\n importName?: string;\n /**\n * An object describing the context properties to be used in Studio.\n * For each `prop`, there should be an entry `meta.props[prop]` describing\n * its type.\n */\n props: { [prop in DistributedKeyOf<P>]?: RestrictPropType<P[prop], P> } & {\n [prop: string]: PropType<P>;\n };\n /**\n * The path to be used when importing the context in the generated code.\n * It can be the name of the package that contains the context, or the path\n * to the file in the project (relative to the root directory).\n */\n importPath: string;\n /**\n * Whether the context is the default export from that path. Optional: if\n * not specified, it's considered `false`.\n */\n isDefaultExport?: boolean;\n /**\n * The prop that receives and forwards a React `ref`. Plasmic only uses `ref`\n * to interact with components, so it's not used in the generated code.\n * Optional: If not provided, the usual `ref` is used.\n */\n refProp?: string;\n /**\n * Whether the global context provides data to its children using DataProvider.\n */\n providesData?: boolean;\n\n unstable__globalActions?: Record<string, GlobalActionRegistration<P>>;\n}\n\nexport interface GlobalContextRegistration {\n component: React.ComponentType<any>;\n meta: GlobalContextMeta<any>;\n}\n\nexport interface GlobalActionRegistration<P> {\n displayName?: string;\n description?: string;\n parameters: FunctionParam<P>[];\n}\n\ndeclare global {\n interface Window {\n __PlasmicContextRegistry: GlobalContextRegistration[];\n }\n}\n\nif (root.__PlasmicContextRegistry == null) {\n root.__PlasmicContextRegistry = [];\n}\n\nexport default function registerGlobalContext<\n T extends React.ComponentType<any>\n>(component: T, meta: GlobalContextMeta<React.ComponentProps<T>>) {\n // Check for duplicates\n if (\n root.__PlasmicContextRegistry.some(\n (r: GlobalContextRegistration) =>\n r.component === component && r.meta.name === meta.name\n )\n ) {\n return;\n }\n root.__PlasmicContextRegistry.push({ component, meta });\n}\n"],"names":[],"mappings":";AAWA,IAAM,IAAI,GAAG,UAAiB,CAAC;AA6F/B,IAAI,IAAI,CAAC,wBAAwB,IAAI,IAAI,EAAE;AACzC,IAAA,IAAI,CAAC,wBAAwB,GAAG,EAAE,CAAC;AACpC,CAAA;AAEa,SAAU,qBAAqB,CAE3C,SAAY,EAAE,IAAgD,EAAA;;AAE9D,IAAA,IACE,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAChC,UAAC,CAA4B,EAAA;AAC3B,QAAA,OAAA,CAAC,CAAC,SAAS,KAAK,SAAS,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAA;AAAtD,KAAsD,CACzD,EACD;QACA,OAAO;AACR,KAAA;AACD,IAAA,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAA,SAAA,EAAE,IAAI,EAAA,IAAA,EAAE,CAAC,CAAC;AAC1D;;;;"}
@@ -4,4 +4,4 @@ export declare function usePlasmicLink(): React.ComponentType<React.ComponentPro
4
4
  export declare function PlasmicLinkProvider(props: {
5
5
  Link: React.ComponentType<any> | undefined;
6
6
  children?: React.ReactNode;
7
- }): JSX.Element;
7
+ }): React.JSX.Element;
@@ -112,6 +112,7 @@ export interface PropTypeBaseDefault<P, T> extends PropTypeBase<P>, Defaultable<
112
112
  interface PlainStringType<P> extends PropTypeBaseDefault<P, string> {
113
113
  type: "string";
114
114
  control?: "default" | "large";
115
+ isLocalizable?: boolean;
115
116
  }
116
117
  interface CodeStringType<P> extends PropTypeBaseDefault<P, string> {
117
118
  type: "code";
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { CodeComponentElement, CSSProperties, PlasmicElement } from "./element-types";
3
3
  import { ContextDependentConfig, InferDataType, ModalProps, PropType, RestrictPropType } from "./prop-types";
4
- export type { CanvasComponentProps, ControlExtras, ControlContext, ContextDependentConfig, PropType, } from "./prop-types";
4
+ import { TupleUnion } from "./type-utils";
5
+ export type * from "./prop-types";
5
6
  export interface ActionProps<P> {
6
7
  componentProps: P;
7
8
  /**
@@ -78,9 +79,6 @@ export interface StateHelpers<P, T> {
78
79
  onChangeArgsToValue?: (...args: any) => T;
79
80
  onMutate?: (stateValue: T, $ref: any) => void;
80
81
  }
81
- type TupleUnion<U extends string, R extends string[] = []> = {
82
- [S in U]: Exclude<U, S> extends never ? [...R, S] : TupleUnion<Exclude<U, S>, [...R, S]>;
83
- }[U] & string[];
84
82
  export declare const stateHelpersKeys: TupleUnion<keyof StateHelpers<any, any>>;
85
83
  export type ComponentHelpers<P> = {
86
84
  states: Record<string, StateHelpers<P, any>>;
@@ -212,6 +210,13 @@ export interface CodeComponentMeta<P> {
212
210
  */
213
211
  hideFromContentCreators?: boolean;
214
212
  refActions?: Record<string, RefActionRegistration<P>>;
213
+ /**
214
+ * Optional function that takes in component props and context, and returns
215
+ * a string that will be used for labeling this element in the Outline panel
216
+ * on the left of the Studio. This makes it easy to identify an element when
217
+ * looking at the tree.
218
+ */
219
+ treeLabel?: ContextDependentConfig<P, string>;
215
220
  }
216
221
  export type CodeComponentMode = "advanced" | "simplified" | "database-schema-driven";
217
222
  /**
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Converts a union type to a tuple type of the same members
3
+ */
4
+ export type TupleUnion<U extends string, R extends string[] = []> = {
5
+ [S in U]: Exclude<U, S> extends never ? [...R, S] : TupleUnion<Exclude<U, S>, [...R, S]>;
6
+ }[U] & string[];
@@ -1 +1 @@
1
- export declare const hostVersion = "1.0.151";
1
+ export declare const hostVersion = "1.0.154";
@@ -31,13 +31,13 @@ export interface DataProviderProps {
31
31
  label?: string;
32
32
  children?: ReactNode;
33
33
  }
34
- export declare function DataProvider({ name, data, hidden, label, children, }: DataProviderProps): JSX.Element;
34
+ export declare function DataProvider({ name, data, hidden, label, children, }: DataProviderProps): React.JSX.Element;
35
35
  export interface PageParamsProviderProps {
36
36
  params?: Record<string, string | string[] | undefined>;
37
37
  query?: Record<string, string | string[] | undefined>;
38
38
  children?: ReactNode;
39
39
  }
40
- export declare function PageParamsProvider({ children, params, query, }: PageParamsProviderProps): JSX.Element;
40
+ export declare function PageParamsProvider({ children, params, query, }: PageParamsProviderProps): React.JSX.Element;
41
41
  export declare function DataCtxReader({ children, }: {
42
42
  children: ($ctx: DataDict | undefined) => ReactNode;
43
43
  }): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -5,5 +5,5 @@ export declare function GlobalActionsProvider(props: {
5
5
  contextName: string;
6
6
  children?: React.ReactNode;
7
7
  actions: GlobalActionDict;
8
- }): JSX.Element;
8
+ }): React.JSX.Element;
9
9
  export declare function useGlobalActions(): GlobalActionDict;
@@ -10,5 +10,5 @@ function registerToken(token) {
10
10
  root.__PlasmicTokenRegistry.push(token);
11
11
  }
12
12
 
13
- exports['default'] = registerToken;
13
+ exports.default = registerToken;
14
14
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../src/registerToken.ts"],"sourcesContent":["export type TokenType =\n | \"color\"\n | \"spacing\"\n | \"font-family\"\n | \"font-size\"\n | \"line-height\"\n | \"opacity\";\n\nexport interface TokenRegistration {\n name: string;\n displayName: string;\n value: string;\n type: TokenType;\n}\n\ndeclare global {\n interface Window {\n __PlasmicTokenRegistry: TokenRegistration[];\n }\n}\n\nconst root = globalThis as any;\n\nif (root.__PlasmicTokenRegistry == null) {\n root.__PlasmicTokenRegistry = [];\n}\n\nexport default function registerToken(token: TokenRegistration) {\n root.__PlasmicTokenRegistry.push(token);\n}\n"],"names":[],"mappings":";;;;AAqBA,IAAM,IAAI,GAAG,UAAiB,CAAC;AAE/B,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;IACvC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;CAClC;SAEuB,aAAa,CAAC,KAAwB;IAC5D,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1C;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../src/registerToken.ts"],"sourcesContent":["export type TokenType =\n | \"color\"\n | \"spacing\"\n | \"font-family\"\n | \"font-size\"\n | \"line-height\"\n | \"opacity\";\n\nexport interface TokenRegistration {\n name: string;\n displayName: string;\n value: string;\n type: TokenType;\n}\n\ndeclare global {\n interface Window {\n __PlasmicTokenRegistry: TokenRegistration[];\n }\n}\n\nconst root = globalThis as any;\n\nif (root.__PlasmicTokenRegistry == null) {\n root.__PlasmicTokenRegistry = [];\n}\n\nexport default function registerToken(token: TokenRegistration) {\n root.__PlasmicTokenRegistry.push(token);\n}\n"],"names":[],"mappings":";;;;AAqBA,IAAM,IAAI,GAAG,UAAiB,CAAC;AAE/B,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;AACvC,IAAA,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;AAClC,CAAA;AAEuB,SAAA,aAAa,CAAC,KAAwB,EAAA;AAC5D,IAAA,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1C;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../src/registerToken.ts"],"sourcesContent":["export type TokenType =\n | \"color\"\n | \"spacing\"\n | \"font-family\"\n | \"font-size\"\n | \"line-height\"\n | \"opacity\";\n\nexport interface TokenRegistration {\n name: string;\n displayName: string;\n value: string;\n type: TokenType;\n}\n\ndeclare global {\n interface Window {\n __PlasmicTokenRegistry: TokenRegistration[];\n }\n}\n\nconst root = globalThis as any;\n\nif (root.__PlasmicTokenRegistry == null) {\n root.__PlasmicTokenRegistry = [];\n}\n\nexport default function registerToken(token: TokenRegistration) {\n root.__PlasmicTokenRegistry.push(token);\n}\n"],"names":[],"mappings":"AAqBA,IAAM,IAAI,GAAG,UAAiB,CAAC;AAE/B,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;IACvC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;CAClC;SAEuB,aAAa,CAAC,KAAwB;IAC5D,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1C;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../src/registerToken.ts"],"sourcesContent":["export type TokenType =\n | \"color\"\n | \"spacing\"\n | \"font-family\"\n | \"font-size\"\n | \"line-height\"\n | \"opacity\";\n\nexport interface TokenRegistration {\n name: string;\n displayName: string;\n value: string;\n type: TokenType;\n}\n\ndeclare global {\n interface Window {\n __PlasmicTokenRegistry: TokenRegistration[];\n }\n}\n\nconst root = globalThis as any;\n\nif (root.__PlasmicTokenRegistry == null) {\n root.__PlasmicTokenRegistry = [];\n}\n\nexport default function registerToken(token: TokenRegistration) {\n root.__PlasmicTokenRegistry.push(token);\n}\n"],"names":[],"mappings":"AAqBA,IAAM,IAAI,GAAG,UAAiB,CAAC;AAE/B,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;AACvC,IAAA,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;AAClC,CAAA;AAEuB,SAAA,aAAa,CAAC,KAAwB,EAAA;AAC5D,IAAA,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC1C;;;;"}
@@ -4,4 +4,4 @@ export declare function usePlasmicLink(): React.ComponentType<React.ComponentPro
4
4
  export declare function PlasmicLinkProvider(props: {
5
5
  Link: React.ComponentType<any> | undefined;
6
6
  children?: React.ReactNode;
7
- }): JSX.Element;
7
+ }): React.JSX.Element;
@@ -112,6 +112,7 @@ export interface PropTypeBaseDefault<P, T> extends PropTypeBase<P>, Defaultable<
112
112
  interface PlainStringType<P> extends PropTypeBaseDefault<P, string> {
113
113
  type: "string";
114
114
  control?: "default" | "large";
115
+ isLocalizable?: boolean;
115
116
  }
116
117
  interface CodeStringType<P> extends PropTypeBaseDefault<P, string> {
117
118
  type: "code";
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { CodeComponentElement, CSSProperties, PlasmicElement } from "./element-types";
3
3
  import { ContextDependentConfig, InferDataType, ModalProps, PropType, RestrictPropType } from "./prop-types";
4
- export type { CanvasComponentProps, ControlExtras, ControlContext, ContextDependentConfig, PropType, } from "./prop-types";
4
+ import { TupleUnion } from "./type-utils";
5
+ export type * from "./prop-types";
5
6
  export interface ActionProps<P> {
6
7
  componentProps: P;
7
8
  /**
@@ -78,9 +79,6 @@ export interface StateHelpers<P, T> {
78
79
  onChangeArgsToValue?: (...args: any) => T;
79
80
  onMutate?: (stateValue: T, $ref: any) => void;
80
81
  }
81
- type TupleUnion<U extends string, R extends string[] = []> = {
82
- [S in U]: Exclude<U, S> extends never ? [...R, S] : TupleUnion<Exclude<U, S>, [...R, S]>;
83
- }[U] & string[];
84
82
  export declare const stateHelpersKeys: TupleUnion<keyof StateHelpers<any, any>>;
85
83
  export type ComponentHelpers<P> = {
86
84
  states: Record<string, StateHelpers<P, any>>;
@@ -212,6 +210,13 @@ export interface CodeComponentMeta<P> {
212
210
  */
213
211
  hideFromContentCreators?: boolean;
214
212
  refActions?: Record<string, RefActionRegistration<P>>;
213
+ /**
214
+ * Optional function that takes in component props and context, and returns
215
+ * a string that will be used for labeling this element in the Outline panel
216
+ * on the left of the Studio. This makes it easy to identify an element when
217
+ * looking at the tree.
218
+ */
219
+ treeLabel?: ContextDependentConfig<P, string>;
215
220
  }
216
221
  export type CodeComponentMode = "advanced" | "simplified" | "database-schema-driven";
217
222
  /**
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Converts a union type to a tuple type of the same members
3
+ */
4
+ export type TupleUnion<U extends string, R extends string[] = []> = {
5
+ [S in U]: Exclude<U, S> extends never ? [...R, S] : TupleUnion<Exclude<U, S>, [...R, S]>;
6
+ }[U] & string[];
@@ -1 +1 @@
1
- export declare const hostVersion = "1.0.151";
1
+ export declare const hostVersion = "1.0.154";
@@ -31,13 +31,13 @@ export interface DataProviderProps {
31
31
  label?: string;
32
32
  children?: ReactNode;
33
33
  }
34
- export declare function DataProvider({ name, data, hidden, label, children, }: DataProviderProps): JSX.Element;
34
+ export declare function DataProvider({ name, data, hidden, label, children, }: DataProviderProps): React.JSX.Element;
35
35
  export interface PageParamsProviderProps {
36
36
  params?: Record<string, string | string[] | undefined>;
37
37
  query?: Record<string, string | string[] | undefined>;
38
38
  children?: ReactNode;
39
39
  }
40
- export declare function PageParamsProvider({ children, params, query, }: PageParamsProviderProps): JSX.Element;
40
+ export declare function PageParamsProvider({ children, params, query, }: PageParamsProviderProps): React.JSX.Element;
41
41
  export declare function DataCtxReader({ children, }: {
42
42
  children: ($ctx: DataDict | undefined) => ReactNode;
43
43
  }): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -5,5 +5,5 @@ export declare function GlobalActionsProvider(props: {
5
5
  contextName: string;
6
6
  children?: React.ReactNode;
7
7
  actions: GlobalActionDict;
8
- }): JSX.Element;
8
+ }): React.JSX.Element;
9
9
  export declare function useGlobalActions(): GlobalActionDict;
@@ -14,5 +14,5 @@ function registerTrait(trait, meta) {
14
14
  });
15
15
  }
16
16
 
17
- exports['default'] = registerTrait;
17
+ exports.default = registerTrait;
18
18
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../src/registerTrait.ts"],"sourcesContent":["const root = globalThis as any;\n\nexport interface BasicTrait {\n label?: string;\n type: \"text\" | \"number\" | \"boolean\";\n}\n\nexport interface ChoiceTrait {\n label?: string;\n type: \"choice\";\n options: string[];\n}\n\nexport type TraitMeta = BasicTrait | ChoiceTrait;\n\nexport interface TraitRegistration {\n trait: string;\n meta: TraitMeta;\n}\n\ndeclare global {\n interface Window {\n __PlasmicTraitRegistry: TraitRegistration[];\n }\n}\n\nif (root.__PlasmicTraitRegistry == null) {\n root.__PlasmicTraitRegistry = [];\n}\n\nexport default function registerTrait(trait: string, meta: TraitMeta) {\n root.__PlasmicTraitRegistry.push({\n trait,\n meta,\n });\n}\n"],"names":[],"mappings":";;;;;AAAA,IAAM,IAAI,GAAG,UAAiB,CAAC;AA0B/B,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;IACvC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;CAClC;SAEuB,aAAa,CAAC,KAAa,EAAE,IAAe;IAClE,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAC/B,KAAK,OAAA;QACL,IAAI,MAAA;KACL,CAAC,CAAC;AACL;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../../src/registerTrait.ts"],"sourcesContent":["const root = globalThis as any;\n\nexport interface BasicTrait {\n label?: string;\n type: \"text\" | \"number\" | \"boolean\";\n}\n\nexport interface ChoiceTrait {\n label?: string;\n type: \"choice\";\n options: string[];\n}\n\nexport type TraitMeta = BasicTrait | ChoiceTrait;\n\nexport interface TraitRegistration {\n trait: string;\n meta: TraitMeta;\n}\n\ndeclare global {\n interface Window {\n __PlasmicTraitRegistry: TraitRegistration[];\n }\n}\n\nif (root.__PlasmicTraitRegistry == null) {\n root.__PlasmicTraitRegistry = [];\n}\n\nexport default function registerTrait(trait: string, meta: TraitMeta) {\n root.__PlasmicTraitRegistry.push({\n trait,\n meta,\n });\n}\n"],"names":[],"mappings":";;;;;AAAA,IAAM,IAAI,GAAG,UAAiB,CAAC;AA0B/B,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;AACvC,IAAA,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;AAClC,CAAA;AAEa,SAAU,aAAa,CAAC,KAAa,EAAE,IAAe,EAAA;AAClE,IAAA,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC;AAC/B,QAAA,KAAK,EAAA,KAAA;AACL,QAAA,IAAI,EAAA,IAAA;AACL,KAAA,CAAC,CAAC;AACL;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../src/registerTrait.ts"],"sourcesContent":["const root = globalThis as any;\n\nexport interface BasicTrait {\n label?: string;\n type: \"text\" | \"number\" | \"boolean\";\n}\n\nexport interface ChoiceTrait {\n label?: string;\n type: \"choice\";\n options: string[];\n}\n\nexport type TraitMeta = BasicTrait | ChoiceTrait;\n\nexport interface TraitRegistration {\n trait: string;\n meta: TraitMeta;\n}\n\ndeclare global {\n interface Window {\n __PlasmicTraitRegistry: TraitRegistration[];\n }\n}\n\nif (root.__PlasmicTraitRegistry == null) {\n root.__PlasmicTraitRegistry = [];\n}\n\nexport default function registerTrait(trait: string, meta: TraitMeta) {\n root.__PlasmicTraitRegistry.push({\n trait,\n meta,\n });\n}\n"],"names":[],"mappings":";AAAA,IAAM,IAAI,GAAG,UAAiB,CAAC;AA0B/B,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;IACvC,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;CAClC;SAEuB,aAAa,CAAC,KAAa,EAAE,IAAe;IAClE,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC;QAC/B,KAAK,OAAA;QACL,IAAI,MAAA;KACL,CAAC,CAAC;AACL;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../src/registerTrait.ts"],"sourcesContent":["const root = globalThis as any;\n\nexport interface BasicTrait {\n label?: string;\n type: \"text\" | \"number\" | \"boolean\";\n}\n\nexport interface ChoiceTrait {\n label?: string;\n type: \"choice\";\n options: string[];\n}\n\nexport type TraitMeta = BasicTrait | ChoiceTrait;\n\nexport interface TraitRegistration {\n trait: string;\n meta: TraitMeta;\n}\n\ndeclare global {\n interface Window {\n __PlasmicTraitRegistry: TraitRegistration[];\n }\n}\n\nif (root.__PlasmicTraitRegistry == null) {\n root.__PlasmicTraitRegistry = [];\n}\n\nexport default function registerTrait(trait: string, meta: TraitMeta) {\n root.__PlasmicTraitRegistry.push({\n trait,\n meta,\n });\n}\n"],"names":[],"mappings":";AAAA,IAAM,IAAI,GAAG,UAAiB,CAAC;AA0B/B,IAAI,IAAI,CAAC,sBAAsB,IAAI,IAAI,EAAE;AACvC,IAAA,IAAI,CAAC,sBAAsB,GAAG,EAAE,CAAC;AAClC,CAAA;AAEa,SAAU,aAAa,CAAC,KAAa,EAAE,IAAe,EAAA;AAClE,IAAA,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC;AAC/B,QAAA,KAAK,EAAA,KAAA;AACL,QAAA,IAAI,EAAA,IAAA;AACL,KAAA,CAAC,CAAC;AACL;;;;"}
@@ -4,4 +4,4 @@ export declare function usePlasmicLink(): React.ComponentType<React.ComponentPro
4
4
  export declare function PlasmicLinkProvider(props: {
5
5
  Link: React.ComponentType<any> | undefined;
6
6
  children?: React.ReactNode;
7
- }): JSX.Element;
7
+ }): React.JSX.Element;
@@ -112,6 +112,7 @@ export interface PropTypeBaseDefault<P, T> extends PropTypeBase<P>, Defaultable<
112
112
  interface PlainStringType<P> extends PropTypeBaseDefault<P, string> {
113
113
  type: "string";
114
114
  control?: "default" | "large";
115
+ isLocalizable?: boolean;
115
116
  }
116
117
  interface CodeStringType<P> extends PropTypeBaseDefault<P, string> {
117
118
  type: "code";
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { CodeComponentElement, CSSProperties, PlasmicElement } from "./element-types";
3
3
  import { ContextDependentConfig, InferDataType, ModalProps, PropType, RestrictPropType } from "./prop-types";
4
- export type { CanvasComponentProps, ControlExtras, ControlContext, ContextDependentConfig, PropType, } from "./prop-types";
4
+ import { TupleUnion } from "./type-utils";
5
+ export type * from "./prop-types";
5
6
  export interface ActionProps<P> {
6
7
  componentProps: P;
7
8
  /**
@@ -78,9 +79,6 @@ export interface StateHelpers<P, T> {
78
79
  onChangeArgsToValue?: (...args: any) => T;
79
80
  onMutate?: (stateValue: T, $ref: any) => void;
80
81
  }
81
- type TupleUnion<U extends string, R extends string[] = []> = {
82
- [S in U]: Exclude<U, S> extends never ? [...R, S] : TupleUnion<Exclude<U, S>, [...R, S]>;
83
- }[U] & string[];
84
82
  export declare const stateHelpersKeys: TupleUnion<keyof StateHelpers<any, any>>;
85
83
  export type ComponentHelpers<P> = {
86
84
  states: Record<string, StateHelpers<P, any>>;
@@ -212,6 +210,13 @@ export interface CodeComponentMeta<P> {
212
210
  */
213
211
  hideFromContentCreators?: boolean;
214
212
  refActions?: Record<string, RefActionRegistration<P>>;
213
+ /**
214
+ * Optional function that takes in component props and context, and returns
215
+ * a string that will be used for labeling this element in the Outline panel
216
+ * on the left of the Studio. This makes it easy to identify an element when
217
+ * looking at the tree.
218
+ */
219
+ treeLabel?: ContextDependentConfig<P, string>;
215
220
  }
216
221
  export type CodeComponentMode = "advanced" | "simplified" | "database-schema-driven";
217
222
  /**
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Converts a union type to a tuple type of the same members
3
+ */
4
+ export type TupleUnion<U extends string, R extends string[] = []> = {
5
+ [S in U]: Exclude<U, S> extends never ? [...R, S] : TupleUnion<Exclude<U, S>, [...R, S]>;
6
+ }[U] & string[];
@@ -1 +1 @@
1
- export declare const hostVersion = "1.0.151";
1
+ export declare const hostVersion = "1.0.154";