@dxos/plugin-pwa 0.9.1-staging.ee54ba693a → 0.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-pwa",
3
- "version": "0.9.1-staging.ee54ba693a",
3
+ "version": "0.11.0",
4
4
  "description": "DXOS Surface plugin for PWA registration and update handling.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -16,34 +16,34 @@
16
16
  "#meta": {
17
17
  "source": "./src/meta.ts",
18
18
  "types": "./dist/types/src/meta.d.ts",
19
- "default": "./dist/lib/neutral/meta.mjs"
19
+ "default": "./dist/lib/meta.mjs"
20
20
  },
21
21
  "#plugin": {
22
22
  "source": "./src/PwaPlugin.tsx",
23
23
  "types": "./dist/types/src/PwaPlugin.d.ts",
24
- "default": "./dist/lib/neutral/PwaPlugin.mjs"
24
+ "default": "./dist/lib/PwaPlugin.mjs"
25
25
  },
26
26
  "#translations": {
27
27
  "source": "./src/translations.ts",
28
28
  "types": "./dist/types/src/translations.d.ts",
29
- "default": "./dist/lib/neutral/translations.mjs"
29
+ "default": "./dist/lib/translations.mjs"
30
30
  }
31
31
  },
32
32
  "exports": {
33
33
  ".": {
34
34
  "source": "./src/index.ts",
35
35
  "types": "./dist/types/src/index.d.ts",
36
- "default": "./dist/lib/neutral/index.mjs"
36
+ "import": "./dist/lib/index.mjs"
37
37
  },
38
38
  "./plugin": {
39
39
  "source": "./src/plugin.ts",
40
40
  "types": "./dist/types/src/plugin.d.ts",
41
- "default": "./dist/lib/neutral/plugin.mjs"
41
+ "import": "./dist/lib/plugin.mjs"
42
42
  },
43
43
  "./translations": {
44
44
  "source": "./src/translations.ts",
45
45
  "types": "./dist/types/src/translations.d.ts",
46
- "default": "./dist/lib/neutral/translations.mjs"
46
+ "import": "./dist/lib/translations.mjs"
47
47
  }
48
48
  },
49
49
  "types": "dist/types/src/index.d.ts",
@@ -54,31 +54,31 @@
54
54
  ],
55
55
  "dependencies": {
56
56
  "effect": "3.21.4",
57
- "@dxos/app-toolkit": "0.9.1-staging.ee54ba693a",
58
- "@dxos/app-framework": "0.9.1-staging.ee54ba693a",
59
- "@dxos/keys": "0.9.1-staging.ee54ba693a",
60
- "@dxos/util": "0.9.1-staging.ee54ba693a",
61
- "@dxos/log": "0.9.1-staging.ee54ba693a"
57
+ "@dxos/app-framework": "0.11.0",
58
+ "@dxos/app-toolkit": "0.11.0",
59
+ "@dxos/keys": "0.11.0",
60
+ "@dxos/log": "0.11.0",
61
+ "@dxos/util": "0.11.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/react": "~19.2.17",
65
65
  "@types/react-dom": "~19.2.3",
66
66
  "react": "~19.2.7",
67
67
  "react-dom": "~19.2.7",
68
- "vite": "^8.0.16",
68
+ "vite": "^8.1.4",
69
69
  "vite-plugin-pwa": "^1.2.0",
70
70
  "workbox-window": "^7.4.0",
71
- "@dxos/plugin-testing": "0.9.1-staging.ee54ba693a",
72
- "@dxos/storybook-utils": "0.9.1-staging.ee54ba693a",
73
- "@dxos/react-ui": "0.9.1-staging.ee54ba693a",
74
- "@dxos/ui-theme": "0.9.1-staging.ee54ba693a"
71
+ "@dxos/plugin-testing": "0.11.0",
72
+ "@dxos/storybook-utils": "0.11.0",
73
+ "@dxos/react-ui": "0.11.0",
74
+ "@dxos/ui-theme": "0.11.0"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "effect": "3.21.4",
78
78
  "react": "~19.2.7",
79
79
  "react-dom": "~19.2.7",
80
- "@dxos/react-ui": "0.9.1-staging.ee54ba693a",
81
- "@dxos/ui-theme": "0.9.1-staging.ee54ba693a"
80
+ "@dxos/react-ui": "^0.11.0",
81
+ "@dxos/ui-theme": "^0.11.0"
82
82
  },
83
83
  "publishConfig": {
84
84
  "access": "public"
package/src/PwaPlugin.tsx CHANGED
@@ -2,16 +2,39 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
+ import * as Duration from 'effect/Duration';
5
6
  import * as Effect from 'effect/Effect';
7
+ import * as Fiber from 'effect/Fiber';
8
+ import * as Predicate from 'effect/Predicate';
9
+ import * as Schedule from 'effect/Schedule';
6
10
  import { registerSW } from 'virtual:pwa-register';
7
11
 
8
- import { ActivationEvents, Capabilities, Capability, Plugin } from '@dxos/app-framework';
9
- import { AppPlugin, LayoutOperation } from '@dxos/app-toolkit';
12
+ import { ActivationEvent, ActivationEvents, Capabilities, Capability, Plugin } from '@dxos/app-framework';
13
+ import { AppActivationEvents, AppCapabilities, AppPlugin, LayoutOperation } from '@dxos/app-toolkit';
10
14
  import { log } from '@dxos/log';
11
15
 
12
16
  import { meta } from '#meta';
13
17
  import { translations } from '#translations';
14
18
 
19
+ const UPDATE_CHECK_INTERVAL = Duration.hours(1);
20
+
21
+ /**
22
+ * Progress envelope posted by the host's service worker while it precaches a build. The contract is
23
+ * duplicated in `composer-app/src/sw.ts` so the worker bundle stays free of host code — keep in sync.
24
+ */
25
+ const PRECACHE_PROGRESS = 'dxos:precache-progress';
26
+
27
+ type PrecacheProgress = {
28
+ type: typeof PRECACHE_PROGRESS;
29
+ current: number;
30
+ total: number;
31
+ isUpdate: boolean;
32
+ done: boolean;
33
+ };
34
+
35
+ const isPrecacheProgress = (data: unknown): data is PrecacheProgress =>
36
+ Predicate.isRecord(data) && data.type === PRECACHE_PROGRESS;
37
+
15
38
  export const PwaPlugin = Plugin.define(meta).pipe(
16
39
  AppPlugin.addTranslationsModule({ translations }),
17
40
  Plugin.addModule({
@@ -20,7 +43,12 @@ export const PwaPlugin = Plugin.define(meta).pipe(
20
43
  activate: Effect.fnUntraced(function* () {
21
44
  const { invokePromise } = yield* Capability.get(Capabilities.OperationInvoker);
22
45
 
46
+ let registration: ServiceWorkerRegistration | undefined;
47
+
23
48
  const updateSW = registerSW({
49
+ onRegisteredSW: (_swUrl, swRegistration) => {
50
+ registration = swRegistration;
51
+ },
24
52
  onNeedRefresh: () => {
25
53
  void invokePromise(LayoutOperation.AddToast, {
26
54
  id: `${meta.profile.key}.need-refresh`,
@@ -43,6 +71,70 @@ export const PwaPlugin = Plugin.define(meta).pipe(
43
71
  log.error(err);
44
72
  },
45
73
  });
74
+
75
+ // The browser only re-fetches the worker script on navigation, but Composer sessions stay open
76
+ // for days, so without polling a deployed update is never noticed and the refresh toast only
77
+ // ever appears on reload. `Effect.repeat` runs the first check straight away, before
78
+ // `onRegisteredSW` has fired — the optional call makes that opening tick a no-op.
79
+ //
80
+ // `update()` rejects in its own right — `InvalidStateError` while a worker is already
81
+ // installing, a `TypeError` when the script fetch fails offline — so the rejection is recovered
82
+ // rather than left to `Effect.promise`, whose defect would kill the daemon fiber and silently
83
+ // end polling for the rest of the session.
84
+ const checkForUpdate = Effect.tryPromise(async () => {
85
+ await registration?.update();
86
+ }).pipe(Effect.catchAll((error) => Effect.sync(() => log.warn('service worker update check failed', { error }))));
87
+
88
+ const fiber = yield* checkForUpdate.pipe(Effect.repeat(Schedule.fixed(UPDATE_CHECK_INTERVAL)), Effect.forkDaemon);
89
+
90
+ // Return the interruption effect directly; Fiber.interrupt is async and would throw
91
+ // AsyncFiberException if wrapped in Effect.runSync.
92
+ return Capability.contributes(Capabilities.Null, null, () => Fiber.interrupt(fiber));
93
+ }),
94
+ }),
95
+ // Separate from `register-pwa` so that an app without the progress registry still registers the
96
+ // service worker — only the meter is lost, not the update flow itself.
97
+ Plugin.addModule({
98
+ id: 'update-progress',
99
+ activatesOn: ActivationEvent.allOf(ActivationEvents.ProcessManagerReady, AppActivationEvents.ProgressRegistryReady),
100
+ activate: Effect.fnUntraced(function* () {
101
+ const registry = yield* Capability.get(AppCapabilities.ProgressRegistry);
102
+
103
+ let monitor: AppCapabilities.ProgressMonitor | undefined;
104
+ const handleMessage = (event: MessageEvent) => {
105
+ if (!isPrecacheProgress(event.data)) {
106
+ return;
107
+ }
108
+
109
+ const { current, total, isUpdate, done } = event.data;
110
+ if (done && !monitor) {
111
+ // Completion for a download this window never saw start — nothing to report.
112
+ return;
113
+ }
114
+
115
+ monitor ??= registry.register(`${meta.profile.key}.precache`, {
116
+ label: isUpdate ? 'Downloading app update' : 'Preparing offline use',
117
+ total,
118
+ });
119
+ monitor.total(total);
120
+ monitor.set(current);
121
+ if (done) {
122
+ monitor.done();
123
+ // Transient monitor: the download is a one-shot, so drop it rather than leave a completed
124
+ // row in the registry until the next reload.
125
+ monitor.remove();
126
+ monitor = undefined;
127
+ }
128
+ };
129
+
130
+ navigator.serviceWorker?.addEventListener('message', handleMessage);
131
+
132
+ return Capability.contributes(Capabilities.Null, null, () =>
133
+ Effect.sync(() => {
134
+ navigator.serviceWorker?.removeEventListener('message', handleMessage);
135
+ monitor?.remove();
136
+ }),
137
+ );
46
138
  }),
47
139
  }),
48
140
  Plugin.make,
@@ -1,77 +0,0 @@
1
- // src/PwaPlugin.tsx
2
- import * as Effect from "effect/Effect";
3
- import { registerSW } from "virtual:pwa-register";
4
- import { ActivationEvents, Capabilities, Capability, Plugin } from "@dxos/app-framework";
5
- import { AppPlugin, LayoutOperation } from "@dxos/app-toolkit";
6
- import { log } from "@dxos/log";
7
- import { meta } from "#meta";
8
- import { translations } from "#translations";
9
- var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-pwa/src/PwaPlugin.tsx";
10
- var PwaPlugin = Plugin.define(meta).pipe(AppPlugin.addTranslationsModule({
11
- translations
12
- }), Plugin.addModule({
13
- id: "register-pwa",
14
- activatesOn: ActivationEvents.ProcessManagerReady,
15
- activate: Effect.fnUntraced(function* () {
16
- const { invokePromise } = yield* Capability.get(Capabilities.OperationInvoker);
17
- const updateSW = registerSW({
18
- onNeedRefresh: () => {
19
- void invokePromise(LayoutOperation.AddToast, {
20
- id: `${meta.profile.key}.need-refresh`,
21
- title: [
22
- "need-refresh.label",
23
- {
24
- ns: meta.profile.key
25
- }
26
- ],
27
- description: [
28
- "need-refresh.description",
29
- {
30
- ns: meta.profile.key
31
- }
32
- ],
33
- duration: 4 * 60 * 1e3,
34
- actionLabel: [
35
- "refresh.label",
36
- {
37
- ns: meta.profile.key
38
- }
39
- ],
40
- actionAlt: [
41
- "refresh.alt",
42
- {
43
- ns: meta.profile.key
44
- }
45
- ],
46
- onAction: () => updateSW(true)
47
- });
48
- },
49
- onOfflineReady: () => {
50
- void invokePromise(LayoutOperation.AddToast, {
51
- id: `${meta.profile.key}.offline-ready`,
52
- title: [
53
- "offline-ready.label",
54
- {
55
- ns: meta.profile.key
56
- }
57
- ],
58
- closeLabel: [
59
- "confirm.label",
60
- {
61
- ns: meta.profile.key
62
- }
63
- ]
64
- });
65
- },
66
- onRegisterError: (err) => {
67
- log.error(err, void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 68, S: this });
68
- }
69
- });
70
- })
71
- }), Plugin.make);
72
- var PwaPlugin_default = PwaPlugin;
73
- export {
74
- PwaPlugin,
75
- PwaPlugin_default as default
76
- };
77
- //# sourceMappingURL=PwaPlugin.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/PwaPlugin.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport { registerSW } from 'virtual:pwa-register';\n\nimport { ActivationEvents, Capabilities, Capability, Plugin } from '@dxos/app-framework';\nimport { AppPlugin, LayoutOperation } from '@dxos/app-toolkit';\nimport { log } from '@dxos/log';\n\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\nexport const PwaPlugin = Plugin.define(meta).pipe(\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.addModule({\n id: 'register-pwa',\n activatesOn: ActivationEvents.ProcessManagerReady,\n activate: Effect.fnUntraced(function* () {\n const { invokePromise } = yield* Capability.get(Capabilities.OperationInvoker);\n\n const updateSW = registerSW({\n onNeedRefresh: () => {\n void invokePromise(LayoutOperation.AddToast, {\n id: `${meta.profile.key}.need-refresh`,\n title: ['need-refresh.label', { ns: meta.profile.key }],\n description: ['need-refresh.description', { ns: meta.profile.key }],\n duration: 4 * 60 * 1000, // 4m\n actionLabel: ['refresh.label', { ns: meta.profile.key }],\n actionAlt: ['refresh.alt', { ns: meta.profile.key }],\n onAction: () => updateSW(true),\n });\n },\n onOfflineReady: () => {\n void invokePromise(LayoutOperation.AddToast, {\n id: `${meta.profile.key}.offline-ready`,\n title: ['offline-ready.label', { ns: meta.profile.key }],\n closeLabel: ['confirm.label', { ns: meta.profile.key }],\n });\n },\n onRegisterError: (err) => {\n log.error(err);\n },\n });\n }),\n }),\n Plugin.make,\n);\n\nexport default PwaPlugin;\n"],
5
- "mappings": ";AAIA,YAAYA,YAAY;AACxB,SAASC,kBAAkB;AAE3B,SAASC,kBAAkBC,cAAcC,YAAYC,cAAc;AACnE,SAASC,WAAWC,uBAAuB;AAC3C,SAASC,WAAW;AAEpB,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAE7B,IAAA,eAAaC;AAEXN,IAAOO,YAAU,OAAA,OAAA,IAAA,EAAA,KAAA,UAAA,sBAAA;EACfC;IACAC,OAAAA,UAAaZ;EACba,IAAAA;eACUC,iBAAkB;YAEpBC,kBAAWhB,aAAW;UAC1BiB,EAAAA,cAAe,IAAA,OAAA,WAAA,IAAA,aAAA,gBAAA;qBACRF,WAAcT;qBACVE,MAAAA;aACPU,cAAO,gBAAA,UAAA;cAAC,GAAA,KAAA,QAAA,GAAA;iBAAsB;;YAAuB;cAAE,IAAA,KAAA,QAAA;YACvDC;;uBAA0C;;YAAuB;cAAE,IAAA,KAAA,QAAA;YACnEC;UACAC;oBAAc,IAAA,KAAA;uBAAiB;;YAAuB;cAAE,IAAA,KAAA,QAAA;YACxDC;;qBAA2B;;YAAuB;cAAE,IAAA,KAAA,QAAA;YACpDC;UACF;UACF,UAAA,MAAA,SAAA,IAAA;QACAC,CAAAA;;sBAEWhB,MAAKiB;aACZP,cAAO,gBAAA,UAAA;cAAC,GAAA,KAAA,QAAA,GAAA;iBAAuB;;YAAuB;cAAE,IAAA,KAAA,QAAA;YACxDQ;;sBAA8B;;YAAuB;cAAE,IAAA,KAAA,QAAA;YACzD;UACF;QACAC,CAAAA;;MAEA,iBAAA,CAAA,QAAA;AACF,YAAA,MAAA,KAAA,QAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,KAAA,CAAA;MACF;IAEFvB,CAAAA;EAGF,CAAA;;;",
6
- "names": ["Effect", "registerSW", "ActivationEvents", "Capabilities", "Capability", "Plugin", "AppPlugin", "LayoutOperation", "log", "meta", "translations", "PwaPlugin", "addModule", "id", "activatesOn", "activate", "invokePromise", "updateSW", "onNeedRefresh", "title", "description", "duration", "actionLabel", "actionAlt", "onAction", "onOfflineReady", "profile", "closeLabel", "onRegisterError"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts", "../../../dx.config.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport config from '../dx.config';\n\nexport const meta = Plugin.getMetaFromConfig(config);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Config2 } from '@dxos/app-framework/config';\nimport { trim } from '@dxos/util';\n\nexport default Config2.make({\n plugin: {\n key: 'org.dxos.plugin.pwa',\n name: 'PWA',\n author: 'DXOS',\n description: trim`\n Progressive Web App capabilities enabling offline functionality and app-like experience.\n Install to home screen and use the workspace without internet connection.\n `,\n tags: ['system'],\n },\n});\n"],
5
- "mappings": ";AAIA,SAASA,cAAc;;;ACAvB,SAASC,eAAe;AACxB,SAASC,YAAY;AAErB,IAAA,oBAAeD,QAAQE,KAAK;EAC1BC,QAAQ;IACNC,KAAK;IACLC,MAAM;IACNC,QAAQ;IACRC,aAAaN;;;;IAIbO,MAAM;MAAC;;EACT;AACF,CAAA;;;ADVO,IAAMC,OAAOC,OAAOC,kBAAkBC,iBAAAA;",
6
- "names": ["Plugin", "Config2", "trim", "make", "plugin", "key", "name", "author", "description", "tags", "meta", "Plugin", "getMetaFromConfig", "config"]
7
- }
@@ -1,7 +0,0 @@
1
- import {
2
- meta
3
- } from "./chunk-N6ICXF4W.mjs";
4
- export {
5
- meta
6
- };
7
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1 +0,0 @@
1
- {"inputs":{"dx.config.ts":{"bytes":1744,"imports":[{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/meta.ts":{"bytes":799,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"dx.config.ts","kind":"import-statement","original":"../dx.config"}],"format":"esm"},"src/index.ts":{"bytes":368,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/PwaPlugin.tsx":{"bytes":7827,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"virtual:pwa-register","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/plugin.ts":{"bytes":844,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"#plugin","kind":"dynamic-import","external":true}],"format":"esm"},"src/translations.ts":{"bytes":2419,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/lib/neutral/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/index.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-N6ICXF4W.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":101},"dist/lib/neutral/PwaPlugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3246},"dist/lib/neutral/PwaPlugin.mjs":{"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"virtual:pwa-register","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"exports":["PwaPlugin","default"],"entryPoint":"src/PwaPlugin.tsx","inputs":{"src/PwaPlugin.tsx":{"bytesInOutput":2161}},"bytes":2277},"dist/lib/neutral/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/neutral/meta.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-N6ICXF4W.mjs","kind":"import-statement"}],"exports":["meta"],"entryPoint":"src/meta.ts","inputs":{},"bytes":100},"dist/lib/neutral/plugin.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":433},"dist/lib/neutral/plugin.mjs":{"imports":[{"path":"dist/lib/neutral/chunk-N6ICXF4W.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"#plugin","kind":"dynamic-import","external":true}],"exports":["PwaPlugin"],"entryPoint":"src/plugin.ts","inputs":{"src/plugin.ts":{"bytesInOutput":106}},"bytes":231},"dist/lib/neutral/chunk-N6ICXF4W.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1172},"dist/lib/neutral/chunk-N6ICXF4W.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework/config","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["meta"],"inputs":{"src/meta.ts":{"bytesInOutput":102},"dx.config.ts":{"bytesInOutput":455}},"bytes":669},"dist/lib/neutral/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1134},"dist/lib/neutral/translations.mjs":{"imports":[{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":648}},"bytes":740}}}
@@ -1,7 +0,0 @@
1
- import {
2
- meta
3
- } from "./chunk-N6ICXF4W.mjs";
4
- export {
5
- meta
6
- };
7
- //# sourceMappingURL=meta.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,11 +0,0 @@
1
- import {
2
- meta
3
- } from "./chunk-N6ICXF4W.mjs";
4
-
5
- // src/plugin.ts
6
- import { Plugin } from "@dxos/app-framework";
7
- var PwaPlugin = Plugin.lazy(meta, () => import("#plugin"));
8
- export {
9
- PwaPlugin
10
- };
11
- //# sourceMappingURL=plugin.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/plugin.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const PwaPlugin = Plugin.lazy(meta, () => import('#plugin'));\n"],
5
- "mappings": ";;;;;AAIA,SAASA,cAAc;AAIhB,IAAMC,YAAYC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
6
- "names": ["Plugin", "PwaPlugin", "Plugin", "lazy", "meta"]
7
- }
@@ -1,22 +0,0 @@
1
- // src/translations.ts
2
- import { meta } from "#meta";
3
- var translations = [
4
- {
5
- "en-US": {
6
- [meta.profile.key]: {
7
- "need-refresh.label": "Refresh now to get app updates",
8
- "need-refresh.description": "You\u2019ll need these updates to continue without interruption.",
9
- "refresh.label": "Refresh",
10
- "refresh.alt": "Click your browser\u2019s refresh button or use the refresh keyboard shortcut.",
11
- // TODO(wittjosiah): Non-react translation utils.
12
- // 'offline ready label': '{{appName}} is ready to use offline.',
13
- "offline-ready.label": "Ready to use offline.",
14
- "confirm.label": "Okay"
15
- }
16
- }
17
- }
18
- ];
19
- export {
20
- translations
21
- };
22
- //# sourceMappingURL=translations.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2022 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.profile.key]: {\n 'need-refresh.label': 'Refresh now to get app updates',\n 'need-refresh.description': 'You’ll need these updates to continue without interruption.',\n 'refresh.label': 'Refresh',\n 'refresh.alt': 'Click your browser’s refresh button or use the refresh keyboard shortcut.',\n // TODO(wittjosiah): Non-react translation utils.\n // 'offline ready label': '{{appName}} is ready to use offline.',\n 'offline-ready.label': 'Ready to use offline.',\n 'confirm.label': 'Okay',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
- "mappings": ";AAMA,SAASA,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,KAAKE,QAAQC,GAAG,GAAG;QAClB,sBAAsB;QACtB,4BAA4B;QAC5B,iBAAiB;QACjB,eAAe;;;QAGf,uBAAuB;QACvB,iBAAiB;MACnB;IACF;EACF;;",
6
- "names": ["meta", "translations", "profile", "key"]
7
- }