@dxos/plugin-pwa 0.8.3 → 0.8.4-main.f9ba587
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/dist/lib/browser/index.mjs +8 -8
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +117 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/types/src/translations.d.ts +11 -11
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -12
- package/src/PwaPlugin.tsx +1 -1
- package/src/translations.ts +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-pwa",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4-main.f9ba587",
|
|
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": "
|
|
28
|
-
"@dxos/app-framework": "0.8.
|
|
29
|
-
"@dxos/observability": "0.8.
|
|
30
|
-
"@dxos/log": "0.8.
|
|
27
|
+
"effect": "3.16.13",
|
|
28
|
+
"@dxos/app-framework": "0.8.4-main.f9ba587",
|
|
29
|
+
"@dxos/observability": "0.8.4-main.f9ba587",
|
|
30
|
+
"@dxos/log": "0.8.4-main.f9ba587"
|
|
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.
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
40
|
+
"@dxos/react-ui-theme": "0.8.4-main.f9ba587",
|
|
41
|
+
"@dxos/react-ui": "0.8.4-main.f9ba587",
|
|
42
|
+
"@dxos/storybook-utils": "0.8.4-main.f9ba587"
|
|
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.
|
|
51
|
-
"@dxos/react-ui-theme": "0.8.
|
|
48
|
+
"@dxos/react-ui": "0.8.4-main.f9ba587",
|
|
49
|
+
"@dxos/react-ui-theme": "0.8.4-main.f9ba587"
|
|
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, [
|
package/src/translations.ts
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { type Resource } from '@dxos/react-ui';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { meta } from './meta';
|
|
8
|
+
|
|
9
|
+
export const translations = [
|
|
8
10
|
{
|
|
9
11
|
'en-US': {
|
|
10
|
-
[
|
|
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[];
|