@just-web/presets-browser 7.2.5 → 7.3.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 (71) hide show
  1. package/cjs/index.cjs +37 -0
  2. package/cjs/index.d.cts +69 -0
  3. package/cjs/index.d.cts.map +1 -0
  4. package/cjs/testing/index.cjs +60 -0
  5. package/cjs/testing/index.d.cts +71 -0
  6. package/cjs/testing/index.d.cts.map +1 -0
  7. package/esm/index.d.mts +69 -0
  8. package/esm/index.d.mts.map +1 -0
  9. package/esm/index.mjs +38 -0
  10. package/esm/index.mjs.map +1 -0
  11. package/esm/testing/index.d.mts +71 -0
  12. package/esm/testing/index.d.mts.map +1 -0
  13. package/esm/testing/index.mjs +46 -0
  14. package/esm/testing/index.mjs.map +1 -0
  15. package/package.json +44 -54
  16. package/src/just_web_browser.types.ts +1 -0
  17. package/{ts → src}/presets_browser_gizmo.mocks.ts +3 -3
  18. package/{ts → src}/presets_browser_gizmo.ts +3 -3
  19. package/cjs/index.d.ts +0 -4
  20. package/cjs/index.d.ts.map +0 -1
  21. package/cjs/index.js +0 -20
  22. package/cjs/index.js.map +0 -1
  23. package/cjs/just_web_browser.types.d.ts +0 -2
  24. package/cjs/just_web_browser.types.d.ts.map +0 -1
  25. package/cjs/just_web_browser.types.js +0 -3
  26. package/cjs/just_web_browser.types.js.map +0 -1
  27. package/cjs/just_web_history.types.d.ts +0 -2
  28. package/cjs/just_web_history.types.d.ts.map +0 -1
  29. package/cjs/just_web_history.types.js +0 -3
  30. package/cjs/just_web_history.types.js.map +0 -1
  31. package/cjs/package.json +0 -3
  32. package/cjs/presets_browser_gizmo.d.ts +0 -57
  33. package/cjs/presets_browser_gizmo.d.ts.map +0 -1
  34. package/cjs/presets_browser_gizmo.js +0 -19
  35. package/cjs/presets_browser_gizmo.js.map +0 -1
  36. package/cjs/presets_browser_gizmo.mocks.d.ts +0 -56
  37. package/cjs/presets_browser_gizmo.mocks.d.ts.map +0 -1
  38. package/cjs/presets_browser_gizmo.mocks.js +0 -20
  39. package/cjs/presets_browser_gizmo.mocks.js.map +0 -1
  40. package/cjs/testing/index.d.ts +0 -5
  41. package/cjs/testing/index.d.ts.map +0 -1
  42. package/cjs/testing/index.js +0 -21
  43. package/cjs/testing/index.js.map +0 -1
  44. package/esm/index.d.ts +0 -4
  45. package/esm/index.d.ts.map +0 -1
  46. package/esm/index.js +0 -4
  47. package/esm/index.js.map +0 -1
  48. package/esm/just_web_browser.types.d.ts +0 -2
  49. package/esm/just_web_browser.types.d.ts.map +0 -1
  50. package/esm/just_web_browser.types.js +0 -2
  51. package/esm/just_web_browser.types.js.map +0 -1
  52. package/esm/just_web_history.types.d.ts +0 -2
  53. package/esm/just_web_history.types.d.ts.map +0 -1
  54. package/esm/just_web_history.types.js +0 -2
  55. package/esm/just_web_history.types.js.map +0 -1
  56. package/esm/presets_browser_gizmo.d.ts +0 -57
  57. package/esm/presets_browser_gizmo.d.ts.map +0 -1
  58. package/esm/presets_browser_gizmo.js +0 -16
  59. package/esm/presets_browser_gizmo.js.map +0 -1
  60. package/esm/presets_browser_gizmo.mocks.d.ts +0 -56
  61. package/esm/presets_browser_gizmo.mocks.d.ts.map +0 -1
  62. package/esm/presets_browser_gizmo.mocks.js +0 -17
  63. package/esm/presets_browser_gizmo.mocks.js.map +0 -1
  64. package/esm/testing/index.d.ts +0 -5
  65. package/esm/testing/index.d.ts.map +0 -1
  66. package/esm/testing/index.js +0 -5
  67. package/esm/testing/index.js.map +0 -1
  68. package/ts/just_web_browser.types.ts +0 -1
  69. package/{ts → src}/index.ts +0 -0
  70. package/{ts → src}/just_web_history.types.ts +0 -0
  71. package/{ts → src}/testing/index.ts +1 -1
package/cjs/index.cjs ADDED
@@ -0,0 +1,37 @@
1
+ let __just_web_app = require("@just-web/app");
2
+ let __just_web_browser = require("@just-web/browser");
3
+ let __just_web_browser_preferences = require("@just-web/browser-preferences");
4
+ let __just_web_history = require("@just-web/history");
5
+
6
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/reduceKey.js
7
+ function reduceByKey(subject, callbackfn, initialValue) {
8
+ return Object.keys(subject).reduce((p, k, i, a) => callbackfn(p, k, i, a, subject), initialValue);
9
+ }
10
+
11
+ //#endregion
12
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/record.js
13
+ function record(value) {
14
+ const r = Object.create(null);
15
+ return value ? Object.assign(r, value) : r;
16
+ }
17
+
18
+ //#endregion
19
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/omit.js
20
+ function omit(subject, ...props) {
21
+ return reduceByKey(subject, (p, k) => {
22
+ if (props.indexOf(k) === -1) p[k] = subject[k];
23
+ return p;
24
+ }, Object.getPrototypeOf(subject) === null ? record() : {});
25
+ }
26
+
27
+ //#endregion
28
+ //#region src/presets_browser_gizmo.ts
29
+ const presetsBrowserGizmoFn = (0, __just_web_app.define)((options) => ({
30
+ static: __just_web_app.define.require().require().require().optional(),
31
+ async create(ctx) {
32
+ return omit(await (0, __just_web_app.incubate)(ctx).with((0, __just_web_browser.browserGizmoFn)(options === null || options === void 0 ? void 0 : options.browser)).with(__just_web_browser_preferences.browserPreferencesGizmo).with((0, __just_web_history.historyGizmoFn)(options === null || options === void 0 ? void 0 : options.history)).create(), "name", "id", "log", "keyboard", "commands");
33
+ }
34
+ }));
35
+
36
+ //#endregion
37
+ exports.presetsBrowserGizmoFn = presetsBrowserGizmoFn;
@@ -0,0 +1,69 @@
1
+ import * as _just_web_browser0 from "@just-web/browser";
2
+ import { BrowserGizmo, BrowserGizmoOptions, BrowserGizmoOptions as BrowserGizmoOptions$1, ErrorStore, Fetch, ReadonlyErrorStore } from "@just-web/browser";
3
+ import * as _just_web_history0 from "@just-web/history";
4
+ import { BrowserHistory, History, HistoryGizmo, HistoryGizmoOptions, HistoryGizmoOptions as HistoryGizmoOptions$1 } from "@just-web/history";
5
+ import * as _just_web_commands0 from "@just-web/commands";
6
+ import * as _just_web_keyboard0 from "@just-web/keyboard";
7
+ import * as _just_web_app0 from "@just-web/app";
8
+ import { LogGizmo, define } from "@just-web/app";
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.cts.map
@@ -0,0 +1 @@
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,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"}
@@ -0,0 +1,60 @@
1
+ let __just_web_browser_testing = require("@just-web/browser/testing");
2
+ let __just_web_history_testing = require("@just-web/history/testing");
3
+ let __just_web_app = require("@just-web/app");
4
+ let __just_web_browser_preferences = require("@just-web/browser-preferences");
5
+ let __just_web_history = require("@just-web/history");
6
+
7
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/reduceKey.js
8
+ function reduceByKey(subject, callbackfn, initialValue) {
9
+ return Object.keys(subject).reduce((p, k, i, a) => callbackfn(p, k, i, a, subject), initialValue);
10
+ }
11
+
12
+ //#endregion
13
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/record.js
14
+ function record(value) {
15
+ const r = Object.create(null);
16
+ return value ? Object.assign(r, value) : r;
17
+ }
18
+
19
+ //#endregion
20
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/omit.js
21
+ function omit(subject, ...props) {
22
+ return reduceByKey(subject, (p, k) => {
23
+ if (props.indexOf(k) === -1) p[k] = subject[k];
24
+ return p;
25
+ }, Object.getPrototypeOf(subject) === null ? record() : {});
26
+ }
27
+
28
+ //#endregion
29
+ //#region src/presets_browser_gizmo.mocks.ts
30
+ const presetsBrowserTestGizmoFn = (0, __just_web_app.define)((options) => ({
31
+ static: __just_web_app.define.require().require().require().optional(),
32
+ async create(ctx) {
33
+ var _options$history;
34
+ return omit(await (0, __just_web_app.incubate)(ctx).with((0, __just_web_browser_testing.browserTestGizmoFn)(options === null || options === void 0 ? void 0 : options.browser)).with(__just_web_browser_preferences.browserPreferencesGizmo).with((0, __just_web_history.historyGizmoFn)((_options$history = options === null || options === void 0 ? void 0 : options.history) !== null && _options$history !== void 0 ? _options$history : { history: (0, __just_web_history_testing.createMemoryHistory)() })).create(), "name", "id", "log", "keyboard", "commands");
35
+ }
36
+ }));
37
+
38
+ //#endregion
39
+ exports.presetsBrowserTestGizmoFn = presetsBrowserTestGizmoFn;
40
+ Object.keys(__just_web_browser_testing).forEach(function (k) {
41
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
42
+ enumerable: true,
43
+ get: function () { return __just_web_browser_testing[k]; }
44
+ });
45
+ });
46
+
47
+ var __just_web_browser_preferences_testing = require("@just-web/browser-preferences/testing");
48
+ Object.keys(__just_web_browser_preferences_testing).forEach(function (k) {
49
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
50
+ enumerable: true,
51
+ get: function () { return __just_web_browser_preferences_testing[k]; }
52
+ });
53
+ });
54
+
55
+ Object.keys(__just_web_history_testing).forEach(function (k) {
56
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
57
+ enumerable: true,
58
+ get: function () { return __just_web_history_testing[k]; }
59
+ });
60
+ });
@@ -0,0 +1,71 @@
1
+ import { BrowserTestGizmoOptions } from "@just-web/browser/testing";
2
+ import * as _just_web_commands0 from "@just-web/commands";
3
+ import * as _just_web_keyboard0 from "@just-web/keyboard";
4
+ import * as _just_web_app0 from "@just-web/app";
5
+ 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
+ import * as _just_web_states0 from "@just-web/states";
9
+ import * as type_plus0 from "type-plus";
10
+ import * as _just_web_history0 from "@just-web/history";
11
+ import { HistoryGizmoOptions } from "@just-web/history";
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.cts.map
@@ -0,0 +1 @@
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;;;;;;;;;;;;EALrB,CAAA;AAKjB,CAAA,CAAA,mBAAa,CAAA;EAAyB,EAAA,EAAA,MAAA;;;;;YAAA,qCAAA;;;;;;;;;;;;;;EAiBiJ,CAAA;;;;;;;4EAAA;;;;;CAjBjJ,GAAA"}
@@ -0,0 +1,69 @@
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
@@ -0,0 +1 @@
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 ADDED
@@ -0,0 +1,38 @@
1
+ import { define, incubate } from "@just-web/app";
2
+ import { browserGizmoFn } from "@just-web/browser";
3
+ import { browserPreferencesGizmo } from "@just-web/browser-preferences";
4
+ import { historyGizmoFn } from "@just-web/history";
5
+
6
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/reduceKey.js
7
+ function reduceByKey(subject, callbackfn, initialValue) {
8
+ return Object.keys(subject).reduce((p, k, i, a) => callbackfn(p, k, i, a, subject), initialValue);
9
+ }
10
+
11
+ //#endregion
12
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/record.js
13
+ function record(value) {
14
+ const r = Object.create(null);
15
+ return value ? Object.assign(r, value) : r;
16
+ }
17
+
18
+ //#endregion
19
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/omit.js
20
+ function omit(subject, ...props) {
21
+ return reduceByKey(subject, (p, k) => {
22
+ if (props.indexOf(k) === -1) p[k] = subject[k];
23
+ return p;
24
+ }, Object.getPrototypeOf(subject) === null ? record() : {});
25
+ }
26
+
27
+ //#endregion
28
+ //#region src/presets_browser_gizmo.ts
29
+ const presetsBrowserGizmoFn = define((options) => ({
30
+ static: define.require().require().require().optional(),
31
+ async create(ctx) {
32
+ return omit(await incubate(ctx).with(browserGizmoFn(options === null || options === void 0 ? void 0 : options.browser)).with(browserPreferencesGizmo).with(historyGizmoFn(options === null || options === void 0 ? void 0 : options.history)).create(), "name", "id", "log", "keyboard", "commands");
33
+ }
34
+ }));
35
+
36
+ //#endregion
37
+ export { presetsBrowserGizmoFn };
38
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,71 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,46 @@
1
+ import { browserTestGizmoFn } from "@just-web/browser/testing";
2
+ import { createMemoryHistory } from "@just-web/history/testing";
3
+ import { define, incubate } from "@just-web/app";
4
+ import { browserPreferencesGizmo } from "@just-web/browser-preferences";
5
+ import { historyGizmoFn } from "@just-web/history";
6
+
7
+ export * from "@just-web/browser/testing"
8
+
9
+ export * from "@just-web/browser-preferences/testing"
10
+
11
+ export * from "@just-web/history/testing"
12
+
13
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/reduceKey.js
14
+ function reduceByKey(subject, callbackfn, initialValue) {
15
+ return Object.keys(subject).reduce((p, k, i, a) => callbackfn(p, k, i, a, subject), initialValue);
16
+ }
17
+
18
+ //#endregion
19
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/record.js
20
+ function record(value) {
21
+ const r = Object.create(null);
22
+ return value ? Object.assign(r, value) : r;
23
+ }
24
+
25
+ //#endregion
26
+ //#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/omit.js
27
+ function omit(subject, ...props) {
28
+ return reduceByKey(subject, (p, k) => {
29
+ if (props.indexOf(k) === -1) p[k] = subject[k];
30
+ return p;
31
+ }, Object.getPrototypeOf(subject) === null ? record() : {});
32
+ }
33
+
34
+ //#endregion
35
+ //#region src/presets_browser_gizmo.mocks.ts
36
+ const presetsBrowserTestGizmoFn = define((options) => ({
37
+ static: define.require().require().require().optional(),
38
+ async create(ctx) {
39
+ var _options$history;
40
+ return omit(await incubate(ctx).with(browserTestGizmoFn(options === null || options === void 0 ? void 0 : options.browser)).with(browserPreferencesGizmo).with(historyGizmoFn((_options$history = options === null || options === void 0 ? void 0 : options.history) !== null && _options$history !== void 0 ? _options$history : { history: createMemoryHistory() })).create(), "name", "id", "log", "keyboard", "commands");
41
+ }
42
+ }));
43
+
44
+ //#endregion
45
+ export { presetsBrowserTestGizmoFn };
46
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@just-web/presets-browser",
3
- "version": "7.2.5",
3
+ "version": "7.3.1",
4
4
  "description": "just-web presets for browser related features",
5
5
  "keywords": [
6
6
  "just-web",
@@ -26,71 +26,66 @@
26
26
  "exports": {
27
27
  ".": {
28
28
  "import": {
29
- "types": "./esm/index.d.ts",
30
- "default": "./esm/index.js"
29
+ "types": "./esm/index.d.mts",
30
+ "default": "./esm/index.mjs"
31
31
  },
32
32
  "require": {
33
- "types": "./cjs/index.d.ts",
34
- "require": "./cjs/index.js"
33
+ "types": "./cjs/index.d.cts",
34
+ "default": "./cjs/index.cjs"
35
35
  },
36
- "default": "./esm/index.js"
36
+ "default": "./esm/index.mjs"
37
37
  },
38
38
  "./testing": {
39
39
  "import": {
40
- "types": "./esm/testing/index.d.ts",
41
- "default": "./esm/testing/index.js"
40
+ "types": "./esm/testing/index.d.mts",
41
+ "default": "./esm/testing/index.mjs"
42
42
  },
43
43
  "require": {
44
- "types": "./cjs/testing/index.d.ts",
45
- "default": "./cjs/testing/index.js"
44
+ "types": "./cjs/testing/index.d.cts",
45
+ "default": "./cjs/testing/index.cjs"
46
46
  },
47
- "default": "./esm/testing/index.js"
47
+ "default": "./esm/testing/index.mjs"
48
48
  }
49
49
  },
50
- "main": "./cjs/index.js",
51
- "module": "./esm/index.js",
52
- "types": "./cjs/index.d.ts",
50
+ "main": "./cjs/index.cjs",
51
+ "module": "./esm/index.mjs",
52
+ "types": "./esm/index.d.mts",
53
53
  "files": [
54
54
  "cjs",
55
55
  "esm",
56
56
  "testing",
57
- "ts",
57
+ "src",
58
58
  "!**/*.{spec,test,unit,accept,integrate,system,perf,stress}.*"
59
59
  ],
60
60
  "dependencies": {
61
- "@just-web/browser": "^8.4.2",
62
- "@just-web/browser-preferences": "^8.4.2",
63
- "@just-web/fetch": "^1.0.2",
64
- "@just-web/history": "^2.1.2",
65
- "@just-web/states": "^7.1.6"
61
+ "@just-web/browser": "^8.5.1",
62
+ "@just-web/browser-preferences": "^8.5.1",
63
+ "@just-web/fetch": "^1.1.1",
64
+ "@just-web/history": "^2.2.1",
65
+ "@just-web/states": "^7.2.1"
66
66
  },
67
67
  "devDependencies": {
68
- "@repobuddy/jest": "^3.3.0",
69
- "@repobuddy/typescript": "^1.2.0",
70
- "@size-limit/preset-small-lib": "~8.2.0",
71
- "@types/jest": "^29.5.1",
72
- "cross-env": "^7.0.3",
73
- "depcheck": "~1.4.3",
74
- "jest": "^29.5.0",
75
- "jest-validate": "^29.5.0",
76
- "jest-watch-suspend": "^1.1.2",
77
- "jest-watch-toggle-config-2": "^2.1.0",
78
- "jest-watch-typeahead": "^2.2.2",
79
- "npm-run-all": "^4.1.5",
68
+ "@repobuddy/typescript": "^2.1.0",
69
+ "@repobuddy/vitest": "^2.1.1",
70
+ "@size-limit/preset-small-lib": "~11.2.0",
71
+ "@vitest/browser-playwright": "^4.0.15",
72
+ "@vitest/coverage-v8": "^4.0.15",
73
+ "npm-run-all2": "^6.0.0",
80
74
  "repobuddy": "^1.0.1",
81
- "rimraf": "~5.0.0",
82
- "size-limit": "~8.2.0",
83
- "ts-jest": "^29.1.0",
84
- "tslib": "^2.5.0",
85
- "type-plus": "^7.0.1",
86
- "@just-web/app": "^7.2.1",
87
- "@just-web/commands": "^7.2.4",
88
- "@just-web/keyboard": "^7.2.4"
75
+ "rimraf": "~6.1.0",
76
+ "size-limit": "~12.0.0",
77
+ "tsdown": "^0.17.0",
78
+ "type-plus": "8.0.0-beta.7",
79
+ "vitest": "^4.0.15",
80
+ "@just-web/app": "^7.3.1",
81
+ "@just-web/commands": "^7.3.1",
82
+ "@just-web/keyboard": "^7.3.1",
83
+ "@just-web/repo-scripts": "^0.3.0"
89
84
  },
90
85
  "peerDependencies": {
91
- "@just-web/app": "^7.2.1",
92
- "@just-web/commands": "^7.2.4",
93
- "@just-web/keyboard": "^7.2.4"
86
+ "@just-web/app": "^7.3.1",
87
+ "@just-web/commands": "^7.3.1",
88
+ "@just-web/keyboard": "^7.3.1"
94
89
  },
95
90
  "peerDependenciesMeta": {
96
91
  "@just-web/keyboard": {
@@ -98,19 +93,14 @@
98
93
  }
99
94
  },
100
95
  "scripts": {
101
- "build": "run-p build:cjs build:esm build:tslib",
102
- "build:cjs": "buddy ts build cjs",
103
- "build:esm": "tsc",
104
- "build:tslib": "buddy ts build tslib",
96
+ "build": "tsdown",
105
97
  "clean": "rimraf cjs esm coverage tslib --glob *.tsbuildinfo",
106
- "coverage": "cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest --coverage",
107
- "depcheck": "depcheck",
108
- "lint": "cross-env TIMING=1 eslint --ext=ts,tsx,js,yaml,yml .",
98
+ "coverage": "vitest run --coverage",
109
99
  "nuke": "rimraf node_modules",
110
100
  "size": "size-limit",
111
- "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
112
- "test:watch": "cross-env NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 jest --watch",
113
- "w": "pnpm test:watch",
114
- "verify": "npm-run-all -p build lint coverage depcheck -p size"
101
+ "test": "vitest run",
102
+ "test:watch": "vitest",
103
+ "verify": "npm-run-all -p build lint coverage -p size",
104
+ "w": "pnpm test:watch"
115
105
  }
116
106
  }
@@ -0,0 +1 @@
1
+ export type { BrowserGizmo, BrowserGizmoOptions, ErrorStore, Fetch, ReadonlyErrorStore } from '@just-web/browser'