@puckeditor/plugin-emotion-cache 0.24.0-canary.c842cd0b → 0.24.0-canary.cf21b9f7

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/index.d.mts CHANGED
@@ -318,6 +318,7 @@ interface ObjectField<Props extends any = {
318
318
  [key: string]: any;
319
319
  }, UserField extends {} = {}> extends BaseField {
320
320
  type: "object";
321
+ expandable?: boolean;
321
322
  objectFields: {
322
323
  [SubPropName in keyof Props]: UserField extends {
323
324
  type: PropertyKey;
@@ -464,6 +465,9 @@ UserField extends BaseField = {}> = {
464
465
  label?: string;
465
466
  defaultProps?: FieldProps;
466
467
  fields?: Fields<FieldProps, UserField>;
468
+ renderFields?: RenderFunc<{
469
+ fields: Partial<Record<keyof FieldProps, ReactNode>>;
470
+ }>;
467
471
  permissions?: Partial<Permissions>;
468
472
  inline?: boolean;
469
473
  resolveFields?: (data: DataShape, params: {
@@ -612,10 +616,13 @@ type UiState = {
612
616
  controlsVisible: boolean;
613
617
  options: Viewport[];
614
618
  };
619
+ expandedFieldGroups: Record<string, boolean>;
615
620
  field: {
616
621
  focus?: string | null;
617
622
  metadata?: Record<string, any>;
618
623
  };
624
+ /** The selected field tab. Shows the first available tab when `null`. */
625
+ fieldTab?: string | number | null;
619
626
  plugin: {
620
627
  current: string | null;
621
628
  };
@@ -714,10 +721,12 @@ type Overrides<UserConfig extends Config = Config> = OverridesGeneric<{
714
721
  children: ReactNode;
715
722
  isLoading: boolean;
716
723
  itemSelector?: ItemSelector | null;
724
+ fields: Partial<Record<string, ReactNode>>;
717
725
  }>;
718
726
  fieldLabel: RenderFunc<{
719
727
  children?: ReactNode;
720
728
  icon?: ReactNode;
729
+ endIcon?: ReactNode;
721
730
  label: string;
722
731
  el?: "label" | "div";
723
732
  readOnly?: boolean;
package/dist/index.d.ts CHANGED
@@ -318,6 +318,7 @@ interface ObjectField<Props extends any = {
318
318
  [key: string]: any;
319
319
  }, UserField extends {} = {}> extends BaseField {
320
320
  type: "object";
321
+ expandable?: boolean;
321
322
  objectFields: {
322
323
  [SubPropName in keyof Props]: UserField extends {
323
324
  type: PropertyKey;
@@ -464,6 +465,9 @@ UserField extends BaseField = {}> = {
464
465
  label?: string;
465
466
  defaultProps?: FieldProps;
466
467
  fields?: Fields<FieldProps, UserField>;
468
+ renderFields?: RenderFunc<{
469
+ fields: Partial<Record<keyof FieldProps, ReactNode>>;
470
+ }>;
467
471
  permissions?: Partial<Permissions>;
468
472
  inline?: boolean;
469
473
  resolveFields?: (data: DataShape, params: {
@@ -612,10 +616,13 @@ type UiState = {
612
616
  controlsVisible: boolean;
613
617
  options: Viewport[];
614
618
  };
619
+ expandedFieldGroups: Record<string, boolean>;
615
620
  field: {
616
621
  focus?: string | null;
617
622
  metadata?: Record<string, any>;
618
623
  };
624
+ /** The selected field tab. Shows the first available tab when `null`. */
625
+ fieldTab?: string | number | null;
619
626
  plugin: {
620
627
  current: string | null;
621
628
  };
@@ -714,10 +721,12 @@ type Overrides<UserConfig extends Config = Config> = OverridesGeneric<{
714
721
  children: ReactNode;
715
722
  isLoading: boolean;
716
723
  itemSelector?: ItemSelector | null;
724
+ fields: Partial<Record<string, ReactNode>>;
717
725
  }>;
718
726
  fieldLabel: RenderFunc<{
719
727
  children?: ReactNode;
720
728
  icon?: ReactNode;
729
+ endIcon?: ReactNode;
721
730
  label: string;
722
731
  el?: "label" | "div";
723
732
  readOnly?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puckeditor/plugin-emotion-cache",
3
- "version": "0.24.0-canary.c842cd0b",
3
+ "version": "0.24.0-canary.cf21b9f7",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "devDependencies": {
24
24
  "@emotion/react": "^11.13.3",
25
- "@puckeditor/core": "^0.24.0-canary.c842cd0b",
25
+ "@puckeditor/core": "^0.24.0-canary.cf21b9f7",
26
26
  "@types/minimatch": "3.0.5",
27
27
  "@types/react": "^19.2.7",
28
28
  "@types/react-dom": "^19.0.2",