@esri/solution-form 5.2.9 → 5.2.11

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.
@@ -30,7 +30,6 @@ export declare function swizzleFormObject(zipObject: JSZip, templateDictionary:
30
30
  * @param templateDictionary Dictionary of replacement values
31
31
  * @returns Promise that resolves to the updated zip file item
32
32
  */
33
- export declare function _updateZipObjectBinaryContent(zipFileItem: common.IZipObjectContentItem, templateDictionary: any): Promise<common.IZipObjectContentItem>;
34
33
  /**
35
34
  * Updates the text content of a zip object.
36
35
  *
@@ -15,10 +15,9 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports._updateZipObjectTextContent = exports._updateZipObjectBinaryContent = exports.swizzleFormObject = void 0;
18
+ exports._updateZipObjectTextContent = exports.swizzleFormObject = void 0;
19
19
  const tslib_1 = require("tslib");
20
20
  const common = tslib_1.__importStar(require("@esri/solution-common"));
21
- const jszip_1 = tslib_1.__importDefault(require("jszip"));
22
21
  // ------------------------------------------------------------------------------------------------------------------ //
23
22
  /**
24
23
  * Detemplatizes Form data and swizzles the AGO ids of a zip object if they are present in the template dictionary.
@@ -30,27 +29,36 @@ const jszip_1 = tslib_1.__importDefault(require("jszip"));
30
29
  async function swizzleFormObject(zipObject, templateDictionary) {
31
30
  // Get the contents of the zip object
32
31
  const zipObjectContents = await common.getZipObjectContents(zipObject);
32
+ // Set the file dates to be a day in the past offset for time zone to get around S123 bug with dates during unzipping
33
+ let now = new Date();
34
+ now = new Date(now.valueOf()
35
+ - 86400000 // back up 1 day in milliseconds
36
+ - now.getTimezoneOffset() * 1000 * 60 // back up the time zone offset in milliseconds
37
+ );
33
38
  // Swizzle the contents of each file in a zip file and replace them in the zip object
34
- const zipObjectUpdatePromises = [];
39
+ //const zipObjectUpdatePromises: Array<Promise<common.IZipObjectContentItem>> = [];
35
40
  zipObjectContents.forEach((zipFileItem) => {
36
41
  // Separate the binary files from the text files
37
42
  if (typeof zipFileItem.content === "string") {
38
43
  const updatedZipContent = _updateZipObjectTextContent(zipFileItem, templateDictionary);
39
44
  // Replace the file content in the zip object
40
- zipObject.file(zipFileItem.file, updatedZipContent);
45
+ zipObject.file(zipFileItem.file, updatedZipContent, { date: now });
41
46
  }
42
47
  else {
43
- // Only update XLSX binary files
48
+ // Update XLSX binary files' timestamp to match the other files
44
49
  if (zipFileItem.file.endsWith(".xlsx")) {
45
- zipObjectUpdatePromises.push(_updateZipObjectBinaryContent(zipFileItem, templateDictionary));
50
+ zipObject.file(zipFileItem.file, zipFileItem.content, { date: now });
51
+ //zipObjectUpdatePromises.push(_updateZipObjectBinaryContent(zipFileItem, templateDictionary));
46
52
  }
47
53
  }
48
54
  });
55
+ /*
49
56
  const asyncUpdates = await Promise.all(zipObjectUpdatePromises);
50
- asyncUpdates.forEach((zipFileItem) => {
51
- // Replace the file content in the zip object
52
- zipObject.file(zipFileItem.file, zipFileItem.content);
57
+ asyncUpdates.forEach((zipFileItem: common.IZipObjectContentItem) => {
58
+ // Replace the file content in the zip object
59
+ zipObject.file(zipFileItem.file, zipFileItem.content);
53
60
  });
61
+ */
54
62
  return Promise.resolve(zipObject);
55
63
  }
56
64
  exports.swizzleFormObject = swizzleFormObject;
@@ -62,16 +70,22 @@ exports.swizzleFormObject = swizzleFormObject;
62
70
  * @param templateDictionary Dictionary of replacement values
63
71
  * @returns Promise that resolves to the updated zip file item
64
72
  */
65
- async function _updateZipObjectBinaryContent(zipFileItem, templateDictionary) {
66
- const updatedZipContent = await swizzleFormObject(await jszip_1.default.loadAsync(zipFileItem.content), templateDictionary);
67
- // Replace the file content in the zip file item
68
- const updatedZipFileItem = {
69
- file: zipFileItem.file,
70
- content: await common.zipObjectToZipFile(updatedZipContent, zipFileItem.file)
71
- };
72
- return Promise.resolve(updatedZipFileItem);
73
+ /*
74
+ export async function _updateZipObjectBinaryContent(
75
+ zipFileItem: common.IZipObjectContentItem,
76
+ templateDictionary: any
77
+ ): Promise<common.IZipObjectContentItem> {
78
+ const updatedZipContent = await swizzleFormObject(await JSZip.loadAsync(zipFileItem.content), templateDictionary);
79
+
80
+ // Replace the file content in the zip file item
81
+ const updatedZipFileItem = {
82
+ file: zipFileItem.file,
83
+ content: await common.zipObjectToZipFile(updatedZipContent, zipFileItem.file)
84
+ }
85
+
86
+ return Promise.resolve(updatedZipFileItem);
73
87
  }
74
- exports._updateZipObjectBinaryContent = _updateZipObjectBinaryContent;
88
+ */
75
89
  /**
76
90
  * Updates the text content of a zip object.
77
91
  *
@@ -86,7 +100,7 @@ function _updateZipObjectTextContent(zipFileItem, templateDictionary) {
86
100
  let updatedZipObjectContent = zipFileItem.content;
87
101
  updatedZipObjectContent = common.replaceInTemplate(zipFileItem.content, templateDictionary);
88
102
  // Find the AGO ids in the file content
89
- const agoIdMatches = updatedZipObjectContent.match(agoIdRegEx) ?? [];
103
+ const agoIdMatches = common.dedupe(updatedZipObjectContent.match(agoIdRegEx) ?? []);
90
104
  // Replace things that look like AGO ids in the file content iff they are present in the template dictionary
91
105
  agoIdMatches.forEach((match) => {
92
106
  const replacement = templateDictionary[match];
@@ -1 +1 @@
1
- {"version":3,"file":"formUtils.js","sourceRoot":"","sources":["../../src/formUtils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH,sEAAgD;AAChD,0DAA0B;AAE1B,wHAAwH;AAExH;;;;;;GAMG;AACI,KAAK,UAAU,iBAAiB,CACrC,SAAgB,EAChB,kBAAuB;IAEvB,qCAAqC;IACrC,MAAM,iBAAiB,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAEvE,qFAAqF;IACrF,MAAM,uBAAuB,GAAiD,EAAE,CAAC;IACjF,iBAAiB,CAAC,OAAO,CACvB,CAAC,WAA0C,EAAE,EAAE;QAE7C,gDAAgD;QAChD,IAAI,OAAO,WAAW,CAAC,OAAO,KAAK,QAAQ,EAAE;YAC3C,MAAM,iBAAiB,GAA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AC;IAEpF,4GAA4G;IAC5G,YAAY,CAAC,OAAO,CAAC,CAAC,KAAa,EAAE,EAAE;QACrC,MAAM,WAAW,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAC9C,IAAI,OAAO,WAAW,EAAE,MAAM,KAAK,QAAQ,EAAE;YAC3C,uBAAuB,GAAG,uBAAuB,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;SAC5G;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,uBAAuB,CAAC;AACjC,CAAC;AAxBD,kEAwBC"}
@@ -30,7 +30,6 @@ export declare function swizzleFormObject(zipObject: JSZip, templateDictionary:
30
30
  * @param templateDictionary Dictionary of replacement values
31
31
  * @returns Promise that resolves to the updated zip file item
32
32
  */
33
- export declare function _updateZipObjectBinaryContent(zipFileItem: common.IZipObjectContentItem, templateDictionary: any): Promise<common.IZipObjectContentItem>;
34
33
  /**
35
34
  * Updates the text content of a zip object.
36
35
  *
@@ -14,7 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import * as common from "@esri/solution-common";
17
- import JSZip from "jszip";
18
17
  // ------------------------------------------------------------------------------------------------------------------ //
19
18
  /**
20
19
  * Detemplatizes Form data and swizzles the AGO ids of a zip object if they are present in the template dictionary.
@@ -26,27 +25,36 @@ import JSZip from "jszip";
26
25
  export async function swizzleFormObject(zipObject, templateDictionary) {
27
26
  // Get the contents of the zip object
28
27
  const zipObjectContents = await common.getZipObjectContents(zipObject);
28
+ // Set the file dates to be a day in the past offset for time zone to get around S123 bug with dates during unzipping
29
+ let now = new Date();
30
+ now = new Date(now.valueOf()
31
+ - 86400000 // back up 1 day in milliseconds
32
+ - now.getTimezoneOffset() * 1000 * 60 // back up the time zone offset in milliseconds
33
+ );
29
34
  // Swizzle the contents of each file in a zip file and replace them in the zip object
30
- const zipObjectUpdatePromises = [];
35
+ //const zipObjectUpdatePromises: Array<Promise<common.IZipObjectContentItem>> = [];
31
36
  zipObjectContents.forEach((zipFileItem) => {
32
37
  // Separate the binary files from the text files
33
38
  if (typeof zipFileItem.content === "string") {
34
39
  const updatedZipContent = _updateZipObjectTextContent(zipFileItem, templateDictionary);
35
40
  // Replace the file content in the zip object
36
- zipObject.file(zipFileItem.file, updatedZipContent);
41
+ zipObject.file(zipFileItem.file, updatedZipContent, { date: now });
37
42
  }
38
43
  else {
39
- // Only update XLSX binary files
44
+ // Update XLSX binary files' timestamp to match the other files
40
45
  if (zipFileItem.file.endsWith(".xlsx")) {
41
- zipObjectUpdatePromises.push(_updateZipObjectBinaryContent(zipFileItem, templateDictionary));
46
+ zipObject.file(zipFileItem.file, zipFileItem.content, { date: now });
47
+ //zipObjectUpdatePromises.push(_updateZipObjectBinaryContent(zipFileItem, templateDictionary));
42
48
  }
43
49
  }
44
50
  });
51
+ /*
45
52
  const asyncUpdates = await Promise.all(zipObjectUpdatePromises);
46
- asyncUpdates.forEach((zipFileItem) => {
47
- // Replace the file content in the zip object
48
- zipObject.file(zipFileItem.file, zipFileItem.content);
53
+ asyncUpdates.forEach((zipFileItem: common.IZipObjectContentItem) => {
54
+ // Replace the file content in the zip object
55
+ zipObject.file(zipFileItem.file, zipFileItem.content);
49
56
  });
57
+ */
50
58
  return Promise.resolve(zipObject);
51
59
  }
52
60
  // ------------------------------------------------------------------------------------------------------------------ //
@@ -57,15 +65,22 @@ export async function swizzleFormObject(zipObject, templateDictionary) {
57
65
  * @param templateDictionary Dictionary of replacement values
58
66
  * @returns Promise that resolves to the updated zip file item
59
67
  */
60
- export async function _updateZipObjectBinaryContent(zipFileItem, templateDictionary) {
61
- const updatedZipContent = await swizzleFormObject(await JSZip.loadAsync(zipFileItem.content), templateDictionary);
62
- // Replace the file content in the zip file item
63
- const updatedZipFileItem = {
64
- file: zipFileItem.file,
65
- content: await common.zipObjectToZipFile(updatedZipContent, zipFileItem.file)
66
- };
67
- return Promise.resolve(updatedZipFileItem);
68
+ /*
69
+ export async function _updateZipObjectBinaryContent(
70
+ zipFileItem: common.IZipObjectContentItem,
71
+ templateDictionary: any
72
+ ): Promise<common.IZipObjectContentItem> {
73
+ const updatedZipContent = await swizzleFormObject(await JSZip.loadAsync(zipFileItem.content), templateDictionary);
74
+
75
+ // Replace the file content in the zip file item
76
+ const updatedZipFileItem = {
77
+ file: zipFileItem.file,
78
+ content: await common.zipObjectToZipFile(updatedZipContent, zipFileItem.file)
79
+ }
80
+
81
+ return Promise.resolve(updatedZipFileItem);
68
82
  }
83
+ */
69
84
  /**
70
85
  * Updates the text content of a zip object.
71
86
  *
@@ -80,7 +95,7 @@ export function _updateZipObjectTextContent(zipFileItem, templateDictionary) {
80
95
  let updatedZipObjectContent = zipFileItem.content;
81
96
  updatedZipObjectContent = common.replaceInTemplate(zipFileItem.content, templateDictionary);
82
97
  // Find the AGO ids in the file content
83
- const agoIdMatches = updatedZipObjectContent.match(agoIdRegEx) ?? [];
98
+ const agoIdMatches = common.dedupe(updatedZipObjectContent.match(agoIdRegEx) ?? []);
84
99
  // Replace things that look like AGO ids in the file content iff they are present in the template dictionary
85
100
  agoIdMatches.forEach((match) => {
86
101
  const replacement = templateDictionary[match];
@@ -1 +1 @@
1
- {"version":3,"file":"formUtils.js","sourceRoot":"","sources":["../../src/formUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wHAAwH;AAExH;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,SAAgB,EAChB,kBAAuB;IAEvB,qCAAqC;IACrC,MAAM,iBAAiB,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAEvE,qFAAqF;IACrF,MAAM,uBAAuB,GAAiD,EAAE,CAAC;IACjF,iBAAiB,CAAC,OAAO,CACvB,CAAC,WAA0C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C;IACvC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC;IAEpF,4GAA4G;IAC5G,YAAY,CAAC,OAAO,CAAC,CAAC,KAAa,EAAE,EAAE;QACrC,MAAM,WAAW,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAC9C,IAAI,OAAO,WAAW,EAAE,MAAM,KAAK,QAAQ,EAAE;YAC3C,uBAAuB,GAAG,uBAAuB,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;SAC5G;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,uBAAuB,CAAC;AACjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solution-form",
3
- "version": "5.2.9",
3
+ "version": "5.2.11",
4
4
  "description": "Manages the creation and deployment of form item types for @esri/solution.js.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -23,21 +23,21 @@
23
23
  "@esri/arcgis-rest-portal": "^3.7.0",
24
24
  "@esri/arcgis-rest-request": "^3.7.0",
25
25
  "@esri/arcgis-rest-service-admin": "^3.7.0",
26
- "@esri/hub-common": "^14.106.0",
26
+ "@esri/hub-common": "^14.109.1",
27
27
  "@esri/hub-initiatives": "^14.0.0",
28
- "@esri/hub-sites": "^14.2.3",
28
+ "@esri/hub-sites": "^14.2.4",
29
29
  "@esri/hub-teams": "^14.1.0",
30
- "@esri/solution-common": "^5.2.9",
31
- "@esri/solution-feature-layer": "^5.2.9",
32
- "@esri/solution-file": "^5.2.9",
33
- "@esri/solution-group": "^5.2.9",
34
- "@esri/solution-simple-types": "^5.2.9",
35
- "@esri/solution-storymap": "^5.2.9",
30
+ "@esri/solution-common": "^5.2.11",
31
+ "@esri/solution-feature-layer": "^5.2.11",
32
+ "@esri/solution-file": "^5.2.11",
33
+ "@esri/solution-group": "^5.2.11",
34
+ "@esri/solution-simple-types": "^5.2.11",
35
+ "@esri/solution-storymap": "^5.2.11",
36
36
  "@types/jasmine": "^5.1.4",
37
37
  "fetch-mock": "^7.7.3",
38
38
  "jasmine": "^5.1.0",
39
39
  "jasmine-core": "^5.1.0",
40
- "rollup": "^4.13.0"
40
+ "rollup": "^4.13.2"
41
41
  },
42
42
  "dependencies": {
43
43
  "tslib": "1.14.1"
@@ -78,5 +78,5 @@
78
78
  "esri",
79
79
  "ES6"
80
80
  ],
81
- "gitHead": "bc37cab732ed83b30f5a160915c5f3ed2aaa438e"
81
+ "gitHead": "b18da792b764d1a13133e9d787a4f7e64618d12a"
82
82
  }