@just-web/presets-browser 7.3.0 → 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.
- package/cjs/index.cjs +0 -27
- package/cjs/testing/index.cjs +0 -28
- package/esm/{index.d.ts → index.d.mts} +1 -1
- package/esm/index.d.mts.map +1 -0
- package/esm/{index.js → index.mjs} +1 -1
- package/esm/index.mjs.map +1 -0
- package/esm/testing/{index.d.ts → index.d.mts} +1 -1
- package/esm/testing/index.d.mts.map +1 -0
- package/esm/testing/{index.js → index.mjs} +1 -1
- package/esm/testing/index.mjs.map +1 -0
- package/package.json +26 -26
- package/esm/chunk-tTHiu3lt.js +0 -24
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/testing/chunk-tTHiu3lt.js +0 -24
- package/esm/testing/index.d.ts.map +0 -1
- package/esm/testing/index.js.map +0 -1
package/cjs/index.cjs
CHANGED
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
-
key = keys[i];
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
-
get: ((k) => from[k]).bind(null, key),
|
|
13
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
-
value: mod,
|
|
20
|
-
enumerable: true
|
|
21
|
-
}) : target, mod));
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
1
|
let __just_web_app = require("@just-web/app");
|
|
25
|
-
__just_web_app = __toESM(__just_web_app);
|
|
26
2
|
let __just_web_browser = require("@just-web/browser");
|
|
27
|
-
__just_web_browser = __toESM(__just_web_browser);
|
|
28
3
|
let __just_web_browser_preferences = require("@just-web/browser-preferences");
|
|
29
|
-
__just_web_browser_preferences = __toESM(__just_web_browser_preferences);
|
|
30
4
|
let __just_web_history = require("@just-web/history");
|
|
31
|
-
__just_web_history = __toESM(__just_web_history);
|
|
32
5
|
|
|
33
6
|
//#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/reduceKey.js
|
|
34
7
|
function reduceByKey(subject, callbackfn, initialValue) {
|
package/cjs/testing/index.cjs
CHANGED
|
@@ -1,36 +1,8 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
-
key = keys[i];
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
-
get: ((k) => from[k]).bind(null, key),
|
|
13
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
-
value: mod,
|
|
20
|
-
enumerable: true
|
|
21
|
-
}) : target, mod));
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
1
|
let __just_web_browser_testing = require("@just-web/browser/testing");
|
|
25
|
-
__just_web_browser_testing = __toESM(__just_web_browser_testing);
|
|
26
2
|
let __just_web_history_testing = require("@just-web/history/testing");
|
|
27
|
-
__just_web_history_testing = __toESM(__just_web_history_testing);
|
|
28
3
|
let __just_web_app = require("@just-web/app");
|
|
29
|
-
__just_web_app = __toESM(__just_web_app);
|
|
30
4
|
let __just_web_browser_preferences = require("@just-web/browser-preferences");
|
|
31
|
-
__just_web_browser_preferences = __toESM(__just_web_browser_preferences);
|
|
32
5
|
let __just_web_history = require("@just-web/history");
|
|
33
|
-
__just_web_history = __toESM(__just_web_history);
|
|
34
6
|
|
|
35
7
|
//#region ../../node_modules/.pnpm/type-plus@8.0.0-beta.7/node_modules/type-plus/esm/object/reduceKey.js
|
|
36
8
|
function reduceByKey(subject, callbackfn, initialValue) {
|
|
@@ -66,4 +66,4 @@ declare const presetsBrowserGizmoFn: (options?: PresetsBrowserGizmoOptions | und
|
|
|
66
66
|
type PresetsBrowserGizmo = define.Infer<typeof presetsBrowserGizmoFn>;
|
|
67
67
|
//#endregion
|
|
68
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.
|
|
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"}
|
|
@@ -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"}
|
|
@@ -68,4 +68,4 @@ declare const presetsBrowserTestGizmoFn: (options?: PresetsBrowserTestGizmoOptio
|
|
|
68
68
|
}, "browser" | "fetch" | "preferences" | "history">>;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { PresetsBrowserTestGizmoOptions, presetsBrowserTestGizmoFn };
|
|
71
|
-
//# sourceMappingURL=index.d.
|
|
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 @@
|
|
|
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.3.
|
|
3
|
+
"version": "7.3.1",
|
|
4
4
|
"description": "just-web presets for browser related features",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"just-web",
|
|
@@ -26,30 +26,30 @@
|
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
28
|
"import": {
|
|
29
|
-
"types": "./esm/index.d.
|
|
30
|
-
"default": "./esm/index.
|
|
29
|
+
"types": "./esm/index.d.mts",
|
|
30
|
+
"default": "./esm/index.mjs"
|
|
31
31
|
},
|
|
32
32
|
"require": {
|
|
33
33
|
"types": "./cjs/index.d.cts",
|
|
34
|
-
"
|
|
34
|
+
"default": "./cjs/index.cjs"
|
|
35
35
|
},
|
|
36
|
-
"default": "./esm/index.
|
|
36
|
+
"default": "./esm/index.mjs"
|
|
37
37
|
},
|
|
38
38
|
"./testing": {
|
|
39
39
|
"import": {
|
|
40
|
-
"types": "./esm/testing/index.d.
|
|
41
|
-
"default": "./esm/testing/index.
|
|
40
|
+
"types": "./esm/testing/index.d.mts",
|
|
41
|
+
"default": "./esm/testing/index.mjs"
|
|
42
42
|
},
|
|
43
43
|
"require": {
|
|
44
|
-
"types": "./cjs/testing/index.d.
|
|
45
|
-
"default": "./cjs/testing/index.
|
|
44
|
+
"types": "./cjs/testing/index.d.cts",
|
|
45
|
+
"default": "./cjs/testing/index.cjs"
|
|
46
46
|
},
|
|
47
|
-
"default": "./esm/testing/index.
|
|
47
|
+
"default": "./esm/testing/index.mjs"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"main": "./cjs/index.cjs",
|
|
51
|
-
"module": "./esm/index.
|
|
52
|
-
"types": "./
|
|
51
|
+
"module": "./esm/index.mjs",
|
|
52
|
+
"types": "./esm/index.d.mts",
|
|
53
53
|
"files": [
|
|
54
54
|
"cjs",
|
|
55
55
|
"esm",
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"!**/*.{spec,test,unit,accept,integrate,system,perf,stress}.*"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@just-web/browser": "^8.5.
|
|
62
|
-
"@just-web/browser-preferences": "^8.5.
|
|
63
|
-
"@just-web/fetch": "^1.1.
|
|
64
|
-
"@just-web/history": "^2.2.
|
|
65
|
-
"@just-web/states": "^7.2.
|
|
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/typescript": "^2.
|
|
68
|
+
"@repobuddy/typescript": "^2.1.0",
|
|
69
69
|
"@repobuddy/vitest": "^2.1.1",
|
|
70
70
|
"@size-limit/preset-small-lib": "~11.2.0",
|
|
71
71
|
"@vitest/browser-playwright": "^4.0.15",
|
|
@@ -73,19 +73,19 @@
|
|
|
73
73
|
"npm-run-all2": "^6.0.0",
|
|
74
74
|
"repobuddy": "^1.0.1",
|
|
75
75
|
"rimraf": "~6.1.0",
|
|
76
|
-
"size-limit": "~
|
|
77
|
-
"tsdown": "^0.
|
|
76
|
+
"size-limit": "~12.0.0",
|
|
77
|
+
"tsdown": "^0.17.0",
|
|
78
78
|
"type-plus": "8.0.0-beta.7",
|
|
79
79
|
"vitest": "^4.0.15",
|
|
80
|
-
"@just-web/
|
|
81
|
-
"@just-web/
|
|
82
|
-
"@just-web/
|
|
80
|
+
"@just-web/app": "^7.3.1",
|
|
81
|
+
"@just-web/commands": "^7.3.1",
|
|
82
|
+
"@just-web/keyboard": "^7.3.1",
|
|
83
83
|
"@just-web/repo-scripts": "^0.3.0"
|
|
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.1",
|
|
87
|
+
"@just-web/commands": "^7.3.1",
|
|
88
|
+
"@just-web/keyboard": "^7.3.1"
|
|
89
89
|
},
|
|
90
90
|
"peerDependenciesMeta": {
|
|
91
91
|
"@just-web/keyboard": {
|
package/esm/chunk-tTHiu3lt.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
-
key = keys[i];
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
-
get: ((k) => from[k]).bind(null, key),
|
|
13
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
-
value: mod,
|
|
20
|
-
enumerable: true
|
|
21
|
-
}) : target, mod));
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export { };
|
package/esm/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","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.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","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"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
-
key = keys[i];
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
-
get: ((k) => from[k]).bind(null, key),
|
|
13
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
-
value: mod,
|
|
20
|
-
enumerable: true
|
|
21
|
-
}) : target, mod));
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","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"}
|
package/esm/testing/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","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"}
|