@dxos/plugin-pwa 0.8.4-main.c85a9c8dae → 0.8.4-main.d05539e30a
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/PwaPlugin.mjs +77 -0
- package/dist/lib/neutral/PwaPlugin.mjs.map +7 -0
- package/dist/lib/neutral/chunk-QG4KAS6R.mjs +19 -0
- package/dist/lib/neutral/chunk-QG4KAS6R.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +7 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +7 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +11 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +22 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/types/src/PwaPlugin.d.ts +1 -0
- package/dist/types/src/PwaPlugin.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +3 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +7 -8
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +47 -22
- package/src/PwaPlugin.tsx +16 -14
- package/src/index.ts +0 -1
- package/src/meta.ts +3 -1
- package/src/plugin.ts +9 -0
- package/src/translations.ts +7 -7
- package/dist/lib/browser/index.mjs +0 -110
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-pwa",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.d05539e30a",
|
|
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",
|
|
@@ -8,52 +8,77 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/dxos/dxos"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#meta": {
|
|
17
|
+
"source": "./src/meta.ts",
|
|
18
|
+
"types": "./dist/types/src/meta.d.ts",
|
|
19
|
+
"default": "./dist/lib/neutral/meta.mjs"
|
|
20
|
+
},
|
|
21
|
+
"#plugin": {
|
|
22
|
+
"source": "./src/PwaPlugin.tsx",
|
|
23
|
+
"types": "./dist/types/src/PwaPlugin.d.ts",
|
|
24
|
+
"default": "./dist/lib/neutral/PwaPlugin.mjs"
|
|
25
|
+
},
|
|
26
|
+
"#translations": {
|
|
27
|
+
"source": "./src/translations.ts",
|
|
28
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
29
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
15
32
|
"exports": {
|
|
16
33
|
".": {
|
|
17
34
|
"source": "./src/index.ts",
|
|
18
35
|
"types": "./dist/types/src/index.d.ts",
|
|
19
|
-
"
|
|
36
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./plugin": {
|
|
39
|
+
"source": "./src/plugin.ts",
|
|
40
|
+
"types": "./dist/types/src/plugin.d.ts",
|
|
41
|
+
"default": "./dist/lib/neutral/plugin.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./translations": {
|
|
44
|
+
"source": "./src/translations.ts",
|
|
45
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
46
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
20
47
|
}
|
|
21
48
|
},
|
|
22
49
|
"types": "dist/types/src/index.d.ts",
|
|
23
|
-
"typesVersions": {
|
|
24
|
-
"*": {}
|
|
25
|
-
},
|
|
26
50
|
"files": [
|
|
27
51
|
"dist",
|
|
28
52
|
"src"
|
|
29
53
|
],
|
|
30
54
|
"dependencies": {
|
|
31
|
-
"effect": "3.
|
|
32
|
-
"@dxos/
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
55
|
+
"effect": "3.20.0",
|
|
56
|
+
"@dxos/observability": "0.8.4-main.d05539e30a",
|
|
57
|
+
"@dxos/operation": "0.8.4-main.d05539e30a",
|
|
58
|
+
"@dxos/util": "0.8.4-main.d05539e30a",
|
|
59
|
+
"@dxos/app-framework": "0.8.4-main.d05539e30a",
|
|
60
|
+
"@dxos/app-toolkit": "0.8.4-main.d05539e30a",
|
|
61
|
+
"@dxos/log": "0.8.4-main.d05539e30a"
|
|
38
62
|
},
|
|
39
63
|
"devDependencies": {
|
|
40
64
|
"@types/react": "~19.2.7",
|
|
41
65
|
"@types/react-dom": "~19.2.3",
|
|
42
66
|
"react": "~19.2.3",
|
|
43
67
|
"react-dom": "~19.2.3",
|
|
44
|
-
"vite": "^
|
|
45
|
-
"vite-plugin-pwa": "^1.0
|
|
46
|
-
"workbox-window": "^7.
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
68
|
+
"vite": "^8.0.13",
|
|
69
|
+
"vite-plugin-pwa": "^1.2.0",
|
|
70
|
+
"workbox-window": "^7.4.0",
|
|
71
|
+
"@dxos/plugin-testing": "0.8.4-main.d05539e30a",
|
|
72
|
+
"@dxos/react-ui": "0.8.4-main.d05539e30a",
|
|
73
|
+
"@dxos/storybook-utils": "0.8.4-main.d05539e30a",
|
|
74
|
+
"@dxos/ui-theme": "0.8.4-main.d05539e30a"
|
|
50
75
|
},
|
|
51
76
|
"peerDependencies": {
|
|
52
|
-
"effect": "3.
|
|
77
|
+
"effect": "3.20.0",
|
|
53
78
|
"react": "~19.2.3",
|
|
54
79
|
"react-dom": "~19.2.3",
|
|
55
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
56
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
80
|
+
"@dxos/react-ui": "0.8.4-main.d05539e30a",
|
|
81
|
+
"@dxos/ui-theme": "0.8.4-main.d05539e30a"
|
|
57
82
|
},
|
|
58
83
|
"publishConfig": {
|
|
59
84
|
"access": "public"
|
package/src/PwaPlugin.tsx
CHANGED
|
@@ -9,34 +9,34 @@ import { ActivationEvents, Capabilities, Capability, Plugin } from '@dxos/app-fr
|
|
|
9
9
|
import { AppPlugin, LayoutOperation } from '@dxos/app-toolkit';
|
|
10
10
|
import { log } from '@dxos/log';
|
|
11
11
|
|
|
12
|
-
import { meta } from '
|
|
13
|
-
import { translations } from '
|
|
12
|
+
import { meta } from '#meta';
|
|
13
|
+
import { translations } from '#translations';
|
|
14
14
|
|
|
15
15
|
export const PwaPlugin = Plugin.define(meta).pipe(
|
|
16
16
|
AppPlugin.addTranslationsModule({ translations }),
|
|
17
17
|
Plugin.addModule({
|
|
18
18
|
id: 'register-pwa',
|
|
19
|
-
activatesOn: ActivationEvents.
|
|
19
|
+
activatesOn: ActivationEvents.ProcessManagerReady,
|
|
20
20
|
activate: Effect.fnUntraced(function* () {
|
|
21
|
-
const {
|
|
21
|
+
const { invokePromise } = yield* Capability.get(Capabilities.OperationInvoker);
|
|
22
22
|
|
|
23
23
|
const updateSW = registerSW({
|
|
24
24
|
onNeedRefresh: () => {
|
|
25
|
-
|
|
26
|
-
id: `${meta.id}
|
|
27
|
-
title: ['need
|
|
28
|
-
description: ['need
|
|
25
|
+
void invokePromise(LayoutOperation.AddToast, {
|
|
26
|
+
id: `${meta.id}.need-refresh`,
|
|
27
|
+
title: ['need-refresh.label', { ns: meta.id }],
|
|
28
|
+
description: ['need-refresh.description', { ns: meta.id }],
|
|
29
29
|
duration: 4 * 60 * 1000, // 4m
|
|
30
|
-
actionLabel: ['refresh
|
|
31
|
-
actionAlt: ['refresh
|
|
30
|
+
actionLabel: ['refresh.label', { ns: meta.id }],
|
|
31
|
+
actionAlt: ['refresh.alt', { ns: meta.id }],
|
|
32
32
|
onAction: () => updateSW(true),
|
|
33
33
|
});
|
|
34
34
|
},
|
|
35
35
|
onOfflineReady: () => {
|
|
36
|
-
|
|
37
|
-
id: `${meta.id}
|
|
38
|
-
title: ['offline
|
|
39
|
-
closeLabel: ['confirm
|
|
36
|
+
void invokePromise(LayoutOperation.AddToast, {
|
|
37
|
+
id: `${meta.id}.offline-ready`,
|
|
38
|
+
title: ['offline-ready.label', { ns: meta.id }],
|
|
39
|
+
closeLabel: ['confirm.label', { ns: meta.id }],
|
|
40
40
|
});
|
|
41
41
|
},
|
|
42
42
|
onRegisterError: (err) => {
|
|
@@ -47,3 +47,5 @@ export const PwaPlugin = Plugin.define(meta).pipe(
|
|
|
47
47
|
}),
|
|
48
48
|
Plugin.make,
|
|
49
49
|
);
|
|
50
|
+
|
|
51
|
+
export default PwaPlugin;
|
package/src/index.ts
CHANGED
package/src/meta.ts
CHANGED
|
@@ -6,10 +6,12 @@ import { type Plugin } from '@dxos/app-framework';
|
|
|
6
6
|
import { trim } from '@dxos/util';
|
|
7
7
|
|
|
8
8
|
export const meta: Plugin.Meta = {
|
|
9
|
-
id: 'dxos.
|
|
9
|
+
id: 'org.dxos.plugin.pwa',
|
|
10
10
|
name: 'PWA',
|
|
11
|
+
author: 'DXOS',
|
|
11
12
|
description: trim`
|
|
12
13
|
Progressive Web App capabilities enabling offline functionality and app-like experience.
|
|
13
14
|
Install to home screen and use the workspace without internet connection.
|
|
14
15
|
`,
|
|
16
|
+
tags: ['system'],
|
|
15
17
|
};
|
package/src/plugin.ts
ADDED
package/src/translations.ts
CHANGED
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
import { type Resource } from '@dxos/react-ui';
|
|
6
6
|
|
|
7
|
-
import { meta } from '
|
|
7
|
+
import { meta } from '#meta';
|
|
8
8
|
|
|
9
9
|
export const translations = [
|
|
10
10
|
{
|
|
11
11
|
'en-US': {
|
|
12
12
|
[meta.id]: {
|
|
13
|
-
'need
|
|
14
|
-
'need
|
|
15
|
-
'refresh
|
|
16
|
-
'refresh
|
|
13
|
+
'need-refresh.label': 'Refresh now to get app updates',
|
|
14
|
+
'need-refresh.description': 'You’ll need these updates to continue without interruption.',
|
|
15
|
+
'refresh.label': 'Refresh',
|
|
16
|
+
'refresh.alt': 'Click your browser’s refresh button or use the refresh keyboard shortcut.',
|
|
17
17
|
// TODO(wittjosiah): Non-react translation utils.
|
|
18
18
|
// 'offline ready label': '{{appName}} is ready to use offline.',
|
|
19
|
-
'offline
|
|
20
|
-
'confirm
|
|
19
|
+
'offline-ready.label': 'Ready to use offline.',
|
|
20
|
+
'confirm.label': 'Okay',
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
},
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
// src/meta.ts
|
|
2
|
-
import { trim } from "@dxos/util";
|
|
3
|
-
var meta = {
|
|
4
|
-
id: "dxos.org/plugin/pwa",
|
|
5
|
-
name: "PWA",
|
|
6
|
-
description: trim`
|
|
7
|
-
Progressive Web App capabilities enabling offline functionality and app-like experience.
|
|
8
|
-
Install to home screen and use the workspace without internet connection.
|
|
9
|
-
`
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
// src/PwaPlugin.tsx
|
|
13
|
-
import * as Effect from "effect/Effect";
|
|
14
|
-
import { registerSW } from "virtual:pwa-register";
|
|
15
|
-
import { ActivationEvents, Capabilities, Capability, Plugin } from "@dxos/app-framework";
|
|
16
|
-
import { AppPlugin, LayoutOperation } from "@dxos/app-toolkit";
|
|
17
|
-
import { log } from "@dxos/log";
|
|
18
|
-
|
|
19
|
-
// src/translations.ts
|
|
20
|
-
var translations = [
|
|
21
|
-
{
|
|
22
|
-
"en-US": {
|
|
23
|
-
[meta.id]: {
|
|
24
|
-
"need refresh label": "Refresh now to get app updates",
|
|
25
|
-
"need refresh description": "You\u2019ll need these updates to continue without interruption.",
|
|
26
|
-
"refresh label": "Refresh",
|
|
27
|
-
"refresh alt": "Click your browser\u2019s refresh button or use the refresh keyboard shortcut.",
|
|
28
|
-
// TODO(wittjosiah): Non-react translation utils.
|
|
29
|
-
// 'offline ready label': '{{appName}} is ready to use offline.',
|
|
30
|
-
"offline ready label": "Ready to use offline.",
|
|
31
|
-
"confirm label": "Okay"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
];
|
|
36
|
-
|
|
37
|
-
// src/PwaPlugin.tsx
|
|
38
|
-
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-pwa/src/PwaPlugin.tsx";
|
|
39
|
-
var PwaPlugin = Plugin.define(meta).pipe(AppPlugin.addTranslationsModule({
|
|
40
|
-
translations
|
|
41
|
-
}), Plugin.addModule({
|
|
42
|
-
id: "register-pwa",
|
|
43
|
-
activatesOn: ActivationEvents.OperationInvokerReady,
|
|
44
|
-
activate: Effect.fnUntraced(function* () {
|
|
45
|
-
const { invokeSync } = yield* Capability.get(Capabilities.OperationInvoker);
|
|
46
|
-
const updateSW = registerSW({
|
|
47
|
-
onNeedRefresh: () => {
|
|
48
|
-
invokeSync(LayoutOperation.AddToast, {
|
|
49
|
-
id: `${meta.id}/need-refresh`,
|
|
50
|
-
title: [
|
|
51
|
-
"need refresh label",
|
|
52
|
-
{
|
|
53
|
-
ns: meta.id
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
description: [
|
|
57
|
-
"need refresh description",
|
|
58
|
-
{
|
|
59
|
-
ns: meta.id
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
duration: 4 * 60 * 1e3,
|
|
63
|
-
actionLabel: [
|
|
64
|
-
"refresh label",
|
|
65
|
-
{
|
|
66
|
-
ns: meta.id
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
actionAlt: [
|
|
70
|
-
"refresh alt",
|
|
71
|
-
{
|
|
72
|
-
ns: meta.id
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
onAction: () => updateSW(true)
|
|
76
|
-
});
|
|
77
|
-
},
|
|
78
|
-
onOfflineReady: () => {
|
|
79
|
-
invokeSync(LayoutOperation.AddToast, {
|
|
80
|
-
id: `${meta.id}/offline-ready`,
|
|
81
|
-
title: [
|
|
82
|
-
"offline ready label",
|
|
83
|
-
{
|
|
84
|
-
ns: meta.id
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
closeLabel: [
|
|
88
|
-
"confirm label",
|
|
89
|
-
{
|
|
90
|
-
ns: meta.id
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
});
|
|
94
|
-
},
|
|
95
|
-
onRegisterError: (err) => {
|
|
96
|
-
log.error(err, void 0, {
|
|
97
|
-
F: __dxlog_file,
|
|
98
|
-
L: 43,
|
|
99
|
-
S: this,
|
|
100
|
-
C: (f, a) => f(...a)
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
})
|
|
105
|
-
}), Plugin.make);
|
|
106
|
-
export {
|
|
107
|
-
PwaPlugin,
|
|
108
|
-
meta
|
|
109
|
-
};
|
|
110
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts", "../../../src/PwaPlugin.tsx", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.org/plugin/pwa',\n name: 'PWA',\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};\n", "//\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.OperationInvokerReady,\n activate: Effect.fnUntraced(function* () {\n const { invokeSync } = yield* Capability.get(Capabilities.OperationInvoker);\n\n const updateSW = registerSW({\n onNeedRefresh: () => {\n invokeSync(LayoutOperation.AddToast, {\n id: `${meta.id}/need-refresh`,\n title: ['need refresh label', { ns: meta.id }],\n description: ['need refresh description', { ns: meta.id }],\n duration: 4 * 60 * 1000, // 4m\n actionLabel: ['refresh label', { ns: meta.id }],\n actionAlt: ['refresh alt', { ns: meta.id }],\n onAction: () => updateSW(true),\n });\n },\n onOfflineReady: () => {\n invokeSync(LayoutOperation.AddToast, {\n id: `${meta.id}/offline-ready`,\n title: ['offline ready label', { ns: meta.id }],\n closeLabel: ['confirm label', { ns: meta.id }],\n });\n },\n onRegisterError: (err) => {\n log.error(err);\n },\n });\n }),\n }),\n Plugin.make,\n);\n", "//\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.id]: {\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": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;AAIf;;;ACVA,YAAYC,YAAY;AACxB,SAASC,kBAAkB;AAE3B,SAASC,kBAAkBC,cAAcC,YAAYC,cAAc;AACnE,SAASC,WAAWC,uBAAuB;AAC3C,SAASC,WAAW;;;ACDb,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,sBAAsB;QACtB,4BAA4B;QAC5B,iBAAiB;QACjB,eAAe;;;QAGf,uBAAuB;QACvB,iBAAiB;MACnB;IACF;EACF;;;;;ADRK,IAAMC,YAAYC,OAAOC,OAAOC,IAAAA,EAAMC,KAC3CC,UAAUC,sBAAsB;EAAEC;AAAa,CAAA,GAC/CN,OAAOO,UAAU;EACfC,IAAI;EACJC,aAAaC,iBAAiBC;EAC9BC,UAAiBC,kBAAW,aAAA;AAC1B,UAAM,EAAEC,WAAU,IAAK,OAAOC,WAAWC,IAAIC,aAAaC,gBAAgB;AAE1E,UAAMC,WAAWC,WAAW;MAC1BC,eAAe,MAAA;AACbP,mBAAWQ,gBAAgBC,UAAU;UACnCf,IAAI,GAAGN,KAAKM,EAAE;UACdgB,OAAO;YAAC;YAAsB;cAAEC,IAAIvB,KAAKM;YAAG;;UAC5CkB,aAAa;YAAC;YAA4B;cAAED,IAAIvB,KAAKM;YAAG;;UACxDmB,UAAU,IAAI,KAAK;UACnBC,aAAa;YAAC;YAAiB;cAAEH,IAAIvB,KAAKM;YAAG;;UAC7CqB,WAAW;YAAC;YAAe;cAAEJ,IAAIvB,KAAKM;YAAG;;UACzCsB,UAAU,MAAMX,SAAS,IAAA;QAC3B,CAAA;MACF;MACAY,gBAAgB,MAAA;AACdjB,mBAAWQ,gBAAgBC,UAAU;UACnCf,IAAI,GAAGN,KAAKM,EAAE;UACdgB,OAAO;YAAC;YAAuB;cAAEC,IAAIvB,KAAKM;YAAG;;UAC7CwB,YAAY;YAAC;YAAiB;cAAEP,IAAIvB,KAAKM;YAAG;;QAC9C,CAAA;MACF;MACAyB,iBAAiB,CAACC,QAAAA;AAChBC,YAAIC,MAAMF,KAAAA,QAAAA;;;;;;MACZ;IACF,CAAA;EACF,CAAA;AACF,CAAA,GACAlC,OAAOqC,IAAI;",
|
|
6
|
-
"names": ["trim", "meta", "id", "name", "description", "trim", "Effect", "registerSW", "ActivationEvents", "Capabilities", "Capability", "Plugin", "AppPlugin", "LayoutOperation", "log", "translations", "meta", "id", "PwaPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addTranslationsModule", "translations", "addModule", "id", "activatesOn", "ActivationEvents", "OperationInvokerReady", "activate", "fnUntraced", "invokeSync", "Capability", "get", "Capabilities", "OperationInvoker", "updateSW", "registerSW", "onNeedRefresh", "LayoutOperation", "AddToast", "title", "ns", "description", "duration", "actionLabel", "actionAlt", "onAction", "onOfflineReady", "closeLabel", "onRegisterError", "err", "log", "error", "make"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/meta.ts":{"bytes":1383,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":2456,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/PwaPlugin.tsx":{"bytes":7490,"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":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":535,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/PwaPlugin.tsx","kind":"import-statement","original":"./PwaPlugin"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5013},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"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}],"exports":["PwaPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/meta.ts":{"bytesInOutput":291},"src/index.ts":{"bytesInOutput":0},"src/PwaPlugin.tsx":{"bytesInOutput":2007},"src/translations.ts":{"bytesInOutput":609}},"bytes":3057}}}
|