@formio/js 5.6.0 → 5.6.1

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.
Files changed (38) hide show
  1. package/dist/formio.embed.js +1 -1
  2. package/dist/formio.embed.min.js +1 -1
  3. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  4. package/dist/formio.form.js +10 -10
  5. package/dist/formio.form.min.js +1 -1
  6. package/dist/formio.form.min.js.LICENSE.txt +1 -1
  7. package/dist/formio.full.js +10 -10
  8. package/dist/formio.full.min.js +1 -1
  9. package/dist/formio.full.min.js.LICENSE.txt +1 -1
  10. package/dist/formio.js +6 -6
  11. package/dist/formio.min.js +1 -1
  12. package/dist/formio.min.js.LICENSE.txt +1 -1
  13. package/dist/formio.utils.js +4 -4
  14. package/dist/formio.utils.min.js +1 -1
  15. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  16. package/lib/cjs/Embed.js +1 -1
  17. package/lib/cjs/Formio.js +1 -1
  18. package/lib/cjs/components/Components.js +1 -5
  19. package/lib/cjs/components/_classes/component/Component.d.ts +14 -0
  20. package/lib/cjs/components/_classes/component/Component.js +33 -0
  21. package/lib/cjs/components/_classes/nested/NestedComponent.js +6 -8
  22. package/lib/cjs/components/datagrid/DataGrid.js +2 -6
  23. package/lib/cjs/package.json +1 -1
  24. package/lib/cjs/utils/formUtils.d.ts +3 -0
  25. package/lib/cjs/utils/formUtils.js +5 -2
  26. package/lib/cjs/utils/index.d.ts +3 -0
  27. package/lib/mjs/Embed.js +1 -1
  28. package/lib/mjs/Formio.js +1 -1
  29. package/lib/mjs/components/Components.js +1 -5
  30. package/lib/mjs/components/_classes/component/Component.d.ts +14 -0
  31. package/lib/mjs/components/_classes/component/Component.js +33 -0
  32. package/lib/mjs/components/_classes/nested/NestedComponent.js +6 -8
  33. package/lib/mjs/components/datagrid/DataGrid.js +2 -6
  34. package/lib/mjs/package.json +1 -1
  35. package/lib/mjs/utils/formUtils.d.ts +3 -0
  36. package/lib/mjs/utils/formUtils.js +2 -2
  37. package/lib/mjs/utils/index.d.ts +3 -0
  38. package/package.json +2 -2
@@ -20,7 +20,7 @@
20
20
 
21
21
  /*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */
22
22
 
23
- /*! formiojs v5.6.0 | https://unpkg.com/formiojs@5.6.0/LICENSE.txt */
23
+ /*! formiojs v5.6.1 | https://unpkg.com/formiojs@5.6.1/LICENSE.txt */
24
24
 
25
25
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
26
26
 
package/lib/cjs/Embed.js CHANGED
@@ -500,7 +500,7 @@ Formio.formioReady = new Promise((ready, reject) => {
500
500
  _a._formioReady = ready;
501
501
  _a._formioReadyReject = reject;
502
502
  });
503
- Formio.version = '5.6.0';
503
+ Formio.version = '5.6.1';
504
504
  // Create a report.
505
505
  Formio.Report = {
506
506
  create: (element, submission, options = {}) => __awaiter(void 0, void 0, void 0, function* () {
package/lib/cjs/Formio.js CHANGED
@@ -11,7 +11,7 @@ const CDN_1 = __importDefault(require("./CDN"));
11
11
  const providers_1 = __importDefault(require("./providers"));
12
12
  sdk_1.Formio.cdn = new CDN_1.default();
13
13
  sdk_1.Formio.Providers = providers_1.default;
14
- sdk_1.Formio.version = '5.6.0';
14
+ sdk_1.Formio.version = '5.6.1';
15
15
  CDN_1.default.defaultCDN = sdk_1.Formio.version.includes('rc')
16
16
  ? 'https://cdn.test-form.io'
17
17
  : 'https://cdn.form.io';
@@ -68,11 +68,7 @@ class Components {
68
68
  else {
69
69
  comp = new Component_1.default(component, options, data);
70
70
  }
71
- if (comp.path) {
72
- comp.eachRootChildComponentsMap((map) => {
73
- map[comp.path] = comp;
74
- });
75
- }
71
+ comp.registerComponentInstance();
76
72
  // Reset the componentMatches on the root element if any new component is created.
77
73
  let parent = comp.parent;
78
74
  while (parent) {
@@ -171,6 +171,20 @@ declare class Component extends Element {
171
171
  * @param {(map: object) => void} fn - Called once per root that exposes a `childComponentsMap`.
172
172
  */
173
173
  eachRootChildComponentsMap(fn: (map: object) => void): void;
174
+ /**
175
+ * Registers this instance in every root's `childComponentsMap`. Several components can resolve
176
+ * to one data path — see `getSharedPathKey` in `@formio/core` for the rule this follows.
177
+ * @returns {void}
178
+ */
179
+ registerComponentInstance(): void;
180
+ sharedPathKey: string | undefined;
181
+ /**
182
+ * Removes this instance from every root's `childComponentsMap`.
183
+ * @param {string} [path] - The path this instance was registered under, when it has since
184
+ * been re-keyed (a DataGrid row index change regenerates paths before unregistering).
185
+ * @returns {void}
186
+ */
187
+ unregisterComponentInstance(path?: string | undefined): void;
174
188
  /**
175
189
  * Returns if the parent should conditionally clear.
176
190
  *
@@ -441,6 +441,39 @@ class Component extends Element_1.default {
441
441
  currentRoot = currentRoot.root;
442
442
  }
443
443
  }
444
+ /**
445
+ * Registers this instance in every root's `childComponentsMap`. Several components can resolve
446
+ * to one data path — see `getSharedPathKey` in `@formio/core` for the rule this follows.
447
+ * @returns {void}
448
+ */
449
+ registerComponentInstance() {
450
+ const path = this.path;
451
+ if (!path) {
452
+ return;
453
+ }
454
+ // Recorded on every instance, not just the ones that lose the race for the path: it names
455
+ // this registration for `unregisterComponentInstance()`, which can run after `path` changed.
456
+ this.sharedPathKey = utils_1.default.getSharedPathKey(path, this.component.key);
457
+ this.eachRootChildComponentsMap((map) => {
458
+ utils_1.default.registerInstanceAtPath(map, path, this.component.key, this);
459
+ });
460
+ }
461
+ /**
462
+ * Removes this instance from every root's `childComponentsMap`.
463
+ * @param {string} [path] - The path this instance was registered under, when it has since
464
+ * been re-keyed (a DataGrid row index change regenerates paths before unregistering).
465
+ * @returns {void}
466
+ */
467
+ unregisterComponentInstance(path = this.path) {
468
+ this.eachRootChildComponentsMap((map) => {
469
+ if (map[path] === this) {
470
+ delete map[path];
471
+ }
472
+ if (this.sharedPathKey && map[this.sharedPathKey] === this) {
473
+ delete map[this.sharedPathKey];
474
+ }
475
+ });
476
+ }
444
477
  /**
445
478
  * Returns if the parent should conditionally clear.
446
479
  *
@@ -557,11 +557,7 @@ class NestedComponent extends Field_1.default {
557
557
  components = components || this.components;
558
558
  component.destroy(all);
559
559
  lodash_1.default.remove(components, { id: component.id });
560
- component.eachRootChildComponentsMap((map) => {
561
- if (map[component.path]) {
562
- delete map[component.path];
563
- }
564
- });
560
+ component.unregisterComponentInstance();
565
561
  }
566
562
  /**
567
563
  * Removes a component provided the API key of that component.
@@ -671,9 +667,11 @@ class NestedComponent extends Field_1.default {
671
667
  var _a;
672
668
  const { dirty } = flags;
673
669
  if (this.root && this.root.hasSubWizards && this.page !== this.root.page) {
674
- instance = ((_a = this.componentsMap) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(paths.dataPath))
675
- ? this.componentsMap[paths.dataPath]
676
- : this.getComponent(paths.dataPath);
670
+ // `instance` was resolved by @formio/core against this very map, shared-path rule and
671
+ // all, so only fill in what that lookup cannot reach: components keyed by their data
672
+ // path where core looked under a full path, and components absent from the map.
673
+ instance =
674
+ instance || ((_a = this.componentsMap) === null || _a === void 0 ? void 0 : _a[paths.dataPath]) || this.getComponent(paths.dataPath);
677
675
  }
678
676
  if (!instance) {
679
677
  return;
@@ -436,12 +436,8 @@ class DataGridComponent extends NestedArrayComponent_1.default {
436
436
  component.rowIndex = rowIndex;
437
437
  component.row = `${rowIndex}-${colIndex}`;
438
438
  entries.forEach(({ instance, oldPath }) => {
439
- instance.eachRootChildComponentsMap((map) => {
440
- if (map[oldPath] === instance) {
441
- delete map[oldPath];
442
- }
443
- map[instance.paths.dataPath] = instance;
444
- });
439
+ instance.unregisterComponentInstance(oldPath);
440
+ instance.registerComponentInstance();
445
441
  });
446
442
  });
447
443
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "type": "commonjs",
3
- "version": "5.6.0"
3
+ "version": "5.6.1"
4
4
  }
@@ -29,6 +29,9 @@ export const findComponents: typeof Utils.findComponents;
29
29
  export const eachComponentDataAsync: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataAsyncCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined, noScopeReset?: boolean | undefined, afterFn?: import("@formio/core").EachComponentDataAsyncCallback | undefined, localRoot?: import("@formio/core").LocalRoot | undefined) => Promise<void>;
30
30
  export const eachComponentData: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined, noScopeReset?: boolean | undefined, afterFn?: import("@formio/core").EachComponentDataCallback | undefined, localRoot?: import("@formio/core").LocalRoot | undefined) => void;
31
31
  export const getComponentKey: typeof Utils.getComponentKey;
32
+ export const getSharedPathKey: typeof Utils.getSharedPathKey;
33
+ export const registerInstanceAtPath: typeof Utils.registerInstanceAtPath;
34
+ export const resolveInstanceAtPath: typeof Utils.resolveInstanceAtPath;
32
35
  export const getContextualRowPath: any;
33
36
  export const getContextualRowData: typeof Utils.getContextualRowData;
34
37
  export const componentInfo: typeof Utils.componentInfo;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getItemTemplateKeys = exports.compareSelectResourceWithObjectTypeValues = exports.isSelectResourceWithObjectValue = exports.isComponentDataEmpty = exports.getEmptyValue = exports.findComponent = exports.applyFormChanges = exports.generateFormChange = exports.getStrings = exports.getValue = exports.escapeRegExCharacters = exports.formatAsCurrency = exports.parseFloatExt = exports.hasCondition = exports.removeComponent = exports.searchComponents = exports.getComponent = exports.matchComponent = exports.isLayoutComponent = exports.getComponentActualValue = exports.getComponentData = exports.eachComponentAsync = exports.eachComponent = exports.componentInfo = exports.getContextualRowData = exports.getContextualRowPath = exports.getComponentKey = exports.eachComponentData = exports.eachComponentDataAsync = exports.findComponents = exports.getComponentValue = exports.getComponentFromPath = exports.getBestMatch = exports.componentMatches = exports.getComponentPaths = exports.componentPath = exports.isComponentNestedDataType = exports.resetComponentScope = exports.setComponentScope = exports.getComponentPath = exports.getModelType = exports.MODEL_TYPES_OF_KNOWN_COMPONENTS = exports.uniqueName = exports.guid = exports.flattenComponents = void 0;
3
+ exports.getItemTemplateKeys = exports.compareSelectResourceWithObjectTypeValues = exports.isSelectResourceWithObjectValue = exports.isComponentDataEmpty = exports.getEmptyValue = exports.findComponent = exports.applyFormChanges = exports.generateFormChange = exports.getStrings = exports.getValue = exports.escapeRegExCharacters = exports.formatAsCurrency = exports.parseFloatExt = exports.hasCondition = exports.removeComponent = exports.searchComponents = exports.getComponent = exports.matchComponent = exports.isLayoutComponent = exports.getComponentActualValue = exports.getComponentData = exports.eachComponentAsync = exports.eachComponent = exports.componentInfo = exports.getContextualRowData = exports.getContextualRowPath = exports.resolveInstanceAtPath = exports.registerInstanceAtPath = exports.getSharedPathKey = exports.getComponentKey = exports.eachComponentData = exports.eachComponentDataAsync = exports.findComponents = exports.getComponentValue = exports.getComponentFromPath = exports.getBestMatch = exports.componentMatches = exports.getComponentPaths = exports.componentPath = exports.isComponentNestedDataType = exports.resetComponentScope = exports.setComponentScope = exports.getComponentPath = exports.getModelType = exports.MODEL_TYPES_OF_KNOWN_COMPONENTS = exports.uniqueName = exports.guid = exports.flattenComponents = void 0;
4
4
  const core_1 = require("@formio/core");
5
- const { flattenComponents, guid, uniqueName, MODEL_TYPES_OF_KNOWN_COMPONENTS, getModelType, getComponentPath, setComponentScope, resetComponentScope, isComponentNestedDataType, componentPath, getComponentPaths, componentMatches, getBestMatch, getComponentFromPath, getComponentValue, findComponents, eachComponentDataAsync, eachComponentData, getComponentKey, getContextualRowPath, getContextualRowData, componentInfo, eachComponent, eachComponentAsync, getComponentData, getComponentActualValue, isLayoutComponent, matchComponent, getComponent, searchComponents, removeComponent, hasCondition, parseFloatExt, formatAsCurrency, escapeRegExCharacters, getValue, getStrings, generateFormChange, applyFormChanges, findComponent, getEmptyValue, isComponentDataEmpty, isSelectResourceWithObjectValue, compareSelectResourceWithObjectTypeValues, getItemTemplateKeys, } = core_1.Utils;
5
+ const { flattenComponents, guid, uniqueName, MODEL_TYPES_OF_KNOWN_COMPONENTS, getModelType, getComponentPath, setComponentScope, resetComponentScope, isComponentNestedDataType, componentPath, getComponentPaths, componentMatches, getBestMatch, getComponentFromPath, getComponentValue, findComponents, eachComponentDataAsync, eachComponentData, getComponentKey, getSharedPathKey, registerInstanceAtPath, resolveInstanceAtPath, getContextualRowPath, getContextualRowData, componentInfo, eachComponent, eachComponentAsync, getComponentData, getComponentActualValue, isLayoutComponent, matchComponent, getComponent, searchComponents, removeComponent, hasCondition, parseFloatExt, formatAsCurrency, escapeRegExCharacters, getValue, getStrings, generateFormChange, applyFormChanges, findComponent, getEmptyValue, isComponentDataEmpty, isSelectResourceWithObjectValue, compareSelectResourceWithObjectTypeValues, getItemTemplateKeys, } = core_1.Utils;
6
6
  exports.flattenComponents = flattenComponents;
7
7
  exports.guid = guid;
8
8
  exports.uniqueName = uniqueName;
@@ -22,6 +22,9 @@ exports.findComponents = findComponents;
22
22
  exports.eachComponentDataAsync = eachComponentDataAsync;
23
23
  exports.eachComponentData = eachComponentData;
24
24
  exports.getComponentKey = getComponentKey;
25
+ exports.getSharedPathKey = getSharedPathKey;
26
+ exports.registerInstanceAtPath = registerInstanceAtPath;
27
+ exports.resolveInstanceAtPath = resolveInstanceAtPath;
25
28
  exports.getContextualRowPath = getContextualRowPath;
26
29
  exports.getContextualRowData = getContextualRowData;
27
30
  exports.componentInfo = componentInfo;
@@ -40,6 +40,9 @@ declare const FormioUtils: {
40
40
  eachComponentDataAsync: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataAsyncCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined, noScopeReset?: boolean | undefined, afterFn?: import("@formio/core").EachComponentDataAsyncCallback | undefined, localRoot?: import("@formio/core").LocalRoot | undefined) => Promise<void>;
41
41
  eachComponentData: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined, noScopeReset?: boolean | undefined, afterFn?: import("@formio/core").EachComponentDataCallback | undefined, localRoot?: import("@formio/core").LocalRoot | undefined) => void;
42
42
  getComponentKey: typeof import("@formio/core/lib/utils/formUtil").getComponentKey;
43
+ getSharedPathKey: typeof import("@formio/core/lib/utils/formUtil").getSharedPathKey;
44
+ registerInstanceAtPath: typeof import("@formio/core/lib/utils/formUtil").registerInstanceAtPath;
45
+ resolveInstanceAtPath: typeof import("@formio/core/lib/utils/formUtil").resolveInstanceAtPath;
43
46
  getContextualRowPath: any;
44
47
  getContextualRowData: typeof import("@formio/core/lib/utils/formUtil").getContextualRowData;
45
48
  componentInfo: typeof import("@formio/core/lib/utils/formUtil").componentInfo;
package/lib/mjs/Embed.js CHANGED
@@ -14,7 +14,7 @@ export class Formio {
14
14
  Formio._formioReady = ready;
15
15
  Formio._formioReadyReject = reject;
16
16
  });
17
- static version = '5.6.0';
17
+ static version = '5.6.1';
18
18
  static setLicense(license, norecurse = false) {
19
19
  Formio.license = license;
20
20
  if (!norecurse && Formio.FormioClass) {
package/lib/mjs/Formio.js CHANGED
@@ -4,7 +4,7 @@ import CDN from './CDN';
4
4
  import Providers from './providers';
5
5
  FormioCore.cdn = new CDN();
6
6
  FormioCore.Providers = Providers;
7
- FormioCore.version = '5.6.0';
7
+ FormioCore.version = '5.6.1';
8
8
  CDN.defaultCDN = FormioCore.version.includes('rc')
9
9
  ? 'https://cdn.test-form.io'
10
10
  : 'https://cdn.form.io';
@@ -65,11 +65,7 @@ export default class Components {
65
65
  else {
66
66
  comp = new Component(component, options, data);
67
67
  }
68
- if (comp.path) {
69
- comp.eachRootChildComponentsMap((map) => {
70
- map[comp.path] = comp;
71
- });
72
- }
68
+ comp.registerComponentInstance();
73
69
  // Reset the componentMatches on the root element if any new component is created.
74
70
  let parent = comp.parent;
75
71
  while (parent) {
@@ -171,6 +171,20 @@ declare class Component extends Element {
171
171
  * @param {(map: object) => void} fn - Called once per root that exposes a `childComponentsMap`.
172
172
  */
173
173
  eachRootChildComponentsMap(fn: (map: object) => void): void;
174
+ /**
175
+ * Registers this instance in every root's `childComponentsMap`. Several components can resolve
176
+ * to one data path — see `getSharedPathKey` in `@formio/core` for the rule this follows.
177
+ * @returns {void}
178
+ */
179
+ registerComponentInstance(): void;
180
+ sharedPathKey: string | undefined;
181
+ /**
182
+ * Removes this instance from every root's `childComponentsMap`.
183
+ * @param {string} [path] - The path this instance was registered under, when it has since
184
+ * been re-keyed (a DataGrid row index change regenerates paths before unregistering).
185
+ * @returns {void}
186
+ */
187
+ unregisterComponentInstance(path?: string | undefined): void;
174
188
  /**
175
189
  * Returns if the parent should conditionally clear.
176
190
  *
@@ -437,6 +437,39 @@ export default class Component extends Element {
437
437
  currentRoot = currentRoot.root;
438
438
  }
439
439
  }
440
+ /**
441
+ * Registers this instance in every root's `childComponentsMap`. Several components can resolve
442
+ * to one data path — see `getSharedPathKey` in `@formio/core` for the rule this follows.
443
+ * @returns {void}
444
+ */
445
+ registerComponentInstance() {
446
+ const path = this.path;
447
+ if (!path) {
448
+ return;
449
+ }
450
+ // Recorded on every instance, not just the ones that lose the race for the path: it names
451
+ // this registration for `unregisterComponentInstance()`, which can run after `path` changed.
452
+ this.sharedPathKey = FormioUtils.getSharedPathKey(path, this.component.key);
453
+ this.eachRootChildComponentsMap((map) => {
454
+ FormioUtils.registerInstanceAtPath(map, path, this.component.key, this);
455
+ });
456
+ }
457
+ /**
458
+ * Removes this instance from every root's `childComponentsMap`.
459
+ * @param {string} [path] - The path this instance was registered under, when it has since
460
+ * been re-keyed (a DataGrid row index change regenerates paths before unregistering).
461
+ * @returns {void}
462
+ */
463
+ unregisterComponentInstance(path = this.path) {
464
+ this.eachRootChildComponentsMap((map) => {
465
+ if (map[path] === this) {
466
+ delete map[path];
467
+ }
468
+ if (this.sharedPathKey && map[this.sharedPathKey] === this) {
469
+ delete map[this.sharedPathKey];
470
+ }
471
+ });
472
+ }
440
473
  /**
441
474
  * Returns if the parent should conditionally clear.
442
475
  *
@@ -553,11 +553,7 @@ export default class NestedComponent extends Field {
553
553
  components = components || this.components;
554
554
  component.destroy(all);
555
555
  _.remove(components, { id: component.id });
556
- component.eachRootChildComponentsMap((map) => {
557
- if (map[component.path]) {
558
- delete map[component.path];
559
- }
560
- });
556
+ component.unregisterComponentInstance();
561
557
  }
562
558
  /**
563
559
  * Removes a component provided the API key of that component.
@@ -666,9 +662,11 @@ export default class NestedComponent extends Field {
666
662
  validationProcessor({ scope, data, row, instance, paths }, flags) {
667
663
  const { dirty } = flags;
668
664
  if (this.root && this.root.hasSubWizards && this.page !== this.root.page) {
669
- instance = this.componentsMap?.hasOwnProperty(paths.dataPath)
670
- ? this.componentsMap[paths.dataPath]
671
- : this.getComponent(paths.dataPath);
665
+ // `instance` was resolved by @formio/core against this very map, shared-path rule and
666
+ // all, so only fill in what that lookup cannot reach: components keyed by their data
667
+ // path where core looked under a full path, and components absent from the map.
668
+ instance =
669
+ instance || this.componentsMap?.[paths.dataPath] || this.getComponent(paths.dataPath);
672
670
  }
673
671
  if (!instance) {
674
672
  return;
@@ -430,12 +430,8 @@ export default class DataGridComponent extends NestedArrayComponent {
430
430
  component.rowIndex = rowIndex;
431
431
  component.row = `${rowIndex}-${colIndex}`;
432
432
  entries.forEach(({ instance, oldPath }) => {
433
- instance.eachRootChildComponentsMap((map) => {
434
- if (map[oldPath] === instance) {
435
- delete map[oldPath];
436
- }
437
- map[instance.paths.dataPath] = instance;
438
- });
433
+ instance.unregisterComponentInstance(oldPath);
434
+ instance.registerComponentInstance();
439
435
  });
440
436
  });
441
437
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "5.6.0"
3
+ "version": "5.6.1"
4
4
 
5
5
  }
@@ -29,6 +29,9 @@ export const findComponents: typeof Utils.findComponents;
29
29
  export const eachComponentDataAsync: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataAsyncCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined, noScopeReset?: boolean | undefined, afterFn?: import("@formio/core").EachComponentDataAsyncCallback | undefined, localRoot?: import("@formio/core").LocalRoot | undefined) => Promise<void>;
30
30
  export const eachComponentData: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined, noScopeReset?: boolean | undefined, afterFn?: import("@formio/core").EachComponentDataCallback | undefined, localRoot?: import("@formio/core").LocalRoot | undefined) => void;
31
31
  export const getComponentKey: typeof Utils.getComponentKey;
32
+ export const getSharedPathKey: typeof Utils.getSharedPathKey;
33
+ export const registerInstanceAtPath: typeof Utils.registerInstanceAtPath;
34
+ export const resolveInstanceAtPath: typeof Utils.resolveInstanceAtPath;
32
35
  export const getContextualRowPath: any;
33
36
  export const getContextualRowData: typeof Utils.getContextualRowData;
34
37
  export const componentInfo: typeof Utils.componentInfo;
@@ -1,3 +1,3 @@
1
1
  import { Utils } from '@formio/core';
2
- const { flattenComponents, guid, uniqueName, MODEL_TYPES_OF_KNOWN_COMPONENTS, getModelType, getComponentPath, setComponentScope, resetComponentScope, isComponentNestedDataType, componentPath, getComponentPaths, componentMatches, getBestMatch, getComponentFromPath, getComponentValue, findComponents, eachComponentDataAsync, eachComponentData, getComponentKey, getContextualRowPath, getContextualRowData, componentInfo, eachComponent, eachComponentAsync, getComponentData, getComponentActualValue, isLayoutComponent, matchComponent, getComponent, searchComponents, removeComponent, hasCondition, parseFloatExt, formatAsCurrency, escapeRegExCharacters, getValue, getStrings, generateFormChange, applyFormChanges, findComponent, getEmptyValue, isComponentDataEmpty, isSelectResourceWithObjectValue, compareSelectResourceWithObjectTypeValues, getItemTemplateKeys, } = Utils;
3
- export { flattenComponents, guid, uniqueName, MODEL_TYPES_OF_KNOWN_COMPONENTS, getModelType, getComponentPath, setComponentScope, resetComponentScope, isComponentNestedDataType, componentPath, getComponentPaths, componentMatches, getBestMatch, getComponentFromPath, getComponentValue, findComponents, eachComponentDataAsync, eachComponentData, getComponentKey, getContextualRowPath, getContextualRowData, componentInfo, eachComponent, eachComponentAsync, getComponentData, getComponentActualValue, isLayoutComponent, matchComponent, getComponent, searchComponents, removeComponent, hasCondition, parseFloatExt, formatAsCurrency, escapeRegExCharacters, getValue, getStrings, generateFormChange, applyFormChanges, findComponent, getEmptyValue, isComponentDataEmpty, isSelectResourceWithObjectValue, compareSelectResourceWithObjectTypeValues, getItemTemplateKeys, };
2
+ const { flattenComponents, guid, uniqueName, MODEL_TYPES_OF_KNOWN_COMPONENTS, getModelType, getComponentPath, setComponentScope, resetComponentScope, isComponentNestedDataType, componentPath, getComponentPaths, componentMatches, getBestMatch, getComponentFromPath, getComponentValue, findComponents, eachComponentDataAsync, eachComponentData, getComponentKey, getSharedPathKey, registerInstanceAtPath, resolveInstanceAtPath, getContextualRowPath, getContextualRowData, componentInfo, eachComponent, eachComponentAsync, getComponentData, getComponentActualValue, isLayoutComponent, matchComponent, getComponent, searchComponents, removeComponent, hasCondition, parseFloatExt, formatAsCurrency, escapeRegExCharacters, getValue, getStrings, generateFormChange, applyFormChanges, findComponent, getEmptyValue, isComponentDataEmpty, isSelectResourceWithObjectValue, compareSelectResourceWithObjectTypeValues, getItemTemplateKeys, } = Utils;
3
+ export { flattenComponents, guid, uniqueName, MODEL_TYPES_OF_KNOWN_COMPONENTS, getModelType, getComponentPath, setComponentScope, resetComponentScope, isComponentNestedDataType, componentPath, getComponentPaths, componentMatches, getBestMatch, getComponentFromPath, getComponentValue, findComponents, eachComponentDataAsync, eachComponentData, getComponentKey, getSharedPathKey, registerInstanceAtPath, resolveInstanceAtPath, getContextualRowPath, getContextualRowData, componentInfo, eachComponent, eachComponentAsync, getComponentData, getComponentActualValue, isLayoutComponent, matchComponent, getComponent, searchComponents, removeComponent, hasCondition, parseFloatExt, formatAsCurrency, escapeRegExCharacters, getValue, getStrings, generateFormChange, applyFormChanges, findComponent, getEmptyValue, isComponentDataEmpty, isSelectResourceWithObjectValue, compareSelectResourceWithObjectTypeValues, getItemTemplateKeys, };
@@ -40,6 +40,9 @@ declare const FormioUtils: {
40
40
  eachComponentDataAsync: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataAsyncCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined, noScopeReset?: boolean | undefined, afterFn?: import("@formio/core").EachComponentDataAsyncCallback | undefined, localRoot?: import("@formio/core").LocalRoot | undefined) => Promise<void>;
41
41
  eachComponentData: (components: import("@formio/core").Component[], data: import("@formio/core").DataObject, fn: import("@formio/core").EachComponentDataCallback, includeAll?: boolean | undefined, local?: boolean | undefined, parent?: import("@formio/core").Component | undefined, parentPaths?: import("@formio/core").ComponentPaths | undefined, noScopeReset?: boolean | undefined, afterFn?: import("@formio/core").EachComponentDataCallback | undefined, localRoot?: import("@formio/core").LocalRoot | undefined) => void;
42
42
  getComponentKey: typeof import("@formio/core/lib/utils/formUtil").getComponentKey;
43
+ getSharedPathKey: typeof import("@formio/core/lib/utils/formUtil").getSharedPathKey;
44
+ registerInstanceAtPath: typeof import("@formio/core/lib/utils/formUtil").registerInstanceAtPath;
45
+ resolveInstanceAtPath: typeof import("@formio/core/lib/utils/formUtil").resolveInstanceAtPath;
43
46
  getContextualRowPath: any;
44
47
  getContextualRowData: typeof import("@formio/core/lib/utils/formUtil").getContextualRowData;
45
48
  componentInfo: typeof import("@formio/core/lib/utils/formUtil").componentInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.6.0",
3
+ "version": "5.6.1",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {
@@ -57,7 +57,7 @@
57
57
  "homepage": "https://github.com/formio/formio.js#readme",
58
58
  "dependencies": {
59
59
  "@formio/bootstrap": "^4.0.5",
60
- "@formio/core": "^2.8.3",
60
+ "@formio/core": "^2.9.0",
61
61
  "@formio/text-mask-addons": "^3.8.0-formio.4",
62
62
  "@formio/vanilla-text-mask": "^5.1.1-formio.1",
63
63
  "abortcontroller-polyfill": "^1.7.5",