@eintrek/erp-shell 0.1.77 → 0.1.78

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/index.esm.js CHANGED
@@ -14,8 +14,8 @@ import { createPortal } from 'react-dom';
14
14
  import { useTheme, ThemeProvider as ThemeProvider$1 } from 'next-themes';
15
15
  import axios, { isAxiosError, AxiosHeaders } from 'axios';
16
16
  export { isAxiosError } from 'axios';
17
- import { v as reportApiEvent, i as guideAnchor, B as useGuideEntry, D as usePageGuides, j as guideMenuItems, r as openPageGuide, t as openSectionGuide, o as openFlow, q as openGuidePanel, s as openPagesPanel, p as openFlowsPanel, b as GuideErrorBoundary, d as GuideRuntime } from './chunks/format-ILrTMV4G.esm.js';
18
- export { A as GUIDE_API_EVENT, G as GUIDE_EVENT_PREFIX, a as GUIDE_LAYER_ATTRIBUTE, c as GuideProgressConflict, S as SectionGuideButton, T as THAI_MONTHS_SHORT, f as emitGuideEvent, h as formatBaht, k as guideMenuShown, u as reportApiCall, w as setSectionGuideValues, y as thaiMonth, z as thaiMonthYear, C as usePageGuideEntry, E as useSectionGuideValues } from './chunks/format-ILrTMV4G.esm.js';
17
+ import { v as reportApiEvent, i as guideAnchor, B as useGuideEntry, D as usePageGuides, j as guideMenuItems, r as openPageGuide, t as openSectionGuide, o as openFlow, q as openGuidePanel, s as openPagesPanel, p as openFlowsPanel, b as GuideErrorBoundary, d as GuideRuntime } from './chunks/format-Wgj2sKpK.esm.js';
18
+ export { A as GUIDE_API_EVENT, G as GUIDE_EVENT_PREFIX, a as GUIDE_LAYER_ATTRIBUTE, c as GuideProgressConflict, S as SectionGuideButton, T as THAI_MONTHS_SHORT, f as emitGuideEvent, h as formatBaht, k as guideMenuShown, u as reportApiCall, w as setSectionGuideValues, y as thaiMonth, z as thaiMonthYear, C as usePageGuideEntry, E as useSectionGuideValues } from './chunks/format-Wgj2sKpK.esm.js';
19
19
  import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
20
20
  import '@floating-ui/dom';
21
21
 
@@ -1722,7 +1722,7 @@ function platformApiBase(app) {
1722
1722
  * This package's version, attached to help messages so the back office can
1723
1723
  * tell which shell a report came from. Keep in step with package.json.
1724
1724
  */
1725
- const SHELL_VERSION = "0.1.77";
1725
+ const SHELL_VERSION = "0.1.78";
1726
1726
 
1727
1727
  const HELP_APP_LABEL = {
1728
1728
  platform: "แพลตฟอร์ม",
@@ -3640,7 +3640,8 @@ function GuideHostInner({ config, organizationId, code }) {
3640
3640
  fetchProgress: req => client.fetchQuery({
3641
3641
  queryKey: ["erp-shell", "guides", organizationId, suite.app, suite.key, suite.version],
3642
3642
  queryFn: ({ signal }) => platform.fetchProgress({ ...req, signal }).catch(() => null),
3643
- staleTime: 5 * 60000,
3643
+ // Fresh after another tab saved (0.1.78); otherwise kept 5 minutes.
3644
+ staleTime: req.fresh ? 0 : 5 * 60000,
3644
3645
  gcTime: 30 * 60000,
3645
3646
  retry: false,
3646
3647
  }),