@dxos/plugin-template 0.8.4-main.f5c0578 → 0.8.4-main.fcfe5033a5
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 +62 -64
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/types/index.mjs +16 -3
- package/dist/lib/browser/types/index.mjs.map +4 -4
- package/dist/types/src/TemplatePlugin.d.ts +2 -1
- package/dist/types/src/TemplatePlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/TemplatePanel/TemplatePanel.d.ts +6 -0
- package/dist/types/src/components/TemplatePanel/TemplatePanel.d.ts.map +1 -0
- package/dist/types/src/components/TemplatePanel/index.d.ts +2 -0
- package/dist/types/src/components/TemplatePanel/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +12 -10
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +8 -23
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +38 -26
- package/src/TemplatePlugin.tsx +38 -53
- package/src/capabilities/index.ts +2 -3
- package/src/capabilities/react-surface.tsx +20 -15
- package/src/components/TemplatePanel/TemplatePanel.tsx +21 -0
- package/src/components/TemplatePanel/index.ts +5 -0
- package/src/components/index.ts +1 -1
- package/src/meta.ts +9 -3
- package/src/translations.ts +12 -10
- package/src/types/schema.ts +13 -18
- package/dist/lib/browser/chunk-LT6IO5CC.mjs +0 -43
- package/dist/lib/browser/chunk-LT6IO5CC.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-AILWDC74.mjs +0 -20
- package/dist/lib/browser/intent-resolver-AILWDC74.mjs.map +0 -7
- package/dist/lib/browser/react-surface-NRU2N7BS.mjs +0 -40
- package/dist/lib/browser/react-surface-NRU2N7BS.mjs.map +0 -7
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/TemplateContainer.d.ts +0 -7
- package/dist/types/src/components/TemplateContainer.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -18
- package/src/components/TemplateContainer.tsx +0 -19
|
@@ -1,82 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// src/meta.ts
|
|
2
|
+
import { trim } from "@dxos/util";
|
|
3
|
+
var meta = {
|
|
4
|
+
id: "org.dxos.plugin.template",
|
|
5
|
+
name: "Template",
|
|
6
|
+
description: trim`
|
|
7
|
+
Create reusable templates for documents, tables, and other objects.
|
|
8
|
+
Define structured patterns that can be quickly instantiated with pre-configured content and settings.
|
|
9
|
+
`,
|
|
10
|
+
icon: "ph--asterisk--regular",
|
|
11
|
+
iconHue: "sky",
|
|
12
|
+
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-template"
|
|
13
|
+
};
|
|
5
14
|
|
|
6
15
|
// src/TemplatePlugin.tsx
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
import * as Effect from "effect/Effect";
|
|
17
|
+
import * as Option from "effect/Option";
|
|
18
|
+
import { Plugin } from "@dxos/app-framework";
|
|
19
|
+
import { AppPlugin } from "@dxos/app-toolkit";
|
|
20
|
+
import { Annotation } from "@dxos/echo";
|
|
21
|
+
import { Operation } from "@dxos/operation";
|
|
22
|
+
import { SpaceOperation } from "@dxos/plugin-space/operations";
|
|
23
|
+
import { ReactSurface } from "#capabilities";
|
|
24
|
+
import { meta as meta3 } from "#meta";
|
|
25
|
+
import { Template as Template2 } from "#types";
|
|
16
26
|
|
|
17
27
|
// src/translations.ts
|
|
28
|
+
import { meta as meta2 } from "#meta";
|
|
29
|
+
import { Template } from "#types";
|
|
18
30
|
var translations = [
|
|
19
31
|
{
|
|
20
32
|
"en-US": {
|
|
21
33
|
[Template.Data.typename]: {
|
|
22
|
-
"typename
|
|
23
|
-
"typename
|
|
24
|
-
"typename
|
|
25
|
-
"typename
|
|
26
|
-
"object
|
|
27
|
-
"
|
|
28
|
-
"
|
|
34
|
+
"typename.label": "Template",
|
|
35
|
+
"typename.label_zero": "Templates",
|
|
36
|
+
"typename.label_one": "Template",
|
|
37
|
+
"typename.label_other": "Templates",
|
|
38
|
+
"object-name.placeholder": "New template",
|
|
39
|
+
"add-object.label": "Add template",
|
|
40
|
+
"rename-object.label": "Rename template",
|
|
41
|
+
"delete-object.label": "Delete template",
|
|
42
|
+
"object-deleted.label": "Template deleted"
|
|
29
43
|
},
|
|
30
|
-
[
|
|
31
|
-
"plugin
|
|
44
|
+
[meta2.id]: {
|
|
45
|
+
"plugin.name": "Template"
|
|
32
46
|
}
|
|
33
47
|
}
|
|
34
48
|
}
|
|
35
49
|
];
|
|
36
50
|
|
|
37
51
|
// src/TemplatePlugin.tsx
|
|
38
|
-
var TemplatePlugin = ()
|
|
39
|
-
|
|
40
|
-
id:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
activatesOn: ClientEvents.SetupSchema,
|
|
65
|
-
activate: () => contributes(ClientCapabilities.Schema, [
|
|
66
|
-
Template.Data
|
|
67
|
-
])
|
|
68
|
-
}),
|
|
69
|
-
defineModule({
|
|
70
|
-
id: `${meta.id}/module/react-surface`,
|
|
71
|
-
activatesOn: Events.SetupReactSurface,
|
|
72
|
-
activate: ReactSurface
|
|
73
|
-
}),
|
|
74
|
-
defineModule({
|
|
75
|
-
id: `${meta.id}/module/intent-resolver`,
|
|
76
|
-
activatesOn: Events.SetupIntentResolver,
|
|
77
|
-
activate: IntentResolver
|
|
78
|
-
})
|
|
79
|
-
]);
|
|
52
|
+
var TemplatePlugin = Plugin.define(meta3).pipe(AppPlugin.addMetadataModule({
|
|
53
|
+
metadata: {
|
|
54
|
+
id: Template2.Data.typename,
|
|
55
|
+
metadata: {
|
|
56
|
+
icon: Annotation.IconAnnotation.get(Template2.Data).pipe(Option.getOrThrow).icon,
|
|
57
|
+
iconHue: Annotation.IconAnnotation.get(Template2.Data).pipe(Option.getOrThrow).hue ?? "white",
|
|
58
|
+
createObject: (props, options) => Effect.gen(function* () {
|
|
59
|
+
const object = Template2.make(props);
|
|
60
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
61
|
+
object,
|
|
62
|
+
target: options.target,
|
|
63
|
+
hidden: true,
|
|
64
|
+
targetNodeId: options.targetNodeId
|
|
65
|
+
});
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}), AppPlugin.addSchemaModule({
|
|
70
|
+
schema: [
|
|
71
|
+
Template2.Data
|
|
72
|
+
]
|
|
73
|
+
}), AppPlugin.addSurfaceModule({
|
|
74
|
+
activate: ReactSurface
|
|
75
|
+
}), AppPlugin.addTranslationsModule({
|
|
76
|
+
translations
|
|
77
|
+
}), Plugin.make);
|
|
80
78
|
export {
|
|
81
79
|
TemplatePlugin,
|
|
82
80
|
meta
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport {
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/meta.ts", "../../../src/TemplatePlugin.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: 'org.dxos.plugin.template',\n name: 'Template',\n description: trim`\n Create reusable templates for documents, tables, and other objects.\n Define structured patterns that can be quickly instantiated with pre-configured content and settings.\n `,\n icon: 'ph--asterisk--regular',\n iconHue: 'sky',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-template',\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Annotation } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { SpaceOperation } from '@dxos/plugin-space/operations';\nimport { type CreateObject } from '@dxos/plugin-space/types';\n\nimport { ReactSurface } from '#capabilities';\nimport { meta } from '#meta';\nimport { Template } from '#types';\n\nimport { translations } from './translations';\n\nexport const TemplatePlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: Template.Data.typename,\n metadata: {\n icon: Annotation.IconAnnotation.get(Template.Data).pipe(Option.getOrThrow).icon,\n iconHue: Annotation.IconAnnotation.get(Template.Data).pipe(Option.getOrThrow).hue ?? 'white',\n createObject: ((props, options) =>\n Effect.gen(function* () {\n const object = Template.make(props);\n return yield* Operation.invoke(SpaceOperation.AddObject, {\n object,\n target: options.target,\n hidden: true,\n targetNodeId: options.targetNodeId,\n });\n })) satisfies CreateObject,\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [Template.Data] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Template } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Template.Data.typename]: {\n 'typename.label': 'Template',\n 'typename.label_zero': 'Templates',\n 'typename.label_one': 'Template',\n 'typename.label_other': 'Templates',\n 'object-name.placeholder': 'New template',\n 'add-object.label': 'Add template',\n 'rename-object.label': 'Rename template',\n 'delete-object.label': 'Delete template',\n 'object-deleted.label': 'Template deleted',\n },\n [meta.id]: {\n 'plugin.name': 'Template',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;AACV;;;ACbA,YAAYC,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,sBAAsB;AAG/B,SAASC,oBAAoB;AAC7B,SAASC,QAAAA,aAAY;AACrB,SAASC,YAAAA,iBAAgB;;;ACVzB,SAASC,QAAAA,aAAY;AACrB,SAASC,gBAAgB;AAElB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,SAASC,KAAKC,QAAQ,GAAG;QACxB,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,MAAKC,EAAE,GAAG;QACT,eAAe;MACjB;IACF;EACF;;;;ADPK,IAAMC,iBAAiBC,OAAOC,OAAOC,KAAAA,EAAMC,KAChDC,UAAUC,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,UAASC,KAAKC;IAClBJ,UAAU;MACRK,MAAMC,WAAWC,eAAeC,IAAIN,UAASC,IAAI,EAAEN,KAAYY,iBAAU,EAAEJ;MAC3EK,SAASJ,WAAWC,eAAeC,IAAIN,UAASC,IAAI,EAAEN,KAAYY,iBAAU,EAAEE,OAAO;MACrFC,cAAe,CAACC,OAAOC,YACdC,WAAI,aAAA;AACT,cAAMC,SAASd,UAASe,KAAKJ,KAAAA;AAC7B,eAAO,OAAOK,UAAUC,OAAOC,eAAeC,WAAW;UACvDL;UACAM,QAAQR,QAAQQ;UAChBC,QAAQ;UACRC,cAAcV,QAAQU;QACxB,CAAA;MACF,CAAA;IACJ;EACF;AACF,CAAA,GACA1B,UAAU2B,gBAAgB;EAAEC,QAAQ;IAACxB,UAASC;;AAAM,CAAA,GACpDL,UAAU6B,iBAAiB;EAAEC,UAAUC;AAAa,CAAA,GACpD/B,UAAUgC,sBAAsB;EAAEC;AAAa,CAAA,GAC/CrC,OAAOuB,IAAI;",
|
|
6
|
+
"names": ["trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "Effect", "Option", "Plugin", "AppPlugin", "Annotation", "Operation", "SpaceOperation", "ReactSurface", "meta", "Template", "meta", "Template", "translations", "Template", "Data", "typename", "meta", "id", "TemplatePlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addMetadataModule", "metadata", "id", "Template", "Data", "typename", "icon", "Annotation", "IconAnnotation", "get", "getOrThrow", "iconHue", "hue", "createObject", "props", "options", "gen", "object", "make", "Operation", "invoke", "SpaceOperation", "AddObject", "target", "hidden", "targetNodeId", "addSchemaModule", "schema", "addSurfaceModule", "activate", "ReactSurface", "addTranslationsModule", "translations"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/meta.ts":{"bytes":
|
|
1
|
+
{"inputs":{"src/meta.ts":{"bytes":1835,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":2680,"imports":[{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/TemplatePlugin.tsx":{"bytes":5932,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","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/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":557,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/TemplatePlugin.tsx","kind":"import-statement","original":"./TemplatePlugin"}],"format":"esm"},"src/types/schema.ts":{"bytes":2327,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":463,"imports":[{"path":"src/types/schema.ts","kind":"import-statement","original":"./schema"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5113},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","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/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["TemplatePlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/meta.ts":{"bytesInOutput":444},"src/index.ts":{"bytesInOutput":0},"src/TemplatePlugin.tsx":{"bytesInOutput":1314},"src/translations.ts":{"bytesInOutput":647}},"bytes":2570},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1272},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["Template"],"entryPoint":"src/types/index.ts","inputs":{"src/types/schema.ts":{"bytesInOutput":478},"src/types/index.ts":{"bytesInOutput":0}},"bytes":559}}}
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
} from "
|
|
1
|
+
// src/types/schema.ts
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
3
|
+
import { Annotation, Obj, Type } from "@dxos/echo";
|
|
4
|
+
(function(Template2) {
|
|
5
|
+
Template2.Data = Schema.Struct({
|
|
6
|
+
name: Schema.optional(Schema.String)
|
|
7
|
+
}).pipe(Type.object({
|
|
8
|
+
typename: "org.dxos.type.data",
|
|
9
|
+
version: "0.1.0"
|
|
10
|
+
}), Annotation.IconAnnotation.set({
|
|
11
|
+
icon: "ph--asterisk--regular",
|
|
12
|
+
hue: "sky"
|
|
13
|
+
}));
|
|
14
|
+
Template2.make = (props) => Obj.make(Template2.Data, props);
|
|
15
|
+
})(Template || (Template = {}));
|
|
16
|
+
var Template;
|
|
4
17
|
export {
|
|
5
18
|
Template
|
|
6
19
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [],
|
|
4
|
-
"sourcesContent": [],
|
|
5
|
-
"mappings": "",
|
|
6
|
-
"names": []
|
|
3
|
+
"sources": ["../../../../src/types/schema.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Annotation, Obj, Type } from '@dxos/echo';\n\nexport namespace Template {\n export const Data = Schema.Struct({\n name: Schema.optional(Schema.String),\n }).pipe(\n Type.object({\n typename: 'org.dxos.type.data',\n version: '0.1.0',\n }),\n Annotation.IconAnnotation.set({\n icon: 'ph--asterisk--regular',\n hue: 'sky',\n }),\n );\n\n export type Data = Schema.Schema.Type<typeof Data>;\n\n export const make = (props: Partial<Data>) => Obj.make(Data, props);\n}\n"],
|
|
5
|
+
"mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,YAAYC,KAAKC,YAAY;UAErBC,WAAAA;YACFC,OAAcC,cAAO;IAChCC,MAAaC,gBAAgBC,aAAM;EACrC,CAAA,EAAGC,KACDC,KAAKC,OAAO;IACVC,UAAU;IACVC,SAAS;EACX,CAAA,GACAC,WAAWC,eAAeC,IAAI;IAC5BC,MAAM;IACNC,KAAK;EACP,CAAA,CAAA;YAKWC,OAAO,CAACC,UAAyBC,IAAIF,KAAIhB,UAACC,MAAMgB,KAAAA;AAC/D,GAjBiBjB,aAAAA,WAAAA,CAAAA,EAAAA;;",
|
|
6
|
+
"names": ["Schema", "Annotation", "Obj", "Type", "Template", "Data", "Struct", "name", "optional", "String", "pipe", "Type", "object", "typename", "version", "Annotation", "IconAnnotation", "set", "icon", "hue", "make", "props", "Obj"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplatePlugin.d.ts","sourceRoot":"","sources":["../../../src/TemplatePlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TemplatePlugin.d.ts","sourceRoot":"","sources":["../../../src/TemplatePlugin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAa7C,eAAO,MAAM,cAAc,4BAwB1B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ReactSurface:
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
|
|
3
4
|
export default _default;
|
|
4
5
|
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAO/D,wBAaE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
3
|
+
import { Obj } from '@dxos/echo';
|
|
4
|
+
export type TemplatePanelProps = AppSurface.ObjectArticleProps<Obj.Unknown>;
|
|
5
|
+
export declare const TemplatePanel: ({ role, subject: object, attendableId: _attendableId }: TemplatePanelProps) => React.JSX.Element;
|
|
6
|
+
//# sourceMappingURL=TemplatePanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplatePanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/TemplatePanel/TemplatePanel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAE5E,eAAO,MAAM,aAAa,GAAI,wDAAwD,kBAAkB,sBAQvG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/TemplatePanel/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './TemplatePanel';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const meta:
|
|
1
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const meta: Plugin.Meta;
|
|
3
3
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAUzB,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { meta } from '
|
|
2
|
-
import { Template } from '
|
|
1
|
+
import { meta } from '#meta';
|
|
2
|
+
import { Template } from '#types';
|
|
3
3
|
export declare const translations: [{
|
|
4
4
|
readonly 'en-US': {
|
|
5
5
|
readonly [Template.Data.typename]: {
|
|
6
|
-
readonly 'typename
|
|
7
|
-
readonly 'typename
|
|
8
|
-
readonly 'typename
|
|
9
|
-
readonly 'typename
|
|
10
|
-
readonly 'object
|
|
11
|
-
readonly '
|
|
12
|
-
readonly '
|
|
6
|
+
readonly 'typename.label': "Template";
|
|
7
|
+
readonly 'typename.label_zero': "Templates";
|
|
8
|
+
readonly 'typename.label_one': "Template";
|
|
9
|
+
readonly 'typename.label_other': "Templates";
|
|
10
|
+
readonly 'object-name.placeholder': "New template";
|
|
11
|
+
readonly 'add-object.label': "Add template";
|
|
12
|
+
readonly 'rename-object.label': "Rename template";
|
|
13
|
+
readonly 'delete-object.label': "Delete template";
|
|
14
|
+
readonly 'object-deleted.label': "Template deleted";
|
|
13
15
|
};
|
|
14
16
|
readonly [meta.id]: {
|
|
15
|
-
readonly 'plugin
|
|
17
|
+
readonly 'plugin.name': "Template";
|
|
16
18
|
};
|
|
17
19
|
};
|
|
18
20
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;;;;;;;;;;UAUvB;QACD,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;UAER;;EAGwB,CAAC"}
|
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Obj, Type } from '@dxos/echo';
|
|
2
3
|
export declare namespace Template {
|
|
3
|
-
const
|
|
4
|
-
readonly
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
output: Schema.Struct<{
|
|
10
|
-
object: Schema.Schema<any, any, never>;
|
|
11
|
-
}>;
|
|
4
|
+
const Data: Type.Obj<{
|
|
5
|
+
readonly name?: string | undefined;
|
|
6
|
+
}, Schema.Struct.Fields>;
|
|
7
|
+
type Data = Schema.Schema.Type<typeof Data>;
|
|
8
|
+
const make: (props: Partial<Data>) => Obj.OfShape<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
9
|
+
readonly name?: string | undefined;
|
|
12
10
|
}>;
|
|
13
|
-
export class Create extends Create_base {
|
|
14
|
-
}
|
|
15
|
-
const Data_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
16
|
-
name: Schema.optional<typeof Schema.String>;
|
|
17
|
-
}, import("@dxos/echo-schema").TypedObjectOptions>, Schema.Struct.Encoded<{
|
|
18
|
-
name: Schema.optional<typeof Schema.String>;
|
|
19
|
-
}>>;
|
|
20
|
-
export class Data extends Data_base {
|
|
21
|
-
}
|
|
22
|
-
export const make: (props: Partial<Data>) => import("@dxos/live-object").Live<import("@dxos/echo-schema").TypedObjectFields<{
|
|
23
|
-
name: Schema.optional<typeof Schema.String>;
|
|
24
|
-
}, import("@dxos/echo-schema").TypedObjectOptions>>;
|
|
25
|
-
export {};
|
|
26
11
|
}
|
|
27
12
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAc,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEnD,yBAAiB,QAAQ,CAAC;IACjB,MAAM,IAAI;;4BAWhB,CAAC;IAEF,KAAY,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;IAE5C,MAAM,IAAI,GAAI,OAAO,OAAO,CAAC,IAAI,CAAC;;MAA0B,CAAC;CACrE"}
|