@mndw/sdk 0.0.0-stage → 0.1.2

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 (157) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +558 -2
  3. package/dist/angular/create-translator-signals.d.ts +5 -0
  4. package/dist/angular/create-translator-signals.d.ts.map +1 -0
  5. package/dist/angular/create-translator-signals.js +26 -0
  6. package/dist/angular/create-translator-signals.js.map +1 -0
  7. package/dist/angular/index.d.ts +9 -0
  8. package/dist/angular/index.d.ts.map +1 -0
  9. package/dist/angular/index.js +6 -0
  10. package/dist/angular/index.js.map +1 -0
  11. package/dist/angular/mount-in-overlay.d.ts +11 -0
  12. package/dist/angular/mount-in-overlay.d.ts.map +1 -0
  13. package/dist/angular/mount-in-overlay.js +46 -0
  14. package/dist/angular/mount-in-overlay.js.map +1 -0
  15. package/dist/angular/mount-plugin-instance.d.ts +14 -0
  16. package/dist/angular/mount-plugin-instance.d.ts.map +1 -0
  17. package/dist/angular/mount-plugin-instance.js +78 -0
  18. package/dist/angular/mount-plugin-instance.js.map +1 -0
  19. package/dist/angular/provide-translator.d.ts +6 -0
  20. package/dist/angular/provide-translator.d.ts.map +1 -0
  21. package/dist/angular/provide-translator.js +8 -0
  22. package/dist/angular/provide-translator.js.map +1 -0
  23. package/dist/backend-client.d.ts +180 -0
  24. package/dist/backend-client.d.ts.map +1 -0
  25. package/dist/backend-client.js +330 -0
  26. package/dist/backend-client.js.map +1 -0
  27. package/dist/bind-locale.d.ts +4 -0
  28. package/dist/bind-locale.d.ts.map +1 -0
  29. package/dist/bind-locale.js +6 -0
  30. package/dist/bind-locale.js.map +1 -0
  31. package/dist/catalog.d.ts +4 -0
  32. package/dist/catalog.d.ts.map +1 -0
  33. package/dist/catalog.js +29 -0
  34. package/dist/catalog.js.map +1 -0
  35. package/dist/context.d.ts +123 -0
  36. package/dist/context.d.ts.map +1 -0
  37. package/dist/context.js +9 -0
  38. package/dist/context.js.map +1 -0
  39. package/dist/event-schema.d.ts +240 -0
  40. package/dist/event-schema.d.ts.map +1 -0
  41. package/dist/event-schema.js +137 -0
  42. package/dist/event-schema.js.map +1 -0
  43. package/dist/i18n-format.d.ts +3 -0
  44. package/dist/i18n-format.d.ts.map +1 -0
  45. package/dist/i18n-format.js +17 -0
  46. package/dist/i18n-format.js.map +1 -0
  47. package/dist/i18n.d.ts +14 -0
  48. package/dist/i18n.d.ts.map +1 -0
  49. package/dist/i18n.js +2 -0
  50. package/dist/i18n.js.map +1 -0
  51. package/dist/index.d.ts +28 -0
  52. package/dist/index.d.ts.map +1 -0
  53. package/dist/index.js +12 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/load-state.d.ts +19 -0
  56. package/dist/load-state.d.ts.map +1 -0
  57. package/dist/load-state.js +2 -0
  58. package/dist/load-state.js.map +1 -0
  59. package/dist/manifest.schema.json +635 -0
  60. package/dist/overlay.d.ts +72 -0
  61. package/dist/overlay.d.ts.map +1 -0
  62. package/dist/overlay.js +7 -0
  63. package/dist/overlay.js.map +1 -0
  64. package/dist/palette.d.ts +22 -0
  65. package/dist/palette.d.ts.map +1 -0
  66. package/dist/palette.js +104 -0
  67. package/dist/palette.js.map +1 -0
  68. package/dist/permissions.d.ts +19 -0
  69. package/dist/permissions.d.ts.map +1 -0
  70. package/dist/permissions.js +15 -0
  71. package/dist/permissions.js.map +1 -0
  72. package/dist/plugin.d.ts +15 -0
  73. package/dist/plugin.d.ts.map +1 -0
  74. package/dist/plugin.js +2 -0
  75. package/dist/plugin.js.map +1 -0
  76. package/dist/rci.d.ts +5 -0
  77. package/dist/rci.d.ts.map +1 -0
  78. package/dist/rci.js +7 -0
  79. package/dist/rci.js.map +1 -0
  80. package/dist/refresh.d.ts +16 -0
  81. package/dist/refresh.d.ts.map +1 -0
  82. package/dist/refresh.js +77 -0
  83. package/dist/refresh.js.map +1 -0
  84. package/dist/rrd.d.ts +16 -0
  85. package/dist/rrd.d.ts.map +1 -0
  86. package/dist/rrd.js +20 -0
  87. package/dist/rrd.js.map +1 -0
  88. package/dist/storage.d.ts +7 -0
  89. package/dist/storage.d.ts.map +1 -0
  90. package/dist/storage.js +2 -0
  91. package/dist/storage.js.map +1 -0
  92. package/dist/svelte/create-translator.d.ts +5 -0
  93. package/dist/svelte/create-translator.d.ts.map +1 -0
  94. package/dist/svelte/create-translator.js +19 -0
  95. package/dist/svelte/create-translator.js.map +1 -0
  96. package/dist/svelte/index.d.ts +4 -0
  97. package/dist/svelte/index.d.ts.map +1 -0
  98. package/dist/svelte/index.js +3 -0
  99. package/dist/svelte/index.js.map +1 -0
  100. package/dist/telemetry-client.d.ts +60 -0
  101. package/dist/telemetry-client.d.ts.map +1 -0
  102. package/dist/telemetry-client.js +199 -0
  103. package/dist/telemetry-client.js.map +1 -0
  104. package/dist/testing/dom.d.ts +6 -0
  105. package/dist/testing/dom.d.ts.map +1 -0
  106. package/dist/testing/dom.js +27 -0
  107. package/dist/testing/dom.js.map +1 -0
  108. package/dist/testing/i18n.d.ts +7 -0
  109. package/dist/testing/i18n.d.ts.map +1 -0
  110. package/dist/testing/i18n.js +25 -0
  111. package/dist/testing/i18n.js.map +1 -0
  112. package/dist/testing/index.d.ts +8 -0
  113. package/dist/testing/index.d.ts.map +1 -0
  114. package/dist/testing/index.js +6 -0
  115. package/dist/testing/index.js.map +1 -0
  116. package/dist/testing/observers.d.ts +2 -0
  117. package/dist/testing/observers.d.ts.map +1 -0
  118. package/dist/testing/observers.js +32 -0
  119. package/dist/testing/observers.js.map +1 -0
  120. package/dist/testing/plugin-context.d.ts +38 -0
  121. package/dist/testing/plugin-context.d.ts.map +1 -0
  122. package/dist/testing/plugin-context.js +199 -0
  123. package/dist/testing/plugin-context.js.map +1 -0
  124. package/dist/testing/vitest-project.d.ts +13 -0
  125. package/dist/testing/vitest-project.d.ts.map +1 -0
  126. package/dist/testing/vitest-project.js +26 -0
  127. package/dist/testing/vitest-project.js.map +1 -0
  128. package/dist/ticker.d.ts +14 -0
  129. package/dist/ticker.d.ts.map +1 -0
  130. package/dist/ticker.js +2 -0
  131. package/dist/ticker.js.map +1 -0
  132. package/dist/tokens.css +114 -0
  133. package/dist/tokens.d.ts +128 -0
  134. package/dist/tokens.d.ts.map +1 -0
  135. package/dist/tokens.js +128 -0
  136. package/dist/tokens.js.map +1 -0
  137. package/dist/translator.d.ts +9 -0
  138. package/dist/translator.d.ts.map +1 -0
  139. package/dist/translator.js +2 -0
  140. package/dist/translator.js.map +1 -0
  141. package/dist/version.d.ts +3 -0
  142. package/dist/version.d.ts.map +1 -0
  143. package/dist/version.js +3 -0
  144. package/dist/version.js.map +1 -0
  145. package/dist/vue/index.d.ts +5 -0
  146. package/dist/vue/index.d.ts.map +1 -0
  147. package/dist/vue/index.js +4 -0
  148. package/dist/vue/index.js.map +1 -0
  149. package/dist/vue/use-observable.d.ts +8 -0
  150. package/dist/vue/use-observable.d.ts.map +1 -0
  151. package/dist/vue/use-observable.js +16 -0
  152. package/dist/vue/use-observable.js.map +1 -0
  153. package/dist/vue/use-translator.d.ts +4 -0
  154. package/dist/vue/use-translator.d.ts.map +1 -0
  155. package/dist/vue/use-translator.js +32 -0
  156. package/dist/vue/use-translator.js.map +1 -0
  157. package/package.json +115 -3
@@ -0,0 +1,635 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://mndw/plugin-manifest.schema.json",
4
+ "title": "mndw plugin manifest",
5
+ "description": "Manifest for an mndw plugin (widget or page). Generated from the Zod schema — do not edit by hand; run `pnpm generate-contracts`.",
6
+ "oneOf": [
7
+ {
8
+ "type": "object",
9
+ "properties": {
10
+ "manifestVersion": {
11
+ "type": "number",
12
+ "const": 1,
13
+ "description": "Manifest format version. Must be 1."
14
+ },
15
+ "name": {
16
+ "type": "string",
17
+ "pattern": "^[a-z0-9][a-z0-9-]*$",
18
+ "description": "Unique plugin id used as the on-disk folder and URL segment."
19
+ },
20
+ "version": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "description": "Semver-ish version string."
24
+ },
25
+ "label": {
26
+ "type": "string",
27
+ "minLength": 1,
28
+ "description": "Human-readable name shown in the dashboard or navigation."
29
+ },
30
+ "entry": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "description": "Relative path to the bundled entry module."
34
+ },
35
+ "icon": {
36
+ "description": "Optional icon name.",
37
+ "type": "string"
38
+ },
39
+ "permissions": {
40
+ "type": "array",
41
+ "items": {
42
+ "anyOf": [
43
+ {
44
+ "type": "string",
45
+ "enum": [
46
+ "persistent-rci-session:read",
47
+ "persistent-rci-session:write"
48
+ ]
49
+ },
50
+ {
51
+ "type": "string",
52
+ "pattern": "^events:(\\*|[a-z][a-z0-9]*(?:,[a-z][a-z0-9]*)*)$"
53
+ }
54
+ ]
55
+ }
56
+ },
57
+ "i18n": {
58
+ "type": "object",
59
+ "properties": {
60
+ "defaultLocale": {
61
+ "type": "string",
62
+ "minLength": 1
63
+ },
64
+ "locales": {
65
+ "type": "object",
66
+ "propertyNames": {
67
+ "type": "string"
68
+ },
69
+ "additionalProperties": {
70
+ "type": "string",
71
+ "minLength": 1
72
+ }
73
+ }
74
+ },
75
+ "required": [
76
+ "defaultLocale",
77
+ "locales"
78
+ ],
79
+ "additionalProperties": false
80
+ },
81
+ "backend": {
82
+ "anyOf": [
83
+ {
84
+ "type": "object",
85
+ "properties": {
86
+ "kind": {
87
+ "type": "string",
88
+ "const": "exec"
89
+ },
90
+ "packages": {
91
+ "type": "array",
92
+ "items": {
93
+ "type": "string",
94
+ "pattern": "^[a-z0-9][a-z0-9+_.-]*$"
95
+ }
96
+ },
97
+ "routes": {
98
+ "minItems": 1,
99
+ "type": "array",
100
+ "items": {
101
+ "type": "object",
102
+ "properties": {
103
+ "id": {
104
+ "type": "string",
105
+ "minLength": 1
106
+ },
107
+ "transport": {
108
+ "type": "string",
109
+ "const": "http"
110
+ },
111
+ "method": {
112
+ "type": "string",
113
+ "enum": [
114
+ "GET",
115
+ "HEAD",
116
+ "POST",
117
+ "PUT",
118
+ "PATCH",
119
+ "DELETE"
120
+ ]
121
+ },
122
+ "path": {
123
+ "type": "string"
124
+ },
125
+ "access": {
126
+ "default": "session",
127
+ "type": "string",
128
+ "enum": [
129
+ "session",
130
+ "public"
131
+ ]
132
+ },
133
+ "command": {
134
+ "type": "string",
135
+ "minLength": 1
136
+ }
137
+ },
138
+ "required": [
139
+ "id",
140
+ "transport",
141
+ "method",
142
+ "path",
143
+ "access",
144
+ "command"
145
+ ],
146
+ "additionalProperties": false
147
+ }
148
+ }
149
+ },
150
+ "required": [
151
+ "kind",
152
+ "routes"
153
+ ],
154
+ "additionalProperties": false
155
+ },
156
+ {
157
+ "type": "object",
158
+ "properties": {
159
+ "kind": {
160
+ "type": "string",
161
+ "const": "service"
162
+ },
163
+ "protocolVersion": {
164
+ "type": "integer",
165
+ "exclusiveMinimum": 0,
166
+ "maximum": 9007199254740991
167
+ },
168
+ "command": {
169
+ "type": "string",
170
+ "minLength": 1
171
+ },
172
+ "args": {
173
+ "type": "array",
174
+ "items": {
175
+ "type": "string",
176
+ "minLength": 1
177
+ }
178
+ },
179
+ "packages": {
180
+ "type": "array",
181
+ "items": {
182
+ "type": "string",
183
+ "pattern": "^[a-z0-9][a-z0-9+_.-]*$"
184
+ }
185
+ },
186
+ "routes": {
187
+ "minItems": 1,
188
+ "type": "array",
189
+ "items": {
190
+ "anyOf": [
191
+ {
192
+ "type": "object",
193
+ "properties": {
194
+ "id": {
195
+ "type": "string",
196
+ "minLength": 1
197
+ },
198
+ "transport": {
199
+ "type": "string",
200
+ "const": "http"
201
+ },
202
+ "method": {
203
+ "type": "string",
204
+ "enum": [
205
+ "GET",
206
+ "HEAD",
207
+ "POST",
208
+ "PUT",
209
+ "PATCH",
210
+ "DELETE"
211
+ ]
212
+ },
213
+ "path": {
214
+ "type": "string"
215
+ },
216
+ "access": {
217
+ "default": "session",
218
+ "type": "string",
219
+ "enum": [
220
+ "session",
221
+ "public"
222
+ ]
223
+ }
224
+ },
225
+ "required": [
226
+ "id",
227
+ "transport",
228
+ "method",
229
+ "path",
230
+ "access"
231
+ ],
232
+ "additionalProperties": false
233
+ },
234
+ {
235
+ "type": "object",
236
+ "properties": {
237
+ "id": {
238
+ "type": "string",
239
+ "minLength": 1
240
+ },
241
+ "transport": {
242
+ "type": "string",
243
+ "const": "websocket"
244
+ },
245
+ "path": {
246
+ "type": "string"
247
+ },
248
+ "access": {
249
+ "default": "session",
250
+ "type": "string",
251
+ "enum": [
252
+ "session",
253
+ "public"
254
+ ]
255
+ },
256
+ "protocols": {
257
+ "type": "array",
258
+ "items": {
259
+ "type": "string",
260
+ "minLength": 1
261
+ }
262
+ }
263
+ },
264
+ "required": [
265
+ "id",
266
+ "transport",
267
+ "path",
268
+ "access"
269
+ ],
270
+ "additionalProperties": false
271
+ }
272
+ ]
273
+ }
274
+ }
275
+ },
276
+ "required": [
277
+ "kind",
278
+ "protocolVersion",
279
+ "command",
280
+ "routes"
281
+ ],
282
+ "additionalProperties": false
283
+ }
284
+ ]
285
+ },
286
+ "type": {
287
+ "type": "string",
288
+ "const": "widget"
289
+ },
290
+ "size": {
291
+ "type": "object",
292
+ "properties": {
293
+ "w": {
294
+ "type": "integer",
295
+ "exclusiveMinimum": 0,
296
+ "maximum": 12
297
+ },
298
+ "h": {
299
+ "type": "integer",
300
+ "exclusiveMinimum": 0,
301
+ "maximum": 9007199254740991
302
+ },
303
+ "minW": {
304
+ "type": "integer",
305
+ "exclusiveMinimum": 0,
306
+ "maximum": 12
307
+ },
308
+ "minH": {
309
+ "type": "integer",
310
+ "exclusiveMinimum": 0,
311
+ "maximum": 9007199254740991
312
+ }
313
+ },
314
+ "required": [
315
+ "w",
316
+ "h"
317
+ ],
318
+ "additionalProperties": false
319
+ },
320
+ "fixedHeight": {
321
+ "type": "boolean"
322
+ }
323
+ },
324
+ "required": [
325
+ "manifestVersion",
326
+ "name",
327
+ "version",
328
+ "label",
329
+ "entry",
330
+ "type",
331
+ "size"
332
+ ],
333
+ "additionalProperties": false
334
+ },
335
+ {
336
+ "type": "object",
337
+ "properties": {
338
+ "manifestVersion": {
339
+ "type": "number",
340
+ "const": 1,
341
+ "description": "Manifest format version. Must be 1."
342
+ },
343
+ "name": {
344
+ "type": "string",
345
+ "pattern": "^[a-z0-9][a-z0-9-]*$",
346
+ "description": "Unique plugin id used as the on-disk folder and URL segment."
347
+ },
348
+ "version": {
349
+ "type": "string",
350
+ "minLength": 1,
351
+ "description": "Semver-ish version string."
352
+ },
353
+ "label": {
354
+ "type": "string",
355
+ "minLength": 1,
356
+ "description": "Human-readable name shown in the dashboard or navigation."
357
+ },
358
+ "entry": {
359
+ "type": "string",
360
+ "minLength": 1,
361
+ "description": "Relative path to the bundled entry module."
362
+ },
363
+ "icon": {
364
+ "description": "Optional icon name.",
365
+ "type": "string"
366
+ },
367
+ "permissions": {
368
+ "type": "array",
369
+ "items": {
370
+ "anyOf": [
371
+ {
372
+ "type": "string",
373
+ "enum": [
374
+ "persistent-rci-session:read",
375
+ "persistent-rci-session:write"
376
+ ]
377
+ },
378
+ {
379
+ "type": "string",
380
+ "pattern": "^events:(\\*|[a-z][a-z0-9]*(?:,[a-z][a-z0-9]*)*)$"
381
+ }
382
+ ]
383
+ }
384
+ },
385
+ "i18n": {
386
+ "type": "object",
387
+ "properties": {
388
+ "defaultLocale": {
389
+ "type": "string",
390
+ "minLength": 1
391
+ },
392
+ "locales": {
393
+ "type": "object",
394
+ "propertyNames": {
395
+ "type": "string"
396
+ },
397
+ "additionalProperties": {
398
+ "type": "string",
399
+ "minLength": 1
400
+ }
401
+ }
402
+ },
403
+ "required": [
404
+ "defaultLocale",
405
+ "locales"
406
+ ],
407
+ "additionalProperties": false
408
+ },
409
+ "backend": {
410
+ "anyOf": [
411
+ {
412
+ "type": "object",
413
+ "properties": {
414
+ "kind": {
415
+ "type": "string",
416
+ "const": "exec"
417
+ },
418
+ "packages": {
419
+ "type": "array",
420
+ "items": {
421
+ "type": "string",
422
+ "pattern": "^[a-z0-9][a-z0-9+_.-]*$"
423
+ }
424
+ },
425
+ "routes": {
426
+ "minItems": 1,
427
+ "type": "array",
428
+ "items": {
429
+ "type": "object",
430
+ "properties": {
431
+ "id": {
432
+ "type": "string",
433
+ "minLength": 1
434
+ },
435
+ "transport": {
436
+ "type": "string",
437
+ "const": "http"
438
+ },
439
+ "method": {
440
+ "type": "string",
441
+ "enum": [
442
+ "GET",
443
+ "HEAD",
444
+ "POST",
445
+ "PUT",
446
+ "PATCH",
447
+ "DELETE"
448
+ ]
449
+ },
450
+ "path": {
451
+ "type": "string"
452
+ },
453
+ "access": {
454
+ "default": "session",
455
+ "type": "string",
456
+ "enum": [
457
+ "session",
458
+ "public"
459
+ ]
460
+ },
461
+ "command": {
462
+ "type": "string",
463
+ "minLength": 1
464
+ }
465
+ },
466
+ "required": [
467
+ "id",
468
+ "transport",
469
+ "method",
470
+ "path",
471
+ "access",
472
+ "command"
473
+ ],
474
+ "additionalProperties": false
475
+ }
476
+ }
477
+ },
478
+ "required": [
479
+ "kind",
480
+ "routes"
481
+ ],
482
+ "additionalProperties": false
483
+ },
484
+ {
485
+ "type": "object",
486
+ "properties": {
487
+ "kind": {
488
+ "type": "string",
489
+ "const": "service"
490
+ },
491
+ "protocolVersion": {
492
+ "type": "integer",
493
+ "exclusiveMinimum": 0,
494
+ "maximum": 9007199254740991
495
+ },
496
+ "command": {
497
+ "type": "string",
498
+ "minLength": 1
499
+ },
500
+ "args": {
501
+ "type": "array",
502
+ "items": {
503
+ "type": "string",
504
+ "minLength": 1
505
+ }
506
+ },
507
+ "packages": {
508
+ "type": "array",
509
+ "items": {
510
+ "type": "string",
511
+ "pattern": "^[a-z0-9][a-z0-9+_.-]*$"
512
+ }
513
+ },
514
+ "routes": {
515
+ "minItems": 1,
516
+ "type": "array",
517
+ "items": {
518
+ "anyOf": [
519
+ {
520
+ "type": "object",
521
+ "properties": {
522
+ "id": {
523
+ "type": "string",
524
+ "minLength": 1
525
+ },
526
+ "transport": {
527
+ "type": "string",
528
+ "const": "http"
529
+ },
530
+ "method": {
531
+ "type": "string",
532
+ "enum": [
533
+ "GET",
534
+ "HEAD",
535
+ "POST",
536
+ "PUT",
537
+ "PATCH",
538
+ "DELETE"
539
+ ]
540
+ },
541
+ "path": {
542
+ "type": "string"
543
+ },
544
+ "access": {
545
+ "default": "session",
546
+ "type": "string",
547
+ "enum": [
548
+ "session",
549
+ "public"
550
+ ]
551
+ }
552
+ },
553
+ "required": [
554
+ "id",
555
+ "transport",
556
+ "method",
557
+ "path",
558
+ "access"
559
+ ],
560
+ "additionalProperties": false
561
+ },
562
+ {
563
+ "type": "object",
564
+ "properties": {
565
+ "id": {
566
+ "type": "string",
567
+ "minLength": 1
568
+ },
569
+ "transport": {
570
+ "type": "string",
571
+ "const": "websocket"
572
+ },
573
+ "path": {
574
+ "type": "string"
575
+ },
576
+ "access": {
577
+ "default": "session",
578
+ "type": "string",
579
+ "enum": [
580
+ "session",
581
+ "public"
582
+ ]
583
+ },
584
+ "protocols": {
585
+ "type": "array",
586
+ "items": {
587
+ "type": "string",
588
+ "minLength": 1
589
+ }
590
+ }
591
+ },
592
+ "required": [
593
+ "id",
594
+ "transport",
595
+ "path",
596
+ "access"
597
+ ],
598
+ "additionalProperties": false
599
+ }
600
+ ]
601
+ }
602
+ }
603
+ },
604
+ "required": [
605
+ "kind",
606
+ "protocolVersion",
607
+ "command",
608
+ "routes"
609
+ ],
610
+ "additionalProperties": false
611
+ }
612
+ ]
613
+ },
614
+ "type": {
615
+ "type": "string",
616
+ "const": "page"
617
+ },
618
+ "route": {
619
+ "type": "string",
620
+ "pattern": "^\\/[^/?#*]+$"
621
+ }
622
+ },
623
+ "required": [
624
+ "manifestVersion",
625
+ "name",
626
+ "version",
627
+ "label",
628
+ "entry",
629
+ "type",
630
+ "route"
631
+ ],
632
+ "additionalProperties": false
633
+ }
634
+ ]
635
+ }