@just-web/presets-browser 8.0.0 → 8.0.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.
- package/cjs/index.d.cts +1 -2
- package/cjs/index.d.cts.map +1 -1
- package/cjs/testing/index.d.cts +3 -4
- package/cjs/testing/index.d.cts.map +1 -1
- package/esm/index.d.ts +4 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.mjs +1 -2
- package/esm/just_web_browser.types.d.ts +2 -0
- package/esm/just_web_browser.types.d.ts.map +1 -0
- package/esm/just_web_history.types.d.ts +2 -0
- package/esm/just_web_history.types.d.ts.map +1 -0
- package/esm/presets_browser_gizmo.d.ts +57 -0
- package/esm/presets_browser_gizmo.d.ts.map +1 -0
- package/esm/presets_browser_gizmo.mocks.d.ts +56 -0
- package/esm/presets_browser_gizmo.mocks.d.ts.map +1 -0
- package/esm/testing/index.d.ts +5 -0
- package/esm/testing/index.d.ts.map +1 -0
- package/esm/testing/index.mjs +1 -2
- package/package.json +19 -17
- package/esm/index.d.mts +0 -69
- package/esm/index.d.mts.map +0 -1
- package/esm/index.mjs.map +0 -1
- package/esm/testing/index.d.mts +0 -71
- package/esm/testing/index.d.mts.map +0 -1
- package/esm/testing/index.mjs.map +0 -1
package/cjs/index.d.cts
CHANGED
|
@@ -6,7 +6,6 @@ import * as _just_web_commands0 from "@just-web/commands";
|
|
|
6
6
|
import * as _just_web_keyboard0 from "@just-web/keyboard";
|
|
7
7
|
import * as _just_web_app0 from "@just-web/app";
|
|
8
8
|
import { LogGizmo, define } from "@just-web/app";
|
|
9
|
-
import * as _just_web_fetch0 from "@just-web/fetch";
|
|
10
9
|
import * as _just_web_states0 from "@just-web/states";
|
|
11
10
|
import * as type_plus0 from "type-plus";
|
|
12
11
|
|
|
@@ -49,7 +48,7 @@ declare const presetsBrowserGizmoFn: (options?: PresetsBrowserGizmoOptions | und
|
|
|
49
48
|
navigator: Navigator;
|
|
50
49
|
location: Location;
|
|
51
50
|
};
|
|
52
|
-
fetch:
|
|
51
|
+
fetch: _just_web_browser0.Fetch;
|
|
53
52
|
} & {
|
|
54
53
|
preferences: {
|
|
55
54
|
get: (key: string, defaultValue?: string | undefined) => string | undefined;
|
package/cjs/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/presets_browser_gizmo.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/presets_browser_gizmo.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;UAQiB,0BAAA;YACN;YACA;;cAGE,kCAAqB,0DAAA,2BAAA;;;;;IALjB,aAAA,0CAEN;IAGE,QAAA,qCAgBV;IAhB+B,kBAAA,EAAA,GAAA,GAAA,IAAA;;;;;;;;;;;;;;;;;;;CAmB8D,CAAA,GAAA;;;;;;;;;;;aAnB9D,EAAA,MAAA,EAAA,YAAA,CAAA,EAAA,MAAA,GAAA,SAAA,EAAA,GAAA,MAAA,GAAA,SAAA;IAAA,GAAA,EAAA,CAAA,GAAA,EAAA,MAAA,EAAA,KAAA,iCAAA,CAAA,MAAA,GAAA,SAAA,CAAA,EAAA,GAAA,IAAA;IAkBtB,QAAA,EAAA,GAAA,GAAA,IAAmB;4EACiE;;;;;;;;KADpF,mBAAA,GAAsB,MAAA,CAAO,aAAa"}
|
package/cjs/testing/index.d.cts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import * as _just_web_browser_testing0 from "@just-web/browser/testing";
|
|
1
2
|
import { BrowserTestGizmoOptions } from "@just-web/browser/testing";
|
|
2
3
|
import * as _just_web_commands0 from "@just-web/commands";
|
|
3
4
|
import * as _just_web_keyboard0 from "@just-web/keyboard";
|
|
4
5
|
import * as _just_web_app0 from "@just-web/app";
|
|
5
6
|
import { LogGizmo } from "@just-web/app";
|
|
6
|
-
import * as _just_web_browser0 from "@just-web/browser";
|
|
7
|
-
import * as _just_web_fetch0 from "@just-web/fetch";
|
|
8
7
|
import * as _just_web_states0 from "@just-web/states";
|
|
9
8
|
import * as type_plus0 from "type-plus";
|
|
10
9
|
import * as _just_web_history0 from "@just-web/history";
|
|
@@ -46,13 +45,13 @@ declare const presetsBrowserTestGizmoFn: (options?: PresetsBrowserTestGizmoOptio
|
|
|
46
45
|
};
|
|
47
46
|
}> & {
|
|
48
47
|
browser: {
|
|
49
|
-
errors:
|
|
48
|
+
errors: _just_web_browser_testing0.ReadonlyErrorStore;
|
|
50
49
|
sessionStorage: Storage;
|
|
51
50
|
localStorage: Storage;
|
|
52
51
|
navigator: Navigator;
|
|
53
52
|
location: Location;
|
|
54
53
|
};
|
|
55
|
-
fetch:
|
|
54
|
+
fetch: _just_web_browser_testing0.Fetch;
|
|
56
55
|
} & {
|
|
57
56
|
preferences: {
|
|
58
57
|
get: (key: string, defaultValue?: string | undefined) => string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/presets_browser_gizmo.mocks.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/presets_browser_gizmo.mocks.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;UAUiB,8BAAA;YACN;YACA;;cAGE,sCAAyB,8DAAA,2BAAA;;;;;;;;;;;IALrB,uBAAA,oDAEN;EAGE,CAAA;CAAyB,CAAA,mBAAA,CAAA;;;;;iBAAA,0CAAA;;;;;;;;;;;;;;IAShC,QAAA,UAAA;;;;;;;;4EAAA;;;;EATgC,CAAA"}
|
package/esm/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA"}
|
package/esm/index.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"just_web_browser.types.d.ts","sourceRoot":"","sources":["../src/just_web_browser.types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"just_web_history.types.d.ts","sourceRoot":"","sources":["../src/just_web_history.types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { define, type LogGizmo } from '@just-web/app';
|
|
2
|
+
import { type BrowserGizmoOptions } from '@just-web/browser';
|
|
3
|
+
import { type HistoryGizmoOptions } from '@just-web/history';
|
|
4
|
+
export interface PresetsBrowserGizmoOptions {
|
|
5
|
+
browser?: BrowserGizmoOptions;
|
|
6
|
+
history?: HistoryGizmoOptions;
|
|
7
|
+
}
|
|
8
|
+
export declare const presetsBrowserGizmoFn: (options?: PresetsBrowserGizmoOptions | undefined) => import("@just-web/app").GizmoStatic<import("@just-web/app").DepBuilder<{
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
} & LogGizmo & {
|
|
12
|
+
commands: {
|
|
13
|
+
contributions: import("@just-web/commands").ContributionRegistry;
|
|
14
|
+
handlers: import("@just-web/commands").HandlerRegistry;
|
|
15
|
+
showCommandPalette: () => void;
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
keyboard: {
|
|
19
|
+
keyBindingContributions: import("@just-web/keyboard").KeyBindingContributionRegistry;
|
|
20
|
+
};
|
|
21
|
+
}>, import("type-plus").Pick._<{
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
} & LogGizmo & {
|
|
25
|
+
commands: {
|
|
26
|
+
contributions: import("@just-web/commands").ContributionRegistry;
|
|
27
|
+
handlers: import("@just-web/commands").HandlerRegistry;
|
|
28
|
+
showCommandPalette: () => void;
|
|
29
|
+
};
|
|
30
|
+
} & Partial<{
|
|
31
|
+
keyboard: {
|
|
32
|
+
keyBindingContributions: import("@just-web/keyboard").KeyBindingContributionRegistry;
|
|
33
|
+
};
|
|
34
|
+
}> & {
|
|
35
|
+
browser: {
|
|
36
|
+
errors: import("@just-web/browser").ReadonlyErrorStore;
|
|
37
|
+
sessionStorage: Storage;
|
|
38
|
+
localStorage: Storage;
|
|
39
|
+
navigator: Navigator;
|
|
40
|
+
location: Location;
|
|
41
|
+
};
|
|
42
|
+
fetch: import("@just-web/browser").Fetch;
|
|
43
|
+
} & {
|
|
44
|
+
preferences: {
|
|
45
|
+
get: (key: string, defaultValue?: string | undefined) => string | undefined;
|
|
46
|
+
set: (key: string, value: import("@just-web/states").SetStateValue<string | undefined>) => void;
|
|
47
|
+
clearAll: () => void;
|
|
48
|
+
createStore<T extends import("type-plus").JSONTypes>(key: string, defaultValue?: T | undefined): {
|
|
49
|
+
get(): T | undefined;
|
|
50
|
+
set: <V extends import("@just-web/states").SetStateValue<T | undefined> | undefined>(value: V) => V extends import("type-plus").AnyFunction<any, Promise<any>> ? Promise<void> : void;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
} & {
|
|
54
|
+
history: import("@just-web/history").History;
|
|
55
|
+
}, "browser" | "fetch" | "preferences" | "history">>;
|
|
56
|
+
export type PresetsBrowserGizmo = define.Infer<typeof presetsBrowserGizmoFn>;
|
|
57
|
+
//# sourceMappingURL=presets_browser_gizmo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets_browser_gizmo.d.ts","sourceRoot":"","sources":["../src/presets_browser_gizmo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA0B,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAE,KAAK,mBAAmB,EAAkB,MAAM,mBAAmB,CAAA;AAG5E,OAAO,EAAE,KAAK,mBAAmB,EAAkB,MAAM,mBAAmB,CAAA;AAI5E,MAAM,WAAW,0BAA0B;IAC1C,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B,OAAO,CAAC,EAAE,mBAAmB,CAAA;CAC7B;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAOJ,CAAC;;;sFAYgE,CAAC;;;;;;;oDAH7F,CAAA;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type LogGizmo } from '@just-web/app';
|
|
2
|
+
import { type BrowserTestGizmoOptions } from '@just-web/browser/testing';
|
|
3
|
+
import { type HistoryGizmoOptions } from '@just-web/history';
|
|
4
|
+
export interface PresetsBrowserTestGizmoOptions {
|
|
5
|
+
browser?: BrowserTestGizmoOptions;
|
|
6
|
+
history?: HistoryGizmoOptions;
|
|
7
|
+
}
|
|
8
|
+
export declare const presetsBrowserTestGizmoFn: (options?: PresetsBrowserTestGizmoOptions | undefined) => import("@just-web/app").GizmoStatic<import("@just-web/app").DepBuilder<{
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
} & LogGizmo & {
|
|
12
|
+
commands: {
|
|
13
|
+
contributions: import("@just-web/commands").ContributionRegistry;
|
|
14
|
+
handlers: import("@just-web/commands").HandlerRegistry;
|
|
15
|
+
showCommandPalette: () => void;
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
keyboard: {
|
|
19
|
+
keyBindingContributions: import("@just-web/keyboard").KeyBindingContributionRegistry;
|
|
20
|
+
};
|
|
21
|
+
}>, import("type-plus").Pick._<{
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
} & LogGizmo & {
|
|
25
|
+
commands: {
|
|
26
|
+
contributions: import("@just-web/commands").ContributionRegistry;
|
|
27
|
+
handlers: import("@just-web/commands").HandlerRegistry;
|
|
28
|
+
showCommandPalette: () => void;
|
|
29
|
+
};
|
|
30
|
+
} & Partial<{
|
|
31
|
+
keyboard: {
|
|
32
|
+
keyBindingContributions: import("@just-web/keyboard").KeyBindingContributionRegistry;
|
|
33
|
+
};
|
|
34
|
+
}> & {
|
|
35
|
+
browser: {
|
|
36
|
+
errors: import("@just-web/browser/testing").ReadonlyErrorStore;
|
|
37
|
+
sessionStorage: Storage;
|
|
38
|
+
localStorage: Storage;
|
|
39
|
+
navigator: Navigator;
|
|
40
|
+
location: Location;
|
|
41
|
+
};
|
|
42
|
+
fetch: import("@just-web/browser/testing").Fetch;
|
|
43
|
+
} & {
|
|
44
|
+
preferences: {
|
|
45
|
+
get: (key: string, defaultValue?: string | undefined) => string | undefined;
|
|
46
|
+
set: (key: string, value: import("@just-web/states").SetStateValue<string | undefined>) => void;
|
|
47
|
+
clearAll: () => void;
|
|
48
|
+
createStore<T extends import("type-plus").JSONTypes>(key: string, defaultValue?: T | undefined): {
|
|
49
|
+
get(): T | undefined;
|
|
50
|
+
set: <V extends import("@just-web/states").SetStateValue<T | undefined> | undefined>(value: V) => V extends import("type-plus").AnyFunction<any, Promise<any>> ? Promise<void> : void;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
} & {
|
|
54
|
+
history: import("@just-web/history").History;
|
|
55
|
+
}, "browser" | "fetch" | "preferences" | "history">>;
|
|
56
|
+
//# sourceMappingURL=presets_browser_gizmo.mocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets_browser_gizmo.mocks.d.ts","sourceRoot":"","sources":["../src/presets_browser_gizmo.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7E,OAAO,EAAE,KAAK,uBAAuB,EAAsB,MAAM,2BAA2B,CAAA;AAG5F,OAAO,EAAE,KAAK,mBAAmB,EAAkB,MAAM,mBAAmB,CAAA;AAM5E,MAAM,WAAW,8BAA8B;IAC9C,OAAO,CAAC,EAAE,uBAAuB,CAAA;IACjC,OAAO,CAAC,EAAE,mBAAmB,CAAA;CAC7B;AAED,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAEpC,CAAC;;;sFAOE,CAAC;;;;;;;oDAOH,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,uCAAuC,CAAA;AACrD,cAAc,2BAA2B,CAAA;AACzC,cAAc,mCAAmC,CAAA"}
|
package/esm/testing/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@just-web/presets-browser",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "just-web presets for browser related features",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"just-web",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
28
|
"import": {
|
|
29
|
-
"types": "./esm/index.d.
|
|
29
|
+
"types": "./esm/index.d.ts",
|
|
30
30
|
"default": "./esm/index.mjs"
|
|
31
31
|
},
|
|
32
32
|
"require": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"./testing": {
|
|
39
39
|
"import": {
|
|
40
|
-
"types": "./esm/testing/index.d.
|
|
40
|
+
"types": "./esm/testing/index.d.ts",
|
|
41
41
|
"default": "./esm/testing/index.mjs"
|
|
42
42
|
},
|
|
43
43
|
"require": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"main": "./cjs/index.cjs",
|
|
51
51
|
"module": "./esm/index.mjs",
|
|
52
|
-
"types": "./esm/index.d.
|
|
52
|
+
"types": "./esm/index.d.ts",
|
|
53
53
|
"files": [
|
|
54
54
|
"cjs",
|
|
55
55
|
"esm",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
"!**/*.{spec,test,unit,accept,integrate,system,perf,stress}.*"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@just-web/browser": "^9.0.
|
|
62
|
-
"@just-web/browser-preferences": "^9.0.
|
|
63
|
-
"@just-web/fetch": "^2.0.
|
|
64
|
-
"@just-web/history": "^2.2.
|
|
65
|
-
"@just-web/states": "^7.2.
|
|
61
|
+
"@just-web/browser": "^9.0.1",
|
|
62
|
+
"@just-web/browser-preferences": "^9.0.1",
|
|
63
|
+
"@just-web/fetch": "^2.0.1",
|
|
64
|
+
"@just-web/history": "^2.2.2",
|
|
65
|
+
"@just-web/states": "^7.2.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@repobuddy/typescript": "^2.1.0",
|
|
@@ -77,18 +77,20 @@
|
|
|
77
77
|
"tsdown": "^0.17.0",
|
|
78
78
|
"type-plus": "8.0.0-beta.7",
|
|
79
79
|
"vitest": "^4.0.15",
|
|
80
|
-
"@just-web/app": "^7.3.
|
|
81
|
-
"@just-web/commands": "^7.3.
|
|
82
|
-
"@just-web/keyboard": "^7.3.
|
|
83
|
-
"@just-web/repo-scripts": "^0.3.
|
|
80
|
+
"@just-web/app": "^7.3.2",
|
|
81
|
+
"@just-web/commands": "^7.3.2",
|
|
82
|
+
"@just-web/keyboard": "^7.3.2",
|
|
83
|
+
"@just-web/repo-scripts": "^0.3.1"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@just-web/app": "^7.3.
|
|
87
|
-
"@just-web/commands": "^7.3.
|
|
88
|
-
"@just-web/keyboard": "^7.3.
|
|
86
|
+
"@just-web/app": "^7.3.2",
|
|
87
|
+
"@just-web/commands": "^7.3.2",
|
|
88
|
+
"@just-web/keyboard": "^7.3.2"
|
|
89
89
|
},
|
|
90
90
|
"scripts": {
|
|
91
|
-
"build": "
|
|
91
|
+
"build": "run-s build:code build:types",
|
|
92
|
+
"build:code": "tsdown --tsconfig tsconfig.build.json",
|
|
93
|
+
"build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
92
94
|
"clean": "rimraf cjs esm coverage tslib --glob *.tsbuildinfo",
|
|
93
95
|
"coverage": "vitest run --coverage",
|
|
94
96
|
"nuke": "rimraf node_modules",
|
package/esm/index.d.mts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import * as _just_web_app0 from "@just-web/app";
|
|
2
|
-
import { LogGizmo, define } from "@just-web/app";
|
|
3
|
-
import * as _just_web_browser0 from "@just-web/browser";
|
|
4
|
-
import { BrowserGizmo, BrowserGizmoOptions, BrowserGizmoOptions as BrowserGizmoOptions$1, ErrorStore, Fetch, ReadonlyErrorStore } from "@just-web/browser";
|
|
5
|
-
import * as _just_web_history0 from "@just-web/history";
|
|
6
|
-
import { BrowserHistory, History, HistoryGizmo, HistoryGizmoOptions, HistoryGizmoOptions as HistoryGizmoOptions$1 } from "@just-web/history";
|
|
7
|
-
import * as _just_web_commands0 from "@just-web/commands";
|
|
8
|
-
import * as _just_web_keyboard0 from "@just-web/keyboard";
|
|
9
|
-
import * as _just_web_fetch0 from "@just-web/fetch";
|
|
10
|
-
import * as _just_web_states0 from "@just-web/states";
|
|
11
|
-
import * as type_plus0 from "type-plus";
|
|
12
|
-
|
|
13
|
-
//#region src/presets_browser_gizmo.d.ts
|
|
14
|
-
interface PresetsBrowserGizmoOptions {
|
|
15
|
-
browser?: BrowserGizmoOptions$1;
|
|
16
|
-
history?: HistoryGizmoOptions$1;
|
|
17
|
-
}
|
|
18
|
-
declare const presetsBrowserGizmoFn: (options?: PresetsBrowserGizmoOptions | undefined) => _just_web_app0.GizmoStatic<_just_web_app0.DepBuilder<{
|
|
19
|
-
id: string;
|
|
20
|
-
name: string;
|
|
21
|
-
} & LogGizmo & {
|
|
22
|
-
commands: {
|
|
23
|
-
contributions: _just_web_commands0.ContributionRegistry;
|
|
24
|
-
handlers: _just_web_commands0.HandlerRegistry;
|
|
25
|
-
showCommandPalette: () => void;
|
|
26
|
-
};
|
|
27
|
-
}, {
|
|
28
|
-
keyboard: {
|
|
29
|
-
keyBindingContributions: _just_web_keyboard0.KeyBindingContributionRegistry;
|
|
30
|
-
};
|
|
31
|
-
}>, type_plus0.Pick._<{
|
|
32
|
-
id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
} & LogGizmo & {
|
|
35
|
-
commands: {
|
|
36
|
-
contributions: _just_web_commands0.ContributionRegistry;
|
|
37
|
-
handlers: _just_web_commands0.HandlerRegistry;
|
|
38
|
-
showCommandPalette: () => void;
|
|
39
|
-
};
|
|
40
|
-
} & Partial<{
|
|
41
|
-
keyboard: {
|
|
42
|
-
keyBindingContributions: _just_web_keyboard0.KeyBindingContributionRegistry;
|
|
43
|
-
};
|
|
44
|
-
}> & {
|
|
45
|
-
browser: {
|
|
46
|
-
errors: _just_web_browser0.ReadonlyErrorStore;
|
|
47
|
-
sessionStorage: Storage;
|
|
48
|
-
localStorage: Storage;
|
|
49
|
-
navigator: Navigator;
|
|
50
|
-
location: Location;
|
|
51
|
-
};
|
|
52
|
-
fetch: _just_web_fetch0.Fetch;
|
|
53
|
-
} & {
|
|
54
|
-
preferences: {
|
|
55
|
-
get: (key: string, defaultValue?: string | undefined) => string | undefined;
|
|
56
|
-
set: (key: string, value: _just_web_states0.SetStateValue<string | undefined>) => void;
|
|
57
|
-
clearAll: () => void;
|
|
58
|
-
createStore<T extends type_plus0.JSONTypes>(key: string, defaultValue?: T | undefined): {
|
|
59
|
-
get(): T | undefined;
|
|
60
|
-
set: <V extends _just_web_states0.SetStateValue<T | undefined> | undefined>(value: V) => V extends type_plus0.AnyFunction<any, Promise<any>> ? Promise<void> : void;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
} & {
|
|
64
|
-
history: _just_web_history0.History;
|
|
65
|
-
}, "browser" | "fetch" | "preferences" | "history">>;
|
|
66
|
-
type PresetsBrowserGizmo = define.Infer<typeof presetsBrowserGizmoFn>;
|
|
67
|
-
//#endregion
|
|
68
|
-
export { type BrowserGizmo, type BrowserGizmoOptions, type BrowserHistory, type ErrorStore, type Fetch, type History, type HistoryGizmo, type HistoryGizmoOptions, PresetsBrowserGizmo, PresetsBrowserGizmoOptions, type ReadonlyErrorStore, presetsBrowserGizmoFn };
|
|
69
|
-
//# sourceMappingURL=index.d.mts.map
|
package/esm/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/presets_browser_gizmo.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;UAQiB,0BAAA;YACN;YACA;;cAGE,kCAAqB,0DAAA,2BAAA;;;;;;IALjB,QAAA,qCACN;IAIE,kBAAA,EAgBV,GAAA,GAAA,IAAA;EAhB+B,CAAA;;;;;qBAAA,CAAA;;;;;;;;;;;;;;EAmBqT,OAAA,EAAA;;;;;;;;;;;aAnBrT,EAAA,MAAA,EAAA,KAAA,iCAAA,CAAA,MAAA,GAAA,SAAA,CAAA,EAAA,GAAA,IAAA;IAAA,QAAA,EAAA,GAAA,GAAA,IAAA;IAkBtB,WAAA,CAAA,8BAA0C,CAApB,CAAA,GAAA,EAAA,MAAO,EAAK,YAAA,CAAA,EACyS,CADzS,GAAA,SAAA,CAAA,EAAA;;;;;;;;KAAlC,mBAAA,GAAsB,MAAA,CAAO,aAAa"}
|
package/esm/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/reduceKey.js","../../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/record.js","../../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/omit.js","../src/presets_browser_gizmo.ts"],"sourcesContent":["export function reduceByKey(subject, callbackfn, initialValue) {\n return Object.keys(subject).reduce((p, k, i, a) => callbackfn(p, k, i, a, subject), initialValue);\n}\n/**\n * @deprecated renamed to reduceByKey\n */\nexport const reduceKey = reduceByKey;\n//# sourceMappingURL=reduceKey.js.map","export function record(value) {\n const r = Object.create(null);\n return (value ? Object.assign(r, value) : r);\n}\n//# sourceMappingURL=record.js.map","import { record } from './record.js';\nimport { reduceByKey } from './reduceKey.js';\nexport function omit(subject, ...props) {\n return reduceByKey(subject, (p, k) => {\n if (props.indexOf(k) === -1)\n p[k] = subject[k];\n return p;\n }, Object.getPrototypeOf(subject) === null ? record() : {});\n}\n//# sourceMappingURL=omit.js.map","import { define, type IdGizmo, incubate, type LogGizmo } from '@just-web/app'\nimport { type BrowserGizmoOptions, browserGizmoFn } from '@just-web/browser'\nimport { browserPreferencesGizmo } from '@just-web/browser-preferences'\nimport type { CommandsGizmo } from '@just-web/commands'\nimport { type HistoryGizmoOptions, historyGizmoFn } from '@just-web/history'\nimport type { KeyboardGizmo } from '@just-web/keyboard'\nimport { omit } from 'type-plus'\n\nexport interface PresetsBrowserGizmoOptions {\n\tbrowser?: BrowserGizmoOptions\n\thistory?: HistoryGizmoOptions\n}\n\nexport const presetsBrowserGizmoFn = define((options?: PresetsBrowserGizmoOptions) => ({\n\tstatic: define.require<IdGizmo>().require<LogGizmo>().require<CommandsGizmo>().optional<KeyboardGizmo>(),\n\tasync create(ctx) {\n\t\treturn omit(\n\t\t\tawait incubate(ctx)\n\t\t\t\t.with(browserGizmoFn(options?.browser))\n\t\t\t\t.with(browserPreferencesGizmo)\n\t\t\t\t.with(historyGizmoFn(options?.history))\n\t\t\t\t.create(),\n\t\t\t'name',\n\t\t\t'id',\n\t\t\t'log',\n\t\t\t'keyboard',\n\t\t\t'commands'\n\t\t)\n\t}\n}))\n\nexport type PresetsBrowserGizmo = define.Infer<typeof presetsBrowserGizmoFn>\n"],"x_google_ignoreList":[0,1,2],"mappings":";;;;;;AAAA,SAAgB,YAAY,SAAS,YAAY,cAAc;AAC3D,QAAO,OAAO,KAAK,QAAQ,CAAC,QAAQ,GAAG,GAAG,GAAG,MAAM,WAAW,GAAG,GAAG,GAAG,GAAG,QAAQ,EAAE,aAAa;;;;;ACDrG,SAAgB,OAAO,OAAO;CAC1B,MAAM,IAAI,OAAO,OAAO,KAAK;AAC7B,QAAQ,QAAQ,OAAO,OAAO,GAAG,MAAM,GAAG;;;;;ACA9C,SAAgB,KAAK,SAAS,GAAG,OAAO;AACpC,QAAO,YAAY,UAAU,GAAG,MAAM;AAClC,MAAI,MAAM,QAAQ,EAAE,KAAK,GACrB,GAAE,KAAK,QAAQ;AACnB,SAAO;IACR,OAAO,eAAe,QAAQ,KAAK,OAAO,QAAQ,GAAG,EAAE,CAAC;;;;;ACM/D,MAAa,wBAAwB,QAAQ,aAA0C;CACtF,QAAQ,OAAO,SAAkB,CAAC,SAAmB,CAAC,SAAwB,CAAC,UAAyB;CACxG,MAAM,OAAO,KAAK;AACjB,SAAO,KACN,MAAM,SAAS,IAAI,CACjB,KAAK,iEAAe,QAAS,QAAQ,CAAC,CACtC,KAAK,wBAAwB,CAC7B,KAAK,iEAAe,QAAS,QAAQ,CAAC,CACtC,QAAQ,EACV,QACA,MACA,OACA,YACA,WACA;;CAEF,EAAE"}
|
package/esm/testing/index.d.mts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { BrowserTestGizmoOptions } from "@just-web/browser/testing";
|
|
2
|
-
import * as _just_web_app0 from "@just-web/app";
|
|
3
|
-
import { LogGizmo } from "@just-web/app";
|
|
4
|
-
import * as _just_web_history0 from "@just-web/history";
|
|
5
|
-
import { HistoryGizmoOptions } from "@just-web/history";
|
|
6
|
-
import * as _just_web_commands0 from "@just-web/commands";
|
|
7
|
-
import * as _just_web_keyboard0 from "@just-web/keyboard";
|
|
8
|
-
import * as _just_web_browser0 from "@just-web/browser";
|
|
9
|
-
import * as _just_web_fetch0 from "@just-web/fetch";
|
|
10
|
-
import * as _just_web_states0 from "@just-web/states";
|
|
11
|
-
import * as type_plus0 from "type-plus";
|
|
12
|
-
export * from "@just-web/browser/testing";
|
|
13
|
-
export * from "@just-web/browser-preferences/testing";
|
|
14
|
-
export * from "@just-web/history/testing";
|
|
15
|
-
|
|
16
|
-
//#region src/presets_browser_gizmo.mocks.d.ts
|
|
17
|
-
interface PresetsBrowserTestGizmoOptions {
|
|
18
|
-
browser?: BrowserTestGizmoOptions;
|
|
19
|
-
history?: HistoryGizmoOptions;
|
|
20
|
-
}
|
|
21
|
-
declare const presetsBrowserTestGizmoFn: (options?: PresetsBrowserTestGizmoOptions | undefined) => _just_web_app0.GizmoStatic<_just_web_app0.DepBuilder<{
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
} & LogGizmo & {
|
|
25
|
-
commands: {
|
|
26
|
-
contributions: _just_web_commands0.ContributionRegistry;
|
|
27
|
-
handlers: _just_web_commands0.HandlerRegistry;
|
|
28
|
-
showCommandPalette: () => void;
|
|
29
|
-
};
|
|
30
|
-
}, {
|
|
31
|
-
keyboard: {
|
|
32
|
-
keyBindingContributions: _just_web_keyboard0.KeyBindingContributionRegistry;
|
|
33
|
-
};
|
|
34
|
-
}>, type_plus0.Pick._<{
|
|
35
|
-
id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
} & LogGizmo & {
|
|
38
|
-
commands: {
|
|
39
|
-
contributions: _just_web_commands0.ContributionRegistry;
|
|
40
|
-
handlers: _just_web_commands0.HandlerRegistry;
|
|
41
|
-
showCommandPalette: () => void;
|
|
42
|
-
};
|
|
43
|
-
} & Partial<{
|
|
44
|
-
keyboard: {
|
|
45
|
-
keyBindingContributions: _just_web_keyboard0.KeyBindingContributionRegistry;
|
|
46
|
-
};
|
|
47
|
-
}> & {
|
|
48
|
-
browser: {
|
|
49
|
-
errors: _just_web_browser0.ReadonlyErrorStore;
|
|
50
|
-
sessionStorage: Storage;
|
|
51
|
-
localStorage: Storage;
|
|
52
|
-
navigator: Navigator;
|
|
53
|
-
location: Location;
|
|
54
|
-
};
|
|
55
|
-
fetch: _just_web_fetch0.Fetch;
|
|
56
|
-
} & {
|
|
57
|
-
preferences: {
|
|
58
|
-
get: (key: string, defaultValue?: string | undefined) => string | undefined;
|
|
59
|
-
set: (key: string, value: _just_web_states0.SetStateValue<string | undefined>) => void;
|
|
60
|
-
clearAll: () => void;
|
|
61
|
-
createStore<T extends type_plus0.JSONTypes>(key: string, defaultValue?: T | undefined): {
|
|
62
|
-
get(): T | undefined;
|
|
63
|
-
set: <V extends _just_web_states0.SetStateValue<T | undefined> | undefined>(value: V) => V extends type_plus0.AnyFunction<any, Promise<any>> ? Promise<void> : void;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
} & {
|
|
67
|
-
history: _just_web_history0.History;
|
|
68
|
-
}, "browser" | "fetch" | "preferences" | "history">>;
|
|
69
|
-
//#endregion
|
|
70
|
-
export { PresetsBrowserTestGizmoOptions, presetsBrowserTestGizmoFn };
|
|
71
|
-
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/presets_browser_gizmo.mocks.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;UAUiB,8BAAA;YACN;YACA;;cAGE,sCAAyB,8DAAA,2BAAA;;;;;;;;;;;;EALrB,CAAA;AAKjB,CAAA,CAAA,mBAAa,CAAA;EAAyB,EAAA,EAAA,MAAA;;;;;YAAA,qCAAA;;;;;;;;;;;;;;EAiBiJ,CAAA;;;;;;;4EAAA;;;;;CAjBjJ,GAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/reduceKey.js","../../../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/record.js","../../../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/omit.js","../../src/presets_browser_gizmo.mocks.ts"],"sourcesContent":["export function reduceByKey(subject, callbackfn, initialValue) {\n return Object.keys(subject).reduce((p, k, i, a) => callbackfn(p, k, i, a, subject), initialValue);\n}\n/**\n * @deprecated renamed to reduceByKey\n */\nexport const reduceKey = reduceByKey;\n//# sourceMappingURL=reduceKey.js.map","export function record(value) {\n const r = Object.create(null);\n return (value ? Object.assign(r, value) : r);\n}\n//# sourceMappingURL=record.js.map","import { record } from './record.js';\nimport { reduceByKey } from './reduceKey.js';\nexport function omit(subject, ...props) {\n return reduceByKey(subject, (p, k) => {\n if (props.indexOf(k) === -1)\n p[k] = subject[k];\n return p;\n }, Object.getPrototypeOf(subject) === null ? record() : {});\n}\n//# sourceMappingURL=omit.js.map","import { define, type IdGizmo, incubate, type LogGizmo } from '@just-web/app'\nimport { type BrowserTestGizmoOptions, browserTestGizmoFn } from '@just-web/browser/testing'\nimport { browserPreferencesGizmo } from '@just-web/browser-preferences'\nimport type { CommandsGizmo } from '@just-web/commands'\nimport { type HistoryGizmoOptions, historyGizmoFn } from '@just-web/history'\nimport { createMemoryHistory } from '@just-web/history/testing'\nimport type { KeyboardGizmo } from '@just-web/keyboard'\nimport { omit } from 'type-plus'\nimport type { PresetsBrowserGizmo } from './presets_browser_gizmo.js'\n\nexport interface PresetsBrowserTestGizmoOptions {\n\tbrowser?: BrowserTestGizmoOptions\n\thistory?: HistoryGizmoOptions\n}\n\nexport const presetsBrowserTestGizmoFn = define((options?: PresetsBrowserTestGizmoOptions) => ({\n\tstatic: define.require<IdGizmo>().require<LogGizmo>().require<CommandsGizmo>().optional<KeyboardGizmo>(),\n\tasync create(ctx): Promise<PresetsBrowserGizmo> {\n\t\treturn omit(\n\t\t\tawait incubate(ctx)\n\t\t\t\t.with(browserTestGizmoFn(options?.browser))\n\t\t\t\t.with(browserPreferencesGizmo)\n\t\t\t\t.with(historyGizmoFn(options?.history ?? { history: createMemoryHistory() }))\n\t\t\t\t.create(),\n\t\t\t'name',\n\t\t\t'id',\n\t\t\t'log',\n\t\t\t'keyboard',\n\t\t\t'commands'\n\t\t)\n\t}\n}))\n"],"x_google_ignoreList":[0,1,2],"mappings":";;;;;;;;;;;;;AAAA,SAAgB,YAAY,SAAS,YAAY,cAAc;AAC3D,QAAO,OAAO,KAAK,QAAQ,CAAC,QAAQ,GAAG,GAAG,GAAG,MAAM,WAAW,GAAG,GAAG,GAAG,GAAG,QAAQ,EAAE,aAAa;;;;;ACDrG,SAAgB,OAAO,OAAO;CAC1B,MAAM,IAAI,OAAO,OAAO,KAAK;AAC7B,QAAQ,QAAQ,OAAO,OAAO,GAAG,MAAM,GAAG;;;;;ACA9C,SAAgB,KAAK,SAAS,GAAG,OAAO;AACpC,QAAO,YAAY,UAAU,GAAG,MAAM;AAClC,MAAI,MAAM,QAAQ,EAAE,KAAK,GACrB,GAAE,KAAK,QAAQ;AACnB,SAAO;IACR,OAAO,eAAe,QAAQ,KAAK,OAAO,QAAQ,GAAG,EAAE,CAAC;;;;;ACQ/D,MAAa,4BAA4B,QAAQ,aAA8C;CAC9F,QAAQ,OAAO,SAAkB,CAAC,SAAmB,CAAC,SAAwB,CAAC,UAAyB;CACxG,MAAM,OAAO,KAAmC;;AAC/C,SAAO,KACN,MAAM,SAAS,IAAI,CACjB,KAAK,qEAAmB,QAAS,QAAQ,CAAC,CAC1C,KAAK,wBAAwB,CAC7B,KAAK,qFAAe,QAAS,sEAAW,EAAE,SAAS,qBAAqB,EAAE,CAAC,CAAC,CAC5E,QAAQ,EACV,QACA,MACA,OACA,YACA,WACA;;CAEF,EAAE"}
|