@dyedurham/search-and-file-widget 1.5.9 → 1.5.10

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.
@@ -50739,6 +50739,33 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
50739
50739
  }
50740
50740
  return obj;
50741
50741
  }
50742
+ function copyWithShape(shape, source) {
50743
+ if (shape === null || shape === void 0) {
50744
+ return source;
50745
+ }
50746
+ if (Array.isArray(shape)) {
50747
+ if (!Array.isArray(source)) {
50748
+ return [];
50749
+ }
50750
+ if (!shape.length) {
50751
+ return source.map((item) => copyWithShape(item, item));
50752
+ }
50753
+ return source.map((item) => copyWithShape(shape[0], item));
50754
+ }
50755
+ if (typeof shape !== "object") {
50756
+ return source;
50757
+ }
50758
+ if (source === null || source === void 0 || typeof source !== "object") {
50759
+ return source;
50760
+ }
50761
+ const result = {};
50762
+ for (const key of Object.keys(shape)) {
50763
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
50764
+ result[key] = copyWithShape(shape[key], source[key]);
50765
+ }
50766
+ }
50767
+ return result;
50768
+ }
50742
50769
  function toYyyyMmDd(d) {
50743
50770
  if (!d)
50744
50771
  return void 0;
@@ -77425,7 +77452,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
77425
77452
  const task = this.task();
77426
77453
  if (task) {
77427
77454
  const contacts = task.entity.affiliations.filter((a) => {
77428
- console.log(a.role);
77429
77455
  return a.role.role_name === "Contact";
77430
77456
  });
77431
77457
  this.contactsFields = generateOntarioFormationFormContactControl(contacts);
@@ -86586,7 +86612,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86586
86612
  this.activeStep.set(Step.Validate);
86587
86613
  return;
86588
86614
  }
86589
- const dataWasChanged = !deepEqual(currentMappedPayload, taskFromDeltaData);
86615
+ const dataWasChanged = !deepEqual(currentMappedPayload, copyWithShape(currentMappedPayload, taskFromDeltaData));
86590
86616
  this.dataWasChanged.set(dataWasChanged);
86591
86617
  this.activeStep.set(dataWasChanged ? Step.Validate : Step.FilingPreview);
86592
86618
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "1.5.9",
3
+ "version": "1.5.10",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {