@wcstack/state 3.0.0 → 3.2.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.
Files changed (44) hide show
  1. package/README.ja.md +47 -17
  2. package/README.md +47 -17
  3. package/dist/auto.min.js +1 -1
  4. package/dist/auto.min.js.map +1 -1
  5. package/dist/define.d.ts +11 -7
  6. package/dist/index.d.ts +15 -7
  7. package/dist/index.esm.js +1 -1
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/manifest.d.ts +14 -1
  10. package/dist/manifest.esm.js +91 -35
  11. package/dist/parser.esm.js +25 -0
  12. package/dist/split/chunks/binder.js +1 -1
  13. package/dist/split/chunks/binder.js.map +1 -1
  14. package/dist/split/chunks/checkDependency.js +1 -1
  15. package/dist/split/chunks/declarationAliases.js +2 -0
  16. package/dist/split/chunks/declarationAliases.js.map +1 -0
  17. package/dist/split/chunks/filterRegistry.js +1 -1
  18. package/dist/split/chunks/filterRegistry.js.map +1 -1
  19. package/dist/split/chunks/mount.js +1 -1
  20. package/dist/split/chunks/mount.js.map +1 -1
  21. package/dist/split/chunks/pathDiagnostics.js +1 -1
  22. package/dist/split/chunks/pathDiagnostics.js.map +1 -1
  23. package/dist/split/chunks/registerComponents.js +1 -1
  24. package/dist/split/chunks/registerComponents.js.map +1 -1
  25. package/dist/split/chunks/setAll.js +1 -1
  26. package/dist/split/chunks/version.js +1 -1
  27. package/dist/split/chunks/watchRuntime.js +1 -1
  28. package/dist/split/core.d.ts +11 -7
  29. package/dist/split/core.js +1 -1
  30. package/dist/split/core.js.map +1 -1
  31. package/dist/split/features/devtools.js +1 -1
  32. package/dist/split/features/devtools.js.map +1 -1
  33. package/dist/split/features/diagnostics.js +1 -1
  34. package/dist/split/features/formats.js +1 -1
  35. package/dist/split/features/formats.js.map +1 -1
  36. package/dist/split/features/recursion.js +1 -1
  37. package/dist/split/features/scopes.js +1 -1
  38. package/dist/split/features/scopes.js.map +1 -1
  39. package/dist/split/features/ssr.js +1 -1
  40. package/dist/split/features/ssr.js.map +1 -1
  41. package/dist/split/features/temporal.js +1 -1
  42. package/dist/split/features/temporal.js.map +1 -1
  43. package/dist/wcs-manifest.json +65 -25
  44. package/package.json +1 -1
@@ -37,6 +37,7 @@
37
37
  "elseKeyword": "else",
38
38
  "spread": "...",
39
39
  "eventPropertyPrefix": "on",
40
+ "explicitPropertyPrefix": ".",
40
41
  "propNamespaces": {
41
42
  "eventToken": "eventToken",
42
43
  "command": "command",
@@ -54,24 +55,25 @@
54
55
  "le",
55
56
  "gt",
56
57
  "ge",
57
- "inc",
58
- "dec",
58
+ "add",
59
+ "sub",
59
60
  "mul",
60
61
  "div",
61
62
  "mod",
62
63
  "abs",
63
64
  "clamp",
64
- "fix",
65
+ "toFixed",
65
66
  "locale",
66
- "uc",
67
- "lc",
68
- "cap",
67
+ "upper",
68
+ "lower",
69
+ "capitalize",
69
70
  "trim",
70
71
  "slice",
71
72
  "substr",
72
- "pad",
73
- "rep",
74
- "rev",
73
+ "padStart",
74
+ "padEnd",
75
+ "repeat",
76
+ "reverse",
75
77
  "truncate",
76
78
  "join",
77
79
  "int",
@@ -89,10 +91,11 @@
89
91
  "falsy",
90
92
  "truthy",
91
93
  "defaults",
94
+ "coalesce",
92
95
  "boolean",
93
96
  "number",
94
97
  "string",
95
- "null"
98
+ "nullIfEmpty"
96
99
  ],
97
100
  "filterMeta": {
98
101
  "eq": {
@@ -183,27 +186,27 @@
183
186
  "number"
184
187
  ]
185
188
  },
186
- "inc": {
189
+ "add": {
187
190
  "description": "加算",
188
191
  "hasArgs": true,
189
192
  "resultType": "number",
190
193
  "acceptTypes": [
191
194
  "number"
192
195
  ],
193
- "minArgs": 0,
196
+ "minArgs": 1,
194
197
  "maxArgs": 1,
195
198
  "argTypes": [
196
199
  "number"
197
200
  ]
198
201
  },
199
- "dec": {
202
+ "sub": {
200
203
  "description": "減算",
201
204
  "hasArgs": true,
202
205
  "resultType": "number",
203
206
  "acceptTypes": [
204
207
  "number"
205
208
  ],
206
- "minArgs": 0,
209
+ "minArgs": 1,
207
210
  "maxArgs": 1,
208
211
  "argTypes": [
209
212
  "number"
@@ -272,7 +275,7 @@
272
275
  "number"
273
276
  ]
274
277
  },
275
- "fix": {
278
+ "toFixed": {
276
279
  "description": "固定小数点表記",
277
280
  "hasArgs": true,
278
281
  "resultType": "string",
@@ -298,7 +301,7 @@
298
301
  "string"
299
302
  ]
300
303
  },
301
- "uc": {
304
+ "upper": {
302
305
  "description": "大文字に変換",
303
306
  "hasArgs": false,
304
307
  "resultType": "string",
@@ -308,7 +311,7 @@
308
311
  "minArgs": 0,
309
312
  "maxArgs": 0
310
313
  },
311
- "lc": {
314
+ "lower": {
312
315
  "description": "小文字に変換",
313
316
  "hasArgs": false,
314
317
  "resultType": "string",
@@ -318,7 +321,7 @@
318
321
  "minArgs": 0,
319
322
  "maxArgs": 0
320
323
  },
321
- "cap": {
324
+ "capitalize": {
322
325
  "description": "先頭文字を大文字に",
323
326
  "hasArgs": false,
324
327
  "resultType": "string",
@@ -366,8 +369,22 @@
366
369
  "number"
367
370
  ]
368
371
  },
369
- "pad": {
370
- "description": "パディング (length[,char])",
372
+ "padStart": {
373
+ "description": "先頭を埋める (length[,char])",
374
+ "hasArgs": true,
375
+ "resultType": "string",
376
+ "acceptTypes": [
377
+ "string"
378
+ ],
379
+ "minArgs": 1,
380
+ "maxArgs": 2,
381
+ "argTypes": [
382
+ "number",
383
+ "string"
384
+ ]
385
+ },
386
+ "padEnd": {
387
+ "description": "末尾を埋める (length[,char])",
371
388
  "hasArgs": true,
372
389
  "resultType": "string",
373
390
  "acceptTypes": [
@@ -380,7 +397,7 @@
380
397
  "string"
381
398
  ]
382
399
  },
383
- "rep": {
400
+ "repeat": {
384
401
  "description": "繰り返し (count)",
385
402
  "hasArgs": true,
386
403
  "resultType": "string",
@@ -393,7 +410,7 @@
393
410
  "number"
394
411
  ]
395
412
  },
396
- "rev": {
413
+ "reverse": {
397
414
  "description": "文字順を反転",
398
415
  "hasArgs": false,
399
416
  "resultType": "string",
@@ -591,6 +608,17 @@
591
608
  "any"
592
609
  ]
593
610
  },
611
+ "coalesce": {
612
+ "description": "null / undefined の場合デフォルト値",
613
+ "hasArgs": true,
614
+ "resultType": "passthrough",
615
+ "acceptTypes": "any",
616
+ "minArgs": 1,
617
+ "maxArgs": 1,
618
+ "argTypes": [
619
+ "any"
620
+ ]
621
+ },
594
622
  "boolean": {
595
623
  "description": "ブール値に変換",
596
624
  "hasArgs": false,
@@ -615,7 +643,7 @@
615
643
  "minArgs": 0,
616
644
  "maxArgs": 0
617
645
  },
618
- "null": {
646
+ "nullIfEmpty": {
619
647
  "description": "空文字列をnullに変換",
620
648
  "hasArgs": false,
621
649
  "resultType": "passthrough",
@@ -626,10 +654,22 @@
626
654
  "maxArgs": 0
627
655
  }
628
656
  },
657
+ "filterAliases": {
658
+ "inc": "add",
659
+ "dec": "sub",
660
+ "fix": "toFixed",
661
+ "uc": "upper",
662
+ "lc": "lower",
663
+ "cap": "capitalize",
664
+ "rep": "repeat",
665
+ "rev": "reverse",
666
+ "pad": "padStart",
667
+ "null": "nullIfEmpty"
668
+ },
629
669
  "reservedLifecycle": [
630
670
  "$connectedCallback",
631
671
  "$disconnectedCallback",
632
- "$updatedCallback",
672
+ "$renderedCallback",
633
673
  "$errorCallback",
634
674
  "$stateReadyCallback"
635
675
  ],
@@ -640,7 +680,7 @@
640
680
  "$command",
641
681
  "$eventTokens",
642
682
  "$on",
643
- "$streams",
683
+ "$stream",
644
684
  "$watch",
645
685
  "$scan",
646
686
  "$listKeys",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wcstack/state",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Reactive state management with declarative data binding for Web Components. Zero dependencies, buildless.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.esm.js",