@kubohiroya/turbowarp-extension-data-editor 0.2.0 → 0.2.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 (68) hide show
  1. package/README.md +9 -6
  2. package/dist/build-info.json +3 -3
  3. package/dist/fixed-input-branches.d.ts +12 -0
  4. package/dist/fixed-input-branches.js +180 -0
  5. package/dist/fixed-input-editor.d.ts +39 -0
  6. package/dist/fixed-input-editor.js +538 -0
  7. package/dist/fixed-input-schema.d.ts +15 -0
  8. package/dist/fixed-input-schema.js +21 -0
  9. package/dist/fixed-input-snapshot.d.ts +7 -0
  10. package/dist/fixed-input-snapshot.js +180 -0
  11. package/dist/fixed-input-types.d.ts +138 -0
  12. package/dist/fixed-input-types.js +23 -0
  13. package/dist/fixed-input-view.d.ts +14 -0
  14. package/dist/fixed-input-view.js +168 -0
  15. package/dist/index.d.ts +6 -0
  16. package/dist/index.js +4 -0
  17. package/dist/react.css +168 -0
  18. package/dist/react.d.ts +8 -0
  19. package/dist/react.js +19 -2
  20. package/dist/registry.d.ts +4 -0
  21. package/dist/registry.js +45 -7
  22. package/dist/rjsf-templates.d.ts +11 -0
  23. package/dist/rjsf-templates.js +129 -0
  24. package/dist/rjsf.d.ts +24 -1
  25. package/dist/rjsf.js +35 -3
  26. package/dist/schema.d.ts +2 -0
  27. package/dist/schema.js +1 -0
  28. package/dist/session.d.ts +3 -1
  29. package/dist/session.js +205 -7
  30. package/dist/turbowarp/bridge.d.ts +2 -1
  31. package/dist/turbowarp/bridge.js +37 -5
  32. package/dist/turbowarp/fixed-fields.d.ts +82 -0
  33. package/dist/turbowarp/fixed-fields.js +311 -0
  34. package/dist/turbowarp/fixed-transaction.d.ts +18 -0
  35. package/dist/turbowarp/fixed-transaction.js +460 -0
  36. package/dist/turbowarp/host.d.ts +3 -8
  37. package/dist/turbowarp/host.js +68 -1
  38. package/dist/turbowarp.d.ts +4 -0
  39. package/dist/turbowarp.js +1 -1
  40. package/dist/types.d.ts +5 -0
  41. package/dist/view.js +4 -0
  42. package/dist/webpack4/index.js +22 -5
  43. package/dist/webpack4/metafile.json +592 -299
  44. package/dist/webpack4/react.js +20 -6
  45. package/dist/webpack4/react.js.map +2 -2
  46. package/dist/webpack4/rjsf.js +450 -60
  47. package/dist/webpack4/rjsf.js.map +4 -4
  48. package/dist/webpack4/schema.js +6 -3
  49. package/dist/webpack4/{shared-KQOUMWJ4.js → shared-75QIWLZY.js} +1129 -1244
  50. package/dist/webpack4/{shared-KQOUMWJ4.js.map → shared-75QIWLZY.js.map} +4 -4
  51. package/dist/webpack4/shared-FYUILHED.js +1 -0
  52. package/dist/webpack4/shared-GQLPPRT2.js +210 -0
  53. package/dist/webpack4/shared-GQLPPRT2.js.map +7 -0
  54. package/dist/webpack4/shared-P2JBRZFP.js +2206 -0
  55. package/dist/webpack4/shared-P2JBRZFP.js.map +7 -0
  56. package/dist/webpack4/turbowarp.js +913 -9
  57. package/dist/webpack4/turbowarp.js.map +4 -4
  58. package/docs/api.md +7 -0
  59. package/docs/fixed-input-contracts.md +77 -0
  60. package/docs/package-distribution.md +5 -0
  61. package/docs/stage-2-publication.ja.md +6 -0
  62. package/package.json +2 -1
  63. package/dist/webpack4/shared-CQB3NG2A.js +0 -1
  64. package/dist/webpack4/shared-MRPGBJIH.js +0 -75
  65. package/dist/webpack4/shared-MRPGBJIH.js.map +0 -7
  66. package/dist/webpack4/shared-N6YQE2X6.js +0 -1029
  67. package/dist/webpack4/shared-N6YQE2X6.js.map +0 -7
  68. /package/dist/webpack4/{shared-CQB3NG2A.js.map → shared-FYUILHED.js.map} +0 -0
@@ -1,75 +0,0 @@
1
- // dist/schema-json.js
2
- var JsonSnapshotError = class extends Error {
3
- constructor(kind, dataPath) {
4
- super("JSON snapshot failed.");
5
- this.kind = kind;
6
- this.dataPath = dataPath;
7
- }
8
- };
9
- function appendPointer(path, key) {
10
- return `${path}/${key.replace(/~/g, "~0").replace(/\//g, "~1")}`;
11
- }
12
- function snapshotJson(value) {
13
- const active = /* @__PURE__ */ new WeakSet();
14
- let remaining = 1e5;
15
- const visit = (input, path, depth) => {
16
- if (--remaining < 0 || depth > 128)
17
- throw new JsonSnapshotError("limit", path);
18
- if (input === null || typeof input === "string" || typeof input === "boolean")
19
- return input;
20
- if (typeof input === "number" && Number.isFinite(input))
21
- return input;
22
- if (typeof input !== "object" || input === null || active.has(input))
23
- throw new JsonSnapshotError("invalid", path);
24
- const array = Array.isArray(input);
25
- const prototype = Object.getPrototypeOf(input);
26
- if (!array && prototype !== null && prototype !== Object.prototype)
27
- throw new JsonSnapshotError("invalid", path);
28
- if (Object.getOwnPropertySymbols(input).length)
29
- throw new JsonSnapshotError("invalid", path);
30
- active.add(input);
31
- try {
32
- if (array) {
33
- const length = input.length;
34
- if (!Number.isSafeInteger(length) || length > remaining)
35
- throw new JsonSnapshotError("limit", path);
36
- const result2 = [];
37
- for (let i = 0; i < length; i++) {
38
- const child = appendPointer(path, String(i));
39
- const descriptor = Object.getOwnPropertyDescriptor(input, i);
40
- if (!descriptor || !("value" in descriptor))
41
- throw new JsonSnapshotError("invalid", child);
42
- result2.push(visit(descriptor.value, child, depth + 1));
43
- }
44
- for (const key of Object.keys(input)) {
45
- if (!/^(0|[1-9][0-9]*)$/.test(key) || Number(key) >= length)
46
- throw new JsonSnapshotError("invalid", appendPointer(path, key));
47
- }
48
- return result2;
49
- }
50
- const result = {};
51
- for (const key of Object.keys(input)) {
52
- const child = appendPointer(path, key);
53
- const descriptor = Object.getOwnPropertyDescriptor(input, key);
54
- if (!descriptor || !("value" in descriptor))
55
- throw new JsonSnapshotError("invalid", child);
56
- Object.defineProperty(result, key, { value: visit(descriptor.value, child, depth + 1), enumerable: true, writable: true, configurable: true });
57
- }
58
- return result;
59
- } finally {
60
- active.delete(input);
61
- }
62
- };
63
- return visit(value, "", 0);
64
- }
65
- function isJsonRecord(value) {
66
- return value !== null && typeof value === "object" && !Array.isArray(value);
67
- }
68
-
69
- export {
70
- JsonSnapshotError,
71
- appendPointer,
72
- snapshotJson,
73
- isJsonRecord
74
- };
75
- //# sourceMappingURL=shared-MRPGBJIH.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../schema-json.js"],
4
- "sourcesContent": ["export class JsonSnapshotError extends Error {\n constructor(kind, dataPath) {\n super('JSON snapshot failed.');\n this.kind = kind;\n this.dataPath = dataPath;\n }\n}\nexport function appendPointer(path, key) {\n return `${path}/${key.replace(/~/g, '~0').replace(/\\//g, '~1')}`;\n}\n/** Copy JSON values without invoking accessors, toJSON, or input iterators. */\nexport function snapshotJson(value) {\n const active = new WeakSet();\n let remaining = 100000;\n const visit = (input, path, depth) => {\n if (--remaining < 0 || depth > 128)\n throw new JsonSnapshotError('limit', path);\n if (input === null || typeof input === 'string' || typeof input === 'boolean')\n return input;\n if (typeof input === 'number' && Number.isFinite(input))\n return input;\n if (typeof input !== 'object' || input === null || active.has(input))\n throw new JsonSnapshotError('invalid', path);\n const array = Array.isArray(input);\n const prototype = Object.getPrototypeOf(input);\n if (!array && prototype !== null && prototype !== Object.prototype)\n throw new JsonSnapshotError('invalid', path);\n if (Object.getOwnPropertySymbols(input).length)\n throw new JsonSnapshotError('invalid', path);\n active.add(input);\n try {\n if (array) {\n const length = input.length;\n if (!Number.isSafeInteger(length) || length > remaining)\n throw new JsonSnapshotError('limit', path);\n const result = [];\n for (let i = 0; i < length; i++) {\n const child = appendPointer(path, String(i));\n const descriptor = Object.getOwnPropertyDescriptor(input, i);\n if (!descriptor || !('value' in descriptor))\n throw new JsonSnapshotError('invalid', child);\n result.push(visit(descriptor.value, child, depth + 1));\n }\n for (const key of Object.keys(input)) {\n if (!/^(0|[1-9][0-9]*)$/.test(key) || Number(key) >= length)\n throw new JsonSnapshotError('invalid', appendPointer(path, key));\n }\n return result;\n }\n const result = {};\n for (const key of Object.keys(input)) {\n const child = appendPointer(path, key);\n const descriptor = Object.getOwnPropertyDescriptor(input, key);\n if (!descriptor || !('value' in descriptor))\n throw new JsonSnapshotError('invalid', child);\n Object.defineProperty(result, key, { value: visit(descriptor.value, child, depth + 1), enumerable: true, writable: true, configurable: true });\n }\n return result;\n }\n finally {\n active.delete(input);\n }\n };\n return visit(value, '', 0);\n}\nexport function isJsonRecord(value) {\n return value !== null && typeof value === 'object' && !Array.isArray(value);\n}\n"],
5
- "mappings": ";AAAO,IAAM,oBAAN,cAAgC,MAAM;AAAA,EACzC,YAAY,MAAM,UAAU;AACxB,UAAM,uBAAuB;AAC7B,SAAK,OAAO;AACZ,SAAK,WAAW;AAAA,EACpB;AACJ;AACO,SAAS,cAAc,MAAM,KAAK;AACrC,SAAO,GAAG,IAAI,IAAI,IAAI,QAAQ,MAAM,IAAI,EAAE,QAAQ,OAAO,IAAI,CAAC;AAClE;AAEO,SAAS,aAAa,OAAO;AAChC,QAAM,SAAS,oBAAI,QAAQ;AAC3B,MAAI,YAAY;AAChB,QAAM,QAAQ,CAAC,OAAO,MAAM,UAAU;AAClC,QAAI,EAAE,YAAY,KAAK,QAAQ;AAC3B,YAAM,IAAI,kBAAkB,SAAS,IAAI;AAC7C,QAAI,UAAU,QAAQ,OAAO,UAAU,YAAY,OAAO,UAAU;AAChE,aAAO;AACX,QAAI,OAAO,UAAU,YAAY,OAAO,SAAS,KAAK;AAClD,aAAO;AACX,QAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,OAAO,IAAI,KAAK;AAC/D,YAAM,IAAI,kBAAkB,WAAW,IAAI;AAC/C,UAAM,QAAQ,MAAM,QAAQ,KAAK;AACjC,UAAM,YAAY,OAAO,eAAe,KAAK;AAC7C,QAAI,CAAC,SAAS,cAAc,QAAQ,cAAc,OAAO;AACrD,YAAM,IAAI,kBAAkB,WAAW,IAAI;AAC/C,QAAI,OAAO,sBAAsB,KAAK,EAAE;AACpC,YAAM,IAAI,kBAAkB,WAAW,IAAI;AAC/C,WAAO,IAAI,KAAK;AAChB,QAAI;AACA,UAAI,OAAO;AACP,cAAM,SAAS,MAAM;AACrB,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