@dxos/plugin-pwa 0.8.3 → 0.8.4-main.84f28bd

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.3",
3
+ "version": "0.8.4-main.84f28bd",
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",
@@ -24,13 +24,12 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@preact-signals/safe-react": "^0.9.0",
27
- "effect": "^3.13.3",
28
- "@dxos/app-framework": "0.8.3",
29
- "@dxos/observability": "0.8.3",
30
- "@dxos/log": "0.8.3"
27
+ "effect": "3.16.13",
28
+ "@dxos/app-framework": "0.8.4-main.84f28bd",
29
+ "@dxos/log": "0.8.4-main.84f28bd",
30
+ "@dxos/observability": "0.8.4-main.84f28bd"
31
31
  },
32
32
  "devDependencies": {
33
- "@phosphor-icons/react": "^2.1.5",
34
33
  "@types/react": "~18.2.0",
35
34
  "@types/react-dom": "~18.2.0",
36
35
  "react": "~18.2.0",
@@ -38,17 +37,16 @@
38
37
  "vite": "5.4.7",
39
38
  "vite-plugin-pwa": "^0.18.2",
40
39
  "workbox-window": "^7.0.0",
41
- "@dxos/react-ui": "0.8.3",
42
- "@dxos/storybook-utils": "0.8.3",
43
- "@dxos/react-ui-theme": "0.8.3"
40
+ "@dxos/react-ui-theme": "0.8.4-main.84f28bd",
41
+ "@dxos/react-ui": "0.8.4-main.84f28bd",
42
+ "@dxos/storybook-utils": "0.8.4-main.84f28bd"
44
43
  },
45
44
  "peerDependencies": {
46
- "@phosphor-icons/react": "^2.1.5",
47
45
  "effect": "^3.13.3",
48
46
  "react": "~18.2.0",
49
47
  "react-dom": "~18.2.0",
50
- "@dxos/react-ui": "0.8.3",
51
- "@dxos/react-ui-theme": "0.8.3"
48
+ "@dxos/react-ui": "0.8.4-main.84f28bd",
49
+ "@dxos/react-ui-theme": "0.8.4-main.84f28bd"
52
50
  },
53
51
  "publishConfig": {
54
52
  "access": "public"
package/src/PwaPlugin.tsx CHANGED
@@ -17,7 +17,7 @@ import { log } from '@dxos/log';
17
17
  import { captureException } from '@dxos/observability/sentry';
18
18
 
19
19
  import { meta, PWA_PLUGIN } from './meta';
20
- import translations from './translations';
20
+ import { translations } from './translations';
21
21
 
22
22
  export const PwaPlugin = () =>
23
23
  definePlugin(meta, [
@@ -2,12 +2,14 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import { PWA_PLUGIN } from './meta';
5
+ import { type Resource } from '@dxos/react-ui';
6
6
 
7
- export default [
7
+ import { meta } from './meta';
8
+
9
+ export const translations = [
8
10
  {
9
11
  'en-US': {
10
- [PWA_PLUGIN]: {
12
+ [meta.id]: {
11
13
  'need refresh label': 'Refresh now to get app updates',
12
14
  'need refresh description': 'You’ll need these updates to continue without interruption.',
13
15
  'refresh label': 'Refresh',
@@ -19,4 +21,4 @@ export default [
19
21
  },
20
22
  },
21
23
  },
22
- ];
24
+ ] as const satisfies Resource[];