@es-joy/jsoe 0.12.0 → 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 (95) hide show
  1. package/CHANGES.md +4 -0
  2. package/dist/index.d.ts +1 -10
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/typeChoices.d.ts +11 -3
  5. package/dist/typeChoices.d.ts.map +1 -1
  6. package/dist/vendor-imports.d.ts +2 -2
  7. package/package.json +2 -1
  8. package/src/typeChoices.js +7 -1
  9. package/src/vendor-imports.js +5 -6
  10. package/tsconfig.json +1 -1
  11. package/dist/formats/schemaAndArbitrary.d.ts +0 -6
  12. package/dist/formats/schemaAndArbitrary.d.ts.map +0 -1
  13. package/dist/formats/schemaOnly.d.ts +0 -6
  14. package/dist/formats/schemaOnly.d.ts.map +0 -1
  15. package/dist/schema/iterate.d.ts +0 -15
  16. package/dist/schema/iterate.d.ts.map +0 -1
  17. package/dist/src/deepEqual.d.ts +0 -3
  18. package/dist/src/deepEqual.d.ts.map +0 -1
  19. package/dist/src/formatAndTypeChoices.d.ts +0 -47
  20. package/dist/src/formatAndTypeChoices.d.ts.map +0 -1
  21. package/dist/src/formats/indexedDBKey.d.ts +0 -9
  22. package/dist/src/formats/indexedDBKey.d.ts.map +0 -1
  23. package/dist/src/formats/json.d.ts +0 -9
  24. package/dist/src/formats/json.d.ts.map +0 -1
  25. package/dist/src/formats/schemaAndArbitrary.d.ts +0 -6
  26. package/dist/src/formats/schemaAndArbitrary.d.ts.map +0 -1
  27. package/dist/src/formats/schemaOnly.d.ts +0 -6
  28. package/dist/src/formats/schemaOnly.d.ts.map +0 -1
  29. package/dist/src/formats/structuredCloning.d.ts +0 -15
  30. package/dist/src/formats/structuredCloning.d.ts.map +0 -1
  31. package/dist/src/formats.d.ts +0 -18
  32. package/dist/src/formats.d.ts.map +0 -1
  33. package/dist/src/fundamentalTypes/BooleanObjectType.d.ts +0 -6
  34. package/dist/src/fundamentalTypes/BooleanObjectType.d.ts.map +0 -1
  35. package/dist/src/fundamentalTypes/NumberObjectType.d.ts +0 -6
  36. package/dist/src/fundamentalTypes/NumberObjectType.d.ts.map +0 -1
  37. package/dist/src/fundamentalTypes/StringObjectType.d.ts +0 -6
  38. package/dist/src/fundamentalTypes/StringObjectType.d.ts.map +0 -1
  39. package/dist/src/fundamentalTypes/arrayReferenceType.d.ts +0 -6
  40. package/dist/src/fundamentalTypes/arrayReferenceType.d.ts.map +0 -1
  41. package/dist/src/fundamentalTypes/arrayType.d.ts +0 -6
  42. package/dist/src/fundamentalTypes/arrayType.d.ts.map +0 -1
  43. package/dist/src/fundamentalTypes/bigintType.d.ts +0 -6
  44. package/dist/src/fundamentalTypes/bigintType.d.ts.map +0 -1
  45. package/dist/src/fundamentalTypes/dateType.d.ts +0 -6
  46. package/dist/src/fundamentalTypes/dateType.d.ts.map +0 -1
  47. package/dist/src/fundamentalTypes/nullType.d.ts +0 -6
  48. package/dist/src/fundamentalTypes/nullType.d.ts.map +0 -1
  49. package/dist/src/fundamentalTypes/numberType.d.ts +0 -6
  50. package/dist/src/fundamentalTypes/numberType.d.ts.map +0 -1
  51. package/dist/src/fundamentalTypes/objectReferenceType.d.ts +0 -6
  52. package/dist/src/fundamentalTypes/objectReferenceType.d.ts.map +0 -1
  53. package/dist/src/fundamentalTypes/objectType.d.ts +0 -6
  54. package/dist/src/fundamentalTypes/objectType.d.ts.map +0 -1
  55. package/dist/src/fundamentalTypes/regexpType.d.ts +0 -6
  56. package/dist/src/fundamentalTypes/regexpType.d.ts.map +0 -1
  57. package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts +0 -6
  58. package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts.map +0 -1
  59. package/dist/src/fundamentalTypes/stringType.d.ts +0 -6
  60. package/dist/src/fundamentalTypes/stringType.d.ts.map +0 -1
  61. package/dist/src/fundamentalTypes/undefinedType.d.ts +0 -6
  62. package/dist/src/fundamentalTypes/undefinedType.d.ts.map +0 -1
  63. package/dist/src/index.d.ts +0 -5
  64. package/dist/src/index.d.ts.map +0 -1
  65. package/dist/src/subTypes/blobHTMLType.d.ts +0 -26
  66. package/dist/src/subTypes/blobHTMLType.d.ts.map +0 -1
  67. package/dist/src/subTypes/falseType.d.ts +0 -6
  68. package/dist/src/subTypes/falseType.d.ts.map +0 -1
  69. package/dist/src/subTypes/trueType.d.ts +0 -6
  70. package/dist/src/subTypes/trueType.d.ts.map +0 -1
  71. package/dist/src/superTypes/SpecialNumberSuperType.d.ts +0 -11
  72. package/dist/src/superTypes/SpecialNumberSuperType.d.ts.map +0 -1
  73. package/dist/src/superTypes/SpecialRealNumberSuperType.d.ts +0 -6
  74. package/dist/src/superTypes/SpecialRealNumberSuperType.d.ts.map +0 -1
  75. package/dist/src/typeChoices.d.ts +0 -30
  76. package/dist/src/typeChoices.d.ts.map +0 -1
  77. package/dist/src/types.d.ts +0 -333
  78. package/dist/src/types.d.ts.map +0 -1
  79. package/dist/src/utils/dialogs.d.ts +0 -29
  80. package/dist/src/utils/dialogs.d.ts.map +0 -1
  81. package/dist/src/utils/jsonPointer.d.ts +0 -42
  82. package/dist/src/utils/jsonPointer.d.ts.map +0 -1
  83. package/dist/src/utils/templateUtils.d.ts +0 -59
  84. package/dist/src/utils/templateUtils.d.ts.map +0 -1
  85. package/dist/src/utils/types.d.ts +0 -2
  86. package/dist/src/utils/types.d.ts.map +0 -1
  87. package/dist/superTypes/SpecialNumberSuperType.d.ts +0 -14
  88. package/dist/superTypes/SpecialNumberSuperType.d.ts.map +0 -1
  89. package/dist/superTypes/SpecialRealNumberSuperType.d.ts +0 -6
  90. package/dist/superTypes/SpecialRealNumberSuperType.d.ts.map +0 -1
  91. package/dist/vendor/jamilih/dist/jml-es.d.ts +0 -436
  92. package/dist/vendor/jamilih/dist/jml-es.d.ts.map +0 -1
  93. package/dist/vendor/typeson-registry/dist/index.d.ts +0 -400
  94. package/dist/vendor/typeson-registry/dist/index.d.ts.map +0 -1
  95. /package/src/{index.ts → index.d.ts} +0 -0
package/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES TO `@es-joy/jsoe`
2
2
 
3
+ ## 0.12.1
4
+
5
+ - refactor: TS work
6
+
3
7
  ## 0.12.0
4
8
 
5
9
  - feat: allow order to be changed in menu
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,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"}
1
+ {"version":3,"file":"typeChoices.d.ts","sourceRoot":"","sources":["../src/typeChoices.js"],"names":[],"mappings":"AAOA;;;;;;EAME;AAEF;;GAEG;AAEH;;;;;GAKG;AAEH;;GAEG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;GAEG;AACH,+BAFU,gBAAgB,CA2PxB;4BA3UiB;IACnB,IAAQ,EAAE,MAAM,CAAC;IACjB,SAAa,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IAC5D,cAAkB,CAAC,EAAE,OAAO,CAAA;CACzB,KAAK,IAAI;sCAIQ;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,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"}
@@ -1,3 +1,3 @@
1
- export { 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.12.0",
3
+ "version": "0.12.1",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./src/index.js",
@@ -96,6 +96,7 @@
96
96
  "rollup-plugin-istanbul": "^5.0.0",
97
97
  "rollup-plugin-node-builtins": "^2.1.2",
98
98
  "typescript": "^5.3.2",
99
+ "typeson": "^9.0.3",
99
100
  "webappfind-demos-samples": "^0.7.0"
100
101
  },
101
102
  "repository": {
@@ -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
@@ -1 +0,0 @@
1
- {"version":3,"file":"dateType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/dateType.js"],"names":[],"mappings":";AAIA;;GAEG;AACH,wBAFU,OAAO,aAAa,EAAE,UAAU,CAyHxC"}
@@ -1,6 +0,0 @@
1
- export default nullType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const nullType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=nullType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nullType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/nullType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,wBAFU,OAAO,aAAa,EAAE,UAAU,CA2BxC"}
@@ -1,6 +0,0 @@
1
- export default numberType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const numberType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=numberType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"numberType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/numberType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,0BAFU,OAAO,aAAa,EAAE,UAAU,CAkDxC"}
@@ -1,6 +0,0 @@
1
- export default objectReferenceType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const objectReferenceType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=objectReferenceType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"objectReferenceType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/objectReferenceType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,mCAFU,OAAO,aAAa,EAAE,UAAU,CA6CxC"}
@@ -1,6 +0,0 @@
1
- export default objectType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const objectType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=objectType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"objectType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/objectType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,0BAFU,OAAO,aAAa,EAAE,UAAU,CAwBxC"}
@@ -1,6 +0,0 @@
1
- export default regexpType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const regexpType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=regexpType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"regexpType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/regexpType.js"],"names":[],"mappings":";AAIA;;GAEG;AACH,0BAFU,OAAO,aAAa,EAAE,UAAU,CAuFxC"}
@@ -1,6 +0,0 @@
1
- export default sparseUndefinedType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const sparseUndefinedType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=sparseUndefinedType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sparseUndefinedType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/sparseUndefinedType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,mCAFU,OAAO,aAAa,EAAE,UAAU,CAqCxC"}
@@ -1,6 +0,0 @@
1
- export default stringType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const stringType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=stringType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stringType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/stringType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,0BAFU,OAAO,aAAa,EAAE,UAAU,CAyBxC"}
@@ -1,6 +0,0 @@
1
- export default undefinedType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const undefinedType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=undefinedType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"undefinedType.d.ts","sourceRoot":"","sources":["../../../src/fundamentalTypes/undefinedType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,6BAFU,OAAO,aAAa,EAAE,UAAU,CA+BxC"}
@@ -1,5 +0,0 @@
1
- export { default as Types } from "./types.js";
2
- export { buildTypeChoices as typeChoices } from "./typeChoices.js";
3
- export { default as Formats, getControlsForFormatAndValue } from "./formats.js";
4
- export { formatAndTypeChoices, getFormatAndSchemaChoices } from "./formatAndTypeChoices.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":""}
@@ -1,26 +0,0 @@
1
- export default blobHTMLType;
2
- declare namespace blobHTMLType {
3
- const option: string[];
4
- const stringRegex: RegExp;
5
- function valueMatch(v: any): boolean;
6
- const superType: string;
7
- function toValue(s: any): {
8
- value: Blob;
9
- };
10
- function getInput({ root }: {
11
- root: any;
12
- }): Element | null;
13
- function getValue(): Blob;
14
- function loadBlob(value: any): Promise<any>;
15
- function setValue({ value }: {
16
- value: any;
17
- }): Promise<void>;
18
- function viewUI({ value }: {
19
- value: any;
20
- }): import("../../vendor/jamilih/dist/jml-es.js").JamilihReturn[];
21
- function editUI({ typeNamespace, value }: {
22
- typeNamespace: any;
23
- value: any;
24
- }): import("../../vendor/jamilih/dist/jml-es.js").JamilihReturn[];
25
- }
26
- //# sourceMappingURL=blobHTMLType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blobHTMLType.d.ts","sourceRoot":"","sources":["../../../src/subTypes/blobHTMLType.js"],"names":[],"mappings":";;;;IAWc,qCAA6B;;IAEzC;;MA4BC;IAED;;uBAEC;IACD,0BAKC;IACD,4CAgBC;IACD;;sBAIC;IACD;;sEAgCC;IACD;;;sEAiDC"}
@@ -1,6 +0,0 @@
1
- export default falseType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const falseType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=falseType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"falseType.d.ts","sourceRoot":"","sources":["../../../src/subTypes/falseType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,yBAFU,OAAO,aAAa,EAAE,UAAU,CAoCxC"}
@@ -1,6 +0,0 @@
1
- export default trueType;
2
- /**
3
- * @type {import('../types.js').TypeObject}
4
- */
5
- declare const trueType: import('../types.js').TypeObject;
6
- //# sourceMappingURL=trueType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trueType.d.ts","sourceRoot":"","sources":["../../../src/subTypes/trueType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,wBAFU,OAAO,aAAa,EAAE,UAAU,CAoCxC"}
@@ -1,11 +0,0 @@
1
- export default SpecialNumberSuperType;
2
- export type SuperTypeObject = TypeObject;
3
- /**
4
- * @typedef {TypeObject} SuperTypeObject
5
- * @property {string[]} childTypes
6
- */
7
- /**
8
- * @type {SuperTypeObject}
9
- */
10
- declare const SpecialNumberSuperType: TypeObject;
11
- //# sourceMappingURL=SpecialNumberSuperType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpecialNumberSuperType.d.ts","sourceRoot":"","sources":["../../../src/superTypes/SpecialNumberSuperType.js"],"names":[],"mappings":";;AAEA;;;GAGG;AAEH;;GAEG;AACH,iDAwDE"}
@@ -1,6 +0,0 @@
1
- export default SpecialRealNumberSuperType;
2
- /**
3
- * @type {SuperTypeObject}
4
- */
5
- declare const SpecialRealNumberSuperType: SuperTypeObject;
6
- //# sourceMappingURL=SpecialRealNumberSuperType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpecialRealNumberSuperType.d.ts","sourceRoot":"","sources":["../../../src/superTypes/SpecialRealNumberSuperType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,0DAgDE"}