@just-web/presets-browser 5.0.0-beta.5 → 5.0.0
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.ts +0 -2
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +0 -6
- package/cjs/index.js.map +1 -1
- package/cjs/presets_browser_gizmo.d.ts +1 -2
- package/cjs/presets_browser_gizmo.d.ts.map +1 -1
- package/cjs/presets_browser_gizmo.js.map +1 -1
- package/esm/index.d.ts +0 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +0 -1
- package/esm/index.js.map +1 -1
- package/esm/presets_browser_gizmo.d.ts +1 -2
- package/esm/presets_browser_gizmo.d.ts.map +1 -1
- package/esm/presets_browser_gizmo.js.map +1 -1
- package/package.json +11 -13
- package/ts/index.ts +0 -2
- package/ts/presets_browser_gizmo.ts +1 -2
- package/cjs/presetsBrowserPlugin.d.ts +0 -20
- package/cjs/presetsBrowserPlugin.d.ts.map +0 -1
- package/cjs/presetsBrowserPlugin.js +0 -25
- package/cjs/presetsBrowserPlugin.js.map +0 -1
- package/esm/presetsBrowserPlugin.d.ts +0 -20
- package/esm/presetsBrowserPlugin.d.ts.map +0 -1
- package/esm/presetsBrowserPlugin.js +0 -20
- package/esm/presetsBrowserPlugin.js.map +0 -1
- package/ts/presetsBrowserPlugin.ts +0 -29
package/cjs/index.d.ts
CHANGED
package/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA"}
|
package/cjs/index.js
CHANGED
|
@@ -13,12 +13,6 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
13
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.default = void 0;
|
|
21
|
-
var presetsBrowserPlugin_js_1 = require("./presetsBrowserPlugin.js");
|
|
22
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(presetsBrowserPlugin_js_1).default; } });
|
|
23
17
|
__exportStar(require("./presets_browser_gizmo.js"), exports);
|
|
24
18
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C","sourcesContent":["export * from './presets_browser_gizmo.js'\n"]}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { define, type DepBuilder, type GizmoStatic, type IdGizmo } from '@just-web/app';
|
|
1
|
+
import { define, type DepBuilder, type GizmoStatic, type IdGizmo, type LogGizmo } from '@just-web/app';
|
|
2
2
|
import { type BrowserGizmo, type BrowserGizmoOptions } from '@just-web/browser';
|
|
3
3
|
import type { CommandsGizmo } from '@just-web/commands';
|
|
4
4
|
import { type HistoryGizmo, type HistoryGizmoOptions } from '@just-web/history';
|
|
5
5
|
import type { KeyboardGizmo } from '@just-web/keyboard';
|
|
6
|
-
import type { LogGizmo } from '@just-web/log';
|
|
7
6
|
export type { ReadonlyErrorStore } from '@just-web/browser';
|
|
8
7
|
export type { BrowserHistory } from 'history';
|
|
9
8
|
export declare const presetsBrowserGizmoFn: (options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets_browser_gizmo.d.ts","sourceRoot":"","sources":["../ts/presets_browser_gizmo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"presets_browser_gizmo.d.ts","sourceRoot":"","sources":["../ts/presets_browser_gizmo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAA;AACtG,OAAO,EAAkB,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE/F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAkB,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC/F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,eAAO,MAAM,qBAAqB,EAAE,CAAC,OAAO,CAAC,EAAE;IAC9C,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B,OAAO,CAAC,EAAE,mBAAmB,CAAA;CAC7B,KAAK,WAAW,CAChB,UAAU,CAAC,OAAO,GAAG,QAAQ,GAAG,aAAa,EAAE,aAAa,CAAC,EAC7D,YAAY,GAAG,YAAY,CAYzB,CAAA;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets_browser_gizmo.js","sourceRoot":"","sources":["../ts/presets_browser_gizmo.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"presets_browser_gizmo.js","sourceRoot":"","sources":["../ts/presets_browser_gizmo.ts"],"names":[],"mappings":";;;AAAA,uCAAsG;AACtG,+CAA+F;AAC/F,uEAAuE;AAEvE,+CAA+F;AAMlF,QAAA,qBAAqB,GAM9B,IAAA,YAAM,EAAC,CAAC,OAA0E,EAAE,EAAE,CAAC,CAAC;IAC3F,MAAM,EAAE,YAAM,CAAC,OAAO,EAAW,CAAC,OAAO,EAAY,CAAC,OAAO,EAAiB,CAAC,QAAQ,EAAiB;IACxG,KAAK,CAAC,MAAM,CAAC,GAAG;QACf,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,IAAA,wBAAc,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,CAAC,CAAA;QAChE,MAAM,GAAG,CAAC,IAAI,CAAC,6CAAuB,CAAC,CAAA;QACvC,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,IAAA,wBAAc,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,CAAC,CAAA;QAChE,OAAO;YACN,GAAG,OAAO;YACV,GAAG,OAAO;SACV,CAAA;IACF,CAAC;CACD,CAAC,CAAC,CAAA","sourcesContent":["import { define, type DepBuilder, type GizmoStatic, type IdGizmo, type LogGizmo } from '@just-web/app'\nimport { browserGizmoFn, type BrowserGizmo, type BrowserGizmoOptions } from '@just-web/browser'\nimport { browserPreferencesGizmo } from '@just-web/browser-preferences'\nimport type { CommandsGizmo } from '@just-web/commands'\nimport { historyGizmoFn, type HistoryGizmo, type HistoryGizmoOptions } from '@just-web/history'\nimport type { KeyboardGizmo } from '@just-web/keyboard'\n\nexport type { ReadonlyErrorStore } from '@just-web/browser'\nexport type { BrowserHistory } from 'history'\n\nexport const presetsBrowserGizmoFn: (options?: {\n\tbrowser?: BrowserGizmoOptions\n\thistory?: HistoryGizmoOptions\n}) => GizmoStatic<\n\tDepBuilder<IdGizmo & LogGizmo & CommandsGizmo, KeyboardGizmo>,\n\tBrowserGizmo & HistoryGizmo\n> = define((options?: { browser?: BrowserGizmoOptions; history?: HistoryGizmoOptions }) => ({\n\tstatic: define.require<IdGizmo>().require<LogGizmo>().require<CommandsGizmo>().optional<KeyboardGizmo>(),\n\tasync create(ctx) {\n\t\tconst browser = await ctx.with(browserGizmoFn(options?.browser))\n\t\tawait ctx.with(browserPreferencesGizmo)\n\t\tconst history = await ctx.with(historyGizmoFn(options?.history))\n\t\treturn {\n\t\t\t...browser,\n\t\t\t...history\n\t\t}\n\t}\n}))\n\nexport type PresetsBrowserGizmo = define.Infer<typeof presetsBrowserGizmoFn>\n"]}
|
package/esm/index.d.ts
CHANGED
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA"}
|
package/esm/index.js
CHANGED
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA","sourcesContent":["export * from './presets_browser_gizmo.js'\n"]}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { define, type DepBuilder, type GizmoStatic, type IdGizmo } from '@just-web/app';
|
|
1
|
+
import { define, type DepBuilder, type GizmoStatic, type IdGizmo, type LogGizmo } from '@just-web/app';
|
|
2
2
|
import { type BrowserGizmo, type BrowserGizmoOptions } from '@just-web/browser';
|
|
3
3
|
import type { CommandsGizmo } from '@just-web/commands';
|
|
4
4
|
import { type HistoryGizmo, type HistoryGizmoOptions } from '@just-web/history';
|
|
5
5
|
import type { KeyboardGizmo } from '@just-web/keyboard';
|
|
6
|
-
import type { LogGizmo } from '@just-web/log';
|
|
7
6
|
export type { ReadonlyErrorStore } from '@just-web/browser';
|
|
8
7
|
export type { BrowserHistory } from 'history';
|
|
9
8
|
export declare const presetsBrowserGizmoFn: (options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets_browser_gizmo.d.ts","sourceRoot":"","sources":["../ts/presets_browser_gizmo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"presets_browser_gizmo.d.ts","sourceRoot":"","sources":["../ts/presets_browser_gizmo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAA;AACtG,OAAO,EAAkB,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE/F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAkB,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC/F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,eAAO,MAAM,qBAAqB,EAAE,CAAC,OAAO,CAAC,EAAE;IAC9C,OAAO,CAAC,EAAE,mBAAmB,CAAA;IAC7B,OAAO,CAAC,EAAE,mBAAmB,CAAA;CAC7B,KAAK,WAAW,CAChB,UAAU,CAAC,OAAO,GAAG,QAAQ,GAAG,aAAa,EAAE,aAAa,CAAC,EAC7D,YAAY,GAAG,YAAY,CAYzB,CAAA;AAEH,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets_browser_gizmo.js","sourceRoot":"","sources":["../ts/presets_browser_gizmo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"presets_browser_gizmo.js","sourceRoot":"","sources":["../ts/presets_browser_gizmo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAkE,MAAM,eAAe,CAAA;AACtG,OAAO,EAAE,cAAc,EAA+C,MAAM,mBAAmB,CAAA;AAC/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAEvE,OAAO,EAAE,cAAc,EAA+C,MAAM,mBAAmB,CAAA;AAM/F,MAAM,CAAC,MAAM,qBAAqB,GAM9B,MAAM,CAAC,CAAC,OAA0E,EAAE,EAAE,CAAC,CAAC;IAC3F,MAAM,EAAE,MAAM,CAAC,OAAO,EAAW,CAAC,OAAO,EAAY,CAAC,OAAO,EAAiB,CAAC,QAAQ,EAAiB;IACxG,KAAK,CAAC,MAAM,CAAC,GAAG;QACf,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,CAAC,CAAA;QAChE,MAAM,GAAG,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;QACvC,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,CAAC,CAAA;QAChE,OAAO;YACN,GAAG,OAAO;YACV,GAAG,OAAO;SACV,CAAA;IACF,CAAC;CACD,CAAC,CAAC,CAAA","sourcesContent":["import { define, type DepBuilder, type GizmoStatic, type IdGizmo, type LogGizmo } from '@just-web/app'\nimport { browserGizmoFn, type BrowserGizmo, type BrowserGizmoOptions } from '@just-web/browser'\nimport { browserPreferencesGizmo } from '@just-web/browser-preferences'\nimport type { CommandsGizmo } from '@just-web/commands'\nimport { historyGizmoFn, type HistoryGizmo, type HistoryGizmoOptions } from '@just-web/history'\nimport type { KeyboardGizmo } from '@just-web/keyboard'\n\nexport type { ReadonlyErrorStore } from '@just-web/browser'\nexport type { BrowserHistory } from 'history'\n\nexport const presetsBrowserGizmoFn: (options?: {\n\tbrowser?: BrowserGizmoOptions\n\thistory?: HistoryGizmoOptions\n}) => GizmoStatic<\n\tDepBuilder<IdGizmo & LogGizmo & CommandsGizmo, KeyboardGizmo>,\n\tBrowserGizmo & HistoryGizmo\n> = define((options?: { browser?: BrowserGizmoOptions; history?: HistoryGizmoOptions }) => ({\n\tstatic: define.require<IdGizmo>().require<LogGizmo>().require<CommandsGizmo>().optional<KeyboardGizmo>(),\n\tasync create(ctx) {\n\t\tconst browser = await ctx.with(browserGizmoFn(options?.browser))\n\t\tawait ctx.with(browserPreferencesGizmo)\n\t\tconst history = await ctx.with(historyGizmoFn(options?.history))\n\t\treturn {\n\t\t\t...browser,\n\t\t\t...history\n\t\t}\n\t}\n}))\n\nexport type PresetsBrowserGizmo = define.Infer<typeof presetsBrowserGizmoFn>\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@just-web/presets-browser",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "just-web presets for browser related features",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"just-web",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"!**/*.{spec,test,unit,accept,integrate,system}.*"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@just-web/browser": "^7.0.0
|
|
49
|
-
"@just-web/browser-preferences": "^7.0.0
|
|
50
|
-
"@just-web/history": "^2.0.0
|
|
48
|
+
"@just-web/browser": "^7.0.0",
|
|
49
|
+
"@just-web/browser-preferences": "^7.0.0",
|
|
50
|
+
"@just-web/history": "^2.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@repobuddy/jest": "^3.0.0",
|
|
@@ -70,17 +70,15 @@
|
|
|
70
70
|
"ts-jest": "^29.1.0",
|
|
71
71
|
"type-plus": "^6.6.0",
|
|
72
72
|
"typescript": "^5.0.0",
|
|
73
|
-
"@just-web/app": "^7.0.0
|
|
74
|
-
"@just-web/commands": "^7.0.0
|
|
75
|
-
"@just-web/keyboard": "^7.0.0
|
|
76
|
-
"@just-web/
|
|
77
|
-
"@just-web/repo-scripts": "^0.2.0",
|
|
78
|
-
"@just-web/types": "^7.0.0-beta.5"
|
|
73
|
+
"@just-web/app": "^7.0.0",
|
|
74
|
+
"@just-web/commands": "^7.0.0",
|
|
75
|
+
"@just-web/keyboard": "^7.0.0",
|
|
76
|
+
"@just-web/repo-scripts": "^0.2.0"
|
|
79
77
|
},
|
|
80
78
|
"peerDependencies": {
|
|
81
|
-
"@just-web/app": "^7.0.0
|
|
82
|
-
"@just-web/commands": "^7.0.0
|
|
83
|
-
"@just-web/keyboard": "^7.0.0
|
|
79
|
+
"@just-web/app": "^7.0.0",
|
|
80
|
+
"@just-web/commands": "^7.0.0",
|
|
81
|
+
"@just-web/keyboard": "^7.0.0"
|
|
84
82
|
},
|
|
85
83
|
"peerDependenciesMeta": {
|
|
86
84
|
"@just-web/keyboard": {
|
package/ts/index.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { define, type DepBuilder, type GizmoStatic, type IdGizmo } from '@just-web/app'
|
|
1
|
+
import { define, type DepBuilder, type GizmoStatic, type IdGizmo, type LogGizmo } from '@just-web/app'
|
|
2
2
|
import { browserGizmoFn, type BrowserGizmo, type BrowserGizmoOptions } from '@just-web/browser'
|
|
3
3
|
import { browserPreferencesGizmo } from '@just-web/browser-preferences'
|
|
4
4
|
import type { CommandsGizmo } from '@just-web/commands'
|
|
5
5
|
import { historyGizmoFn, type HistoryGizmo, type HistoryGizmoOptions } from '@just-web/history'
|
|
6
6
|
import type { KeyboardGizmo } from '@just-web/keyboard'
|
|
7
|
-
import type { LogGizmo } from '@just-web/log'
|
|
8
7
|
|
|
9
8
|
export type { ReadonlyErrorStore } from '@just-web/browser'
|
|
10
9
|
export type { BrowserHistory } from 'history'
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BrowserOptions } from '@just-web/browser';
|
|
2
|
-
import type { CommandsContext } from '@just-web/commands';
|
|
3
|
-
import { HistoryOptions } from '@just-web/history';
|
|
4
|
-
import type { LogContext } from '@just-web/log';
|
|
5
|
-
import { AppBaseContext, PluginContext } from '@just-web/types';
|
|
6
|
-
export type { ReadonlyErrorStore } from '@just-web/browser';
|
|
7
|
-
export type { BrowserHistory } from 'history';
|
|
8
|
-
declare const presetsBrowserPlugin: (options?: (BrowserOptions & HistoryOptions) | undefined) => import("@just-web/types").PluginModule.TypeB<AppBaseContext & LogContext & CommandsContext & Partial<{
|
|
9
|
-
keyboard: {
|
|
10
|
-
keyBindingContributions: import("@just-web/keyboard").KeyBindingContributionRegistry;
|
|
11
|
-
};
|
|
12
|
-
}>, {
|
|
13
|
-
history: import("history").History;
|
|
14
|
-
browser: {
|
|
15
|
-
errors: import("@just-web/browser").ReadonlyErrorStore;
|
|
16
|
-
};
|
|
17
|
-
}>;
|
|
18
|
-
export type PresetsBrowserContext = PluginContext<typeof presetsBrowserPlugin>;
|
|
19
|
-
export default presetsBrowserPlugin;
|
|
20
|
-
//# sourceMappingURL=presetsBrowserPlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"presetsBrowserPlugin.d.ts","sourceRoot":"","sources":["../ts/presetsBrowserPlugin.ts"],"names":[],"mappings":"AAAA,OAAsB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAsB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAgB,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE7E,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,QAAA,MAAM,oBAAoB;;;;;;;;;EAavB,CAAA;AAEH,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAE9E,eAAe,oBAAoB,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const browser_1 = __importDefault(require("@just-web/browser"));
|
|
7
|
-
const browser_preferences_1 = __importDefault(require("@just-web/browser-preferences"));
|
|
8
|
-
const history_1 = __importDefault(require("@just-web/history"));
|
|
9
|
-
const types_1 = require("@just-web/types");
|
|
10
|
-
const presetsBrowserPlugin = (0, types_1.definePlugin)((options) => ({
|
|
11
|
-
name: '@just-web/presets-browser',
|
|
12
|
-
init: (ctx) => {
|
|
13
|
-
const [browser] = (0, browser_1.default)(options).init(ctx);
|
|
14
|
-
(0, browser_preferences_1.default)().init(ctx);
|
|
15
|
-
const [history] = (0, history_1.default)(options).init(ctx);
|
|
16
|
-
return [
|
|
17
|
-
{
|
|
18
|
-
...browser,
|
|
19
|
-
...history
|
|
20
|
-
}
|
|
21
|
-
];
|
|
22
|
-
}
|
|
23
|
-
}));
|
|
24
|
-
exports.default = presetsBrowserPlugin;
|
|
25
|
-
//# sourceMappingURL=presetsBrowserPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"presetsBrowserPlugin.js","sourceRoot":"","sources":["../ts/presetsBrowserPlugin.ts"],"names":[],"mappings":";;;;;AAAA,gEAAiE;AACjE,wFAAoE;AAEpE,gEAAiE;AAGjE,2CAA6E;AAK7E,MAAM,oBAAoB,GAAG,IAAA,oBAAY,EAAC,CAAC,OAAyC,EAAE,EAAE,CAAC,CAAC;IACzF,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,CAAC,GAA6E,EAAE,EAAE;QACvF,MAAM,CAAC,OAAO,CAAC,GAAG,IAAA,iBAAa,EAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAClD,IAAA,6BAAwB,GAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACpC,MAAM,CAAC,OAAO,CAAC,GAAG,IAAA,iBAAa,EAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAClD,OAAO;YACN;gBACC,GAAG,OAAO;gBACV,GAAG,OAAO;aACV;SACD,CAAA;IACF,CAAC;CACD,CAAC,CAAC,CAAA;AAIH,kBAAe,oBAAoB,CAAA","sourcesContent":["import browserPlugin, { BrowserOptions } from '@just-web/browser'\nimport browserPreferencesPlugin from '@just-web/browser-preferences'\nimport type { CommandsContext } from '@just-web/commands'\nimport historyPlugin, { HistoryOptions } from '@just-web/history'\nimport type { KeyboardContext } from '@just-web/keyboard'\nimport type { LogContext } from '@just-web/log'\nimport { AppBaseContext, definePlugin, PluginContext } from '@just-web/types'\n\nexport type { ReadonlyErrorStore } from '@just-web/browser'\nexport type { BrowserHistory } from 'history'\n\nconst presetsBrowserPlugin = definePlugin((options?: BrowserOptions & HistoryOptions) => ({\n\tname: '@just-web/presets-browser',\n\tinit: (ctx: AppBaseContext & LogContext & CommandsContext & Partial<KeyboardContext>) => {\n\t\tconst [browser] = browserPlugin(options).init(ctx)\n\t\tbrowserPreferencesPlugin().init(ctx)\n\t\tconst [history] = historyPlugin(options).init(ctx)\n\t\treturn [\n\t\t\t{\n\t\t\t\t...browser,\n\t\t\t\t...history\n\t\t\t}\n\t\t]\n\t}\n}))\n\nexport type PresetsBrowserContext = PluginContext<typeof presetsBrowserPlugin>\n\nexport default presetsBrowserPlugin\n"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BrowserOptions } from '@just-web/browser';
|
|
2
|
-
import type { CommandsContext } from '@just-web/commands';
|
|
3
|
-
import { HistoryOptions } from '@just-web/history';
|
|
4
|
-
import type { LogContext } from '@just-web/log';
|
|
5
|
-
import { AppBaseContext, PluginContext } from '@just-web/types';
|
|
6
|
-
export type { ReadonlyErrorStore } from '@just-web/browser';
|
|
7
|
-
export type { BrowserHistory } from 'history';
|
|
8
|
-
declare const presetsBrowserPlugin: (options?: (BrowserOptions & HistoryOptions) | undefined) => import("@just-web/types").PluginModule.TypeB<AppBaseContext & LogContext & CommandsContext & Partial<{
|
|
9
|
-
keyboard: {
|
|
10
|
-
keyBindingContributions: import("@just-web/keyboard").KeyBindingContributionRegistry;
|
|
11
|
-
};
|
|
12
|
-
}>, {
|
|
13
|
-
history: import("history").History;
|
|
14
|
-
browser: {
|
|
15
|
-
errors: import("@just-web/browser").ReadonlyErrorStore;
|
|
16
|
-
};
|
|
17
|
-
}>;
|
|
18
|
-
export type PresetsBrowserContext = PluginContext<typeof presetsBrowserPlugin>;
|
|
19
|
-
export default presetsBrowserPlugin;
|
|
20
|
-
//# sourceMappingURL=presetsBrowserPlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"presetsBrowserPlugin.d.ts","sourceRoot":"","sources":["../ts/presetsBrowserPlugin.ts"],"names":[],"mappings":"AAAA,OAAsB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAsB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAgB,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE7E,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,QAAA,MAAM,oBAAoB;;;;;;;;;EAavB,CAAA;AAEH,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAE9E,eAAe,oBAAoB,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import browserPlugin from '@just-web/browser';
|
|
2
|
-
import browserPreferencesPlugin from '@just-web/browser-preferences';
|
|
3
|
-
import historyPlugin from '@just-web/history';
|
|
4
|
-
import { definePlugin } from '@just-web/types';
|
|
5
|
-
const presetsBrowserPlugin = definePlugin((options) => ({
|
|
6
|
-
name: '@just-web/presets-browser',
|
|
7
|
-
init: (ctx) => {
|
|
8
|
-
const [browser] = browserPlugin(options).init(ctx);
|
|
9
|
-
browserPreferencesPlugin().init(ctx);
|
|
10
|
-
const [history] = historyPlugin(options).init(ctx);
|
|
11
|
-
return [
|
|
12
|
-
{
|
|
13
|
-
...browser,
|
|
14
|
-
...history
|
|
15
|
-
}
|
|
16
|
-
];
|
|
17
|
-
}
|
|
18
|
-
}));
|
|
19
|
-
export default presetsBrowserPlugin;
|
|
20
|
-
//# sourceMappingURL=presetsBrowserPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"presetsBrowserPlugin.js","sourceRoot":"","sources":["../ts/presetsBrowserPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,aAAiC,MAAM,mBAAmB,CAAA;AACjE,OAAO,wBAAwB,MAAM,+BAA+B,CAAA;AAEpE,OAAO,aAAiC,MAAM,mBAAmB,CAAA;AAGjE,OAAO,EAAkB,YAAY,EAAiB,MAAM,iBAAiB,CAAA;AAK7E,MAAM,oBAAoB,GAAG,YAAY,CAAC,CAAC,OAAyC,EAAE,EAAE,CAAC,CAAC;IACzF,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE,CAAC,GAA6E,EAAE,EAAE;QACvF,MAAM,CAAC,OAAO,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAClD,wBAAwB,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACpC,MAAM,CAAC,OAAO,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAClD,OAAO;YACN;gBACC,GAAG,OAAO;gBACV,GAAG,OAAO;aACV;SACD,CAAA;IACF,CAAC;CACD,CAAC,CAAC,CAAA;AAIH,eAAe,oBAAoB,CAAA","sourcesContent":["import browserPlugin, { BrowserOptions } from '@just-web/browser'\nimport browserPreferencesPlugin from '@just-web/browser-preferences'\nimport type { CommandsContext } from '@just-web/commands'\nimport historyPlugin, { HistoryOptions } from '@just-web/history'\nimport type { KeyboardContext } from '@just-web/keyboard'\nimport type { LogContext } from '@just-web/log'\nimport { AppBaseContext, definePlugin, PluginContext } from '@just-web/types'\n\nexport type { ReadonlyErrorStore } from '@just-web/browser'\nexport type { BrowserHistory } from 'history'\n\nconst presetsBrowserPlugin = definePlugin((options?: BrowserOptions & HistoryOptions) => ({\n\tname: '@just-web/presets-browser',\n\tinit: (ctx: AppBaseContext & LogContext & CommandsContext & Partial<KeyboardContext>) => {\n\t\tconst [browser] = browserPlugin(options).init(ctx)\n\t\tbrowserPreferencesPlugin().init(ctx)\n\t\tconst [history] = historyPlugin(options).init(ctx)\n\t\treturn [\n\t\t\t{\n\t\t\t\t...browser,\n\t\t\t\t...history\n\t\t\t}\n\t\t]\n\t}\n}))\n\nexport type PresetsBrowserContext = PluginContext<typeof presetsBrowserPlugin>\n\nexport default presetsBrowserPlugin\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import browserPlugin, { BrowserOptions } from '@just-web/browser'
|
|
2
|
-
import browserPreferencesPlugin from '@just-web/browser-preferences'
|
|
3
|
-
import type { CommandsContext } from '@just-web/commands'
|
|
4
|
-
import historyPlugin, { HistoryOptions } from '@just-web/history'
|
|
5
|
-
import type { KeyboardContext } from '@just-web/keyboard'
|
|
6
|
-
import type { LogContext } from '@just-web/log'
|
|
7
|
-
import { AppBaseContext, definePlugin, PluginContext } from '@just-web/types'
|
|
8
|
-
|
|
9
|
-
export type { ReadonlyErrorStore } from '@just-web/browser'
|
|
10
|
-
export type { BrowserHistory } from 'history'
|
|
11
|
-
|
|
12
|
-
const presetsBrowserPlugin = definePlugin((options?: BrowserOptions & HistoryOptions) => ({
|
|
13
|
-
name: '@just-web/presets-browser',
|
|
14
|
-
init: (ctx: AppBaseContext & LogContext & CommandsContext & Partial<KeyboardContext>) => {
|
|
15
|
-
const [browser] = browserPlugin(options).init(ctx)
|
|
16
|
-
browserPreferencesPlugin().init(ctx)
|
|
17
|
-
const [history] = historyPlugin(options).init(ctx)
|
|
18
|
-
return [
|
|
19
|
-
{
|
|
20
|
-
...browser,
|
|
21
|
-
...history
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
}))
|
|
26
|
-
|
|
27
|
-
export type PresetsBrowserContext = PluginContext<typeof presetsBrowserPlugin>
|
|
28
|
-
|
|
29
|
-
export default presetsBrowserPlugin
|