@strtehu/ayatori 0.1.0
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/LICENSE +21 -0
- package/README.md +218 -0
- package/dist-lib/ayatori.iife.js +198 -0
- package/dist-lib/sample-flows/asis-flow.yaml +161 -0
- package/dist-lib/sample-flows/simple-flow.yaml +64 -0
- package/package.json +65 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
meta:
|
|
2
|
+
name: AsIs 管理者と注文者の体験フロー
|
|
3
|
+
purpose: 弁当注文サービスの導入から月次運用が完了するまで
|
|
4
|
+
granularity: business
|
|
5
|
+
version: 2026-03-13
|
|
6
|
+
subtitle: PF導入→日次運用→月次運用の全体フロー
|
|
7
|
+
lanes:
|
|
8
|
+
- id: lane-admin
|
|
9
|
+
label: 管理者
|
|
10
|
+
- id: lane-orderer
|
|
11
|
+
label: 注文者
|
|
12
|
+
phases:
|
|
13
|
+
- id: phase-a
|
|
14
|
+
label: Phase A:導入・登録(初回のみ)
|
|
15
|
+
- id: phase-b
|
|
16
|
+
label: Phase B:日次運用(時間軸で進行)
|
|
17
|
+
- id: phase-c
|
|
18
|
+
label: Phase C:月次運用
|
|
19
|
+
nodes:
|
|
20
|
+
- id: n-start
|
|
21
|
+
type: start
|
|
22
|
+
label: PF導入
|
|
23
|
+
lane: lane-admin
|
|
24
|
+
phase: phase-a
|
|
25
|
+
- id: n-a1
|
|
26
|
+
type: process
|
|
27
|
+
label: 費用負担パターンを設定する
|
|
28
|
+
lane: lane-admin
|
|
29
|
+
phase: phase-a
|
|
30
|
+
- id: n-a2
|
|
31
|
+
type: process
|
|
32
|
+
label: コード/QRを配布する
|
|
33
|
+
lane: lane-admin
|
|
34
|
+
phase: phase-a
|
|
35
|
+
- id: n-a3
|
|
36
|
+
type: process
|
|
37
|
+
label: ユーザー登録する
|
|
38
|
+
lane: lane-orderer
|
|
39
|
+
phase: phase-a
|
|
40
|
+
- id: n-a4
|
|
41
|
+
type: process
|
|
42
|
+
label: 登録状況を確認・無効化する
|
|
43
|
+
lane: lane-admin
|
|
44
|
+
sublabel: 退職者アカウント無効化含む
|
|
45
|
+
phase: phase-a
|
|
46
|
+
- id: n-b1
|
|
47
|
+
type: process
|
|
48
|
+
label: 休みカレンダーを設定する
|
|
49
|
+
lane: lane-admin
|
|
50
|
+
phase: phase-b
|
|
51
|
+
timeLabel: 2日以上前
|
|
52
|
+
- id: n-b2
|
|
53
|
+
type: process
|
|
54
|
+
label: 事前予約する(仮押さえ)
|
|
55
|
+
lane: lane-orderer
|
|
56
|
+
phase: phase-b
|
|
57
|
+
timeLabel: 2日以上前
|
|
58
|
+
- id: n-b3
|
|
59
|
+
type: process
|
|
60
|
+
label: 注文状況を確認・照合する
|
|
61
|
+
lane: lane-admin
|
|
62
|
+
sublabel: 注文一覧印刷→検品
|
|
63
|
+
phase: phase-b
|
|
64
|
+
timeLabel: 前日
|
|
65
|
+
- id: n-b4
|
|
66
|
+
type: process
|
|
67
|
+
label: 最終確認/前日締切品の確定
|
|
68
|
+
lane: lane-orderer
|
|
69
|
+
phase: phase-b
|
|
70
|
+
timeLabel: 前日
|
|
71
|
+
- id: n-b5
|
|
72
|
+
type: process
|
|
73
|
+
label: 当日注文/最終キャンセル
|
|
74
|
+
lane: lane-orderer
|
|
75
|
+
sublabel: 決済(該当時)
|
|
76
|
+
phase: phase-b
|
|
77
|
+
timeLabel: 当日朝〜締切
|
|
78
|
+
- id: n-b6
|
|
79
|
+
type: process
|
|
80
|
+
label: 変更・キャンセル
|
|
81
|
+
lane: lane-orderer
|
|
82
|
+
style: orange
|
|
83
|
+
sublabel: PF不可→電話で玉子屋に連絡
|
|
84
|
+
phase: phase-b
|
|
85
|
+
timeLabel: 締切後
|
|
86
|
+
- id: n-b7
|
|
87
|
+
type: process
|
|
88
|
+
label: リマインド/通知を受け取る
|
|
89
|
+
lane: lane-orderer
|
|
90
|
+
phase: phase-b
|
|
91
|
+
- id: n-b-end
|
|
92
|
+
type: end
|
|
93
|
+
label: 弁当受取り
|
|
94
|
+
lane: lane-orderer
|
|
95
|
+
phase: phase-b
|
|
96
|
+
- id: n-c1
|
|
97
|
+
type: process
|
|
98
|
+
label: 請求・利用実績を確認する
|
|
99
|
+
lane: lane-admin
|
|
100
|
+
phase: phase-c
|
|
101
|
+
- id: n-c2
|
|
102
|
+
type: process
|
|
103
|
+
label: 金額を照合する
|
|
104
|
+
lane: lane-admin
|
|
105
|
+
phase: phase-c
|
|
106
|
+
- id: n-c3
|
|
107
|
+
type: process
|
|
108
|
+
label: 注文実績データを抽出する
|
|
109
|
+
lane: lane-admin
|
|
110
|
+
phase: phase-c
|
|
111
|
+
edges:
|
|
112
|
+
- id: ea1
|
|
113
|
+
source: n-start
|
|
114
|
+
target: n-a1
|
|
115
|
+
- id: ea2
|
|
116
|
+
source: n-a1
|
|
117
|
+
target: n-a2
|
|
118
|
+
- id: ea3
|
|
119
|
+
source: n-a2
|
|
120
|
+
target: n-a3
|
|
121
|
+
- id: ea4
|
|
122
|
+
source: n-a3
|
|
123
|
+
target: n-a4
|
|
124
|
+
- id: eb1
|
|
125
|
+
source: n-a4
|
|
126
|
+
target: n-b1
|
|
127
|
+
- id: eb2
|
|
128
|
+
source: n-b1
|
|
129
|
+
target: n-b2
|
|
130
|
+
- id: eb3
|
|
131
|
+
source: n-b2
|
|
132
|
+
target: n-b3
|
|
133
|
+
- id: eb4
|
|
134
|
+
source: n-b3
|
|
135
|
+
target: n-b4
|
|
136
|
+
- id: eb5
|
|
137
|
+
source: n-b4
|
|
138
|
+
target: n-b5
|
|
139
|
+
- id: eb6
|
|
140
|
+
source: n-b5
|
|
141
|
+
target: n-b6
|
|
142
|
+
- id: eb7
|
|
143
|
+
source: n-b5
|
|
144
|
+
target: n-b7
|
|
145
|
+
- id: eb8
|
|
146
|
+
source: n-b7
|
|
147
|
+
target: n-b-end
|
|
148
|
+
- id: ec1
|
|
149
|
+
source: n-a4
|
|
150
|
+
target: n-c1
|
|
151
|
+
- id: ec2
|
|
152
|
+
source: n-c1
|
|
153
|
+
target: n-c2
|
|
154
|
+
- id: ec3
|
|
155
|
+
source: n-c2
|
|
156
|
+
target: n-c3
|
|
157
|
+
designNotes:
|
|
158
|
+
- Phase A は初回のみ実行。Phase Bは日次、Phase Cは月次
|
|
159
|
+
- 注文者の月次運用は操作なし(テキスト注釈で対応)
|
|
160
|
+
openQuestions:
|
|
161
|
+
- 締切後の変更・キャンセルフローの詳細は要確認
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
meta:
|
|
2
|
+
name: 簡単な承認フロー
|
|
3
|
+
purpose: 申請の承認が完了するまで
|
|
4
|
+
granularity: business
|
|
5
|
+
version: 2026-03-13
|
|
6
|
+
lanes:
|
|
7
|
+
- id: lane-applicant
|
|
8
|
+
label: 申請者
|
|
9
|
+
- id: lane-approver
|
|
10
|
+
label: 承認者
|
|
11
|
+
nodes:
|
|
12
|
+
- id: n1
|
|
13
|
+
type: start
|
|
14
|
+
label: 申請開始
|
|
15
|
+
lane: lane-applicant
|
|
16
|
+
- id: n2
|
|
17
|
+
type: process
|
|
18
|
+
label: 申請書を作成する
|
|
19
|
+
lane: lane-applicant
|
|
20
|
+
sublabel: 申請システム
|
|
21
|
+
- id: n3
|
|
22
|
+
type: decision
|
|
23
|
+
label: |-
|
|
24
|
+
内容に
|
|
25
|
+
不備はないか
|
|
26
|
+
lane: lane-approver
|
|
27
|
+
decisionMeta:
|
|
28
|
+
branchNumber: 1
|
|
29
|
+
- id: n4
|
|
30
|
+
type: process
|
|
31
|
+
label: 差し戻す
|
|
32
|
+
lane: lane-approver
|
|
33
|
+
style: orange
|
|
34
|
+
- id: n5
|
|
35
|
+
type: process
|
|
36
|
+
label: 承認する
|
|
37
|
+
lane: lane-approver
|
|
38
|
+
sublabel: 申請システム
|
|
39
|
+
- id: n6
|
|
40
|
+
type: end
|
|
41
|
+
label: 完了
|
|
42
|
+
lane: lane-approver
|
|
43
|
+
edges:
|
|
44
|
+
- id: e1
|
|
45
|
+
source: n1
|
|
46
|
+
target: n2
|
|
47
|
+
- id: e2
|
|
48
|
+
source: n2
|
|
49
|
+
target: n3
|
|
50
|
+
- id: e3
|
|
51
|
+
source: n3
|
|
52
|
+
target: n4
|
|
53
|
+
type: no
|
|
54
|
+
- id: e4
|
|
55
|
+
source: n3
|
|
56
|
+
target: n5
|
|
57
|
+
type: yes
|
|
58
|
+
- id: e5
|
|
59
|
+
source: n5
|
|
60
|
+
target: n6
|
|
61
|
+
designNotes:
|
|
62
|
+
- "分岐①を「内容に不備はないか」にした理由: 不備なし(Yes)が多数派のため正常系"
|
|
63
|
+
openQuestions:
|
|
64
|
+
- ①差し戻し後の再申請フローが必要か
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@strtehu/ayatori",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Embeddable flowchart editor — a single IIFE bundle with CSS inlined",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"keywords": ["flowchart", "editor", "embed", "iife", "react-flow"],
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/strtehu/ayatori"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist-lib/ayatori.iife.js",
|
|
14
|
+
"dist-lib/sample-flows/",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
17
|
+
"main": "dist-lib/ayatori.iife.js",
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"dev": "vite",
|
|
23
|
+
"build": "tsc -b && vite build",
|
|
24
|
+
"preview": "vite preview",
|
|
25
|
+
"lint": "eslint .",
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"test:watch": "vitest",
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
29
|
+
"build:lib": "vite build --config vite.config.lib.ts",
|
|
30
|
+
"prepublishOnly": "npm run build:lib"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@codemirror/lang-yaml": "^6.1.2",
|
|
34
|
+
"@codemirror/state": "^6.6.0",
|
|
35
|
+
"@codemirror/view": "^6.40.0",
|
|
36
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
37
|
+
"@xyflow/react": "^12.10.1",
|
|
38
|
+
"codemirror": "^6.0.2",
|
|
39
|
+
"elkjs": "^0.11.1",
|
|
40
|
+
"react": "^19.2.4",
|
|
41
|
+
"react-dom": "^19.2.4",
|
|
42
|
+
"yaml": "^2.8.2"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@eslint/js": "^9.39.4",
|
|
46
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
47
|
+
"@testing-library/react": "^16.3.2",
|
|
48
|
+
"@types/node": "^24.12.0",
|
|
49
|
+
"@types/react": "^19.2.14",
|
|
50
|
+
"@types/react-dom": "^19.2.3",
|
|
51
|
+
"@vitejs/plugin-react": "^6.0.0",
|
|
52
|
+
"autoprefixer": "^10.4.27",
|
|
53
|
+
"eslint": "^9.39.4",
|
|
54
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
55
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
56
|
+
"globals": "^17.4.0",
|
|
57
|
+
"jsdom": "^28.1.0",
|
|
58
|
+
"postcss": "^8.5.8",
|
|
59
|
+
"tailwindcss": "^3.4.19",
|
|
60
|
+
"typescript": "~5.9.3",
|
|
61
|
+
"typescript-eslint": "^8.56.1",
|
|
62
|
+
"vite": "^8.0.0",
|
|
63
|
+
"vitest": "^4.1.0"
|
|
64
|
+
}
|
|
65
|
+
}
|