@just-web/presets-browser 5.0.0 → 5.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.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C","sourcesContent":["export * from './presets_browser_gizmo.js'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C"}
@@ -8,9 +8,9 @@ const history_1 = require("@just-web/history");
8
8
  exports.presetsBrowserGizmoFn = (0, app_1.define)((options) => ({
9
9
  static: app_1.define.require().require().require().optional(),
10
10
  async create(ctx) {
11
- const browser = await ctx.with((0, browser_1.browserGizmoFn)(options === null || options === void 0 ? void 0 : options.browser));
11
+ const browser = await ctx.with((0, browser_1.browserGizmoFn)(options?.browser));
12
12
  await ctx.with(browser_preferences_1.browserPreferencesGizmo);
13
- const history = await ctx.with((0, history_1.historyGizmoFn)(options === null || options === void 0 ? void 0 : options.history));
13
+ const history = await ctx.with((0, history_1.historyGizmoFn)(options?.history));
14
14
  return {
15
15
  ...browser,
16
16
  ...history
@@ -1 +1 @@
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"]}
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,EAAE,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,EAAE,OAAO,CAAC,CAAC,CAAA;QAChE,OAAO;YACN,GAAG,OAAO;YACV,GAAG,OAAO;SACV,CAAA;IACF,CAAC;CACD,CAAC,CAAC,CAAA"}
package/esm/index.js.map CHANGED
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA"}
@@ -5,9 +5,9 @@ import { historyGizmoFn } from '@just-web/history';
5
5
  export const presetsBrowserGizmoFn = define((options) => ({
6
6
  static: define.require().require().require().optional(),
7
7
  async create(ctx) {
8
- const browser = await ctx.with(browserGizmoFn(options === null || options === void 0 ? void 0 : options.browser));
8
+ const browser = await ctx.with(browserGizmoFn(options?.browser));
9
9
  await ctx.with(browserPreferencesGizmo);
10
- const history = await ctx.with(historyGizmoFn(options === null || options === void 0 ? void 0 : options.history));
10
+ const history = await ctx.with(historyGizmoFn(options?.history));
11
11
  return {
12
12
  ...browser,
13
13
  ...history
@@ -1 +1 @@
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"]}
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,EAAE,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,EAAE,OAAO,CAAC,CAAC,CAAA;QAChE,OAAO;YACN,GAAG,OAAO;YACV,GAAG,OAAO;SACV,CAAA;IACF,CAAC;CACD,CAAC,CAAC,CAAA"}
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.1",
4
4
  "description": "just-web presets for browser related features",
5
5
  "keywords": [
6
6
  "just-web",
@@ -42,17 +42,20 @@
42
42
  "cjs",
43
43
  "esm",
44
44
  "ts",
45
- "!**/*.{spec,test,unit,accept,integrate,system}.*"
45
+ "!**/*.{spec,test,unit,accept,integrate,system,perf,stress}.*"
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
+ "@repobuddy/typescript": "^1.1.2",
49
+ "repobuddy": "^1.0.1",
50
+ "tslib": "^2.5.0",
51
+ "@just-web/browser": "^7.0.1",
52
+ "@just-web/browser-preferences": "^7.0.1",
53
+ "@just-web/history": "^2.0.1"
51
54
  },
52
55
  "devDependencies": {
53
- "@repobuddy/jest": "^3.0.0",
56
+ "@repobuddy/jest": "^3.3.0",
54
57
  "@size-limit/preset-small-lib": "~8.2.0",
55
- "@types/jest": "^29.2.3",
58
+ "@types/jest": "^29.5.1",
56
59
  "cross-env": "^7.0.3",
57
60
  "depcheck": "~1.4.3",
58
61
  "eslint": "^8.11.0",
@@ -69,16 +72,16 @@
69
72
  "size-limit": "~8.2.0",
70
73
  "ts-jest": "^29.1.0",
71
74
  "type-plus": "^6.6.0",
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/repo-scripts": "^0.2.0"
75
+ "typescript": "^5.0.4",
76
+ "@just-web/app": "^7.0.1",
77
+ "@just-web/commands": "^7.0.1",
78
+ "@just-web/keyboard": "^7.0.1",
79
+ "@just-web/repo-scripts": "^0.2.1"
77
80
  },
78
81
  "peerDependencies": {
79
- "@just-web/app": "^7.0.0",
80
- "@just-web/commands": "^7.0.0",
81
- "@just-web/keyboard": "^7.0.0"
82
+ "@just-web/app": "^7.0.1",
83
+ "@just-web/commands": "^7.0.1",
84
+ "@just-web/keyboard": "^7.0.1"
82
85
  },
83
86
  "peerDependenciesMeta": {
84
87
  "@just-web/keyboard": {