@flipdish/ui-library 0.26.1 → 0.26.2
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/utilities/renderUtils/importWithRetry.utils.cjs +4 -1
- package/dist/utilities/renderUtils/importWithRetry.utils.cjs.map +1 -1
- package/dist/utilities/renderUtils/importWithRetry.utils.d.ts.map +1 -1
- package/dist/utilities/renderUtils/importWithRetry.utils.js +4 -1
- package/dist/utilities/renderUtils/importWithRetry.utils.js.map +1 -1
- package/package.json +2 -2
|
@@ -20,7 +20,10 @@ const importWithRetry = async (componentImport) => {
|
|
|
20
20
|
// Assuming that the user is not on the latest version of the application.
|
|
21
21
|
// Let's refresh the page immediately.
|
|
22
22
|
sessionStorageUtils.pageForceRefreshedStorage.set(true);
|
|
23
|
-
|
|
23
|
+
window.location.reload();
|
|
24
|
+
// Never settle: the reload is replacing the page. Resolving here would let React
|
|
25
|
+
// read `_result.default` on `undefined` before navigation completes and throw.
|
|
26
|
+
return new Promise(() => { });
|
|
24
27
|
}
|
|
25
28
|
// The page has already been reloaded
|
|
26
29
|
// Assuming that user is already using the latest version of the application.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importWithRetry.utils.cjs","sources":["../../../src/utilities/renderUtils/importWithRetry.utils.ts"],"sourcesContent":[null],"names":["pageForceRefreshedStorage"],"mappings":";;;;AAEA;;;;;AAKG;AACH;MACa,eAAe,GAAG,OAAO,eAA0B,KAAI;IAClE,MAAM,gCAAgC,GAAGA,6CAAyB,CAAC,GAAG,EAAE,KAAK,IAAI;AAEjF,IAAA,IAAI,SAAsD;AAC1D,IAAA,IAAI;AACF,QAAA,SAAS,GAAG,MAAM,eAAe,EAAE;IACrC;IAAE,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,gCAAgC,EAAE;;;AAGrC,YAAAA,6CAAyB,CAAC,GAAG,CAAC,IAAI,CAAC;AACnC,YAAA,
|
|
1
|
+
{"version":3,"file":"importWithRetry.utils.cjs","sources":["../../../src/utilities/renderUtils/importWithRetry.utils.ts"],"sourcesContent":[null],"names":["pageForceRefreshedStorage"],"mappings":";;;;AAEA;;;;;AAKG;AACH;MACa,eAAe,GAAG,OAAO,eAA0B,KAAI;IAClE,MAAM,gCAAgC,GAAGA,6CAAyB,CAAC,GAAG,EAAE,KAAK,IAAI;AAEjF,IAAA,IAAI,SAAsD;AAC1D,IAAA,IAAI;AACF,QAAA,SAAS,GAAG,MAAM,eAAe,EAAE;IACrC;IAAE,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,gCAAgC,EAAE;;;AAGrC,YAAAA,6CAAyB,CAAC,GAAG,CAAC,IAAI,CAAC;AACnC,YAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE;;;YAGxB,OAAO,IAAI,OAAO,CAAQ,MAAK,EAAE,CAAC,CAAC;QACrC;;;;AAKA,QAAA,MAAM,KAAK;IACb;;;AAIA,IAAAA,6CAAyB,CAAC,GAAG,CAAC,KAAK,CAAC;AACpC,IAAA,OAAO,SAAS;AAClB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importWithRetry.utils.d.ts","sourceRoot":"","sources":["../../../src/utilities/renderUtils/importWithRetry.utils.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,eAAO,MAAM,eAAe,GAAU,iBAAiB,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"importWithRetry.utils.d.ts","sourceRoot":"","sources":["../../../src/utilities/renderUtils/importWithRetry.utils.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,eAAO,MAAM,eAAe,GAAU,iBAAiB,MAAM,GAAG,iBA2B/D,CAAC"}
|
|
@@ -18,7 +18,10 @@ const importWithRetry = async (componentImport) => {
|
|
|
18
18
|
// Assuming that the user is not on the latest version of the application.
|
|
19
19
|
// Let's refresh the page immediately.
|
|
20
20
|
pageForceRefreshedStorage.set(true);
|
|
21
|
-
|
|
21
|
+
window.location.reload();
|
|
22
|
+
// Never settle: the reload is replacing the page. Resolving here would let React
|
|
23
|
+
// read `_result.default` on `undefined` before navigation completes and throw.
|
|
24
|
+
return new Promise(() => { });
|
|
22
25
|
}
|
|
23
26
|
// The page has already been reloaded
|
|
24
27
|
// Assuming that user is already using the latest version of the application.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importWithRetry.utils.js","sources":["../../../src/utilities/renderUtils/importWithRetry.utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;;AAKG;AACH;MACa,eAAe,GAAG,OAAO,eAA0B,KAAI;IAClE,MAAM,gCAAgC,GAAG,yBAAyB,CAAC,GAAG,EAAE,KAAK,IAAI;AAEjF,IAAA,IAAI,SAAsD;AAC1D,IAAA,IAAI;AACF,QAAA,SAAS,GAAG,MAAM,eAAe,EAAE;IACrC;IAAE,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,gCAAgC,EAAE;;;AAGrC,YAAA,yBAAyB,CAAC,GAAG,CAAC,IAAI,CAAC;AACnC,YAAA,
|
|
1
|
+
{"version":3,"file":"importWithRetry.utils.js","sources":["../../../src/utilities/renderUtils/importWithRetry.utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;;AAKG;AACH;MACa,eAAe,GAAG,OAAO,eAA0B,KAAI;IAClE,MAAM,gCAAgC,GAAG,yBAAyB,CAAC,GAAG,EAAE,KAAK,IAAI;AAEjF,IAAA,IAAI,SAAsD;AAC1D,IAAA,IAAI;AACF,QAAA,SAAS,GAAG,MAAM,eAAe,EAAE;IACrC;IAAE,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,gCAAgC,EAAE;;;AAGrC,YAAA,yBAAyB,CAAC,GAAG,CAAC,IAAI,CAAC;AACnC,YAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE;;;YAGxB,OAAO,IAAI,OAAO,CAAQ,MAAK,EAAE,CAAC,CAAC;QACrC;;;;AAKA,QAAA,MAAM,KAAK;IACb;;;AAIA,IAAA,yBAAyB,CAAC,GAAG,CAAC,KAAK,CAAC;AACpC,IAAA,OAAO,SAAS;AAClB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flipdish/ui-library",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.2",
|
|
4
4
|
"description": "Flipdish Design System — atomic-design component library (Tailwind v4 + UntitledUI + React Aria).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"vitest": "^4.1.10"
|
|
273
273
|
},
|
|
274
274
|
"scripts": {
|
|
275
|
-
"build": "rimraf dist && node scripts/check-public-surface.mjs && pnpm build:web && pnpm build:native && node scripts/verify-build.mjs && node scripts/check-exports-resolution.mjs",
|
|
275
|
+
"build": "rimraf dist && node scripts/check-public-surface.mjs && node scripts/check-native-conventions.mjs && pnpm build:web && pnpm build:native && node scripts/verify-build.mjs && node scripts/check-exports-resolution.mjs",
|
|
276
276
|
"build:web": "rollup -c && tsc -p tsconfig.build.json",
|
|
277
277
|
"build:native": "rollup -c rollup.native.config.js && tsc -p tsconfig.build.native.json && node scripts/finalise-native-types.mjs && node scripts/emit-native-stubs.mjs",
|
|
278
278
|
"lint:imports": "node scripts/check-deep-imports.mjs",
|