@es-joy/jsoe 0.12.0 → 0.12.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.
- package/CHANGES.md +8 -0
- package/dist/index.d.ts +1 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/typeChoices.d.ts +10 -2
- package/dist/typeChoices.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/typeChoices.js +7 -1
- package/src/vendor-imports.js +1 -2
- package/tsconfig.json +1 -1
- package/dist/formats/schemaAndArbitrary.d.ts +0 -6
- package/dist/formats/schemaAndArbitrary.d.ts.map +0 -1
- package/dist/formats/schemaOnly.d.ts +0 -6
- package/dist/formats/schemaOnly.d.ts.map +0 -1
- package/dist/schema/iterate.d.ts +0 -15
- package/dist/schema/iterate.d.ts.map +0 -1
- package/dist/src/deepEqual.d.ts +0 -3
- package/dist/src/deepEqual.d.ts.map +0 -1
- package/dist/src/formatAndTypeChoices.d.ts +0 -47
- package/dist/src/formatAndTypeChoices.d.ts.map +0 -1
- package/dist/src/formats/indexedDBKey.d.ts +0 -9
- package/dist/src/formats/indexedDBKey.d.ts.map +0 -1
- package/dist/src/formats/json.d.ts +0 -9
- package/dist/src/formats/json.d.ts.map +0 -1
- package/dist/src/formats/schemaAndArbitrary.d.ts +0 -6
- package/dist/src/formats/schemaAndArbitrary.d.ts.map +0 -1
- package/dist/src/formats/schemaOnly.d.ts +0 -6
- package/dist/src/formats/schemaOnly.d.ts.map +0 -1
- package/dist/src/formats/structuredCloning.d.ts +0 -15
- package/dist/src/formats/structuredCloning.d.ts.map +0 -1
- package/dist/src/formats.d.ts +0 -18
- package/dist/src/formats.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/BooleanObjectType.d.ts +0 -6
- package/dist/src/fundamentalTypes/BooleanObjectType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/NumberObjectType.d.ts +0 -6
- package/dist/src/fundamentalTypes/NumberObjectType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/StringObjectType.d.ts +0 -6
- package/dist/src/fundamentalTypes/StringObjectType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/arrayReferenceType.d.ts +0 -6
- package/dist/src/fundamentalTypes/arrayReferenceType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/arrayType.d.ts +0 -6
- package/dist/src/fundamentalTypes/arrayType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/bigintType.d.ts +0 -6
- package/dist/src/fundamentalTypes/bigintType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/dateType.d.ts +0 -6
- package/dist/src/fundamentalTypes/dateType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/nullType.d.ts +0 -6
- package/dist/src/fundamentalTypes/nullType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/numberType.d.ts +0 -6
- package/dist/src/fundamentalTypes/numberType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/objectReferenceType.d.ts +0 -6
- package/dist/src/fundamentalTypes/objectReferenceType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/objectType.d.ts +0 -6
- package/dist/src/fundamentalTypes/objectType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/regexpType.d.ts +0 -6
- package/dist/src/fundamentalTypes/regexpType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts +0 -6
- package/dist/src/fundamentalTypes/sparseUndefinedType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/stringType.d.ts +0 -6
- package/dist/src/fundamentalTypes/stringType.d.ts.map +0 -1
- package/dist/src/fundamentalTypes/undefinedType.d.ts +0 -6
- package/dist/src/fundamentalTypes/undefinedType.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -5
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/subTypes/blobHTMLType.d.ts +0 -26
- package/dist/src/subTypes/blobHTMLType.d.ts.map +0 -1
- package/dist/src/subTypes/falseType.d.ts +0 -6
- package/dist/src/subTypes/falseType.d.ts.map +0 -1
- package/dist/src/subTypes/trueType.d.ts +0 -6
- package/dist/src/subTypes/trueType.d.ts.map +0 -1
- package/dist/src/superTypes/SpecialNumberSuperType.d.ts +0 -11
- package/dist/src/superTypes/SpecialNumberSuperType.d.ts.map +0 -1
- package/dist/src/superTypes/SpecialRealNumberSuperType.d.ts +0 -6
- package/dist/src/superTypes/SpecialRealNumberSuperType.d.ts.map +0 -1
- package/dist/src/typeChoices.d.ts +0 -30
- package/dist/src/typeChoices.d.ts.map +0 -1
- package/dist/src/types.d.ts +0 -333
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/utils/dialogs.d.ts +0 -29
- package/dist/src/utils/dialogs.d.ts.map +0 -1
- package/dist/src/utils/jsonPointer.d.ts +0 -42
- package/dist/src/utils/jsonPointer.d.ts.map +0 -1
- package/dist/src/utils/templateUtils.d.ts +0 -59
- package/dist/src/utils/templateUtils.d.ts.map +0 -1
- package/dist/src/utils/types.d.ts +0 -2
- package/dist/src/utils/types.d.ts.map +0 -1
- package/dist/superTypes/SpecialNumberSuperType.d.ts +0 -14
- package/dist/superTypes/SpecialNumberSuperType.d.ts.map +0 -1
- package/dist/superTypes/SpecialRealNumberSuperType.d.ts +0 -6
- package/dist/superTypes/SpecialRealNumberSuperType.d.ts.map +0 -1
- package/dist/vendor/jamilih/dist/jml-es.d.ts +0 -436
- package/dist/vendor/jamilih/dist/jml-es.d.ts.map +0 -1
- package/dist/vendor/typeson-registry/dist/index.d.ts +0 -400
- package/dist/vendor/typeson-registry/dist/index.d.ts.map +0 -1
- /package/src/{index.ts → index.d.ts} +0 -0
package/CHANGES.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
export
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC"}
|
package/dist/typeChoices.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {
|
|
2
|
+
* @typedef {(cfg: {
|
|
3
|
+
* type: string,
|
|
4
|
+
* baseValue?: import('./formats.js').StructuredCloneValue,
|
|
5
|
+
* bringIntoFocus?: boolean
|
|
6
|
+
* }) => void} SetType
|
|
3
7
|
*/
|
|
4
8
|
/**
|
|
5
9
|
* @typedef {(info: {type: string, editUI: Element}) => void} AddTypeAndEditUI
|
|
@@ -68,7 +72,11 @@
|
|
|
68
72
|
* @type {BuildTypeChoices}
|
|
69
73
|
*/
|
|
70
74
|
export const buildTypeChoices: BuildTypeChoices;
|
|
71
|
-
export type 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":"
|
|
1
|
+
{"version":3,"file":"typeChoices.d.ts","sourceRoot":"","sources":["../src/typeChoices.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AAEH;;GAEG;AAEH;;;;;GAKG;AAEH;;GAEG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AAEH;;;GAGG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;GAEG;AACH,+BAFU,gBAAgB,CA2PxB;4BA3UiB;IAClB,IAAQ,EAAE,MAAM,CAAC;IACjB,SAAa,CAAC,EAAE,OAAO,cAAc,EAAE,oBAAoB,CAAC;IAC5D,cAAkB,CAAC,EAAE,OAAO,CAAA;CACzB,KAAK,IAAI;sCAIO;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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@es-joy/jsoe",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
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": {
|
package/src/typeChoices.js
CHANGED
|
@@ -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 {
|
|
11
|
+
* @typedef {(cfg: {
|
|
12
|
+
* type: string,
|
|
13
|
+
* baseValue?: import('./formats.js').StructuredCloneValue,
|
|
14
|
+
* bringIntoFocus?: boolean
|
|
15
|
+
* }) => void} SetType
|
|
10
16
|
*/
|
|
11
17
|
|
|
12
18
|
/**
|
package/src/vendor-imports.js
CHANGED
|
@@ -2,7 +2,6 @@ export {jml, body, nbsp, $} from 'jamilih';
|
|
|
2
2
|
// export {jml, body, nbsp, $} from '../node_modules/jamilih/dist/jml-es.js';
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
|
-
getJSONType,
|
|
6
|
-
Typeson, unescapeKeyPathComponent, structuredCloningThrowing
|
|
5
|
+
getJSONType, Typeson, unescapeKeyPathComponent, structuredCloningThrowing
|
|
7
6
|
} from 'typeson-registry';
|
|
8
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 +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 +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"}
|
package/dist/schema/iterate.d.ts
DELETED
|
@@ -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"}
|
package/dist/src/deepEqual.d.ts
DELETED
|
@@ -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 +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 +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"}
|
package/dist/src/formats.d.ts
DELETED
|
@@ -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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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"}
|
package/dist/src/index.d.ts
DELETED
|
@@ -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
|
package/dist/src/index.d.ts.map
DELETED
|
@@ -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 +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 +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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpecialRealNumberSuperType.d.ts","sourceRoot":"","sources":["../../../src/superTypes/SpecialRealNumberSuperType.js"],"names":[],"mappings":";AAEA;;GAEG;AACH,0DAgDE"}
|