@plasmicapp/react-web 0.2.209 → 0.2.212

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/all.d.ts CHANGED
@@ -11338,11 +11338,15 @@ type SlotType<P> = "slot" | ({
11338
11338
  * arguments expected by the render prop function.
11339
11339
  */
11340
11340
  renderPropParams?: string[];
11341
+ /**
11342
+ * When inserting top-level "page sections", should this slot be the default target?
11343
+ */
11344
+ unstable__isMainContentSlot?: boolean;
11341
11345
  } & Omit<DefaultValueOrExpr<P, PlasmicElement | PlasmicElement[]>, "defaultValueHint" | "defaultExpr" | "defaultExprHint">);
11342
11346
  type ImageUrlType<P> = "imageUrl" | ({
11343
11347
  type: "imageUrl";
11344
11348
  } & DefaultValueOrExpr<P, string> & PropTypeBase<P>);
11345
- type PrimitiveType<P = any> = Extract<StringType<P> | BooleanType<P> | NumberType<P> | JSONLikeType<P>, String>;
11349
+ type PrimitiveType<P = any> = Extract<StringType<P> | BooleanType<P> | NumberType<P> | JSONLikeType<P>, string>;
11346
11350
  type ControlTypeBase = {
11347
11351
  editOnly?: false;
11348
11352
  } | {
@@ -11352,7 +11356,7 @@ type ControlTypeBase = {
11352
11356
  */
11353
11357
  uncontrolledProp?: string;
11354
11358
  };
11355
- type SupportControlled<T> = Extract<T, String | CustomControl<any>> | (Exclude<T, String | CustomControl<any>> & ControlTypeBase);
11359
+ type SupportControlled<T> = Extract<T, string | CustomControl<any>> | (Exclude<T, string | CustomControl<any>> & ControlTypeBase);
11356
11360
  type PropType$1<P> = SupportControlled<StringType<P> | BooleanType<P> | NumberType<P> | JSONLikeType<P> | ChoiceType<P> | ImageUrlType<P> | CustomType<P> | GraphQLType<P> | DataPickerType<P> | FormValidationRulesType<P> | EventHandlerType<P>> | SlotType<P>;
11357
11361
  type RestrictPropType$1<T, P> = T extends string ? SupportControlled<StringType<P> | ChoiceType<P> | JSONLikeType<P> | ImageUrlType<P> | CustomType<P> | DataPickerType<P>> : T extends boolean ? SupportControlled<BooleanType<P> | JSONLikeType<P> | CustomType<P> | DataPickerType<P>> : T extends number ? SupportControlled<NumberType<P> | JSONLikeType<P> | CustomType<P> | DataPickerType<P>> : PropType$1<P>;
11358
11362
  interface ActionProps<P> {
@@ -11383,9 +11387,11 @@ type Action<P> = {
11383
11387
  type: "button-action";
11384
11388
  label: string;
11385
11389
  onClick: (props: ActionProps<P>) => void;
11390
+ hidden?: ContextDependentConfig<P, boolean>;
11386
11391
  } | {
11387
11392
  type: "custom-action";
11388
11393
  control: React.ComponentType<ActionProps<P>>;
11394
+ hidden?: ContextDependentConfig<P, boolean>;
11389
11395
  };
11390
11396
  type DistributedKeyOf$1<T> = T extends any ? keyof T : never;
11391
11397
  interface ComponentTemplate<P> extends Omit<CodeComponentElement<P>, "type" | "name"> {
package/dist/index.cjs.js CHANGED
@@ -1070,8 +1070,8 @@ function PlasmicHead(props) {
1070
1070
  }
1071
1071
  var plasmicHeadMeta = {
1072
1072
  name: "hostless-plasmic-head",
1073
- displayName: "Head",
1074
- description: "Used to add page metadata to HTML <head />.",
1073
+ displayName: "Page Metadata Override",
1074
+ description: "Set page metadata (HTML <head />) to dynamic values.",
1075
1075
  importName: "PlasmicHead",
1076
1076
  importPath: "@plasmicapp/react-web",
1077
1077
  isRepeatable: false,