@embedpdf/plugin-form 3.0.0-next.15 → 3.0.0-next.17

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.cjs CHANGED
@@ -535,6 +535,7 @@ function foldFormFacts(index, event) {
535
535
  case "forms.repaired":
536
536
  case "pages.deleted":
537
537
  case "pages.inserted":
538
+ case "pages.restored":
538
539
  case "pages.flattened":
539
540
  case "annotations.flattened":
540
541
  case "redaction.applied": return (0, _embedpdf_core.reload)();
@@ -643,7 +644,7 @@ function widgetAt(index, widgets, point) {
643
644
  }
644
645
  return best;
645
646
  }
646
- const initialFormState = () => ({});
647
+ const initialFormModel = () => ({});
647
648
  //#endregion
648
649
  //#region src/read/fields.ts
649
650
  /**
@@ -2996,7 +2997,7 @@ const formPlugin = (config) => (0, _embedpdf_core.definePlugin)({
2996
2997
  _embedpdf_plugin_actions_contract.ActionsToken,
2997
2998
  _embedpdf_plugin_render_contract.RenderToken
2998
2999
  ],
2999
- state: initialFormState,
3000
+ state: initialFormModel,
3000
3001
  settings: {
3001
3002
  defaults: require_contract.FORM_DEFAULTS,
3002
3003
  registered: config