@dxos/plugin-pwa 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef

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.8.4-main.9be5663bfe",
3
+ "version": "0.8.4-main.abd8ff62ef",
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",
@@ -13,50 +13,55 @@
13
13
  "sideEffects": true,
14
14
  "type": "module",
15
15
  "imports": {
16
- "#meta": "./src/meta.ts"
16
+ "#meta": "./src/meta.ts",
17
+ "#translations": "./src/translations.ts"
17
18
  },
18
19
  "exports": {
19
20
  ".": {
20
21
  "source": "./src/index.ts",
21
22
  "types": "./dist/types/src/index.d.ts",
22
23
  "browser": "./dist/lib/browser/index.mjs"
24
+ },
25
+ "./translations": {
26
+ "source": "./src/translations.ts",
27
+ "types": "./dist/types/src/translations.d.ts",
28
+ "browser": "./dist/lib/browser/translations.mjs",
29
+ "node": "./dist/lib/node-esm/translations.mjs"
23
30
  }
24
31
  },
25
32
  "types": "dist/types/src/index.d.ts",
26
- "typesVersions": {
27
- "*": {}
28
- },
29
33
  "files": [
30
34
  "dist",
31
35
  "src"
32
36
  ],
33
37
  "dependencies": {
34
38
  "effect": "3.20.0",
35
- "@dxos/app-framework": "0.8.4-main.9be5663bfe",
36
- "@dxos/app-toolkit": "0.8.4-main.9be5663bfe",
37
- "@dxos/log": "0.8.4-main.9be5663bfe",
38
- "@dxos/operation": "0.8.4-main.9be5663bfe",
39
- "@dxos/util": "0.8.4-main.9be5663bfe",
40
- "@dxos/observability": "0.8.4-main.9be5663bfe"
39
+ "@dxos/app-toolkit": "0.8.4-main.abd8ff62ef",
40
+ "@dxos/app-framework": "0.8.4-main.abd8ff62ef",
41
+ "@dxos/observability": "0.8.4-main.abd8ff62ef",
42
+ "@dxos/operation": "0.8.4-main.abd8ff62ef",
43
+ "@dxos/log": "0.8.4-main.abd8ff62ef",
44
+ "@dxos/util": "0.8.4-main.abd8ff62ef"
41
45
  },
42
46
  "devDependencies": {
43
47
  "@types/react": "~19.2.7",
44
48
  "@types/react-dom": "~19.2.3",
45
49
  "react": "~19.2.3",
46
50
  "react-dom": "~19.2.3",
47
- "vite": "^7.1.11",
48
- "vite-plugin-pwa": "^1.0.2",
49
- "workbox-window": "^7.3.0",
50
- "@dxos/storybook-utils": "0.8.4-main.9be5663bfe",
51
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe",
52
- "@dxos/react-ui": "0.8.4-main.9be5663bfe"
51
+ "vite": "^8.0.10",
52
+ "vite-plugin-pwa": "^1.2.0",
53
+ "workbox-window": "^7.4.0",
54
+ "@dxos/plugin-testing": "0.8.4-main.abd8ff62ef",
55
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
56
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef",
57
+ "@dxos/storybook-utils": "0.8.4-main.abd8ff62ef"
53
58
  },
54
59
  "peerDependencies": {
55
60
  "effect": "3.20.0",
56
61
  "react": "~19.2.3",
57
62
  "react-dom": "~19.2.3",
58
- "@dxos/react-ui": "0.8.4-main.9be5663bfe",
59
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe"
63
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
64
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
60
65
  },
61
66
  "publishConfig": {
62
67
  "access": "public"
package/src/PwaPlugin.tsx CHANGED
@@ -10,8 +10,7 @@ import { AppPlugin, LayoutOperation } from '@dxos/app-toolkit';
10
10
  import { log } from '@dxos/log';
11
11
 
12
12
  import { meta } from '#meta';
13
-
14
- import { translations } from './translations';
13
+ import { translations } from '#translations';
15
14
 
16
15
  export const PwaPlugin = Plugin.define(meta).pipe(
17
16
  AppPlugin.addTranslationsModule({ translations }),
@@ -48,3 +47,5 @@ export const PwaPlugin = Plugin.define(meta).pipe(
48
47
  }),
49
48
  Plugin.make,
50
49
  );
50
+
51
+ export default PwaPlugin;
package/src/index.ts CHANGED
@@ -2,5 +2,10 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
+ import { Plugin } from '@dxos/app-framework';
6
+
7
+ import { meta } from './meta';
8
+
9
+ export const PwaPlugin = Plugin.lazy(meta, () => import('./PwaPlugin'));
10
+
5
11
  export * from './meta';
6
- export * from './PwaPlugin';