@plasmicapp/host 1.0.76 → 1.0.79

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.
@@ -148,6 +148,12 @@ interface CustomControlProps<P> {
148
148
  * Modal component for the side pane
149
149
  */
150
150
  SideModal: React.ComponentType<ModalProps>;
151
+ /**
152
+ * The document that the component will be rendered into; instead of using
153
+ * `document` directly (for, say, `document.querySelector()` etc.), you
154
+ * should use this instead.
155
+ */
156
+ studioDocument: typeof document;
151
157
  }
152
158
  export declare type CustomControl<P> = React.ComponentType<CustomControlProps<P>>;
153
159
  /**
@@ -206,6 +212,12 @@ export interface ActionProps<P> {
206
212
  removeFromSlotAt: (pos: number, slotName: string) => void;
207
213
  updateProps: (newValues: any) => void;
208
214
  };
215
+ /**
216
+ * The document that the component will be rendered into; instead of using
217
+ * `document` directly (for, say, `document.querySelector()` etc.), you
218
+ * should use this instead.
219
+ */
220
+ studioDocument: typeof document;
209
221
  }
210
222
  export declare type Action<P> = {
211
223
  type: "button-action";
@@ -274,6 +286,15 @@ export interface ComponentMeta<P> {
274
286
  * An array describing the component actions to be used in Studio.
275
287
  */
276
288
  actions?: Action<P>[];
289
+ /**
290
+ * Whether style sections should be shown in Studio. For styles to work, the
291
+ * component must accept a `className` prop. If unset, defaults to true.
292
+ */
293
+ styleSections?: boolean;
294
+ /**
295
+ * Whether the element can be repeated in Studio. If unset, defaults to true.
296
+ */
297
+ isRepeatable?: boolean;
277
298
  /**
278
299
  * The path to be used when importing the component in the generated code.
279
300
  * It can be the name of the package that contains the component, or the path