@dxos/plugin-native 0.7.5-labs.ea4b4c2 → 0.7.5-labs.f400bbc
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.
|
@@ -9,7 +9,7 @@ import { definePlugin, Events, defineModule } from "@dxos/app-framework";
|
|
|
9
9
|
var NativePlugin = () => definePlugin(meta, [
|
|
10
10
|
defineModule({
|
|
11
11
|
id: `${meta.id}/module/startup`,
|
|
12
|
-
activatesOn: Events.
|
|
12
|
+
activatesOn: Events.DispatcherReady,
|
|
13
13
|
activate: async (context) => {
|
|
14
14
|
const { initializeNativeApp } = await import("./initialize-XWHZ2OWK.mjs");
|
|
15
15
|
await initializeNativeApp(context);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/meta.ts", "../../../src/NativePlugin.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const NATIVE_PLUGIN = 'dxos.org/plugin/native';\n\nexport const meta = {\n id: NATIVE_PLUGIN,\n} satisfies PluginMeta;\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type { PluginsContext } from '@dxos/app-framework';\nimport { definePlugin, Events, defineModule } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\n// TODO(burdon): Initial url has index.html, which must be caught/redirected.\n\nexport const NativePlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/startup`,\n activatesOn: Events.
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const NATIVE_PLUGIN = 'dxos.org/plugin/native';\n\nexport const meta = {\n id: NATIVE_PLUGIN,\n} satisfies PluginMeta;\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type { PluginsContext } from '@dxos/app-framework';\nimport { definePlugin, Events, defineModule } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\n// TODO(burdon): Initial url has index.html, which must be caught/redirected.\n\nexport const NativePlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/startup`,\n activatesOn: Events.DispatcherReady,\n activate: async (context: PluginsContext) => {\n const { initializeNativeApp } = await import('./initialize');\n await initializeNativeApp(context);\n return [];\n },\n }),\n ]);\n"],
|
|
5
5
|
"mappings": ";AAMO,IAAMA,gBAAgB;AAEtB,IAAMC,OAAO;EAClBC,IAAIF;AACN;;;ACLA,SAASG,cAAcC,QAAQC,oBAAoB;AAM5C,IAAMC,eAAe,MAC1BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,OAAOC,YAAAA;AACf,YAAM,EAAEC,oBAAmB,IAAK,MAAM,OAAO,2BAAA;AAC7C,YAAMA,oBAAoBD,OAAAA;AAC1B,aAAO,CAAA;IACT;EACF,CAAA;CACD;",
|
|
6
|
-
"names": ["NATIVE_PLUGIN", "meta", "id", "definePlugin", "Events", "defineModule", "NativePlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "
|
|
6
|
+
"names": ["NATIVE_PLUGIN", "meta", "id", "definePlugin", "Events", "defineModule", "NativePlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "DispatcherReady", "activate", "context", "initializeNativeApp"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/experimental/plugin-native/src/meta.ts":{"bytes":916,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-native/src/initialize.ts":{"bytes":19087,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-help","kind":"import-statement","external":true},{"path":"@dxos/plugin-navtree","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-native/src/NativePlugin.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"packages/plugins/experimental/plugin-native/src/meta.ts":{"bytes":916,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-native/src/initialize.ts":{"bytes":19087,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-help","kind":"import-statement","external":true},{"path":"@dxos/plugin-navtree","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-native/src/NativePlugin.tsx":{"bytes":2527,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-native/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-native/src/initialize.ts","kind":"dynamic-import","original":"./initialize"}],"format":"esm"},"packages/plugins/experimental/plugin-native/src/index.ts":{"bytes":607,"imports":[{"path":"packages/plugins/experimental/plugin-native/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-native/src/NativePlugin.tsx","kind":"import-statement","original":"./NativePlugin"}],"format":"esm"}},"outputs":{"packages/plugins/experimental/plugin-native/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1579},"packages/plugins/experimental/plugin-native/dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-native/dist/lib/browser/initialize-XWHZ2OWK.mjs","kind":"dynamic-import"}],"exports":["NATIVE_PLUGIN","NativePlugin","meta"],"entryPoint":"packages/plugins/experimental/plugin-native/src/index.ts","inputs":{"packages/plugins/experimental/plugin-native/src/meta.ts":{"bytesInOutput":82},"packages/plugins/experimental/plugin-native/src/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-native/src/NativePlugin.tsx":{"bytesInOutput":405}},"bytes":702},"packages/plugins/experimental/plugin-native/dist/lib/browser/initialize-XWHZ2OWK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9462},"packages/plugins/experimental/plugin-native/dist/lib/browser/initialize-XWHZ2OWK.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-help","kind":"import-statement","external":true},{"path":"@dxos/plugin-navtree","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["initializeNativeApp"],"entryPoint":"packages/plugins/experimental/plugin-native/src/initialize.ts","inputs":{"packages/plugins/experimental/plugin-native/src/initialize.ts":{"bytesInOutput":4504}},"bytes":4652}}}
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-native",
|
|
3
|
-
"version": "0.7.5-labs.
|
|
3
|
+
"version": "0.7.5-labs.f400bbc",
|
|
4
4
|
"description": "Composer plugin that runs when on a native device.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "DXOS.org",
|
|
9
9
|
"sideEffects": true,
|
|
10
|
+
"type": "module",
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|
|
12
13
|
"types": "./dist/types/src/index.d.ts",
|
|
@@ -22,11 +23,11 @@
|
|
|
22
23
|
"src"
|
|
23
24
|
],
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@dxos/app-framework": "0.7.5-labs.
|
|
26
|
-
"@dxos/
|
|
27
|
-
"@dxos/
|
|
28
|
-
"@dxos/plugin-
|
|
29
|
-
"@dxos/util": "0.7.5-labs.
|
|
26
|
+
"@dxos/app-framework": "0.7.5-labs.f400bbc",
|
|
27
|
+
"@dxos/log": "0.7.5-labs.f400bbc",
|
|
28
|
+
"@dxos/plugin-help": "0.7.5-labs.f400bbc",
|
|
29
|
+
"@dxos/plugin-navtree": "0.7.5-labs.f400bbc",
|
|
30
|
+
"@dxos/util": "0.7.5-labs.f400bbc"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
33
|
"vite": "5.4.7"
|
package/src/NativePlugin.tsx
CHANGED
|
@@ -13,7 +13,7 @@ export const NativePlugin = () =>
|
|
|
13
13
|
definePlugin(meta, [
|
|
14
14
|
defineModule({
|
|
15
15
|
id: `${meta.id}/module/startup`,
|
|
16
|
-
activatesOn: Events.
|
|
16
|
+
activatesOn: Events.DispatcherReady,
|
|
17
17
|
activate: async (context: PluginsContext) => {
|
|
18
18
|
const { initializeNativeApp } = await import('./initialize');
|
|
19
19
|
await initializeNativeApp(context);
|