@olenbetong/appframe-core 2.7.2 → 2.7.3
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/esm/af.common.js +38 -40
- package/dist/esm/af.common.legacy.js +41 -41
- package/dist/esm/af.common.legacy.min.js +2 -2
- package/dist/esm/af.common.legacy.min.js.map +4 -4
- package/dist/esm/af.common.min.js +2 -2
- package/dist/esm/af.common.min.js.map +4 -4
- package/dist/iife/af.common.js +38 -40
- package/dist/iife/af.common.legacy.js +41 -41
- package/dist/iife/af.common.legacy.min.js +2 -2
- package/dist/iife/af.common.legacy.min.js.map +4 -4
- package/dist/iife/af.common.min.js +2 -2
- package/dist/iife/af.common.min.js.map +4 -4
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -2
- package/es/localStorage.d.ts +1 -1
- package/es/localStorage.js +2 -2
- package/package.json +2 -2
- package/src/index.ts +3 -1
- package/src/localStorage.ts +1 -3
package/es/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { alert, confirm, openAlertDialog } from "./alert.js";
|
|
|
3
3
|
import "./errorHandler.js";
|
|
4
4
|
import { expose } from "./expose.js";
|
|
5
5
|
import { getLocalizedString } from "./getLocalizedString.js";
|
|
6
|
+
import afLocalStorage from "./localStorage.js";
|
|
6
7
|
import { localize } from "./localize.js";
|
|
7
8
|
import { logActivity, startActivity } from "./logActivity.js";
|
|
8
9
|
export { default as mitt } from "mitt";
|
|
@@ -17,7 +18,7 @@ export { getLocalizedString } from "./getLocalizedString.js";
|
|
|
17
18
|
export { has } from "./has.js";
|
|
18
19
|
export { invariant } from "./invariant.js";
|
|
19
20
|
export { localize } from "./localize.js";
|
|
20
|
-
export {
|
|
21
|
+
export { afLocalStorage as localStorage };
|
|
21
22
|
export { logActivity, startActivity } from "./logActivity.js";
|
|
22
23
|
export { default as SessionHandler } from "./SessionHandler.js";
|
|
23
24
|
export { UserSession };
|
|
@@ -44,6 +45,7 @@ export interface AfCore {
|
|
|
44
45
|
getLocalizedString: typeof getLocalizedString;
|
|
45
46
|
expose: typeof expose;
|
|
46
47
|
localize: typeof localize;
|
|
48
|
+
localStorage: typeof afLocalStorage;
|
|
47
49
|
logActivity: typeof logActivity;
|
|
48
50
|
startActivity: typeof startActivity;
|
|
49
51
|
alert: typeof alert;
|
package/es/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UserSession } from "./UserSession.js";
|
|
2
2
|
import "./errorHandler.js";
|
|
3
|
+
import afLocalStorage from "./localStorage.js";
|
|
3
4
|
export { default as mitt } from "mitt";
|
|
4
5
|
export { toLocalISODate, toLocalISODateTime } from "./date.js";
|
|
5
6
|
export { downloadBlob } from "./downloadBlob.js";
|
|
@@ -10,10 +11,10 @@ export { getLocalizedString } from "./getLocalizedString.js";
|
|
|
10
11
|
export { has } from "./has.js";
|
|
11
12
|
export { invariant } from "./invariant.js";
|
|
12
13
|
export { localize } from "./localize.js";
|
|
13
|
-
export {
|
|
14
|
+
export { afLocalStorage as localStorage };
|
|
14
15
|
export { logActivity, startActivity } from "./logActivity.js";
|
|
15
16
|
export { default as SessionHandler } from "./SessionHandler.js";
|
|
16
17
|
export { UserSession };
|
|
17
18
|
export { getSettings, saveSettings } from "./settings.js";
|
|
18
19
|
export { alert, confirm, ConfirmButtons, openAlertDialog, waitForDialog } from "./alert.js";
|
|
19
|
-
export const version = "2.7.
|
|
20
|
+
export const version = "2.7.3";
|
package/es/localStorage.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare class LocalStorage {
|
|
2
|
-
isPersisted()
|
|
2
|
+
isPersisted: () => boolean;
|
|
3
3
|
getLocalStorageKey(key: string, global?: boolean): string;
|
|
4
4
|
get(key: string, defaultValue: unknown, global?: boolean): any;
|
|
5
5
|
set(key: string, value: unknown, global?: boolean): void;
|
package/es/localStorage.js
CHANGED
|
@@ -2,8 +2,8 @@ function getLocalKey(key) {
|
|
|
2
2
|
return [af?.article?.id || "", "common", key].join(".");
|
|
3
3
|
}
|
|
4
4
|
class LocalStorage {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
constructor() {
|
|
6
|
+
this.isPersisted = () => true;
|
|
7
7
|
}
|
|
8
8
|
getLocalStorageKey(key, global) {
|
|
9
9
|
return global ? ["common", key].join(".") : getLocalKey(key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olenbetong/appframe-core",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
4
4
|
"description": "Javascript libraries to utilize the Appframe framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"chalk": "^5.1.2"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "a98679d30bbd34f2507d87b84502fef1c1e96e52"
|
|
52
52
|
}
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { alert, confirm, openAlertDialog } from "./alert.js";
|
|
|
3
3
|
import "./errorHandler.js";
|
|
4
4
|
import { expose } from "./expose.js";
|
|
5
5
|
import { getLocalizedString } from "./getLocalizedString.js";
|
|
6
|
+
import afLocalStorage from "./localStorage.js";
|
|
6
7
|
import { localize } from "./localize.js";
|
|
7
8
|
import { logActivity, startActivity } from "./logActivity.js";
|
|
8
9
|
|
|
@@ -18,7 +19,7 @@ export { getLocalizedString } from "./getLocalizedString.js";
|
|
|
18
19
|
export { has } from "./has.js";
|
|
19
20
|
export { invariant } from "./invariant.js";
|
|
20
21
|
export { localize } from "./localize.js";
|
|
21
|
-
export {
|
|
22
|
+
export { afLocalStorage as localStorage };
|
|
22
23
|
export { logActivity, startActivity } from "./logActivity.js";
|
|
23
24
|
export { default as SessionHandler } from "./SessionHandler.js";
|
|
24
25
|
export { UserSession };
|
|
@@ -50,6 +51,7 @@ export interface AfCore {
|
|
|
50
51
|
getLocalizedString: typeof getLocalizedString;
|
|
51
52
|
expose: typeof expose;
|
|
52
53
|
localize: typeof localize;
|
|
54
|
+
localStorage: typeof afLocalStorage;
|
|
53
55
|
logActivity: typeof logActivity;
|
|
54
56
|
startActivity: typeof startActivity;
|
|
55
57
|
alert: typeof alert;
|
package/src/localStorage.ts
CHANGED