@fctc/interface-logic 3.0.2 → 3.0.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/utils.js CHANGED
@@ -54,7 +54,6 @@ __export(utils_exports, {
54
54
  mergeObjects: () => mergeObjects,
55
55
  removeUndefinedFields: () => removeUndefinedFields,
56
56
  resequence: () => resequence,
57
- sessionStorageUtils: () => sessionStorageUtils,
58
57
  stringToColor: () => stringToColor,
59
58
  toQueryString: () => toQueryString,
60
59
  updateTokenParamInOriginalRequest: () => updateTokenParamInOriginalRequest,
@@ -2939,47 +2938,6 @@ var useField = (props) => {
2939
2938
  nameField
2940
2939
  };
2941
2940
  };
2942
-
2943
- // src/utils/storage/session-storage.ts
2944
- var sessionStorageUtils = /* @__PURE__ */ (() => {
2945
- const getMenuFocus = () => {
2946
- const menuFocus = sessionStorage.getItem("menuFocus");
2947
- return menuFocus ? JSON.parse(menuFocus) : {
2948
- id: void 0,
2949
- service: ""
2950
- };
2951
- };
2952
- const setMenuFocus = (menuTree) => {
2953
- sessionStorage.setItem("menuFocus", JSON.stringify({ ...menuTree }));
2954
- };
2955
- const getActionData = () => {
2956
- const actionData = sessionStorage.getItem("actionData");
2957
- return actionData ? JSON.parse(actionData) : {};
2958
- };
2959
- const setActionData = (actData) => {
2960
- sessionStorage.setItem("actionData", JSON.stringify(actData));
2961
- };
2962
- const getViewData = () => {
2963
- const viewData = sessionStorage.getItem("viewData");
2964
- return viewData ? JSON.parse(viewData) : {};
2965
- };
2966
- const getBrowserSession = () => {
2967
- const actionData = sessionStorage.getItem("browserSession");
2968
- return actionData ? JSON.parse(actionData) : null;
2969
- };
2970
- const setViewData = (viewData) => {
2971
- sessionStorage.setItem("viewData", JSON.stringify(viewData));
2972
- };
2973
- return {
2974
- getMenuFocus,
2975
- setMenuFocus,
2976
- setActionData,
2977
- getActionData,
2978
- getViewData,
2979
- setViewData,
2980
- getBrowserSession
2981
- };
2982
- })();
2983
2941
  // Annotate the CommonJS export names for ESM import in node:
2984
2942
  0 && (module.exports = {
2985
2943
  WesapError,
@@ -3006,7 +2964,6 @@ var sessionStorageUtils = /* @__PURE__ */ (() => {
3006
2964
  mergeObjects,
3007
2965
  removeUndefinedFields,
3008
2966
  resequence,
3009
- sessionStorageUtils,
3010
2967
  stringToColor,
3011
2968
  toQueryString,
3012
2969
  updateTokenParamInOriginalRequest,
package/dist/utils.mjs CHANGED
@@ -2873,47 +2873,6 @@ var useField = (props) => {
2873
2873
  nameField
2874
2874
  };
2875
2875
  };
2876
-
2877
- // src/utils/storage/session-storage.ts
2878
- var sessionStorageUtils = /* @__PURE__ */ (() => {
2879
- const getMenuFocus = () => {
2880
- const menuFocus = sessionStorage.getItem("menuFocus");
2881
- return menuFocus ? JSON.parse(menuFocus) : {
2882
- id: void 0,
2883
- service: ""
2884
- };
2885
- };
2886
- const setMenuFocus = (menuTree) => {
2887
- sessionStorage.setItem("menuFocus", JSON.stringify({ ...menuTree }));
2888
- };
2889
- const getActionData = () => {
2890
- const actionData = sessionStorage.getItem("actionData");
2891
- return actionData ? JSON.parse(actionData) : {};
2892
- };
2893
- const setActionData = (actData) => {
2894
- sessionStorage.setItem("actionData", JSON.stringify(actData));
2895
- };
2896
- const getViewData = () => {
2897
- const viewData = sessionStorage.getItem("viewData");
2898
- return viewData ? JSON.parse(viewData) : {};
2899
- };
2900
- const getBrowserSession = () => {
2901
- const actionData = sessionStorage.getItem("browserSession");
2902
- return actionData ? JSON.parse(actionData) : null;
2903
- };
2904
- const setViewData = (viewData) => {
2905
- sessionStorage.setItem("viewData", JSON.stringify(viewData));
2906
- };
2907
- return {
2908
- getMenuFocus,
2909
- setMenuFocus,
2910
- setActionData,
2911
- getActionData,
2912
- getViewData,
2913
- setViewData,
2914
- getBrowserSession
2915
- };
2916
- })();
2917
2876
  export {
2918
2877
  WesapError,
2919
2878
  checkIsImageLink,
@@ -2939,7 +2898,6 @@ export {
2939
2898
  mergeObjects,
2940
2899
  removeUndefinedFields,
2941
2900
  resequence,
2942
- sessionStorageUtils,
2943
2901
  stringToColor,
2944
2902
  toQueryString,
2945
2903
  updateTokenParamInOriginalRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",