@etsoo/smarterp-core 1.0.6 → 1.0.7

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.
@@ -39,7 +39,7 @@ function AppSwitchPopover(props) {
39
39
  if (index >= 0)
40
40
  data.splice(index, 1);
41
41
  return ((0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "column", margin: 2, children: [data.map((appData) => ((0, jsx_runtime_1.jsx)(material_1.Button, { onClick: async () => {
42
- const tasks = appData.urls.map((u) => app.core.authApi.getLogInUrl({ showLoading: false, onError: () => false }, u.api));
42
+ const tasks = appData.urls.map((u) => app.core.authApi.getLogInUrl("APP", { showLoading: false, onError: () => false }, u.api));
43
43
  const result = await Promise.allSettled(tasks);
44
44
  const success = result.find((r) => r.status === "fulfilled" && r.value != null);
45
45
  if (success) {
@@ -33,7 +33,7 @@ export function AppSwitchPopover(props) {
33
33
  if (index >= 0)
34
34
  data.splice(index, 1);
35
35
  return (_jsxs(Stack, { direction: "column", margin: 2, children: [data.map((appData) => (_jsx(Button, { onClick: async () => {
36
- const tasks = appData.urls.map((u) => app.core.authApi.getLogInUrl({ showLoading: false, onError: () => false }, u.api));
36
+ const tasks = appData.urls.map((u) => app.core.authApi.getLogInUrl("APP", { showLoading: false, onError: () => false }, u.api));
37
37
  const result = await Promise.allSettled(tasks);
38
38
  const success = result.find((r) => r.status === "fulfilled" && r.value != null);
39
39
  if (success) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "TypeScript APIs for SmartERP Core",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -53,7 +53,7 @@
53
53
  "vitest": "^3.0.5"
54
54
  },
55
55
  "dependencies": {
56
- "@etsoo/appscript": "^1.6.7",
56
+ "@etsoo/appscript": "^1.6.8",
57
57
  "@etsoo/materialui": "^1.4.82",
58
58
  "@etsoo/react": "^1.8.31",
59
59
  "@etsoo/shared": "^1.2.61",
@@ -71,6 +71,7 @@ export function AppSwitchPopover(props: AppSwitchPopoverProps) {
71
71
  onClick={async () => {
72
72
  const tasks = appData.urls.map((u) =>
73
73
  app.core.authApi.getLogInUrl(
74
+ "APP",
74
75
  { showLoading: false, onError: () => false },
75
76
  u.api
76
77
  )