@eintrek/erp-shell 0.1.69 → 0.1.71

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.
@@ -4,6 +4,8 @@ import type { MissionView, StepError } from "./machine";
4
4
  /** "26 ต.ค. 2569 13:04" — day, month, Buddhist year, 24 h. */
5
5
  export declare function formatThaiDateTime(iso: string | null | undefined): string;
6
6
  /** "กด [บันทึก]": the bracketed word is a chip in the brand colour. */
7
+ /** Where the tour reopens in apps with the shell header ("?"). */
8
+ export declare const REOPEN_HINT = "\u0E40\u0E1B\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E44\u0E14\u0E49\u0E17\u0E35\u0E48\u0E1B\u0E38\u0E48\u0E21 ? \u0E21\u0E38\u0E21\u0E02\u0E27\u0E32\u0E1A\u0E19";
7
9
  export declare function GuideTitle({ text }: {
8
10
  text: string;
9
11
  }): import("react/jsx-runtime").JSX.Element;
@@ -90,6 +92,8 @@ export interface StepLayerProps {
90
92
  bubble: BubbleModel;
91
93
  phase: "waiting" | "ready" | "missing" | "away";
92
94
  confirmExit: boolean;
95
+ /** Where the tour can be reopened, shown in the exit confirm. */
96
+ reopenHint?: string;
93
97
  nudge: number;
94
98
  /** Animate the ring to its new place (a new step). */
95
99
  moving: boolean;
@@ -126,6 +130,8 @@ export declare function WelcomeModal(p: {
126
130
  minutes: number;
127
131
  }>;
128
132
  confirm: boolean;
133
+ /** Where the tour can be reopened, shown in the skip confirm. */
134
+ reopenHint?: string;
129
135
  onStart: () => void;
130
136
  onSkip: () => void;
131
137
  onSkipConfirm: () => void;
@@ -176,6 +176,10 @@ export type GuideAction = {
176
176
  type: "rest";
177
177
  } | {
178
178
  type: "finish";
179
+ }
180
+ /** Escape on the finish card: close it where the person is. */
181
+ | {
182
+ type: "dismissComplete";
179
183
  } | {
180
184
  type: "openPanel";
181
185
  } | {
@@ -335,6 +335,12 @@ export interface GuideSuite {
335
335
  */
336
336
  welcomeRoutes?: string[];
337
337
  gate?: GuideGate;
338
+ /**
339
+ * Where the tour can be reopened, said in the skip and exit confirms.
340
+ * Default "เปิดต่อได้ที่ปุ่ม ? มุมขวาบน"; an app without the shell's "?"
341
+ * (LIFF) names its own entry.
342
+ */
343
+ reopenHint?: string;
338
344
  complete: {
339
345
  /** Default "บริษัทพร้อมใช้งานแล้ว". */
340
346
  title?: GuideText;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var guideRuntime = require('./chunks/guide-runtime-CFVYM8Xi.cjs');
4
+ var guideRuntime = require('./chunks/guide-runtime-B_fYkQv7.cjs');
5
5
  require('react/jsx-runtime');
6
6
  require('react');
7
7
  require('react-dom');
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { A as GUIDE_API_EVENT, G as GUIDE_EVENT_PREFIX, a as GUIDE_LAYER_ATTRIBUTE, c as GuideProgressConflict, d as GuideRuntime, e as apiCallDetail, f as emitGuideEvent, g as fillRoute, h as guideAnchor, l as loadGuides, m as matchApiPath, i as matchRoute, o as openGuidePanel, r as reportApiCall, j as reportApiEvent, s as storeGuides, u as useGuideEntry } from './chunks/guide-runtime-CBLovNNu.esm.js';
2
+ export { A as GUIDE_API_EVENT, G as GUIDE_EVENT_PREFIX, a as GUIDE_LAYER_ATTRIBUTE, c as GuideProgressConflict, d as GuideRuntime, e as apiCallDetail, f as emitGuideEvent, g as fillRoute, h as guideAnchor, l as loadGuides, m as matchApiPath, i as matchRoute, o as openGuidePanel, r as reportApiCall, j as reportApiEvent, s as storeGuides, u as useGuideEntry } from './chunks/guide-runtime-BTatpm-V.esm.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import 'react-dom';
package/dist/index.cjs CHANGED
@@ -14,7 +14,7 @@ var Link = require('next/link');
14
14
  var reactDom = require('react-dom');
15
15
  var nextThemes = require('next-themes');
16
16
  var axios = require('axios');
17
- var guideRuntime = require('./chunks/guide-runtime-CFVYM8Xi.cjs');
17
+ var guideRuntime = require('./chunks/guide-runtime-B_fYkQv7.cjs');
18
18
  var reactQueryDevtools = require('@tanstack/react-query-devtools');
19
19
  require('@floating-ui/dom');
20
20
 
@@ -1740,7 +1740,7 @@ function platformApiBase(app) {
1740
1740
  * This package's version, attached to help messages so the back office can
1741
1741
  * tell which shell a report came from. Keep in step with package.json.
1742
1742
  */
1743
- const SHELL_VERSION = "0.1.69";
1743
+ const SHELL_VERSION = "0.1.71";
1744
1744
 
1745
1745
  const HELP_APP_LABEL = {
1746
1746
  platform: "แพลตฟอร์ม",
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 { j as reportApiEvent, h as guideAnchor, u as useGuideEntry, o as openGuidePanel, b as GuideErrorBoundary, d as GuideRuntime } from './chunks/guide-runtime-CBLovNNu.esm.js';
18
- export { A as GUIDE_API_EVENT, G as GUIDE_EVENT_PREFIX, a as GUIDE_LAYER_ATTRIBUTE, c as GuideProgressConflict, f as emitGuideEvent, r as reportApiCall } from './chunks/guide-runtime-CBLovNNu.esm.js';
17
+ import { j as reportApiEvent, h as guideAnchor, u as useGuideEntry, o as openGuidePanel, b as GuideErrorBoundary, d as GuideRuntime } from './chunks/guide-runtime-BTatpm-V.esm.js';
18
+ export { A as GUIDE_API_EVENT, G as GUIDE_EVENT_PREFIX, a as GUIDE_LAYER_ATTRIBUTE, c as GuideProgressConflict, f as emitGuideEvent, r as reportApiCall } from './chunks/guide-runtime-BTatpm-V.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.69";
1725
+ const SHELL_VERSION = "0.1.71";
1726
1726
 
1727
1727
  const HELP_APP_LABEL = {
1728
1728
  platform: "แพลตฟอร์ม",
package/dist/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * This package's version, attached to help messages so the back office can
3
3
  * tell which shell a report came from. Keep in step with package.json.
4
4
  */
5
- export declare const SHELL_VERSION = "0.1.69";
5
+ export declare const SHELL_VERSION = "0.1.71";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eintrek/erp-shell",
3
- "version": "0.1.69",
3
+ "version": "0.1.71",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Shared frontend platform for ERP apps — HTTP client, providers, navigation, hooks.",