@es-joy/jsoe 0.11.1 → 0.12.1

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 (110) hide show
  1. package/.nyc_output/out.json +5080 -4945
  2. package/CHANGES.md +10 -0
  3. package/README.md +2 -0
  4. package/cypress.config.ts +2 -0
  5. package/dist/formats/structuredCloning.d.ts.map +1 -1
  6. package/dist/fundamentalTypes/domexceptionType.d.ts +6 -0
  7. package/dist/fundamentalTypes/domexceptionType.d.ts.map +1 -0
  8. package/dist/fundamentalTypes/dommatrixType.d.ts +6 -0
  9. package/dist/fundamentalTypes/dommatrixType.d.ts.map +1 -0
  10. package/dist/fundamentalTypes/dompointType.d.ts +6 -0
  11. package/dist/fundamentalTypes/dompointType.d.ts.map +1 -0
  12. package/dist/fundamentalTypes/domrectType.d.ts +6 -0
  13. package/dist/fundamentalTypes/domrectType.d.ts.map +1 -0
  14. package/dist/index.d.ts +1 -10
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/typeChoices.d.ts +11 -3
  17. package/dist/typeChoices.d.ts.map +1 -1
  18. package/dist/types.d.ts +5 -4
  19. package/dist/types.d.ts.map +1 -1
  20. package/dist/vendor-imports.d.ts +2 -2
  21. package/package.json +9 -8
  22. package/src/formats/structuredCloning.js +13 -6
  23. package/src/index.d.ts +2 -0
  24. package/src/typeChoices.js +7 -1
  25. package/src/vendor-imports.js +5 -6
  26. package/tsconfig.json +1 -1
  27. package/dist/formats/schemaAndArbitrary.d.ts +0 -6
  28. package/dist/formats/schemaAndArbitrary.d.ts.map +0 -1
  29. package/dist/formats/schemaOnly.d.ts +0 -6
  30. package/dist/formats/schemaOnly.d.ts.map +0 -1
  31. package/dist/schema/iterate.d.ts +0 -15
  32. package/dist/schema/iterate.d.ts.map +0 -1
  33. package/dist/src/deepEqual.d.ts +0 -3
  34. package/dist/src/deepEqual.d.ts.map +0 -1
  35. package/dist/src/formatAndTypeChoices.d.ts +0 -47
  36. package/dist/src/formatAndTypeChoices.d.ts.map +0 -1
  37. package/dist/src/formats/indexedDBKey.d.ts +0 -9
  38. package/dist/src/formats/indexedDBKey.d.ts.map +0 -1
  39. package/dist/src/formats/json.d.ts +0 -9
  40. package/dist/src/formats/json.d.ts.map +0 -1
  41. package/dist/src/formats/schemaAndArbitrary.d.ts +0 -6
  42. package/dist/src/formats/schemaAndArbitrary.d.ts.map +0 -1
  43. package/dist/src/formats/schemaOnly.d.ts +0 -6
  44. package/dist/src/formats/schemaOnly.d.ts.map +0 -1
  45. package/dist/src/formats/structuredCloning.d.ts +0 -15
  46. package/dist/src/formats/structuredCloning.d.ts.map +0 -1
  47. package/dist/src/formats.d.ts +0 -18
  48. package/dist/src/formats.d.ts.map +0 -1
  49. package/dist/src/fundamentalTypes/BooleanObjectType.d.ts +0 -6
  50. package/dist/src/fundamentalTypes/BooleanObjectType.d.ts.map +0 -1
  51. package/dist/src/fundamentalTypes/NumberObjectType.d.ts +0 -6
  52. package/dist/src/fundamentalTypes/NumberObjectType.d.ts.map +0 -1
  53. package/dist/src/fundamentalTypes/StringObjectType.d.ts +0 -6
  54. package/dist/src/fundamentalTypes/StringObjectType.d.ts.map +0 -1
  55. package/dist/src/fundamentalTypes/arrayReferenceType.d.ts +0 -6
  56. package/dist/src/fundamentalTypes/arrayReferenceType.d.ts.map +0 -1
  57. package/dist/src/fundamentalTypes/arrayType.d.ts +0 -6
  58. package/dist/src/fundamentalTypes/arrayType.d.ts.map +0 -1
  59. package/dist/src/fundamentalTypes/bigintType.d.ts +0 -6
  60. package/dist/src/fundamentalTypes/bigintType.d.ts.map +0 -1
  61. package/dist/src/fundamentalTypes/dateType.d.ts +0 -6
  62. package/dist/src/fundamentalTypes/dateType.d.ts.map +0 -1
  63. package/dist/src/fundamentalTypes/nullType.d.ts +0 -6
  64. package/dist/src/fundamentalTypes/nullType.d.ts.map +0 -1
  65. package/dist/src/fundamentalTypes/numberType.d.ts +0 -6
  66. package/dist/src/fundamentalTypes/numberType.d.ts.map +0 -1
  67. package/dist/src/fundamentalTypes/objectReferenceType.d.ts +0 -6
  68. package/dist/src/fundamentalTypes/objectReferenceType.d.ts.map +0 -1
  69. package/dist/src/fundamentalTypes/objectType.d.ts +0 -6
  70. package/dist/src/fundamentalTypes/objectType.d.ts.map +0 -1
  71. package/dist/src/fundamentalTypes/regexpType.d.ts +0 -6
  72. package/dist/src/fundamentalTypes/regexpType.d.ts.map +0 -1
  73. package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts +0 -6
  74. package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts.map +0 -1
  75. package/dist/src/fundamentalTypes/stringType.d.ts +0 -6
  76. package/dist/src/fundamentalTypes/stringType.d.ts.map +0 -1
  77. package/dist/src/fundamentalTypes/undefinedType.d.ts +0 -6
  78. package/dist/src/fundamentalTypes/undefinedType.d.ts.map +0 -1
  79. package/dist/src/index.d.ts +0 -5
  80. package/dist/src/index.d.ts.map +0 -1
  81. package/dist/src/subTypes/blobHTMLType.d.ts +0 -26
  82. package/dist/src/subTypes/blobHTMLType.d.ts.map +0 -1
  83. package/dist/src/subTypes/falseType.d.ts +0 -6
  84. package/dist/src/subTypes/falseType.d.ts.map +0 -1
  85. package/dist/src/subTypes/trueType.d.ts +0 -6
  86. package/dist/src/subTypes/trueType.d.ts.map +0 -1
  87. package/dist/src/superTypes/SpecialNumberSuperType.d.ts +0 -11
  88. package/dist/src/superTypes/SpecialNumberSuperType.d.ts.map +0 -1
  89. package/dist/src/superTypes/SpecialRealNumberSuperType.d.ts +0 -6
  90. package/dist/src/superTypes/SpecialRealNumberSuperType.d.ts.map +0 -1
  91. package/dist/src/typeChoices.d.ts +0 -30
  92. package/dist/src/typeChoices.d.ts.map +0 -1
  93. package/dist/src/types.d.ts +0 -333
  94. package/dist/src/types.d.ts.map +0 -1
  95. package/dist/src/utils/dialogs.d.ts +0 -29
  96. package/dist/src/utils/dialogs.d.ts.map +0 -1
  97. package/dist/src/utils/jsonPointer.d.ts +0 -42
  98. package/dist/src/utils/jsonPointer.d.ts.map +0 -1
  99. package/dist/src/utils/templateUtils.d.ts +0 -59
  100. package/dist/src/utils/templateUtils.d.ts.map +0 -1
  101. package/dist/src/utils/types.d.ts +0 -2
  102. package/dist/src/utils/types.d.ts.map +0 -1
  103. package/dist/superTypes/SpecialNumberSuperType.d.ts +0 -14
  104. package/dist/superTypes/SpecialNumberSuperType.d.ts.map +0 -1
  105. package/dist/superTypes/SpecialRealNumberSuperType.d.ts +0 -6
  106. package/dist/superTypes/SpecialRealNumberSuperType.d.ts.map +0 -1
  107. package/dist/vendor/jamilih/dist/jml-es.d.ts +0 -436
  108. package/dist/vendor/jamilih/dist/jml-es.d.ts.map +0 -1
  109. package/dist/vendor/typeson-registry/dist/index.d.ts +0 -400
  110. package/dist/vendor/typeson-registry/dist/index.d.ts.map +0 -1
package/CHANGES.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGES TO `@es-joy/jsoe`
2
2
 
3
+ ## 0.12.1
4
+
5
+ - refactor: TS work
6
+
7
+ ## 0.12.0
8
+
9
+ - feat: allow order to be changed in menu
10
+ - feat: help TS find files (when imported from file system)
11
+ - chore: update devDeps.
12
+
3
13
  ## 0.11.1
4
14
 
5
15
  - fix: add missing type title to svg dom types
package/README.md CHANGED
@@ -111,6 +111,8 @@ Supported supertypes include:
111
111
  1. Web/API types
112
112
  1. imagedata, imagebitmap
113
113
  1. cryptokey
114
+ 1. domquad
115
+ 1. dompointreadonly, dommatrixreadonly, domrectreadonly
114
116
  1. Our own custom derivative types? (e.g., MIDI using TypedArray)
115
117
  1. Expand subtypes
116
118
  1. String
package/cypress.config.ts CHANGED
@@ -4,6 +4,8 @@ import plugins from './cypress/plugins/index.js';
4
4
  export default defineConfig({
5
5
  defaultCommandTimeout: 8000,
6
6
  video: false,
7
+ experimentalMemoryManagement: true,
8
+ projectId: 'biz82n', // Cypress Cloud
7
9
  e2e: {
8
10
  baseUrl: 'http://127.0.0.1:8087',
9
11
  setupNodeEvents (on, config) {
@@ -1 +1 @@
1
- {"version":3,"file":"structuredCloning.d.ts","sourceRoot":"","sources":["../../src/formats/structuredCloning.js"],"names":[],"mappings":";2CAcoB;IACnB,QAAY,EAAE,MAAM,CAAC;IACrB,IAAQ,EAAE,OAAO,aAAa,EAAE,aAAa,CAAC;IAC9C,KAAS,EAAE,OAAO,eAAe,EAAE,oBAAoB,CAAC;IACxD,cAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAe,CAAC,EAAE,OAAO,aAAa,EAAE,gCAAgC,CAAA;CACrE,KAAK,WAAW,GAAC,IAAI;kCAIZ,OAAO,kBAAkB,EAAE,mBAAmB;uCA4VhD,OAAO,eAAe,EAAE,oBAAoB,YAC5C,OAAO,aAAa,EAAE,WAAW,KAC/B,QAAQ,OAAO,CAAC;AAJ7B;;;;;GAKG;AAEH,6CAA6C;AAC7C,iCADW,OAAO,eAAe,EAAE,MAAM,CA+GvC"}
1
+ {"version":3,"file":"structuredCloning.d.ts","sourceRoot":"","sources":["../../src/formats/structuredCloning.js"],"names":[],"mappings":";2CAcoB;IACnB,QAAY,EAAE,MAAM,CAAC;IACrB,IAAQ,EAAE,OAAO,aAAa,EAAE,aAAa,CAAC;IAC9C,KAAS,EAAE,OAAO,eAAe,EAAE,oBAAoB,CAAC;IACxD,cAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAe,CAAC,EAAE,OAAO,aAAa,EAAE,gCAAgC,CAAA;CACrE,KAAK,WAAW,GAAC,IAAI;kCAIZ,OAAO,kBAAkB,EAAE,mBAAmB;uCAmWhD,OAAO,eAAe,EAAE,oBAAoB,YAC5C,OAAO,aAAa,EAAE,WAAW,KAC/B,QAAQ,OAAO,CAAC;AAJ7B;;;;;GAKG;AAEH,6CAA6C;AAC7C,iCADW,OAAO,eAAe,EAAE,MAAM,CA8GvC"}
@@ -0,0 +1,6 @@
1
+ export default domexceptionType;
2
+ /**
3
+ * @type {import('../types.js').TypeObject}
4
+ */
5
+ declare const domexceptionType: import('../types.js').TypeObject;
6
+ //# sourceMappingURL=domexceptionType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domexceptionType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/domexceptionType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,gCAFU,OAAO,aAAa,EAAE,UAAU,CAsHxC"}
@@ -0,0 +1,6 @@
1
+ export default dommatrixType;
2
+ /**
3
+ * @type {import('../types.js').TypeObject}
4
+ */
5
+ declare const dommatrixType: import('../types.js').TypeObject;
6
+ //# sourceMappingURL=dommatrixType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dommatrixType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/dommatrixType.js"],"names":[],"mappings":";AAIA;;GAEG;AACH,6BAFU,OAAO,aAAa,EAAE,UAAU,CA8VxC"}
@@ -0,0 +1,6 @@
1
+ export default dompointType;
2
+ /**
3
+ * @type {import('../types.js').TypeObject}
4
+ */
5
+ declare const dompointType: import('../types.js').TypeObject;
6
+ //# sourceMappingURL=dompointType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dompointType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/dompointType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,4BAFU,OAAO,aAAa,EAAE,UAAU,CAmGxC"}
@@ -0,0 +1,6 @@
1
+ export default domrectType;
2
+ /**
3
+ * @type {import('../types.js').TypeObject}
4
+ */
5
+ declare const domrectType: import('../types.js').TypeObject;
6
+ //# sourceMappingURL=domrectType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domrectType.d.ts","sourceRoot":"","sources":["../../src/fundamentalTypes/domrectType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,2BAFU,OAAO,aAAa,EAAE,UAAU,CAmGxC"}
package/dist/index.d.ts CHANGED
@@ -1,11 +1,2 @@
1
- export { default as Types } from "./types.js";
2
- export { buildTypeChoices as typeChoices } from "./typeChoices.js";
3
- export type TypeRootGetter = import('./formatAndTypeChoices.js').TypeRootGetter;
4
- export type SetType = (cfg: {
5
- type: string;
6
- baseValue?: import('./formats.js').StructuredCloneValue;
7
- bringIntoFocus?: boolean;
8
- }) => void;
9
- export { default as Formats, getControlsForFormatAndValue } from "./formats.js";
10
- export { formatAndTypeChoices, getFormatAndSchemaChoices } from "./formatAndTypeChoices.js";
1
+ export * from '../dist/index.js';
11
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";;6BACa,OAAO,2BAA2B,EAAE,cAAc;4BAG5C;IACnB,IAAQ,EAAE,MAAM,CAAC;IACjB,SAAa,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IAC5D,cAAkB,CAAC,EAAE,OAAO,CAAA;CACzB,KAAK,IAAI"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC"}
@@ -1,6 +1,10 @@
1
1
  /**
2
- * @typedef {import('./index.js').SetType} SetType
3
- */
2
+ * @typedef {(cfg: {
3
+ * type: string,
4
+ * baseValue?: import('./formats.js').StructuredCloneValue,
5
+ * bringIntoFocus?: boolean
6
+ * }) => void} SetType
7
+ */
4
8
  /**
5
9
  * @typedef {(info: {type: string, editUI: Element}) => void} AddTypeAndEditUI
6
10
  */
@@ -68,7 +72,11 @@
68
72
  * @type {BuildTypeChoices}
69
73
  */
70
74
  export const buildTypeChoices: BuildTypeChoices;
71
- export type SetType = import('./index.js').SetType;
75
+ export type SetType = (cfg: {
76
+ type: string;
77
+ baseValue?: import('./formats.js').StructuredCloneValue;
78
+ bringIntoFocus?: boolean;
79
+ }) => void;
72
80
  export type AddTypeAndEditUI = (info: {
73
81
  type: string;
74
82
  editUI: Element;
@@ -1 +1 @@
1
- {"version":3,"file":"typeChoices.d.ts","sourceRoot":"","sources":["../src/typeChoices.js"],"names":[],"mappings":"AAOA;;GAEG;AAEH;;GAEG;AAEH;;;;;GAKG;AAEH;;GAEG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;GAEG;AACH,+BAFU,gBAAgB,CA2PxB;sBAvUW,OAAO,YAAY,EAAE,OAAO;sCAIrB;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAC,KAAK,IAAI;2CAIvC;IACpB,SAAa,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IAC5D,cAAkB,CAAC,EAAE,OAAO,CAAA;CACzB,KAAK,IAAI;wBAIA,MAAM,IAAI;oCAIV,WAAW,GAAG;IAC1B,qBAAyB,EAAE,oBAAoB,CAAC;IAChD,UAAc,EAAE,SAAS,CAAA;CACtB;sHAQS,OAAO,cAAc,EAAE,oBAAoB;4BAK3C,MAAM;mCAKN,OAAO;+BAKT,OAAO,cAAc,EAAE,oBAAoB,YAC3C,OAAO,YAAY,EAAE,WAAW,KAC9B,QAAQ,IAAI,CAAC;qCAKf;IACV,MAAU,EAAE,OAAO,cAAc,EAAE,eAAe,CAAC;IACnD,aAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAS,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IACxD,QAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAkB,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BAAoB,YAC3C,OAAO,YAAY,EAAE,WAAW,KAC9B,QAAQ,IAAI,CAAC;qCAKf;IACV,MAAU,EAAE,OAAO,cAAc,EAAE,eAAe,CAAC;IACnD,aAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAS,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IACxD,QAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAW,CAAC,EAAE,OAAO,YAAY,EAAE,WAAW,CAAC;IAC/C,MAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAiB,CAAC,EAAE,MAAM,CAAC;CACxB,KACS;IACZ,QAAY,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;IAChE,QAAY,EAAE,QAAQ,CAAC;IACvB,OAAW,EAAE,OAAO,CAAC;IACrB,cAAkB,EAAE,cAAc,CAAC;IACnC,QAAY,EAAE,QAAQ,CAAA;CACnB"}
package/dist/types.d.ts CHANGED
@@ -255,7 +255,7 @@ export type TypeObject = {
255
255
  };
256
256
  } | undefined;
257
257
  };
258
- export type AvailableType = "null" | "true" | "false" | "number" | "bigint" | "string" | "arrayReference" | "objectReference" | "array" | "object" | "date" | "userObject" | "undef" | "SpecialRealNumber" | "SpecialNumber" | "regexp" | "BooleanObject" | "NumberObject" | "StringObject" | "map" | "set" | "file" | "filelist" | "blobHTML" | "arraybuffer" | "arraybufferview" | "dataview" | "imagedata" | "imagebitmap" | "int8array" | "uint8array" | "uint8clampedarray" | "int16array" | "uint16array" | "int32array" | "uint32array" | "float32array" | "float64array" | "IntlCollator" | "IntlDateTimeFormat" | "IntlNumberFormat" | "ValidDate" | "arrayNonindexKeys" | "error" | "errors" | "blob";
258
+ export type AvailableType = "null" | "true" | "false" | "number" | "bigint" | "string" | "arrayReference" | "objectReference" | "array" | "object" | "date" | "userObject" | "undef" | "SpecialRealNumber" | "SpecialNumber" | "regexp" | "BooleanObject" | "NumberObject" | "StringObject" | "map" | "set" | "file" | "filelist" | "blobHTML" | "arraybuffer" | "arraybufferview" | "dataview" | "imagedata" | "imagebitmap" | "int8array" | "uint8array" | "uint8clampedarray" | "int16array" | "uint16array" | "int32array" | "uint32array" | "float32array" | "float64array" | "ValidDate" | "arrayNonindexKeys" | "error" | "errors" | "blob" | "domexception" | "domrect" | "dompoint" | "dommatrix";
259
259
  export type GetPossibleSchemasForPathAndType = (keypath: string, parentPath: string, arrayOrObjectPropertyName: string, valueType: string) => StateObject;
260
260
  export type StateObject = {
261
261
  typeNamespace?: string | undefined;
@@ -468,12 +468,13 @@ declare const Types: {
468
468
  uint32array: string[] | Partial<TypeObject>;
469
469
  float32array: string[] | Partial<TypeObject>;
470
470
  float64array: string[] | Partial<TypeObject>;
471
- IntlCollator: string[] | Partial<TypeObject>;
472
- IntlDateTimeFormat: string[] | Partial<TypeObject>;
473
- IntlNumberFormat: string[] | Partial<TypeObject>;
474
471
  ValidDate: string[] | Partial<TypeObject>;
475
472
  arrayNonindexKeys: string[] | Partial<TypeObject>;
476
473
  errors: string[] | Partial<TypeObject>;
474
+ domexception: string[] | Partial<TypeObject>;
475
+ domrect: string[] | Partial<TypeObject>;
476
+ dompoint: string[] | Partial<TypeObject>;
477
+ dommatrix: string[] | Partial<TypeObject>;
477
478
  };
478
479
  getTypeForRoot: GetTypeForRoot;
479
480
  getValueForRoot: GetValueForRoot;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.js"],"names":[],"mappings":"AA6CO,mDAHI,iBAAiB,GACf,MAAM,CAmBlB;;;;;oCAKW,WAAW,YACV,MAAM;;;;;qCAOR,WAAW,2EAGT,oBAAoB;;;;2CA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{ jml, body, nbsp, $ } from "jamilih";
2
- export { getJSONType, Typeson, unescapeKeyPathComponent, structuredCloningThrowing } from "typeson-registry";
1
+ export { jml, body, nbsp, $ } from "../node_modules/jamilih/dist/jml-es.js";
2
+ export { getJSONType, Typeson, unescapeKeyPathComponent, structuredCloningThrowing } from "../node_modules/typeson-registry/dist/index.js";
3
3
  //# sourceMappingURL=vendor-imports.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@es-joy/jsoe",
3
- "version": "0.11.1",
3
+ "version": "0.12.1",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./src/index.js",
@@ -58,15 +58,15 @@
58
58
  "@babel/preset-env": "^7.23.3",
59
59
  "@babel/register": "^7.22.15",
60
60
  "@brettz9/eslint-plugin": "^1.0.4",
61
- "@cypress/code-coverage": "^3.12.10",
61
+ "@cypress/code-coverage": "^3.12.11",
62
62
  "@rollup/plugin-babel": "^6.0.4",
63
63
  "@rollup/plugin-commonjs": "^25.0.7",
64
64
  "@rollup/plugin-node-resolve": "^15.2.3",
65
- "@stylistic/eslint-plugin": "^1.4.0",
66
- "@types/jsdom": "^21.1.5",
67
- "@types/node": "^20.9.2",
65
+ "@stylistic/eslint-plugin": "^1.4.1",
66
+ "@types/jsdom": "^21.1.6",
67
+ "@types/node": "^20.10.0",
68
68
  "axe-core": "^4.8.2",
69
- "cypress": "^13.5.1",
69
+ "cypress": "^13.6.0",
70
70
  "cypress-axe": "^1.5.0",
71
71
  "eslint": "^8.54.0",
72
72
  "eslint-config-ash-nazg": "^35.1.0",
@@ -92,10 +92,11 @@
92
92
  "nyc": "^15.1.0",
93
93
  "open-cli": "^7.2.0",
94
94
  "rimraf": "^5.0.5",
95
- "rollup": "4.5.0",
95
+ "rollup": "4.6.0",
96
96
  "rollup-plugin-istanbul": "^5.0.0",
97
97
  "rollup-plugin-node-builtins": "^2.1.2",
98
- "typescript": "^5.2.2",
98
+ "typescript": "^5.3.2",
99
+ "typeson": "^9.0.3",
99
100
  "webappfind-demos-samples": "^0.7.0"
100
101
  },
101
102
  "repository": {
@@ -356,16 +356,23 @@ const canonicalToAvailableType = (format, state, valType, v) => {
356
356
  ret = allowableType;
357
357
  return true;
358
358
  }
359
- if (allowableType === valType) {
360
- ret = allowableType;
361
- return true;
362
- }
363
359
 
364
360
  return false;
365
361
  });
366
362
  // console.log('ret2', ret);
367
363
  if (ret === undefined) {
368
- return isInvalid(valType);
364
+ // We run this separately from the `childTypes` check above
365
+ // to ensure `childTypes` have priority regardless of position
366
+ allowableTypes.some((allowableType) => {
367
+ if (allowableType === valType) {
368
+ ret = allowableType;
369
+ return true;
370
+ }
371
+ return false;
372
+ });
373
+ if (ret === undefined) {
374
+ return isInvalid(valType);
375
+ }
369
376
  }
370
377
  return ret;
371
378
  };
@@ -457,8 +464,8 @@ const structuredCloning = {
457
464
  'StringObject',
458
465
  'error',
459
466
  'errors',
460
- 'blobHTML', // Must come before `blob`
461
467
  'blob',
468
+ 'blobHTML',
462
469
  'file',
463
470
  'set',
464
471
  'map',
package/src/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ // Help TS find the types file: https://stackoverflow.com/a/77415241/271577
2
+ export * from '../dist/index.js';
@@ -5,8 +5,14 @@ import Types from './types.js';
5
5
  import {$e, DOM} from './utils/templateUtils.js';
6
6
  import dialogs from './utils/dialogs.js';
7
7
 
8
+ // This is technically just `import('./index.js').SetType`, but our
9
+ // redirect file causes problems, so we redefine here
8
10
  /**
9
- * @typedef {import('./index.js').SetType} SetType
11
+ * @typedef {(cfg: {
12
+ * type: string,
13
+ * baseValue?: import('./formats.js').StructuredCloneValue,
14
+ * bringIntoFocus?: boolean
15
+ * }) => void} SetType
10
16
  */
11
17
 
12
18
  /**
@@ -1,8 +1,7 @@
1
- export {jml, body, nbsp, $} from 'jamilih';
2
- // export {jml, body, nbsp, $} from '../node_modules/jamilih/dist/jml-es.js';
1
+ // export {jml, body, nbsp, $} from 'jamilih';
2
+ export {jml, body, nbsp, $} from '../node_modules/jamilih/dist/jml-es.js';
3
3
 
4
4
  export {
5
- getJSONType,
6
- Typeson, unescapeKeyPathComponent, structuredCloningThrowing
7
- } from 'typeson-registry';
8
- // } from '../node_modules/typeson-registry/dist/index.js';
5
+ getJSONType, Typeson, unescapeKeyPathComponent, structuredCloningThrowing
6
+ // } from 'typeson-registry';
7
+ } from '../node_modules/typeson-registry/dist/index.js';
package/tsconfig.json CHANGED
@@ -14,5 +14,5 @@
14
14
  "outDir": "dist"
15
15
  },
16
16
  "include": ["src/**/*.js", "typings/sceditor.d.ts"],
17
- "exclude": ["node_modules", "src/deepEqual.js", "src/formats/schemaOnly.js", "src/formats/schemaAndArbitrary.js"]
17
+ "exclude": ["node_modules", "src/deepEqual.js", "src/formats/schemaOnly.js", "src/formats/schemaAndArbitrary.js", "./src/index.js", "./src/index.ts", "./dist/**/*.js"]
18
18
  }
@@ -1,6 +0,0 @@
1
- /**
2
- * @type {import('./structuredCloning.js').FormatIterator}
3
- */
4
- export const iterate: import('./structuredCloning.js').FormatIterator;
5
- export function getTypesForState(state: string): string[];
6
- //# sourceMappingURL=schemaAndArbitrary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemaAndArbitrary.d.ts","sourceRoot":"","sources":["../../src/formats/schemaAndArbitrary.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,sBAFU,OAAO,wBAAwB,EAAE,cAAc,CAMvD;AAMK,wCAHI,MAAM,GACJ,MAAM,EAAE,CAMpB"}
@@ -1,6 +0,0 @@
1
- /**
2
- * @type {import('./structuredCloning.js').FormatIterator}
3
- */
4
- export const iterate: import('./structuredCloning.js').FormatIterator;
5
- export function getTypesForState(state: string): string[];
6
- //# sourceMappingURL=schemaOnly.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemaOnly.d.ts","sourceRoot":"","sources":["../../src/formats/schemaOnly.js"],"names":[],"mappings":"AASA;;GAEG;AACH,sBAFU,OAAO,wBAAwB,EAAE,cAAc,CA4fvD;AAMK,wCAHI,MAAM,GACJ,MAAM,EAAE,CAMpB"}
@@ -1,15 +0,0 @@
1
- export function iterate(obj: ArbitraryValue, state: State): void;
2
- export type Info = {
3
- rootElements: [];
4
- childElements: [] | {
5
- [key: string]: [];
6
- [key: number]: [];
7
- };
8
- refinements: object;
9
- };
10
- export type State = {
11
- types: string[];
12
- };
13
- export type AnyObject = any;
14
- export type ArbitraryValue = any;
15
- //# sourceMappingURL=iterate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"iterate.d.ts","sourceRoot":"","sources":["../../src/schema/iterate.js"],"names":[],"mappings":"AAyJO,6BAJI,cAAc,SACd,KAAK,GACH,IAAI,CA4GhB;;kBA3PkB,EAAE;;;;;iBAIH,MAAM;;oBAkDX;IACZ,KAAS,EAAE,MAAM,EAAE,CAAA;CAChB;wBAxBS,GAAG;6BA0GH,GAAG"}
@@ -1,3 +0,0 @@
1
- export { index as default };
2
- declare var index: any;
3
- //# sourceMappingURL=deepEqual.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deepEqual.d.ts","sourceRoot":"","sources":["../../src/deepEqual.js"],"names":[],"mappings":";AAqEA,uBAAsD"}
@@ -1,47 +0,0 @@
1
- /**
2
- * Builds a selector and container for types.
3
- * @param {object} cfg
4
- * @param {string} [cfg.schema] The schema name (NOT IN USE)
5
- * @param {object} [cfg.schemaContent] The schema content (NOT IN USE)
6
- * @param {boolean} [cfg.hasValue] Set to `true` if you are supplying
7
- * your own value. If `false` and `hasKeyPath` is `true`,
8
- * will initialize with an object.
9
- * @param {boolean} [cfg.singleValue] (NOT IN USE)
10
- * @param {boolean} [cfg.hasKeyPath] If this is set (because there is a keyPath
11
- * to be found within the object) and `hasValue` is true, an object type
12
- * will be set and required at the root level. This option will also
13
- * prevent selection of indexedDB key at root (since a key cannot be a
14
- * plain object).
15
- * @param {string} [cfg.typeNamespace] Used to prevent conflicts with other
16
- * instances of typeChoices on the page
17
- * @returns {{
18
- * formatChoices: FormatChoices,
19
- * typesHolder: TypesHolder,
20
- * domArray: [formatChoices: FormatChoices, typesHolder: TypesHolder],
21
- * getValue: (stateObj: import('./types.js').StateObject,
22
- * currentPath: string) => StructuredCloneValue,
23
- * getType: () => string|undefined,
24
- * validValuesSet: () => boolean
25
- * }} The selector for types and the container for them. Both should be
26
- * added to the page.
27
- */
28
- export function formatAndTypeChoices({ schema, schemaContent, hasValue, singleValue, hasKeyPath, typeNamespace }: {
29
- schema?: string | undefined;
30
- schemaContent?: object | undefined;
31
- hasValue?: boolean | undefined;
32
- singleValue?: boolean | undefined;
33
- hasKeyPath?: boolean | undefined;
34
- typeNamespace?: string | undefined;
35
- }): {
36
- formatChoices: HTMLSelectElement;
37
- typesHolder: HTMLDivElement;
38
- domArray: [formatChoices: HTMLSelectElement, typesHolder: HTMLDivElement];
39
- getValue: (stateObj: import('./types.js').StateObject, currentPath: string) => StructuredCloneValue;
40
- getType: () => string | undefined;
41
- validValuesSet: () => boolean;
42
- };
43
- export function getFormatAndSchemaChoices({ schema, hasKeyPath }?: {
44
- schema?: string | undefined;
45
- hasKeyPath?: boolean | undefined;
46
- }): DocumentFragment;
47
- //# sourceMappingURL=formatAndTypeChoices.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatAndTypeChoices.d.ts","sourceRoot":"","sources":["../../src/formatAndTypeChoices.js"],"names":[],"mappings":"AA0DA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IAxBwB,MAAM;IACN,aAAa;IACZ,QAAQ;IAGR,WAAW;IACX,UAAU;IAKX,aAAa;;;;;yBAMX,OAAO,YAAY,EAAE,WAAW,eACtC,MAAM;aACZ,MAAM,MAAM,GAAC,SAAS;oBACf,MAAM,OAAO;EAmKjC;AApOM;IANiB,MAAM;IACL,UAAU;IAGtB,gBAAgB,CA0C5B"}
@@ -1,9 +0,0 @@
1
- export function types(): string[];
2
- export function testInvalid(newType: string, value: Date | GenericArray): boolean;
3
- export function convertFromTypeson(typesonType: string): string;
4
- /**
5
- * @type {import('./structuredCloning.js').FormatIterator}
6
- */
7
- export const iterate: import('./structuredCloning.js').FormatIterator;
8
- export function getTypesForState(state: "array" | undefined): undefined | string[];
9
- //# sourceMappingURL=indexedDBKey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"indexedDBKey.d.ts","sourceRoot":"","sources":["../../../src/formats/indexedDBKey.js"],"names":[],"mappings":"AAMO,yBAFM,MAAM,EAAE,CAIpB;AASM,qCAJI,MAAM,SACN,IAAI,eAAa,GACf,OAAO,CAiBnB;AAMM,gDAHI,MAAM,GACJ,MAAM,CAUlB;AAED;;GAEG;AACH,sBAFU,OAAO,wBAAwB,EAAE,cAAc,CAKvD;AAMK,wCAHI,OAAO,GAAC,SAAS,GACf,SAAS,GAAC,MAAM,EAAE,CAQ9B"}
@@ -1,9 +0,0 @@
1
- export function types(): string[];
2
- /**
3
- * @type {import('./structuredCloning.js').FormatIterator}
4
- */
5
- export const iterate: import('./structuredCloning.js').FormatIterator;
6
- export function convertFromTypeson(typesonType: string): string;
7
- export function testInvalid(newType: string, value: GenericArray): boolean | undefined;
8
- export function getTypesForState(state: string): string[] | undefined;
9
- //# sourceMappingURL=json.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/formats/json.js"],"names":[],"mappings":"AAKO,yBAFM,MAAM,EAAE,CAIpB;AAED;;GAEG;AACH,sBAFU,OAAO,wBAAwB,EAAE,cAAc,CAWvD;AAOK,gDAHI,MAAM,GACJ,MAAM,CAOlB;AAOM,qCAJI,MAAM,wBAEJ,OAAO,GAAC,SAAS,CAW7B;AAMM,wCAHI,MAAM,GACJ,MAAM,EAAE,GAAC,SAAS,CAU9B"}
@@ -1,6 +0,0 @@
1
- /**
2
- * @type {import('./structuredCloning.js').FormatIterator}
3
- */
4
- export const iterate: import('./structuredCloning.js').FormatIterator;
5
- export function getTypesForState(state: string): string[];
6
- //# sourceMappingURL=schemaAndArbitrary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemaAndArbitrary.d.ts","sourceRoot":"","sources":["../../../src/formats/schemaAndArbitrary.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,sBAFU,OAAO,wBAAwB,EAAE,cAAc,CAMvD;AAMK,wCAHI,MAAM,GACJ,MAAM,EAAE,CAMpB"}
@@ -1,6 +0,0 @@
1
- /**
2
- * @type {import('./structuredCloning.js').FormatIterator}
3
- */
4
- export const iterate: import('./structuredCloning.js').FormatIterator;
5
- export function getTypesForState(state: string): string[];
6
- //# sourceMappingURL=schemaOnly.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemaOnly.d.ts","sourceRoot":"","sources":["../../../src/formats/schemaOnly.js"],"names":[],"mappings":"AASA;;GAEG;AACH,sBAFU,OAAO,wBAAwB,EAAE,cAAc,CA4fvD;AAMK,wCAHI,MAAM,GACJ,MAAM,EAAE,CAMpB"}
@@ -1,15 +0,0 @@
1
- /**
2
- * @callback FormatIterator
3
- * @param {StructuredCloneValue} records
4
- * @param {import('../types.js').StateObject} stateObj
5
- * @returns {Promise<Element>}
6
- */
7
- /**
8
- * @type {FormatIterator}
9
- */
10
- export const iterate: FormatIterator;
11
- export function getTypesForState(state: string): string[];
12
- export function types(): string[];
13
- export type EncapsulateObserver = import('typeson-registry').ObserverData;
14
- export type FormatIterator = (records: StructuredCloneValue, stateObj: import('../types.js').StateObject) => Promise<Element>;
15
- //# sourceMappingURL=structuredCloning.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"structuredCloning.d.ts","sourceRoot":"","sources":["../../../src/formats/structuredCloning.js"],"names":[],"mappings":"AAqPA;;;;;GAKG;AAEH;;GAEG;AACH,sBAFU,cAAc,CAsBtB;AAMK,wCAHI,MAAM,GACJ,MAAM,EAAE,CAsBpB;AAKM,yBAFM,MAAM,EAAE,CAiDpB;kCAnVY,OAAO,kBAAkB,EAAE,YAAY;uEA0OzC,OAAO,aAAa,EAAE,WAAW,KAC/B,QAAQ,OAAO,CAAC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * @param {"indexedDBKey"|"json"|"structuredCloning"} format
3
- * @param {StructuredCloneValue} record
4
- * @param {import('./types.js').StateObject} stateObj
5
- */
6
- export function getControlsForFormatAndValue(format: "indexedDBKey" | "json" | "structuredCloning", record: StructuredCloneValue, stateObj: import('./types.js').StateObject): Promise<Element>;
7
- export default Formats;
8
- declare namespace Formats {
9
- namespace availableFormats {
10
- export { indexedDBKey };
11
- export { json };
12
- export { structuredCloning };
13
- }
14
- }
15
- import * as indexedDBKey from './formats/indexedDBKey.js';
16
- import * as json from './formats/json.js';
17
- import * as structuredCloning from './formats/structuredCloning.js';
18
- //# sourceMappingURL=formats.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../../src/formats.js"],"names":[],"mappings":"AA2BA;;;;GAIG;AACH,qDAJW,cAAc,GAAC,MAAM,GAAC,mBAAmB,0CAEzC,OAAO,YAAY,EAAE,WAAW,oBAQ1C;;;;;;;;;8BAtC6B,2BAA2B;sBACnC,mBAAmB;mCACN,gCAAgC"}
@@ -1,6 +0,0 @@
1
- export default BooleanObjectType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const BooleanObjectType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=BooleanObjectType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BooleanObjectType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/BooleanObjectType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,iCAFU,OAAO,aAAa,EAAE,UAAU,CAiDxC"}
@@ -1,6 +0,0 @@
1
- export default NumberObjectType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const NumberObjectType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=NumberObjectType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NumberObjectType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/NumberObjectType.js"],"names":[],"mappings":";AAGA;;GAEG;AACH,gCAFU,OAAO,aAAa,EAAE,UAAU,CAkCxC"}
@@ -1,6 +0,0 @@
1
- export default StringObjectType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const StringObjectType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=StringObjectType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StringObjectType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/StringObjectType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,gCAFU,OAAO,aAAa,EAAE,UAAU,CA+BxC"}
@@ -1,6 +0,0 @@
1
- export default arrayReferenceType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const arrayReferenceType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=arrayReferenceType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arrayReferenceType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/arrayReferenceType.js"],"names":[],"mappings":";AAMA;;GAEG;AACH,kCAFU,OAAO,aAAa,EAAE,UAAU,CAiMxC"}
@@ -1,6 +0,0 @@
1
- export default arrayType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const arrayType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=arrayType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arrayType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/arrayType.js"],"names":[],"mappings":";AASA;;GAEG;AACH,yBAFU,OAAO,aAAa,EAAE,UAAU,CAq3BxC"}
@@ -1,6 +0,0 @@
1
- export default bigintType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const bigintType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=bigintType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bigintType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/bigintType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,0BAFU,OAAO,aAAa,EAAE,UAAU,CA+CxC"}
@@ -1,6 +0,0 @@
1
- export default dateType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const dateType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=dateType.d.ts.map