@plasmicapp/host 1.0.103 → 1.0.104

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.
@@ -370,6 +370,17 @@ export interface ComponentMeta<P> {
370
370
  figmaMappings?: {
371
371
  figmaComponentName: string;
372
372
  }[];
373
+ unstable__refActions?: Record<string, RefActionRegistration<P>>;
374
+ }
375
+ export interface FunctionParam<P> {
376
+ name: string;
377
+ displayName?: string;
378
+ type: PropType<P>;
379
+ }
380
+ export interface RefActionRegistration<P> {
381
+ displayName?: string;
382
+ description?: string;
383
+ parameters: FunctionParam<P>[];
373
384
  }
374
385
  export interface ComponentRegistration {
375
386
  component: React.ComponentType<any>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BooleanType, ChoiceType, CustomType, JSONLikeType, NumberType, StringType, SupportControlled } from "./registerComponent";
2
+ import { BooleanType, ChoiceType, CustomType, FunctionParam, JSONLikeType, NumberType, StringType, SupportControlled } from "./registerComponent";
3
3
  export declare type PropType<P> = SupportControlled<StringType<P> | BooleanType<P> | NumberType<P> | JSONLikeType<P> | ChoiceType<P> | CustomType<P>>;
4
4
  declare type RestrictPropType<T, P> = T extends string ? SupportControlled<StringType<P> | ChoiceType<P> | JSONLikeType<P> | CustomType<P>> : T extends boolean ? SupportControlled<BooleanType<P> | JSONLikeType<P> | CustomType<P>> : T extends number ? SupportControlled<NumberType<P> | JSONLikeType<P> | CustomType<P>> : PropType<P>;
5
5
  declare type DistributedKeyOf<T> = T extends any ? keyof T : never;
@@ -61,15 +61,10 @@ export interface GlobalContextRegistration {
61
61
  component: React.ComponentType<any>;
62
62
  meta: GlobalContextMeta<any>;
63
63
  }
64
- export interface FunctionParam<P> {
65
- name: "string";
66
- displayName?: string;
67
- type: PropType<P>;
68
- }
69
64
  export interface GlobalActionRegistration<P> {
70
65
  displayName?: string;
71
66
  description?: string;
72
- params: FunctionParam<P>[];
67
+ parameters: FunctionParam<P>[];
73
68
  }
74
69
  declare global {
75
70
  interface Window {