sspart-fe-lib 1.1.0 → 1.1.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.
@@ -151,7 +151,7 @@ var CurrencyTextBox = ({
151
151
  var currency_textbox_default = CurrencyTextBox;
152
152
 
153
153
  // src/components/market-textbox.tsx
154
- import { setCookieExpiry, STOCK_ORDER_TYPES } from "sspart-common-lib";
154
+ import { setLocalStorage, STOCK_ORDER_TYPES } from "sspart-common-lib";
155
155
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
156
156
  var styleData = {
157
157
  color: "var(--primary-color)",
@@ -182,7 +182,7 @@ var MarketTextBox = ({
182
182
  const handleToggle = useCallback2((event) => {
183
183
  const isChecked = event.target.checked;
184
184
  const type = isChecked ? STOCK_ORDER_TYPES.MARKET : STOCK_ORDER_TYPES.LIMIT;
185
- setCookieExpiry("ordertype", type, 1e5);
185
+ setLocalStorage("ordertype", type);
186
186
  onChange(name, isChecked, isChecked ? "0" : value);
187
187
  }, [name, value, onChange]);
188
188
  return /* @__PURE__ */ jsxs("div", { children: [
package/dist/index.js CHANGED
@@ -54,11 +54,11 @@ var STATUS_CODE_MESSAGES = {
54
54
  };
55
55
 
56
56
  // src/utils/status-code.ts
57
- import { auth, planAuth, setCookieExpiry } from "sspart-common-lib";
57
+ import { auth, planAuth, removeLocalStorage } from "sspart-common-lib";
58
58
  var getStatusCodeMessage = async (code) => {
59
59
  if (code === STATUS_CODE_MESSAGES.FORBIDDEN) {
60
- setCookieExpiry("username", "", -100);
61
- setCookieExpiry("fullname", "", -100);
60
+ removeLocalStorage("username");
61
+ removeLocalStorage("fullname");
62
62
  auth.signout(emptyCB);
63
63
  }
64
64
  return code;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sspart-fe-lib",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -128,23 +128,23 @@
128
128
  "dev": "vite"
129
129
  },
130
130
  "dependencies": {
131
- "dayjs": "^1.11.18",
132
- "html-react-parser": "^5.2.6"
131
+ "dayjs": "^1.11.19",
132
+ "html-react-parser": "^5.2.17"
133
133
  },
134
134
  "peerDependencies": {
135
- "@mui/material": "^7.3.2",
136
- "@mui/icons-material": "^7.3.2",
137
- "@mui/system": "^7.3.2",
135
+ "@mui/material": "^7.3.8",
136
+ "@mui/icons-material": "^7.3.8",
137
+ "@mui/system": "^7.3.8",
138
138
  "react": "^19.0.0",
139
139
  "react-router-dom": "^7.13.0",
140
140
  "react-window": "^2.2.6",
141
141
  "@emotion/react": "^11.14.0",
142
142
  "@emotion/styled": "^11.14.0",
143
- "sspart-common-lib": "^0.0.26"
143
+ "sspart-common-lib": "^1.0.0"
144
144
  },
145
145
  "devDependencies": {
146
146
  "@types/react-window": "^1.8.8",
147
- "tsup": "^8.5.0",
148
- "typescript": "^5.9.2"
147
+ "tsup": "^8.5.1",
148
+ "typescript": "^5.9.3"
149
149
  }
150
150
  }