@monimesl/dot-cli 1.0.0-beta.3 → 1.0.0-beta.5
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.
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
<View gap="small">
|
|
19
19
|
<Text variant="subtitle">A picture and a badge</Text>
|
|
20
|
-
<Text variant="caption" tone="muted">A ListItem's children show at its end, in place of value.</Text>
|
|
21
|
-
<List>
|
|
20
|
+
<Text variant="caption" tone="muted">A ListItem's children show at its end, in place of value. size="md" gives the rows more room and a bigger picture. Lists are size="sm" by default.</Text>
|
|
21
|
+
<List size="md">
|
|
22
22
|
<For each="{{ releases }}" item="release" key="id">
|
|
23
23
|
<ListItem image="statics/logo.png" title="{{ release.title }}" subtitle="{{ release.artist }} · {{ release.year }}">
|
|
24
24
|
<Badge tone="{{ release.tone }}">{{ release.note }}</Badge>
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
LinkProvider,
|
|
3
|
+
MomoProvider,
|
|
4
|
+
OrderLineItem,
|
|
5
|
+
PaymentMethod,
|
|
6
|
+
PaymentOptions,
|
|
7
|
+
} from '@monimesl/dot-runtime';
|
|
2
8
|
|
|
3
9
|
// What the tester sets above the cases.
|
|
4
10
|
export interface CaseInput {
|
|
@@ -136,14 +142,14 @@ export const GROUPS: CaseGroup[] = [
|
|
|
136
142
|
{
|
|
137
143
|
id: 'any-provider',
|
|
138
144
|
title: 'An empty list of providers',
|
|
139
|
-
expect: 'Linked accounts at any
|
|
145
|
+
expect: 'Linked accounts at any bank, as an empty list means all of them.',
|
|
140
146
|
options: paying([{ type: 'link', providers: [] }]),
|
|
141
147
|
},
|
|
142
148
|
{
|
|
143
|
-
id: 'banks',
|
|
144
|
-
title: '
|
|
145
|
-
expect: 'Linked accounts at slb001
|
|
146
|
-
options: paying([{ type: 'link', providers: ['slb001', '
|
|
149
|
+
id: 'two-banks',
|
|
150
|
+
title: 'Accounts at two banks',
|
|
151
|
+
expect: 'Linked accounts at slb001 and slb009 only.',
|
|
152
|
+
options: paying([{ type: 'link', providers: ['slb001', 'slb009'] }]),
|
|
147
153
|
},
|
|
148
154
|
{
|
|
149
155
|
id: 'orange-or-account',
|
|
@@ -401,14 +407,16 @@ export const GROUPS: CaseGroup[] = [
|
|
|
401
407
|
{
|
|
402
408
|
id: 'providers-not-a-list',
|
|
403
409
|
title: 'Providers that are not a list',
|
|
404
|
-
expect: 'invalid: link\'s providers must be a list of provider IDs, such as ["
|
|
405
|
-
|
|
410
|
+
expect: 'invalid: link\'s providers must be a list of provider IDs, such as ["slb001"]',
|
|
411
|
+
// The types catch this. The cast gets past them, to show what Dash tells a dot in plain JavaScript.
|
|
412
|
+
options: paying([{ type: 'link', providers: 'slb001' as unknown as LinkProvider[] }]),
|
|
406
413
|
},
|
|
407
414
|
{
|
|
408
415
|
id: 'unknown-provider',
|
|
409
416
|
title: "A provider Monime doesn't know",
|
|
410
417
|
expect: 'invalid: "m99" isn\'t a provider Monime knows for momo',
|
|
411
|
-
|
|
418
|
+
// The types catch this too.
|
|
419
|
+
options: paying([{ type: 'momo', providers: ['m99' as unknown as MomoProvider] }]),
|
|
412
420
|
},
|
|
413
421
|
{
|
|
414
422
|
id: 'local-number',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monimesl/dot-cli",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.5",
|
|
4
4
|
"description": "The dotctl command: build mini apps and run them in the simulator",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"typescript": "^5.9.3",
|
|
26
26
|
"uqr": "^0.1.3",
|
|
27
|
-
"@monimesl/dot-compiler": "1.0.0-beta.
|
|
28
|
-
"@monimesl/dot-core": "1.0.0-beta.
|
|
29
|
-
"@monimesl/dot-dml-parser": "1.0.0-beta.
|
|
30
|
-
"@monimesl/dot-script-parser": "1.0.0-beta.
|
|
31
|
-
"@monimesl/dot-simulator": "1.0.0-beta.
|
|
27
|
+
"@monimesl/dot-compiler": "1.0.0-beta.5",
|
|
28
|
+
"@monimesl/dot-core": "1.0.0-beta.5",
|
|
29
|
+
"@monimesl/dot-dml-parser": "1.0.0-beta.5",
|
|
30
|
+
"@monimesl/dot-script-parser": "1.0.0-beta.5",
|
|
31
|
+
"@monimesl/dot-simulator": "1.0.0-beta.5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^22.20.4",
|