@eintrek/erp-shell 0.1.70 → 0.1.72
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/README.md +12 -0
- package/dist/chunks/{guide-runtime-CUCcs6q0.esm.js → guide-runtime-B-3myqxe.esm.js} +36 -5
- package/dist/chunks/guide-runtime-B-3myqxe.esm.js.map +1 -0
- package/dist/chunks/{guide-runtime-BO-BFIgr.cjs → guide-runtime-DfnNdrjZ.cjs} +36 -5
- package/dist/chunks/guide-runtime-DfnNdrjZ.cjs.map +1 -0
- package/dist/guide/machine.d.ts +13 -0
- package/dist/guide-core.cjs +1 -1
- package/dist/guide-core.esm.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.esm.js +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunks/guide-runtime-BO-BFIgr.cjs.map +0 -1
- package/dist/chunks/guide-runtime-CUCcs6q0.esm.js.map +0 -1
package/dist/guide/machine.d.ts
CHANGED
|
@@ -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
|
} | {
|
|
@@ -304,6 +308,15 @@ export declare function nextMissionKey(suite: GuideSuite, progress: GuideProgres
|
|
|
304
308
|
export declare function welcomeDue(state: GuideState, suite: GuideSuite, ctx?: GuideContext): boolean;
|
|
305
309
|
/** Whether the floating "ภารกิจ n/N" chip shows. */
|
|
306
310
|
export declare function chipVisible(state: GuideState, suite: GuideSuite, ctx: GuideContext): boolean;
|
|
311
|
+
/**
|
|
312
|
+
* "ขั้นที่ no จาก total" counting only the steps this person will see: a step
|
|
313
|
+
* whose `requires` they lack or whose `skipIf` holds is left out (the step on
|
|
314
|
+
* screen always counts).
|
|
315
|
+
*/
|
|
316
|
+
export declare function stepPosition(mission: GuideMission, index: number, env: GuideEnv, context: Readonly<Record<string, string>>): {
|
|
317
|
+
no: number;
|
|
318
|
+
total: number;
|
|
319
|
+
};
|
|
307
320
|
/** "กด [บันทึก]" → "กด บันทึก" (for screen readers). */
|
|
308
321
|
export declare function plainTitle(t: string): string;
|
|
309
322
|
/** A mission's `completeOn` triggers, as a list. */
|
package/dist/guide-core.cjs
CHANGED
package/dist/guide-core.esm.js
CHANGED
|
@@ -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-
|
|
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-B-3myqxe.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-
|
|
17
|
+
var guideRuntime = require('./chunks/guide-runtime-DfnNdrjZ.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.
|
|
1743
|
+
const SHELL_VERSION = "0.1.72";
|
|
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-
|
|
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-
|
|
17
|
+
import { j as reportApiEvent, h as guideAnchor, u as useGuideEntry, o as openGuidePanel, b as GuideErrorBoundary, d as GuideRuntime } from './chunks/guide-runtime-B-3myqxe.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-B-3myqxe.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.
|
|
1725
|
+
const SHELL_VERSION = "0.1.72";
|
|
1726
1726
|
|
|
1727
1727
|
const HELP_APP_LABEL = {
|
|
1728
1728
|
platform: "แพลตฟอร์ม",
|
package/dist/version.d.ts
CHANGED