@dxos/plugin-template 0.8.1-staging.5be625a → 0.8.1-staging.97aedb1

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.
@@ -1,8 +1,8 @@
1
- // packages/plugins/experimental/plugin-template/src/types.ts
1
+ // packages/plugins/plugin-template/src/types.ts
2
2
  import { S, TypedObject } from "@dxos/echo-schema";
3
3
  import { isEchoObject, ReactiveObjectSchema } from "@dxos/react-client/echo";
4
4
 
5
- // packages/plugins/experimental/plugin-template/src/meta.ts
5
+ // packages/plugins/plugin-template/src/meta.ts
6
6
  var TEMPLATE_PLUGIN = "dxos.org/plugin/template";
7
7
  var meta = {
8
8
  id: TEMPLATE_PLUGIN,
@@ -11,7 +11,7 @@ var meta = {
11
11
  source: "https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-template"
12
12
  };
13
13
 
14
- // packages/plugins/experimental/plugin-template/src/types.ts
14
+ // packages/plugins/plugin-template/src/types.ts
15
15
  var TemplateAction;
16
16
  (function(TemplateAction2) {
17
17
  const TEMPLATE_ACTION = `${TEMPLATE_PLUGIN}/action`;
@@ -44,4 +44,4 @@ export {
44
44
  isObject,
45
45
  TemplateType
46
46
  };
47
- //# sourceMappingURL=chunk-Y5HMZ3RN.mjs.map
47
+ //# sourceMappingURL=chunk-2PY435KZ.mjs.map
@@ -3,20 +3,20 @@ import {
3
3
  TemplateAction,
4
4
  TemplateType,
5
5
  meta
6
- } from "./chunk-Y5HMZ3RN.mjs";
6
+ } from "./chunk-2PY435KZ.mjs";
7
7
 
8
- // packages/plugins/experimental/plugin-template/src/TemplatePlugin.tsx
8
+ // packages/plugins/plugin-template/src/TemplatePlugin.tsx
9
9
  import { createIntent, Capabilities, contributes, Events, defineModule, definePlugin } from "@dxos/app-framework";
10
10
  import { ClientCapabilities, ClientEvents } from "@dxos/plugin-client";
11
11
  import { SpaceCapabilities } from "@dxos/plugin-space";
12
12
  import { defineObjectForm } from "@dxos/plugin-space/types";
13
13
 
14
- // packages/plugins/experimental/plugin-template/src/capabilities/index.ts
14
+ // packages/plugins/plugin-template/src/capabilities/index.ts
15
15
  import { lazy } from "@dxos/app-framework";
16
- var IntentResolver = lazy(() => import("./intent-resolver-7B7UKKUO.mjs"));
17
- var ReactSurface = lazy(() => import("./react-surface-TGRNRFJN.mjs"));
16
+ var IntentResolver = lazy(() => import("./intent-resolver-EM763SK4.mjs"));
17
+ var ReactSurface = lazy(() => import("./react-surface-WTZDBSE4.mjs"));
18
18
 
19
- // packages/plugins/experimental/plugin-template/src/translations.ts
19
+ // packages/plugins/plugin-template/src/translations.ts
20
20
  var translations_default = [
21
21
  {
22
22
  "en-US": {
@@ -32,7 +32,7 @@ var translations_default = [
32
32
  }
33
33
  ];
34
34
 
35
- // packages/plugins/experimental/plugin-template/src/TemplatePlugin.tsx
35
+ // packages/plugins/plugin-template/src/TemplatePlugin.tsx
36
36
  var TemplatePlugin = () => definePlugin(meta, [
37
37
  defineModule({
38
38
  id: `${meta.id}/module/translations`,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  TemplateAction,
3
3
  TemplateType
4
- } from "./chunk-Y5HMZ3RN.mjs";
4
+ } from "./chunk-2PY435KZ.mjs";
5
5
 
6
- // packages/plugins/experimental/plugin-template/src/capabilities/intent-resolver.ts
6
+ // packages/plugins/plugin-template/src/capabilities/intent-resolver.ts
7
7
  import { contributes, Capabilities, createResolver } from "@dxos/app-framework";
8
8
  import { create } from "@dxos/react-client/echo";
9
9
  var intent_resolver_default = () => contributes(Capabilities.IntentResolver, createResolver({
@@ -19,4 +19,4 @@ var intent_resolver_default = () => contributes(Capabilities.IntentResolver, cre
19
19
  export {
20
20
  intent_resolver_default as default
21
21
  };
22
- //# sourceMappingURL=intent-resolver-7B7UKKUO.mjs.map
22
+ //# sourceMappingURL=intent-resolver-EM763SK4.mjs.map
@@ -1 +1 @@
1
- {"inputs":{"packages/plugins/experimental/plugin-template/src/meta.ts":{"bytes":1365,"imports":[],"format":"esm"},"packages/plugins/experimental/plugin-template/src/types.ts":{"bytes":3904,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-template/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/experimental/plugin-template/src/capabilities/intent-resolver.ts":{"bytes":2211,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-template/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/experimental/plugin-template/src/components/TemplateContainer.tsx":{"bytes":2003,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-template/src/components/index.ts":{"bytes":553,"imports":[{"path":"packages/plugins/experimental/plugin-template/src/components/TemplateContainer.tsx","kind":"import-statement","original":"./TemplateContainer"}],"format":"esm"},"packages/plugins/experimental/plugin-template/src/capabilities/react-surface.tsx":{"bytes":2712,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-template/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/experimental/plugin-template/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/experimental/plugin-template/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/experimental/plugin-template/src/capabilities/index.ts":{"bytes":1096,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-template/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/experimental/plugin-template/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/experimental/plugin-template/src/translations.ts":{"bytes":1839,"imports":[{"path":"packages/plugins/experimental/plugin-template/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-template/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-template/src/TemplatePlugin.tsx":{"bytes":7582,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-template/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/experimental/plugin-template/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-template/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/experimental/plugin-template/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-template/src/index.ts":{"bytes":615,"imports":[{"path":"packages/plugins/experimental/plugin-template/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-template/src/TemplatePlugin.tsx","kind":"import-statement","original":"./TemplatePlugin"}],"format":"esm"}},"outputs":{"packages/plugins/experimental/plugin-template/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4858},"packages/plugins/experimental/plugin-template/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-template/dist/lib/browser/chunk-Y5HMZ3RN.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-template/dist/lib/browser/intent-resolver-7B7UKKUO.mjs","kind":"dynamic-import"},{"path":"packages/plugins/experimental/plugin-template/dist/lib/browser/react-surface-TGRNRFJN.mjs","kind":"dynamic-import"}],"exports":["TEMPLATE_PLUGIN","TemplatePlugin","meta"],"entryPoint":"packages/plugins/experimental/plugin-template/src/index.ts","inputs":{"packages/plugins/experimental/plugin-template/src/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-template/src/TemplatePlugin.tsx":{"bytesInOutput":1561},"packages/plugins/experimental/plugin-template/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/experimental/plugin-template/src/translations.ts":{"bytesInOutput":301}},"bytes":2535},"packages/plugins/experimental/plugin-template/dist/lib/browser/types.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-template/dist/lib/browser/types.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-template/dist/lib/browser/chunk-Y5HMZ3RN.mjs","kind":"import-statement"}],"exports":["TemplateAction","TemplateType","isObject"],"entryPoint":"packages/plugins/experimental/plugin-template/src/types.ts","inputs":{},"bytes":177},"packages/plugins/experimental/plugin-template/dist/lib/browser/intent-resolver-7B7UKKUO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1077},"packages/plugins/experimental/plugin-template/dist/lib/browser/intent-resolver-7B7UKKUO.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-template/dist/lib/browser/chunk-Y5HMZ3RN.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-template/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/experimental/plugin-template/src/capabilities/intent-resolver.ts":{"bytesInOutput":373}},"bytes":635},"packages/plugins/experimental/plugin-template/dist/lib/browser/react-surface-TGRNRFJN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2314},"packages/plugins/experimental/plugin-template/dist/lib/browser/react-surface-TGRNRFJN.mjs":{"imports":[{"path":"packages/plugins/experimental/plugin-template/dist/lib/browser/chunk-Y5HMZ3RN.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-template/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/experimental/plugin-template/src/capabilities/react-surface.tsx":{"bytesInOutput":419},"packages/plugins/experimental/plugin-template/src/components/TemplateContainer.tsx":{"bytesInOutput":431},"packages/plugins/experimental/plugin-template/src/components/index.ts":{"bytesInOutput":0}},"bytes":1276},"packages/plugins/experimental/plugin-template/dist/lib/browser/chunk-Y5HMZ3RN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2537},"packages/plugins/experimental/plugin-template/dist/lib/browser/chunk-Y5HMZ3RN.mjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["TEMPLATE_PLUGIN","TemplateAction","TemplateType","isObject","meta"],"inputs":{"packages/plugins/experimental/plugin-template/src/types.ts":{"bytesInOutput":762},"packages/plugins/experimental/plugin-template/src/meta.ts":{"bytesInOutput":239}},"bytes":1317}}}
1
+ {"inputs":{"packages/plugins/plugin-template/src/meta.ts":{"bytes":1352,"imports":[],"format":"esm"},"packages/plugins/plugin-template/src/types.ts":{"bytes":3891,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-template/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-template/src/capabilities/intent-resolver.ts":{"bytes":2198,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-template/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-template/src/components/TemplateContainer.tsx":{"bytes":1912,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-template/src/components/index.ts":{"bytes":540,"imports":[{"path":"packages/plugins/plugin-template/src/components/TemplateContainer.tsx","kind":"import-statement","original":"./TemplateContainer"}],"format":"esm"},"packages/plugins/plugin-template/src/capabilities/react-surface.tsx":{"bytes":2699,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-template/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-template/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-template/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-template/src/capabilities/index.ts":{"bytes":1083,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-template/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-template/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"}],"format":"esm"},"packages/plugins/plugin-template/src/translations.ts":{"bytes":1826,"imports":[{"path":"packages/plugins/plugin-template/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-template/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-template/src/TemplatePlugin.tsx":{"bytes":7569,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-template/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-template/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-template/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-template/src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-template/src/index.ts":{"bytes":602,"imports":[{"path":"packages/plugins/plugin-template/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-template/src/TemplatePlugin.tsx","kind":"import-statement","original":"./TemplatePlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-template/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4858},"packages/plugins/plugin-template/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-template/dist/lib/browser/chunk-2PY435KZ.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-template/dist/lib/browser/intent-resolver-EM763SK4.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-template/dist/lib/browser/react-surface-WTZDBSE4.mjs","kind":"dynamic-import"}],"exports":["TEMPLATE_PLUGIN","TemplatePlugin","meta"],"entryPoint":"packages/plugins/plugin-template/src/index.ts","inputs":{"packages/plugins/plugin-template/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-template/src/TemplatePlugin.tsx":{"bytesInOutput":1561},"packages/plugins/plugin-template/src/capabilities/index.ts":{"bytesInOutput":190},"packages/plugins/plugin-template/src/translations.ts":{"bytesInOutput":301}},"bytes":2483},"packages/plugins/plugin-template/dist/lib/browser/types.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-template/dist/lib/browser/types.mjs":{"imports":[{"path":"packages/plugins/plugin-template/dist/lib/browser/chunk-2PY435KZ.mjs","kind":"import-statement"}],"exports":["TemplateAction","TemplateType","isObject"],"entryPoint":"packages/plugins/plugin-template/src/types.ts","inputs":{},"bytes":177},"packages/plugins/plugin-template/dist/lib/browser/intent-resolver-EM763SK4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1077},"packages/plugins/plugin-template/dist/lib/browser/intent-resolver-EM763SK4.mjs":{"imports":[{"path":"packages/plugins/plugin-template/dist/lib/browser/chunk-2PY435KZ.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-template/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-template/src/capabilities/intent-resolver.ts":{"bytesInOutput":373}},"bytes":622},"packages/plugins/plugin-template/dist/lib/browser/react-surface-WTZDBSE4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2276},"packages/plugins/plugin-template/dist/lib/browser/react-surface-WTZDBSE4.mjs":{"imports":[{"path":"packages/plugins/plugin-template/dist/lib/browser/chunk-2PY435KZ.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-template/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-template/src/capabilities/react-surface.tsx":{"bytesInOutput":419},"packages/plugins/plugin-template/src/components/TemplateContainer.tsx":{"bytesInOutput":411},"packages/plugins/plugin-template/src/components/index.ts":{"bytesInOutput":0}},"bytes":1217},"packages/plugins/plugin-template/dist/lib/browser/chunk-2PY435KZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2537},"packages/plugins/plugin-template/dist/lib/browser/chunk-2PY435KZ.mjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true}],"exports":["TEMPLATE_PLUGIN","TemplateAction","TemplateType","isObject","meta"],"inputs":{"packages/plugins/plugin-template/src/types.ts":{"bytesInOutput":762},"packages/plugins/plugin-template/src/meta.ts":{"bytesInOutput":239}},"bytes":1278}}}
@@ -1,25 +1,23 @@
1
1
  import {
2
2
  TEMPLATE_PLUGIN,
3
3
  isObject
4
- } from "./chunk-Y5HMZ3RN.mjs";
4
+ } from "./chunk-2PY435KZ.mjs";
5
5
 
6
- // packages/plugins/experimental/plugin-template/src/capabilities/react-surface.tsx
6
+ // packages/plugins/plugin-template/src/capabilities/react-surface.tsx
7
7
  import React2 from "react";
8
8
  import { Capabilities, contributes, createSurface } from "@dxos/app-framework";
9
9
 
10
- // packages/plugins/experimental/plugin-template/src/components/TemplateContainer.tsx
10
+ // packages/plugins/plugin-template/src/components/TemplateContainer.tsx
11
11
  import React from "react";
12
12
  import { fullyQualifiedId } from "@dxos/react-client/echo";
13
13
  import { StackItem } from "@dxos/react-ui-stack";
14
14
  var TemplateContainer = ({ object }) => {
15
- return /* @__PURE__ */ React.createElement(StackItem.Content, {
16
- toolbar: false
17
- }, /* @__PURE__ */ React.createElement("pre", {
15
+ return /* @__PURE__ */ React.createElement(StackItem.Content, null, /* @__PURE__ */ React.createElement("pre", {
18
16
  className: "m-4 p-2 ring"
19
17
  }, /* @__PURE__ */ React.createElement("span", null, fullyQualifiedId(object))));
20
18
  };
21
19
 
22
- // packages/plugins/experimental/plugin-template/src/capabilities/react-surface.tsx
20
+ // packages/plugins/plugin-template/src/capabilities/react-surface.tsx
23
21
  var react_surface_default = () => contributes(Capabilities.ReactSurface, createSurface({
24
22
  id: TEMPLATE_PLUGIN,
25
23
  role: "article",
@@ -32,4 +30,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, createS
32
30
  export {
33
31
  react_surface_default as default
34
32
  };
35
- //# sourceMappingURL=react-surface-TGRNRFJN.mjs.map
33
+ //# sourceMappingURL=react-surface-WTZDBSE4.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/TemplateContainer.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { type ReactiveEchoObject } from '@dxos/react-client/echo';\n\nimport { TemplateContainer } from '../components';\nimport { TEMPLATE_PLUGIN } from '../meta';\nimport { isObject } from '../types';\n\nexport default () =>\n contributes(\n Capabilities.ReactSurface,\n createSurface({\n id: TEMPLATE_PLUGIN,\n role: 'article',\n filter: (data): data is { subject: ReactiveEchoObject<any> } => isObject(data.subject),\n component: ({ data, role }) => <TemplateContainer role={role} object={data.subject} />,\n }),\n );\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type ReactiveEchoObject, fullyQualifiedId } from '@dxos/react-client/echo';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nexport const TemplateContainer = ({ object }: { object: ReactiveEchoObject<any>; role: string }) => {\n return (\n <StackItem.Content toolbar={false}>\n <pre className='m-4 p-2 ring'>\n <span>{fullyQualifiedId(object)}</span>\n </pre>\n </StackItem.Content>\n );\n};\n"],
5
- "mappings": ";;;;;;AAIA,OAAOA,YAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;;;ACFzD,OAAOC,WAAW;AAElB,SAAkCC,wBAAwB;AAC1D,SAASC,iBAAiB;AAEnB,IAAMC,oBAAoB,CAAC,EAAEC,OAAM,MAAqD;AAC7F,SACE,sBAAA,cAACC,UAAUC,SAAO;IAACC,SAAS;KAC1B,sBAAA,cAACC,OAAAA;IAAIC,WAAU;KACb,sBAAA,cAACC,QAAAA,MAAMC,iBAAiBP,MAAAA,CAAAA,CAAAA,CAAAA;AAIhC;;;ADJA,IAAA,wBAAe,MACbQ,YACEC,aAAaC,cACbC,cAAc;EACZC,IAAIC;EACJC,MAAM;EACNC,QAAQ,CAACC,SAAuDC,SAASD,KAAKE,OAAO;EACrFC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAO,gBAAAM,OAAA,cAACC,mBAAAA;IAAkBP;IAAYQ,QAAQN,KAAKE;;AAC7E,CAAA,CAAA;",
6
- "names": ["React", "Capabilities", "contributes", "createSurface", "React", "fullyQualifiedId", "StackItem", "TemplateContainer", "object", "StackItem", "Content", "toolbar", "pre", "className", "span", "fullyQualifiedId", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "TEMPLATE_PLUGIN", "role", "filter", "data", "isObject", "subject", "component", "React", "TemplateContainer", "object"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { type ReactiveEchoObject } from '@dxos/react-client/echo';\n\nimport { TemplateContainer } from '../components';\nimport { TEMPLATE_PLUGIN } from '../meta';\nimport { isObject } from '../types';\n\nexport default () =>\n contributes(\n Capabilities.ReactSurface,\n createSurface({\n id: TEMPLATE_PLUGIN,\n role: 'article',\n filter: (data): data is { subject: ReactiveEchoObject<any> } => isObject(data.subject),\n component: ({ data, role }) => <TemplateContainer role={role} object={data.subject} />,\n }),\n );\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type ReactiveEchoObject, fullyQualifiedId } from '@dxos/react-client/echo';\nimport { StackItem } from '@dxos/react-ui-stack';\n\nexport const TemplateContainer = ({ object }: { object: ReactiveEchoObject<any>; role: string }) => {\n return (\n <StackItem.Content>\n <pre className='m-4 p-2 ring'>\n <span>{fullyQualifiedId(object)}</span>\n </pre>\n </StackItem.Content>\n );\n};\n"],
5
+ "mappings": ";;;;;;AAIA,OAAOA,YAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;;;ACFzD,OAAOC,WAAW;AAElB,SAAkCC,wBAAwB;AAC1D,SAASC,iBAAiB;AAEnB,IAAMC,oBAAoB,CAAC,EAAEC,OAAM,MAAqD;AAC7F,SACE,sBAAA,cAACC,UAAUC,SAAO,MAChB,sBAAA,cAACC,OAAAA;IAAIC,WAAU;KACb,sBAAA,cAACC,QAAAA,MAAMC,iBAAiBN,MAAAA,CAAAA,CAAAA,CAAAA;AAIhC;;;ADJA,IAAA,wBAAe,MACbO,YACEC,aAAaC,cACbC,cAAc;EACZC,IAAIC;EACJC,MAAM;EACNC,QAAQ,CAACC,SAAuDC,SAASD,KAAKE,OAAO;EACrFC,WAAW,CAAC,EAAEH,MAAMF,KAAI,MAAO,gBAAAM,OAAA,cAACC,mBAAAA;IAAkBP;IAAYQ,QAAQN,KAAKE;;AAC7E,CAAA,CAAA;",
6
+ "names": ["React", "Capabilities", "contributes", "createSurface", "React", "fullyQualifiedId", "StackItem", "TemplateContainer", "object", "StackItem", "Content", "pre", "className", "span", "fullyQualifiedId", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "TEMPLATE_PLUGIN", "role", "filter", "data", "isObject", "subject", "component", "React", "TemplateContainer", "object"]
7
7
  }
@@ -2,7 +2,7 @@ import {
2
2
  TemplateAction,
3
3
  TemplateType,
4
4
  isObject
5
- } from "./chunk-Y5HMZ3RN.mjs";
5
+ } from "./chunk-2PY435KZ.mjs";
6
6
  export {
7
7
  TemplateAction,
8
8
  TemplateType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-template",
3
- "version": "0.8.1-staging.5be625a",
3
+ "version": "0.8.1-staging.97aedb1",
4
4
  "description": "Template for new plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -32,14 +32,14 @@
32
32
  ],
33
33
  "dependencies": {
34
34
  "@preact/signals-core": "^1.6.0",
35
- "@dxos/async": "0.8.1-staging.5be625a",
36
- "@dxos/plugin-graph": "0.8.1-staging.5be625a",
37
- "@dxos/app-framework": "0.8.1-staging.5be625a",
38
- "@dxos/echo-schema": "0.8.1-staging.5be625a",
39
- "@dxos/plugin-client": "0.8.1-staging.5be625a",
40
- "@dxos/plugin-space": "0.8.1-staging.5be625a",
41
- "@dxos/react-client": "0.8.1-staging.5be625a",
42
- "@dxos/react-ui-stack": "0.8.1-staging.5be625a"
35
+ "@dxos/async": "0.8.1-staging.97aedb1",
36
+ "@dxos/app-framework": "0.8.1-staging.97aedb1",
37
+ "@dxos/plugin-client": "0.8.1-staging.97aedb1",
38
+ "@dxos/echo-schema": "0.8.1-staging.97aedb1",
39
+ "@dxos/plugin-graph": "0.8.1-staging.97aedb1",
40
+ "@dxos/plugin-space": "0.8.1-staging.97aedb1",
41
+ "@dxos/react-ui-stack": "0.8.1-staging.97aedb1",
42
+ "@dxos/react-client": "0.8.1-staging.97aedb1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@phosphor-icons/react": "^2.1.5",
@@ -48,16 +48,16 @@
48
48
  "react": "~18.2.0",
49
49
  "react-dom": "~18.2.0",
50
50
  "vite": "5.4.7",
51
- "@dxos/react-ui": "0.8.1-staging.5be625a",
52
- "@dxos/react-ui-theme": "0.8.1-staging.5be625a",
53
- "@dxos/storybook-utils": "0.8.1-staging.5be625a"
51
+ "@dxos/react-ui": "0.8.1-staging.97aedb1",
52
+ "@dxos/react-ui-theme": "0.8.1-staging.97aedb1",
53
+ "@dxos/storybook-utils": "0.8.1-staging.97aedb1"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@phosphor-icons/react": "^2.1.5",
57
57
  "react": "~18.2.0",
58
58
  "react-dom": "~18.2.0",
59
- "@dxos/react-ui": "0.8.1-staging.5be625a",
60
- "@dxos/react-ui-theme": "0.8.1-staging.5be625a"
59
+ "@dxos/react-ui-theme": "0.8.1-staging.97aedb1",
60
+ "@dxos/react-ui": "0.8.1-staging.97aedb1"
61
61
  },
62
62
  "publishConfig": {
63
63
  "access": "public"
@@ -9,7 +9,7 @@ import { StackItem } from '@dxos/react-ui-stack';
9
9
 
10
10
  export const TemplateContainer = ({ object }: { object: ReactiveEchoObject<any>; role: string }) => {
11
11
  return (
12
- <StackItem.Content toolbar={false}>
12
+ <StackItem.Content>
13
13
  <pre className='m-4 p-2 ring'>
14
14
  <span>{fullyQualifiedId(object)}</span>
15
15
  </pre>