@puckeditor/plugin-heading-analyzer 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/dist/index.js CHANGED
@@ -718,6 +718,7 @@ var defaultAppState = {
718
718
  options: [],
719
719
  controlsVisible: true
720
720
  },
721
+ expandedFieldGroups: {},
721
722
  field: { focus: null },
722
723
  plugin: { current: null }
723
724
  },
package/dist/index.mjs CHANGED
@@ -706,6 +706,7 @@ var defaultAppState = {
706
706
  options: [],
707
707
  controlsVisible: true
708
708
  },
709
+ expandedFieldGroups: {},
709
710
  field: { focus: null },
710
711
  plugin: { current: null }
711
712
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puckeditor/plugin-heading-analyzer",
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",
@@ -23,7 +23,7 @@
23
23
  "dist"
24
24
  ],
25
25
  "devDependencies": {
26
- "@puckeditor/core": "^0.24.0-canary.c842cd0b",
26
+ "@puckeditor/core": "^0.24.0-canary.cf21b9f7",
27
27
  "@types/minimatch": "3.0.5",
28
28
  "@types/react": "^19.0.1",
29
29
  "@types/react-dom": "^19.0.2",