@puckeditor/plugin-heading-analyzer 0.24.0-canary.c0346c76 → 0.24.0-canary.c16ace08

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
@@ -53,7 +53,7 @@ type NonForwardableProps = {
53
53
  /**
54
54
  * Keys internally consumed by Puck and never forwarded to `as`.
55
55
  */
56
- type ConsumedPropKey = keyof DropZoneOwnProps | "as" | "content" | "config" | "metadata" | "fieldTransforms";
56
+ type ConsumedPropKey = keyof DropZoneOwnProps | "as" | "content" | "config" | "metadata";
57
57
  /**
58
58
  * Additional props forwarded to the element or component provided via `as`,
59
59
  * typed against it.
@@ -236,7 +236,6 @@ interface PuckRichTextOptions {
236
236
  underline: Partial<UnderlineOptions> | false;
237
237
  }
238
238
 
239
- type FieldGroupVariant = "flush" | "card";
240
239
  type FieldOption = {
241
240
  label: string;
242
241
  value: string | number | boolean | undefined | null | object;
@@ -273,10 +272,6 @@ interface RadioField extends BaseField {
273
272
  type: "radio";
274
273
  options: FieldOptions;
275
274
  }
276
- interface CheckboxField extends BaseField {
277
- type: "checkbox";
278
- options: FieldOptions;
279
- }
280
275
  interface RichtextField<UserSelector extends RichTextSelector = RichTextSelector> extends BaseField {
281
276
  type: "richtext";
282
277
  contentEditable?: boolean;
@@ -319,9 +314,6 @@ interface ObjectField<Props extends any = {
319
314
  [key: string]: any;
320
315
  }, UserField extends {} = {}> extends BaseField {
321
316
  type: "object";
322
- collapsible?: boolean;
323
- defaultExpanded?: boolean;
324
- variant?: FieldGroupVariant;
325
317
  objectFields: {
326
318
  [SubPropName in keyof Props]: UserField extends {
327
319
  type: PropertyKey;
@@ -386,7 +378,7 @@ interface SlotField extends BaseField {
386
378
  allow?: string[];
387
379
  disallow?: string[];
388
380
  }
389
- type Field<ValueType = any, UserField extends {} = {}> = TextField | RichtextField | NumberField | TextareaField | SelectField | RadioField | CheckboxField | ArrayField<ValueType extends {
381
+ type Field<ValueType = any, UserField extends {} = {}> = TextField | RichtextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<ValueType extends {
390
382
  [key: string]: any;
391
383
  }[] ? ValueType : never, UserField> | ObjectField<ValueType, UserField> | ExternalField<ValueType> | ExternalFieldWithAdaptor<ValueType> | CustomField<ValueType> | SlotField;
392
384
  type Fields<ComponentProps extends DefaultComponentProps = DefaultComponentProps, UserField extends {} = {}> = {
@@ -468,9 +460,6 @@ UserField extends BaseField = {}> = {
468
460
  label?: string;
469
461
  defaultProps?: FieldProps;
470
462
  fields?: Fields<FieldProps, UserField>;
471
- renderFields?: RenderFunc<{
472
- fields: Partial<Record<keyof FieldProps, ReactNode>>;
473
- }>;
474
463
  permissions?: Partial<Permissions>;
475
464
  inline?: boolean;
476
465
  resolveFields?: (data: DataShape, params: {
@@ -619,13 +608,10 @@ type UiState = {
619
608
  controlsVisible: boolean;
620
609
  options: Viewport[];
621
610
  };
622
- expandedFieldGroups: Record<string, boolean>;
623
611
  field: {
624
612
  focus?: string | null;
625
613
  metadata?: Record<string, any>;
626
614
  };
627
- /** The selected field tab. Shows the first available tab when `null`. */
628
- fieldTab?: string | number | null;
629
615
  plugin: {
630
616
  current: string | null;
631
617
  };
@@ -715,8 +701,6 @@ type Overrides<UserConfig extends Config = Config> = OverridesGeneric<{
715
701
  label?: string;
716
702
  children: ReactNode;
717
703
  parentAction: ReactNode;
718
- dragHandle?: ReactNode;
719
- dragHandleRef?: (element: Element | null) => void;
720
704
  }>;
721
705
  headerActions: RenderFunc<{
722
706
  children: ReactNode;
@@ -726,12 +710,10 @@ type Overrides<UserConfig extends Config = Config> = OverridesGeneric<{
726
710
  children: ReactNode;
727
711
  isLoading: boolean;
728
712
  itemSelector?: ItemSelector | null;
729
- fields: Partial<Record<string, ReactNode>>;
730
713
  }>;
731
714
  fieldLabel: RenderFunc<{
732
715
  children?: ReactNode;
733
716
  icon?: ReactNode;
734
- endIcon?: ReactNode;
735
717
  label: string;
736
718
  el?: "label" | "div";
737
719
  readOnly?: boolean;
package/dist/index.d.ts CHANGED
@@ -53,7 +53,7 @@ type NonForwardableProps = {
53
53
  /**
54
54
  * Keys internally consumed by Puck and never forwarded to `as`.
55
55
  */
56
- type ConsumedPropKey = keyof DropZoneOwnProps | "as" | "content" | "config" | "metadata" | "fieldTransforms";
56
+ type ConsumedPropKey = keyof DropZoneOwnProps | "as" | "content" | "config" | "metadata";
57
57
  /**
58
58
  * Additional props forwarded to the element or component provided via `as`,
59
59
  * typed against it.
@@ -236,7 +236,6 @@ interface PuckRichTextOptions {
236
236
  underline: Partial<UnderlineOptions> | false;
237
237
  }
238
238
 
239
- type FieldGroupVariant = "flush" | "card";
240
239
  type FieldOption = {
241
240
  label: string;
242
241
  value: string | number | boolean | undefined | null | object;
@@ -273,10 +272,6 @@ interface RadioField extends BaseField {
273
272
  type: "radio";
274
273
  options: FieldOptions;
275
274
  }
276
- interface CheckboxField extends BaseField {
277
- type: "checkbox";
278
- options: FieldOptions;
279
- }
280
275
  interface RichtextField<UserSelector extends RichTextSelector = RichTextSelector> extends BaseField {
281
276
  type: "richtext";
282
277
  contentEditable?: boolean;
@@ -319,9 +314,6 @@ interface ObjectField<Props extends any = {
319
314
  [key: string]: any;
320
315
  }, UserField extends {} = {}> extends BaseField {
321
316
  type: "object";
322
- collapsible?: boolean;
323
- defaultExpanded?: boolean;
324
- variant?: FieldGroupVariant;
325
317
  objectFields: {
326
318
  [SubPropName in keyof Props]: UserField extends {
327
319
  type: PropertyKey;
@@ -386,7 +378,7 @@ interface SlotField extends BaseField {
386
378
  allow?: string[];
387
379
  disallow?: string[];
388
380
  }
389
- type Field<ValueType = any, UserField extends {} = {}> = TextField | RichtextField | NumberField | TextareaField | SelectField | RadioField | CheckboxField | ArrayField<ValueType extends {
381
+ type Field<ValueType = any, UserField extends {} = {}> = TextField | RichtextField | NumberField | TextareaField | SelectField | RadioField | ArrayField<ValueType extends {
390
382
  [key: string]: any;
391
383
  }[] ? ValueType : never, UserField> | ObjectField<ValueType, UserField> | ExternalField<ValueType> | ExternalFieldWithAdaptor<ValueType> | CustomField<ValueType> | SlotField;
392
384
  type Fields<ComponentProps extends DefaultComponentProps = DefaultComponentProps, UserField extends {} = {}> = {
@@ -468,9 +460,6 @@ UserField extends BaseField = {}> = {
468
460
  label?: string;
469
461
  defaultProps?: FieldProps;
470
462
  fields?: Fields<FieldProps, UserField>;
471
- renderFields?: RenderFunc<{
472
- fields: Partial<Record<keyof FieldProps, ReactNode>>;
473
- }>;
474
463
  permissions?: Partial<Permissions>;
475
464
  inline?: boolean;
476
465
  resolveFields?: (data: DataShape, params: {
@@ -619,13 +608,10 @@ type UiState = {
619
608
  controlsVisible: boolean;
620
609
  options: Viewport[];
621
610
  };
622
- expandedFieldGroups: Record<string, boolean>;
623
611
  field: {
624
612
  focus?: string | null;
625
613
  metadata?: Record<string, any>;
626
614
  };
627
- /** The selected field tab. Shows the first available tab when `null`. */
628
- fieldTab?: string | number | null;
629
615
  plugin: {
630
616
  current: string | null;
631
617
  };
@@ -715,8 +701,6 @@ type Overrides<UserConfig extends Config = Config> = OverridesGeneric<{
715
701
  label?: string;
716
702
  children: ReactNode;
717
703
  parentAction: ReactNode;
718
- dragHandle?: ReactNode;
719
- dragHandleRef?: (element: Element | null) => void;
720
704
  }>;
721
705
  headerActions: RenderFunc<{
722
706
  children: ReactNode;
@@ -726,12 +710,10 @@ type Overrides<UserConfig extends Config = Config> = OverridesGeneric<{
726
710
  children: ReactNode;
727
711
  isLoading: boolean;
728
712
  itemSelector?: ItemSelector | null;
729
- fields: Partial<Record<string, ReactNode>>;
730
713
  }>;
731
714
  fieldLabel: RenderFunc<{
732
715
  children?: ReactNode;
733
716
  icon?: ReactNode;
734
- endIcon?: ReactNode;
735
717
  label: string;
736
718
  el?: "label" | "div";
737
719
  readOnly?: boolean;
package/dist/index.js CHANGED
@@ -581,7 +581,7 @@ var defaultViewports = [
581
581
  { width: "100%", height: "auto", icon: "FullWidth", label: "Full-width" }
582
582
  ];
583
583
 
584
- // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/vanilla.mjs
584
+ // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/vanilla.mjs
585
585
  init_react_import();
586
586
  var createStoreImpl = (createState) => {
587
587
  let state;
@@ -606,7 +606,7 @@ var createStoreImpl = (createState) => {
606
606
  };
607
607
  var createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
608
608
 
609
- // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/react.mjs
609
+ // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/react.mjs
610
610
  init_react_import();
611
611
  var import_react4 = __toESM(require("react"), 1);
612
612
  var identity = (arg) => arg;
@@ -627,7 +627,7 @@ var createImpl = (createState) => {
627
627
  };
628
628
  var create = ((createState) => createState ? createImpl(createState) : createImpl);
629
629
 
630
- // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/middleware.mjs
630
+ // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/middleware.mjs
631
631
  init_react_import();
632
632
  var subscribeWithSelectorImpl = (fn) => (set, get, api) => {
633
633
  const origSubscribe = api.subscribe;
@@ -718,7 +718,6 @@ var defaultAppState = {
718
718
  options: [],
719
719
  controlsVisible: true
720
720
  },
721
- expandedFieldGroups: {},
722
721
  field: { focus: null },
723
722
  plugin: { current: null }
724
723
  },
package/dist/index.mjs CHANGED
@@ -569,7 +569,7 @@ var defaultViewports = [
569
569
  { width: "100%", height: "auto", icon: "FullWidth", label: "Full-width" }
570
570
  ];
571
571
 
572
- // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/vanilla.mjs
572
+ // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/vanilla.mjs
573
573
  init_react_import();
574
574
  var createStoreImpl = (createState) => {
575
575
  let state;
@@ -594,7 +594,7 @@ var createStoreImpl = (createState) => {
594
594
  };
595
595
  var createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);
596
596
 
597
- // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/react.mjs
597
+ // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/react.mjs
598
598
  init_react_import();
599
599
  import React2 from "react";
600
600
  var identity = (arg) => arg;
@@ -615,7 +615,7 @@ var createImpl = (createState) => {
615
615
  };
616
616
  var create = ((createState) => createState ? createImpl(createState) : createImpl);
617
617
 
618
- // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.2.6_use-sync-external-store@1.6.0_react@19.2.6_/node_modules/zustand/esm/middleware.mjs
618
+ // ../../node_modules/.pnpm/zustand@5.0.13_@types+react@19.2.14_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/middleware.mjs
619
619
  init_react_import();
620
620
  var subscribeWithSelectorImpl = (fn) => (set, get, api) => {
621
621
  const origSubscribe = api.subscribe;
@@ -706,7 +706,6 @@ var defaultAppState = {
706
706
  options: [],
707
707
  controlsVisible: true
708
708
  },
709
- expandedFieldGroups: {},
710
709
  field: { focus: null },
711
710
  plugin: { current: null }
712
711
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puckeditor/plugin-heading-analyzer",
3
- "version": "0.24.0-canary.c0346c76",
3
+ "version": "0.24.0-canary.c16ace08",
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.c0346c76",
26
+ "@puckeditor/core": "^0.24.0-canary.c16ace08",
27
27
  "@types/minimatch": "3.0.5",
28
28
  "@types/react": "^19.0.1",
29
29
  "@types/react-dom": "^19.0.2",