@plasmicapp/host 1.0.234 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data.d.ts +1 -5
- package/dist/exports.d.ts +1 -2
- package/dist/host.esm.js +9 -23
- package/dist/host.esm.js.map +1 -1
- package/dist/index.cjs.js +9 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/registerComponent.d.ts +0 -4
- package/dist/type-utils.d.ts +7 -0
- package/dist/version.d.ts +1 -1
- package/package.json +13 -9
- package/registerComponent/dist/data.d.ts +1 -5
- package/registerComponent/dist/exports.d.ts +1 -2
- package/registerComponent/dist/index.cjs.js.map +1 -1
- package/registerComponent/dist/index.esm.js.map +1 -1
- package/registerComponent/dist/registerComponent.d.ts +0 -4
- package/registerComponent/dist/type-utils.d.ts +7 -0
- package/registerComponent/dist/version.d.ts +1 -1
- package/registerFunction/dist/data.d.ts +1 -5
- package/registerFunction/dist/exports.d.ts +1 -2
- package/registerFunction/dist/registerComponent.d.ts +0 -4
- package/registerFunction/dist/type-utils.d.ts +7 -0
- package/registerFunction/dist/version.d.ts +1 -1
- package/registerGlobalContext/dist/data.d.ts +1 -5
- package/registerGlobalContext/dist/exports.d.ts +1 -2
- package/registerGlobalContext/dist/registerComponent.d.ts +0 -4
- package/registerGlobalContext/dist/type-utils.d.ts +7 -0
- package/registerGlobalContext/dist/version.d.ts +1 -1
- package/registerToken/dist/data.d.ts +1 -5
- package/registerToken/dist/exports.d.ts +1 -2
- package/registerToken/dist/registerComponent.d.ts +0 -4
- package/registerToken/dist/type-utils.d.ts +7 -0
- package/registerToken/dist/version.d.ts +1 -1
- package/registerTrait/dist/data.d.ts +1 -5
- package/registerTrait/dist/exports.d.ts +1 -2
- package/registerTrait/dist/registerComponent.d.ts +0 -4
- package/registerTrait/dist/type-utils.d.ts +7 -0
- package/registerTrait/dist/version.d.ts +1 -1
- package/LICENSE.md +0 -21
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export { PlasmicCanvasContext, PlasmicCanvasHost, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, } from "./canvas-host";
|
|
2
2
|
export * from "./data";
|
|
3
3
|
export { PlasmicElement } from "./element-types";
|
|
4
|
-
export { registerFetcher as unstable_registerFetcher } from "./fetcher";
|
|
5
4
|
export * from "./global-actions";
|
|
6
5
|
export * from "./link";
|
|
7
6
|
export { ChoiceObject, ChoiceOptions, ChoiceValue, ComponentContextConfig, ComponentControlContext, ContextDependentConfig, ControlExtras, CustomControlProps, ProjectData, PropType, StudioOps, } from "./prop-types";
|
|
8
|
-
export { Action, ActionProps, CodeComponentMeta, CodeComponentMode, ComponentHelpers,
|
|
7
|
+
export { Action, ActionProps, CodeComponentMeta, CodeComponentMode, ComponentHelpers, ComponentRegistration, ComponentTemplates, StateHelpers, StateSpec, default as registerComponent, stateHelpersKeys, } from "./registerComponent";
|
|
9
8
|
export { CustomFunctionMeta, CustomFunctionRegistration, FunctionContextConfig, FunctionControlContext, ParamType, default as registerFunction, } from "./registerFunction";
|
|
10
9
|
export { GlobalContextMeta, PropType as GlobalContextPropType, GlobalContextRegistration, default as registerGlobalContext, } from "./registerGlobalContext";
|
|
11
10
|
export { TokenRegistration, TokenType, default as registerToken, } from "./registerToken";
|
|
@@ -277,10 +277,6 @@ export interface CodeComponentMeta<P> {
|
|
|
277
277
|
}>;
|
|
278
278
|
}
|
|
279
279
|
export type CodeComponentMode = "advanced" | "simplified" | "database-schema-driven";
|
|
280
|
-
/**
|
|
281
|
-
* @deprecated use CodeComponentMeta instead
|
|
282
|
-
*/
|
|
283
|
-
export type ComponentMeta<P> = CodeComponentMeta<P>;
|
|
284
280
|
export interface FunctionParam<P> {
|
|
285
281
|
name: string;
|
|
286
282
|
displayName?: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
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[];
|
|
7
|
+
export type Nullish<T> = T | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const hostVersion = "
|
|
1
|
+
export declare const hostVersion = "2.0.0-alpha.1";
|
|
@@ -51,12 +51,8 @@ export interface PageParamsProviderProps {
|
|
|
51
51
|
* Page query params (e.g. { q: "search term" })
|
|
52
52
|
*/
|
|
53
53
|
query?: Record<string, string | string[] | undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated Use `route` instead.
|
|
56
|
-
*/
|
|
57
|
-
path?: string;
|
|
58
54
|
}
|
|
59
|
-
export declare function PageParamsProvider({ children, route,
|
|
55
|
+
export declare function PageParamsProvider({ children, route, params, query, }: PageParamsProviderProps): React.JSX.Element;
|
|
60
56
|
export declare function DataCtxReader({ children, }: {
|
|
61
57
|
children: ($ctx: DataDict | undefined) => ReactNode;
|
|
62
58
|
}): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export { PlasmicCanvasContext, PlasmicCanvasHost, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, } from "./canvas-host";
|
|
2
2
|
export * from "./data";
|
|
3
3
|
export { PlasmicElement } from "./element-types";
|
|
4
|
-
export { registerFetcher as unstable_registerFetcher } from "./fetcher";
|
|
5
4
|
export * from "./global-actions";
|
|
6
5
|
export * from "./link";
|
|
7
6
|
export { ChoiceObject, ChoiceOptions, ChoiceValue, ComponentContextConfig, ComponentControlContext, ContextDependentConfig, ControlExtras, CustomControlProps, ProjectData, PropType, StudioOps, } from "./prop-types";
|
|
8
|
-
export { Action, ActionProps, CodeComponentMeta, CodeComponentMode, ComponentHelpers,
|
|
7
|
+
export { Action, ActionProps, CodeComponentMeta, CodeComponentMode, ComponentHelpers, ComponentRegistration, ComponentTemplates, StateHelpers, StateSpec, default as registerComponent, stateHelpersKeys, } from "./registerComponent";
|
|
9
8
|
export { CustomFunctionMeta, CustomFunctionRegistration, FunctionContextConfig, FunctionControlContext, ParamType, default as registerFunction, } from "./registerFunction";
|
|
10
9
|
export { GlobalContextMeta, PropType as GlobalContextPropType, GlobalContextRegistration, default as registerGlobalContext, } from "./registerGlobalContext";
|
|
11
10
|
export { TokenRegistration, TokenType, default as registerToken, } from "./registerToken";
|
|
@@ -277,10 +277,6 @@ export interface CodeComponentMeta<P> {
|
|
|
277
277
|
}>;
|
|
278
278
|
}
|
|
279
279
|
export type CodeComponentMode = "advanced" | "simplified" | "database-schema-driven";
|
|
280
|
-
/**
|
|
281
|
-
* @deprecated use CodeComponentMeta instead
|
|
282
|
-
*/
|
|
283
|
-
export type ComponentMeta<P> = CodeComponentMeta<P>;
|
|
284
280
|
export interface FunctionParam<P> {
|
|
285
281
|
name: string;
|
|
286
282
|
displayName?: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
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[];
|
|
7
|
+
export type Nullish<T> = T | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const hostVersion = "
|
|
1
|
+
export declare const hostVersion = "2.0.0-alpha.1";
|
|
@@ -51,12 +51,8 @@ export interface PageParamsProviderProps {
|
|
|
51
51
|
* Page query params (e.g. { q: "search term" })
|
|
52
52
|
*/
|
|
53
53
|
query?: Record<string, string | string[] | undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated Use `route` instead.
|
|
56
|
-
*/
|
|
57
|
-
path?: string;
|
|
58
54
|
}
|
|
59
|
-
export declare function PageParamsProvider({ children, route,
|
|
55
|
+
export declare function PageParamsProvider({ children, route, params, query, }: PageParamsProviderProps): React.JSX.Element;
|
|
60
56
|
export declare function DataCtxReader({ children, }: {
|
|
61
57
|
children: ($ctx: DataDict | undefined) => ReactNode;
|
|
62
58
|
}): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export { PlasmicCanvasContext, PlasmicCanvasHost, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, } from "./canvas-host";
|
|
2
2
|
export * from "./data";
|
|
3
3
|
export { PlasmicElement } from "./element-types";
|
|
4
|
-
export { registerFetcher as unstable_registerFetcher } from "./fetcher";
|
|
5
4
|
export * from "./global-actions";
|
|
6
5
|
export * from "./link";
|
|
7
6
|
export { ChoiceObject, ChoiceOptions, ChoiceValue, ComponentContextConfig, ComponentControlContext, ContextDependentConfig, ControlExtras, CustomControlProps, ProjectData, PropType, StudioOps, } from "./prop-types";
|
|
8
|
-
export { Action, ActionProps, CodeComponentMeta, CodeComponentMode, ComponentHelpers,
|
|
7
|
+
export { Action, ActionProps, CodeComponentMeta, CodeComponentMode, ComponentHelpers, ComponentRegistration, ComponentTemplates, StateHelpers, StateSpec, default as registerComponent, stateHelpersKeys, } from "./registerComponent";
|
|
9
8
|
export { CustomFunctionMeta, CustomFunctionRegistration, FunctionContextConfig, FunctionControlContext, ParamType, default as registerFunction, } from "./registerFunction";
|
|
10
9
|
export { GlobalContextMeta, PropType as GlobalContextPropType, GlobalContextRegistration, default as registerGlobalContext, } from "./registerGlobalContext";
|
|
11
10
|
export { TokenRegistration, TokenType, default as registerToken, } from "./registerToken";
|
|
@@ -277,10 +277,6 @@ export interface CodeComponentMeta<P> {
|
|
|
277
277
|
}>;
|
|
278
278
|
}
|
|
279
279
|
export type CodeComponentMode = "advanced" | "simplified" | "database-schema-driven";
|
|
280
|
-
/**
|
|
281
|
-
* @deprecated use CodeComponentMeta instead
|
|
282
|
-
*/
|
|
283
|
-
export type ComponentMeta<P> = CodeComponentMeta<P>;
|
|
284
280
|
export interface FunctionParam<P> {
|
|
285
281
|
name: string;
|
|
286
282
|
displayName?: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
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[];
|
|
7
|
+
export type Nullish<T> = T | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const hostVersion = "
|
|
1
|
+
export declare const hostVersion = "2.0.0-alpha.1";
|
|
@@ -51,12 +51,8 @@ export interface PageParamsProviderProps {
|
|
|
51
51
|
* Page query params (e.g. { q: "search term" })
|
|
52
52
|
*/
|
|
53
53
|
query?: Record<string, string | string[] | undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated Use `route` instead.
|
|
56
|
-
*/
|
|
57
|
-
path?: string;
|
|
58
54
|
}
|
|
59
|
-
export declare function PageParamsProvider({ children, route,
|
|
55
|
+
export declare function PageParamsProvider({ children, route, params, query, }: PageParamsProviderProps): React.JSX.Element;
|
|
60
56
|
export declare function DataCtxReader({ children, }: {
|
|
61
57
|
children: ($ctx: DataDict | undefined) => ReactNode;
|
|
62
58
|
}): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export { PlasmicCanvasContext, PlasmicCanvasHost, usePlasmicCanvasComponentInfo, usePlasmicCanvasContext, } from "./canvas-host";
|
|
2
2
|
export * from "./data";
|
|
3
3
|
export { PlasmicElement } from "./element-types";
|
|
4
|
-
export { registerFetcher as unstable_registerFetcher } from "./fetcher";
|
|
5
4
|
export * from "./global-actions";
|
|
6
5
|
export * from "./link";
|
|
7
6
|
export { ChoiceObject, ChoiceOptions, ChoiceValue, ComponentContextConfig, ComponentControlContext, ContextDependentConfig, ControlExtras, CustomControlProps, ProjectData, PropType, StudioOps, } from "./prop-types";
|
|
8
|
-
export { Action, ActionProps, CodeComponentMeta, CodeComponentMode, ComponentHelpers,
|
|
7
|
+
export { Action, ActionProps, CodeComponentMeta, CodeComponentMode, ComponentHelpers, ComponentRegistration, ComponentTemplates, StateHelpers, StateSpec, default as registerComponent, stateHelpersKeys, } from "./registerComponent";
|
|
9
8
|
export { CustomFunctionMeta, CustomFunctionRegistration, FunctionContextConfig, FunctionControlContext, ParamType, default as registerFunction, } from "./registerFunction";
|
|
10
9
|
export { GlobalContextMeta, PropType as GlobalContextPropType, GlobalContextRegistration, default as registerGlobalContext, } from "./registerGlobalContext";
|
|
11
10
|
export { TokenRegistration, TokenType, default as registerToken, } from "./registerToken";
|
|
@@ -277,10 +277,6 @@ export interface CodeComponentMeta<P> {
|
|
|
277
277
|
}>;
|
|
278
278
|
}
|
|
279
279
|
export type CodeComponentMode = "advanced" | "simplified" | "database-schema-driven";
|
|
280
|
-
/**
|
|
281
|
-
* @deprecated use CodeComponentMeta instead
|
|
282
|
-
*/
|
|
283
|
-
export type ComponentMeta<P> = CodeComponentMeta<P>;
|
|
284
280
|
export interface FunctionParam<P> {
|
|
285
281
|
name: string;
|
|
286
282
|
displayName?: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
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[];
|
|
7
|
+
export type Nullish<T> = T | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const hostVersion = "
|
|
1
|
+
export declare const hostVersion = "2.0.0-alpha.1";
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Plasmic
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|