@plasmicapp/host
Advanced tools
Comparing version 1.0.203 to 1.0.204
@@ -573,3 +573,3 @@ 'use client'; | ||
var hostVersion = "1.0.203"; | ||
var hostVersion = "1.0.204"; | ||
@@ -576,0 +576,0 @@ var _a; |
@@ -595,3 +595,3 @@ 'use client'; | ||
var hostVersion = "1.0.203"; | ||
var hostVersion = "1.0.204"; | ||
@@ -598,0 +598,0 @@ var _a; |
@@ -405,2 +405,12 @@ /// <reference types="react" /> | ||
} | ||
export interface StudioOps { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
} | ||
export interface CustomControlProps<P> { | ||
@@ -414,2 +424,7 @@ componentProps: P; | ||
contextData: InferDataType<P> | null; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
* Can be null if the custom prop is used in a global context. | ||
*/ | ||
studioOps: StudioOps | null; | ||
value: any; | ||
@@ -416,0 +431,0 @@ /** |
/// <reference types="react" /> | ||
import { CodeComponentElement, CSSProperties, PlasmicElement } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, ModalProps, PropType, RestrictPropType } from "./prop-types"; | ||
import { CodeComponentElement, CSSProperties } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, PropType, RestrictPropType, StudioOps } from "./prop-types"; | ||
import { TupleUnion } from "./type-utils"; | ||
@@ -14,13 +14,7 @@ export type * from "./prop-types"; | ||
contextData: InferDataType<P> | null; | ||
studioOps: { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
}; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
*/ | ||
studioOps: StudioOps; | ||
/** | ||
* The document that the component will be rendered into; instead of using | ||
@@ -27,0 +21,0 @@ * `document` directly (for, say, `document.querySelector()` etc.), you |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.203"; | ||
export declare const hostVersion = "1.0.204"; |
{ | ||
"name": "@plasmicapp/host", | ||
"version": "1.0.203", | ||
"version": "1.0.204", | ||
"description": "plasmic library for app hosting", | ||
@@ -69,3 +69,3 @@ "main": "dist/index.cjs.js", | ||
}, | ||
"gitHead": "d21a497bd13b83d9e9bc448cc8e3a0e6594b8132" | ||
"gitHead": "9e7af0b37cc771d0189c30332d65b12cc891e48c" | ||
} |
@@ -405,2 +405,12 @@ /// <reference types="react" /> | ||
} | ||
export interface StudioOps { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
} | ||
export interface CustomControlProps<P> { | ||
@@ -414,2 +424,7 @@ componentProps: P; | ||
contextData: InferDataType<P> | null; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
* Can be null if the custom prop is used in a global context. | ||
*/ | ||
studioOps: StudioOps | null; | ||
value: any; | ||
@@ -416,0 +431,0 @@ /** |
/// <reference types="react" /> | ||
import { CodeComponentElement, CSSProperties, PlasmicElement } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, ModalProps, PropType, RestrictPropType } from "./prop-types"; | ||
import { CodeComponentElement, CSSProperties } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, PropType, RestrictPropType, StudioOps } from "./prop-types"; | ||
import { TupleUnion } from "./type-utils"; | ||
@@ -14,13 +14,7 @@ export type * from "./prop-types"; | ||
contextData: InferDataType<P> | null; | ||
studioOps: { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
}; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
*/ | ||
studioOps: StudioOps; | ||
/** | ||
* The document that the component will be rendered into; instead of using | ||
@@ -27,0 +21,0 @@ * `document` directly (for, say, `document.querySelector()` etc.), you |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.203"; | ||
export declare const hostVersion = "1.0.204"; |
@@ -405,2 +405,12 @@ /// <reference types="react" /> | ||
} | ||
export interface StudioOps { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
} | ||
export interface CustomControlProps<P> { | ||
@@ -414,2 +424,7 @@ componentProps: P; | ||
contextData: InferDataType<P> | null; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
* Can be null if the custom prop is used in a global context. | ||
*/ | ||
studioOps: StudioOps | null; | ||
value: any; | ||
@@ -416,0 +431,0 @@ /** |
/// <reference types="react" /> | ||
import { CodeComponentElement, CSSProperties, PlasmicElement } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, ModalProps, PropType, RestrictPropType } from "./prop-types"; | ||
import { CodeComponentElement, CSSProperties } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, PropType, RestrictPropType, StudioOps } from "./prop-types"; | ||
import { TupleUnion } from "./type-utils"; | ||
@@ -14,13 +14,7 @@ export type * from "./prop-types"; | ||
contextData: InferDataType<P> | null; | ||
studioOps: { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
}; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
*/ | ||
studioOps: StudioOps; | ||
/** | ||
* The document that the component will be rendered into; instead of using | ||
@@ -27,0 +21,0 @@ * `document` directly (for, say, `document.querySelector()` etc.), you |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.203"; | ||
export declare const hostVersion = "1.0.204"; |
@@ -405,2 +405,12 @@ /// <reference types="react" /> | ||
} | ||
export interface StudioOps { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
} | ||
export interface CustomControlProps<P> { | ||
@@ -414,2 +424,7 @@ componentProps: P; | ||
contextData: InferDataType<P> | null; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
* Can be null if the custom prop is used in a global context. | ||
*/ | ||
studioOps: StudioOps | null; | ||
value: any; | ||
@@ -416,0 +431,0 @@ /** |
/// <reference types="react" /> | ||
import { CodeComponentElement, CSSProperties, PlasmicElement } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, ModalProps, PropType, RestrictPropType } from "./prop-types"; | ||
import { CodeComponentElement, CSSProperties } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, PropType, RestrictPropType, StudioOps } from "./prop-types"; | ||
import { TupleUnion } from "./type-utils"; | ||
@@ -14,13 +14,7 @@ export type * from "./prop-types"; | ||
contextData: InferDataType<P> | null; | ||
studioOps: { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
}; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
*/ | ||
studioOps: StudioOps; | ||
/** | ||
* The document that the component will be rendered into; instead of using | ||
@@ -27,0 +21,0 @@ * `document` directly (for, say, `document.querySelector()` etc.), you |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.203"; | ||
export declare const hostVersion = "1.0.204"; |
@@ -405,2 +405,12 @@ /// <reference types="react" /> | ||
} | ||
export interface StudioOps { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
} | ||
export interface CustomControlProps<P> { | ||
@@ -414,2 +424,7 @@ componentProps: P; | ||
contextData: InferDataType<P> | null; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
* Can be null if the custom prop is used in a global context. | ||
*/ | ||
studioOps: StudioOps | null; | ||
value: any; | ||
@@ -416,0 +431,0 @@ /** |
/// <reference types="react" /> | ||
import { CodeComponentElement, CSSProperties, PlasmicElement } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, ModalProps, PropType, RestrictPropType } from "./prop-types"; | ||
import { CodeComponentElement, CSSProperties } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, PropType, RestrictPropType, StudioOps } from "./prop-types"; | ||
import { TupleUnion } from "./type-utils"; | ||
@@ -14,13 +14,7 @@ export type * from "./prop-types"; | ||
contextData: InferDataType<P> | null; | ||
studioOps: { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
}; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
*/ | ||
studioOps: StudioOps; | ||
/** | ||
* The document that the component will be rendered into; instead of using | ||
@@ -27,0 +21,0 @@ * `document` directly (for, say, `document.querySelector()` etc.), you |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.203"; | ||
export declare const hostVersion = "1.0.204"; |
@@ -405,2 +405,12 @@ /// <reference types="react" /> | ||
} | ||
export interface StudioOps { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
} | ||
export interface CustomControlProps<P> { | ||
@@ -414,2 +424,7 @@ componentProps: P; | ||
contextData: InferDataType<P> | null; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
* Can be null if the custom prop is used in a global context. | ||
*/ | ||
studioOps: StudioOps | null; | ||
value: any; | ||
@@ -416,0 +431,0 @@ /** |
/// <reference types="react" /> | ||
import { CodeComponentElement, CSSProperties, PlasmicElement } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, ModalProps, PropType, RestrictPropType } from "./prop-types"; | ||
import { CodeComponentElement, CSSProperties } from "./element-types"; | ||
import { ContextDependentConfig, InferDataType, PropType, RestrictPropType, StudioOps } from "./prop-types"; | ||
import { TupleUnion } from "./type-utils"; | ||
@@ -14,13 +14,7 @@ export type * from "./prop-types"; | ||
contextData: InferDataType<P> | null; | ||
studioOps: { | ||
showModal: (modalProps: Omit<ModalProps, "onClose"> & { | ||
onClose?: () => void; | ||
}) => void; | ||
refreshQueryData: () => void; | ||
appendToSlot: (element: PlasmicElement, slotName: string) => void; | ||
removeFromSlotAt: (pos: number, slotName: string) => void; | ||
updateProps: (newValues: any) => void; | ||
updateStates: (newValues: any) => void; | ||
}; | ||
/** | ||
* Operations available to the editor that allow modifying the entire component. | ||
*/ | ||
studioOps: StudioOps; | ||
/** | ||
* The document that the component will be rendered into; instead of using | ||
@@ -27,0 +21,0 @@ * `document` directly (for, say, `document.querySelector()` etc.), you |
@@ -1,1 +0,1 @@ | ||
export declare const hostVersion = "1.0.203"; | ||
export declare const hostVersion = "1.0.204"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
550155
9310