@dxos/plugin-stack 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
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/StackPlugin-QWVPZHNO.mjs +42 -0
- package/dist/lib/browser/StackPlugin-QWVPZHNO.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +5 -71
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +37 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs.map +2 -2
- package/dist/lib/node-esm/StackPlugin-5PFRZ364.mjs +44 -0
- package/dist/lib/node-esm/StackPlugin-5PFRZ364.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +5 -71
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/translations.mjs +39 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs.map +2 -2
- package/dist/types/src/StackPlugin.d.ts +1 -0
- package/dist/types/src/StackPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/StackSection/CaretDownUp.d.ts +1 -1
- package/dist/types/src/components/StackSection/CaretDownUp.d.ts.map +1 -1
- package/dist/types/src/components/StackSection/StackSection.d.ts.map +1 -1
- package/dist/types/src/components/StackSettings/StackSettings.d.ts.map +1 -1
- package/dist/types/src/containers/StackContainer/StackContainer.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +30 -31
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +35 -34
- package/src/StackPlugin.ts +3 -2
- package/src/capabilities/react-surface.tsx +1 -2
- package/src/components/StackSection/StackSection.tsx +2 -1
- package/src/index.ts +6 -1
- package/src/translations.ts +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// src/StackPlugin.ts
|
|
2
|
+
import { Plugin } from "@dxos/app-framework";
|
|
3
|
+
import { AppPlugin } from "@dxos/app-toolkit";
|
|
4
|
+
import { ReactSurface } from "#capabilities";
|
|
5
|
+
import { SECTION_IDENTIFIER, meta } from "#meta";
|
|
6
|
+
import { translations } from "#translations";
|
|
7
|
+
import { StackViewType } from "#types";
|
|
8
|
+
var StackPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
|
|
9
|
+
metadata: {
|
|
10
|
+
id: SECTION_IDENTIFIER,
|
|
11
|
+
metadata: {
|
|
12
|
+
parse: (section, type) => {
|
|
13
|
+
switch (type) {
|
|
14
|
+
case "node":
|
|
15
|
+
return {
|
|
16
|
+
id: section.object.id,
|
|
17
|
+
label: section.object.title,
|
|
18
|
+
data: section.object
|
|
19
|
+
};
|
|
20
|
+
case "object":
|
|
21
|
+
return section.object;
|
|
22
|
+
case "view-object":
|
|
23
|
+
return section;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}), AppPlugin.addSchemaModule({
|
|
29
|
+
schema: [
|
|
30
|
+
StackViewType
|
|
31
|
+
]
|
|
32
|
+
}), AppPlugin.addSurfaceModule({
|
|
33
|
+
activate: ReactSurface
|
|
34
|
+
}), AppPlugin.addTranslationsModule({
|
|
35
|
+
translations
|
|
36
|
+
}), Plugin.make);
|
|
37
|
+
var StackPlugin_default = StackPlugin;
|
|
38
|
+
export {
|
|
39
|
+
StackPlugin,
|
|
40
|
+
StackPlugin_default as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=StackPlugin-QWVPZHNO.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/StackPlugin.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { type Obj } from '@dxos/echo';\n\nimport { ReactSurface } from '#capabilities';\nimport { SECTION_IDENTIFIER, meta } from '#meta';\nimport { translations } from '#translations';\nimport { StackViewType } from '#types';\n\nexport const StackPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: SECTION_IDENTIFIER,\n metadata: {\n parse: (section: { object: Obj.Unknown }, type: string) => {\n switch (type) {\n case 'node':\n return { id: section.object.id, label: (section.object as any).title, data: section.object };\n case 'object':\n return section.object;\n case 'view-object':\n return section;\n }\n },\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [StackViewType] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n\nexport default StackPlugin;\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;AAG1B,SAASC,oBAAoB;AAC7B,SAASC,oBAAoBC,YAAY;AACzC,SAASC,oBAAoB;AAC7B,SAASC,qBAAqB;AAEvB,IAAMC,cAAcP,OAAOQ,OAAOJ,IAAAA,EAAMK,KAC7CR,UAAUS,kBAAkB;EAC1BC,UAAU;IACRC,IAAIT;IACJQ,UAAU;MACRE,OAAO,CAACC,SAAkCC,SAAAA;AACxC,gBAAQA,MAAAA;UACN,KAAK;AACH,mBAAO;cAAEH,IAAIE,QAAQE,OAAOJ;cAAIK,OAAQH,QAAQE,OAAeE;cAAOC,MAAML,QAAQE;YAAO;UAC7F,KAAK;AACH,mBAAOF,QAAQE;UACjB,KAAK;AACH,mBAAOF;QACX;MACF;IACF;EACF;AACF,CAAA,GACAb,UAAUmB,gBAAgB;EAAEC,QAAQ;IAACf;;AAAe,CAAA,GACpDL,UAAUqB,iBAAiB;EAAEC,UAAUrB;AAAa,CAAA,GACpDD,UAAUuB,sBAAsB;EAAEnB;AAAa,CAAA,GAC/CL,OAAOyB,IAAI;AAGb,IAAA,sBAAelB;",
|
|
6
|
+
"names": ["Plugin", "AppPlugin", "ReactSurface", "SECTION_IDENTIFIER", "meta", "translations", "StackViewType", "StackPlugin", "define", "pipe", "addMetadataModule", "metadata", "id", "parse", "section", "type", "object", "label", "title", "data", "addSchemaModule", "schema", "addSurfaceModule", "activate", "addTranslationsModule", "make"]
|
|
7
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { Plugin } from "@dxos/app-framework";
|
|
3
|
+
|
|
1
4
|
// src/meta.ts
|
|
2
5
|
import { trim } from "@dxos/util";
|
|
3
6
|
var SECTION_IDENTIFIER = "org.dxos.type.stackSection";
|
|
@@ -14,77 +17,8 @@ var meta = {
|
|
|
14
17
|
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-stack"
|
|
15
18
|
};
|
|
16
19
|
|
|
17
|
-
// src/
|
|
18
|
-
|
|
19
|
-
import { AppPlugin } from "@dxos/app-toolkit";
|
|
20
|
-
import { ReactSurface } from "#capabilities";
|
|
21
|
-
import { SECTION_IDENTIFIER as SECTION_IDENTIFIER2, meta as meta3 } from "#meta";
|
|
22
|
-
import { StackViewType } from "#types";
|
|
23
|
-
|
|
24
|
-
// src/translations.ts
|
|
25
|
-
import { translations as stackTranslations } from "@dxos/react-ui-stack";
|
|
26
|
-
import { meta as meta2 } from "#meta";
|
|
27
|
-
var translations = [
|
|
28
|
-
{
|
|
29
|
-
"en-US": {
|
|
30
|
-
[meta2.id]: {
|
|
31
|
-
"plugin.name": "Stacks",
|
|
32
|
-
"settings.title": "Stack settings",
|
|
33
|
-
"settings.separation.label": "Separate sections",
|
|
34
|
-
"settings.separation.description": "Add visual dividers between sections in stacks.",
|
|
35
|
-
"add-section-beforeAll-dialog.title": "Add a section to the start",
|
|
36
|
-
"add-section-afterAll-dialog.title": "Add a section to the end",
|
|
37
|
-
"add-section-before-dialog.title": "Add a section",
|
|
38
|
-
"add-section-after-dialog.title": "Add a section",
|
|
39
|
-
"add-section-input.placeholder": "Find the type of section to add",
|
|
40
|
-
"upload-file.label": "Add file",
|
|
41
|
-
"add-section.label": "Add section",
|
|
42
|
-
"empty-stack.message": "Drag objects into the stack.",
|
|
43
|
-
"remove-section.label": "Delete",
|
|
44
|
-
"navigate-to-section.label": "Navigate to object",
|
|
45
|
-
"untitled-section.title": "Untitled section",
|
|
46
|
-
"add-section-before.label": "Add before",
|
|
47
|
-
"add-section-after.label": "Add after",
|
|
48
|
-
"expand.label": "Expand",
|
|
49
|
-
"collapse.label": "Collapse",
|
|
50
|
-
"open-chat-thread.label": "Open chat thread",
|
|
51
|
-
"drag-handle.label": "Press space or enter to begin dragging this object."
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
...stackTranslations
|
|
56
|
-
];
|
|
57
|
-
|
|
58
|
-
// src/StackPlugin.ts
|
|
59
|
-
var StackPlugin = Plugin.define(meta3).pipe(AppPlugin.addMetadataModule({
|
|
60
|
-
metadata: {
|
|
61
|
-
id: SECTION_IDENTIFIER2,
|
|
62
|
-
metadata: {
|
|
63
|
-
parse: (section, type) => {
|
|
64
|
-
switch (type) {
|
|
65
|
-
case "node":
|
|
66
|
-
return {
|
|
67
|
-
id: section.object.id,
|
|
68
|
-
label: section.object.title,
|
|
69
|
-
data: section.object
|
|
70
|
-
};
|
|
71
|
-
case "object":
|
|
72
|
-
return section.object;
|
|
73
|
-
case "view-object":
|
|
74
|
-
return section;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}), AppPlugin.addSchemaModule({
|
|
80
|
-
schema: [
|
|
81
|
-
StackViewType
|
|
82
|
-
]
|
|
83
|
-
}), AppPlugin.addSurfaceModule({
|
|
84
|
-
activate: ReactSurface
|
|
85
|
-
}), AppPlugin.addTranslationsModule({
|
|
86
|
-
translations
|
|
87
|
-
}), Plugin.make);
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var StackPlugin = Plugin.lazy(meta, () => import("./StackPlugin-QWVPZHNO.mjs"));
|
|
88
22
|
export {
|
|
89
23
|
SECTION_IDENTIFIER,
|
|
90
24
|
StackPlugin,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const SECTION_IDENTIFIER = 'org.dxos.type.stackSection';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.stack',\n // TODO(wittjosiah): Prevents \"stacks\" language from being exposed to users in settings panel.\n // Conside renaming this to the collection plugin and trying to factor more collections logic from the space plugin.\n name: 'Collections',\n description: trim`\n Organize and view curated collections of workspace objects in customizable layouts.\n Group related items together and manage collections with sections and filtering.\n `,\n icon: 'ph--stack-simple--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-stack',\n};\n"
|
|
5
|
-
"mappings": ";
|
|
6
|
-
"names": ["trim", "SECTION_IDENTIFIER", "meta", "id", "name", "description", "
|
|
3
|
+
"sources": ["../../../src/index.ts", "../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const StackPlugin = Plugin.lazy(meta, () => import('./StackPlugin'));\n\nexport * from './meta';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const SECTION_IDENTIFIER = 'org.dxos.type.stackSection';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.stack',\n // TODO(wittjosiah): Prevents \"stacks\" language from being exposed to users in settings panel.\n // Conside renaming this to the collection plugin and trying to factor more collections logic from the space plugin.\n name: 'Collections',\n description: trim`\n Organize and view curated collections of workspace objects in customizable layouts.\n Group related items together and manage collections with sections and filtering.\n `,\n icon: 'ph--stack-simple--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-stack',\n};\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,qBAAqB;AAE3B,IAAMC,OAAoB;EAC/BC,IAAI;;;EAGJC,MAAM;EACNC,aAAaL;;;;EAIbM,MAAM;EACNC,QAAQ;AACV;;;ADZO,IAAMC,cAAcC,OAAOC,KAAKC,MAAM,MAAM,OAAO,4BAAA,CAAA;",
|
|
6
|
+
"names": ["Plugin", "trim", "SECTION_IDENTIFIER", "meta", "id", "name", "description", "icon", "source", "StackPlugin", "Plugin", "lazy", "meta"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/meta.ts":{"bytes":
|
|
1
|
+
{"inputs":{"src/meta.ts":{"bytes":2443,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/StackPlugin.ts":{"bytes":4332,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":948,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/StackPlugin.ts","kind":"dynamic-import","original":"./StackPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":4619,"imports":[{"path":"@dxos/react-ui-stack/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/stack.ts":{"bytes":3664,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":409,"imports":[{"path":"src/types/stack.ts","kind":"import-statement","original":"./stack"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1539},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"dist/lib/browser/StackPlugin-QWVPZHNO.mjs","kind":"dynamic-import"}],"exports":["SECTION_IDENTIFIER","StackPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":127},"src/meta.ts":{"bytesInOutput":695}},"bytes":962},"dist/lib/browser/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2139},"dist/lib/browser/translations.mjs":{"imports":[{"path":"@dxos/react-ui-stack/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":1404}},"bytes":1496},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1756},"dist/lib/browser/types/index.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["SectionSchema","StackViewType"],"entryPoint":"src/types/index.ts","inputs":{"src/types/stack.ts":{"bytesInOutput":575},"src/types/index.ts":{"bytesInOutput":0}},"bytes":677},"dist/lib/browser/StackPlugin-QWVPZHNO.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2211},"dist/lib/browser/StackPlugin-QWVPZHNO.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["StackPlugin","default"],"entryPoint":"src/StackPlugin.ts","inputs":{"src/StackPlugin.ts":{"bytesInOutput":1018}},"bytes":1150}}}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// src/translations.ts
|
|
2
|
+
import { translations as stackTranslations } from "@dxos/react-ui-stack/translations";
|
|
3
|
+
import { meta } from "#meta";
|
|
4
|
+
var translations = [
|
|
5
|
+
{
|
|
6
|
+
"en-US": {
|
|
7
|
+
[meta.id]: {
|
|
8
|
+
"plugin.name": "Stacks",
|
|
9
|
+
"settings.title": "Stack settings",
|
|
10
|
+
"settings.separation.label": "Separate sections",
|
|
11
|
+
"settings.separation.description": "Add visual dividers between sections in stacks.",
|
|
12
|
+
"add-section-beforeAll-dialog.title": "Add a section to the start",
|
|
13
|
+
"add-section-afterAll-dialog.title": "Add a section to the end",
|
|
14
|
+
"add-section-before-dialog.title": "Add a section",
|
|
15
|
+
"add-section-after-dialog.title": "Add a section",
|
|
16
|
+
"add-section-input.placeholder": "Find the type of section to add",
|
|
17
|
+
"upload-file.label": "Add file",
|
|
18
|
+
"add-section.label": "Add section",
|
|
19
|
+
"empty-stack.message": "Drag objects into the stack.",
|
|
20
|
+
"remove-section.label": "Delete",
|
|
21
|
+
"navigate-to-section.label": "Navigate to object",
|
|
22
|
+
"untitled-section.title": "Untitled section",
|
|
23
|
+
"add-section-before.label": "Add before",
|
|
24
|
+
"add-section-after.label": "Add after",
|
|
25
|
+
"expand.label": "Expand",
|
|
26
|
+
"collapse.label": "Collapse",
|
|
27
|
+
"open-chat-thread.label": "Open chat thread",
|
|
28
|
+
"drag-handle.label": "Press space or enter to begin dragging this object."
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
...stackTranslations
|
|
33
|
+
];
|
|
34
|
+
export {
|
|
35
|
+
translations
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as stackTranslations } from '@dxos/react-ui-stack/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Stacks',\n 'settings.title': 'Stack settings',\n 'settings.separation.label': 'Separate sections',\n 'settings.separation.description': 'Add visual dividers between sections in stacks.',\n 'add-section-beforeAll-dialog.title': 'Add a section to the start',\n 'add-section-afterAll-dialog.title': 'Add a section to the end',\n 'add-section-before-dialog.title': 'Add a section',\n 'add-section-after-dialog.title': 'Add a section',\n 'add-section-input.placeholder': 'Find the type of section to add',\n 'upload-file.label': 'Add file',\n 'add-section.label': 'Add section',\n 'empty-stack.message': 'Drag objects into the stack.',\n 'remove-section.label': 'Delete',\n 'navigate-to-section.label': 'Navigate to object',\n 'untitled-section.title': 'Untitled section',\n 'add-section-before.label': 'Add before',\n 'add-section-after.label': 'Add after',\n 'expand.label': 'Expand',\n 'collapse.label': 'Collapse',\n 'open-chat-thread.label': 'Open chat thread',\n 'drag-handle.label': 'Press space or enter to begin dragging this object.',\n },\n },\n },\n ...stackTranslations,\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";AAKA,SAASA,gBAAgBC,yBAAyB;AAElD,SAASC,YAAY;AAEd,IAAMF,eAAe;EAC1B;IACE,SAAS;MACP,CAACE,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,6BAA6B;QAC7B,mCAAmC;QACnC,sCAAsC;QACtC,qCAAqC;QACrC,mCAAmC;QACnC,kCAAkC;QAClC,iCAAiC;QACjC,qBAAqB;QACrB,qBAAqB;QACrB,uBAAuB;QACvB,wBAAwB;QACxB,6BAA6B;QAC7B,0BAA0B;QAC1B,4BAA4B;QAC5B,2BAA2B;QAC3B,gBAAgB;QAChB,kBAAkB;QAClB,0BAA0B;QAC1B,qBAAqB;MACvB;IACF;EACF;KACGF;;",
|
|
6
|
+
"names": ["translations", "stackTranslations", "meta", "id"]
|
|
7
|
+
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/types/stack.ts"],
|
|
4
4
|
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Type } from '@dxos/echo';\n\n// All section metadata needs to be optional/have defaults.\n// Any objects added to the collection will start with the section defaults.\n// If an object is removed from the collection without removing the section metadata this is fine.\n// Stack components should clean-up the superfluous data on future edits.\n\nexport const SectionSchema = Schema.Struct({\n height: Schema.optional(Schema.Number),\n // Space for data that isn't stack-specific but is specific to this view instance.\n // e.g. cover/fill for an image\n custom: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n});\n\n// TODO(wittjosiah): This needs a relation to be connected to a stack.\nexport const StackViewType = Schema.Struct({\n sections: Schema.Record({ key: Schema.String, value: SectionSchema }),\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.stackView',\n version: '0.1.0',\n }),\n);\n\nexport interface StackViewType extends Schema.Schema.Type<typeof StackViewType> {}\n"],
|
|
5
|
-
"mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,YAAY;AAOd,IAAMC,gBAAuBC,cAAO;EACzCC,QAAeC,gBAAgBC,aAAM;;;EAGrCC,QAAeF,gBAAgBG,cAAO;IAAEC,KAAYC;IAAQC,OAAcC;EAAI,CAAA,CAAA;AAChF,CAAA;AAGO,IAAMC,gBAAuBV,cAAO;EACzCW,UAAiBN,cAAO;IAAEC,KAAYC;IAAQC,OAAOT;EAAc,CAAA;AACrE,CAAA,EAAGa,
|
|
6
|
-
"names": ["Schema", "Type", "SectionSchema", "Struct", "height", "optional", "Number", "custom", "Record", "key", "String", "value", "Any", "StackViewType", "sections", "pipe", "
|
|
5
|
+
"mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,YAAY;AAOd,IAAMC,gBAAuBC,cAAO;EACzCC,QAAeC,gBAAgBC,aAAM;;;EAGrCC,QAAeF,gBAAgBG,cAAO;IAAEC,KAAYC;IAAQC,OAAcC;EAAI,CAAA,CAAA;AAChF,CAAA;AAGO,IAAMC,gBAAuBV,cAAO;EACzCW,UAAiBN,cAAO;IAAEC,KAAYC;IAAQC,OAAOT;EAAc,CAAA;AACrE,CAAA,EAAGa,KACDd,KAAKe,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,CAAA;",
|
|
6
|
+
"names": ["Schema", "Type", "SectionSchema", "Struct", "height", "optional", "Number", "custom", "Record", "key", "String", "value", "Any", "StackViewType", "sections", "pipe", "object", "typename", "version"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/StackPlugin.ts
|
|
4
|
+
import { Plugin } from "@dxos/app-framework";
|
|
5
|
+
import { AppPlugin } from "@dxos/app-toolkit";
|
|
6
|
+
import { ReactSurface } from "#capabilities";
|
|
7
|
+
import { SECTION_IDENTIFIER, meta } from "#meta";
|
|
8
|
+
import { translations } from "#translations";
|
|
9
|
+
import { StackViewType } from "#types";
|
|
10
|
+
var StackPlugin = Plugin.define(meta).pipe(AppPlugin.addMetadataModule({
|
|
11
|
+
metadata: {
|
|
12
|
+
id: SECTION_IDENTIFIER,
|
|
13
|
+
metadata: {
|
|
14
|
+
parse: (section, type) => {
|
|
15
|
+
switch (type) {
|
|
16
|
+
case "node":
|
|
17
|
+
return {
|
|
18
|
+
id: section.object.id,
|
|
19
|
+
label: section.object.title,
|
|
20
|
+
data: section.object
|
|
21
|
+
};
|
|
22
|
+
case "object":
|
|
23
|
+
return section.object;
|
|
24
|
+
case "view-object":
|
|
25
|
+
return section;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}), AppPlugin.addSchemaModule({
|
|
31
|
+
schema: [
|
|
32
|
+
StackViewType
|
|
33
|
+
]
|
|
34
|
+
}), AppPlugin.addSurfaceModule({
|
|
35
|
+
activate: ReactSurface
|
|
36
|
+
}), AppPlugin.addTranslationsModule({
|
|
37
|
+
translations
|
|
38
|
+
}), Plugin.make);
|
|
39
|
+
var StackPlugin_default = StackPlugin;
|
|
40
|
+
export {
|
|
41
|
+
StackPlugin,
|
|
42
|
+
StackPlugin_default as default
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=StackPlugin-5PFRZ364.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/StackPlugin.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { type Obj } from '@dxos/echo';\n\nimport { ReactSurface } from '#capabilities';\nimport { SECTION_IDENTIFIER, meta } from '#meta';\nimport { translations } from '#translations';\nimport { StackViewType } from '#types';\n\nexport const StackPlugin = Plugin.define(meta).pipe(\n AppPlugin.addMetadataModule({\n metadata: {\n id: SECTION_IDENTIFIER,\n metadata: {\n parse: (section: { object: Obj.Unknown }, type: string) => {\n switch (type) {\n case 'node':\n return { id: section.object.id, label: (section.object as any).title, data: section.object };\n case 'object':\n return section.object;\n case 'view-object':\n return section;\n }\n },\n },\n },\n }),\n AppPlugin.addSchemaModule({ schema: [StackViewType] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n\nexport default StackPlugin;\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;AAG1B,SAASC,oBAAoB;AAC7B,SAASC,oBAAoBC,YAAY;AACzC,SAASC,oBAAoB;AAC7B,SAASC,qBAAqB;AAEvB,IAAMC,cAAcP,OAAOQ,OAAOJ,IAAAA,EAAMK,KAC7CR,UAAUS,kBAAkB;EAC1BC,UAAU;IACRC,IAAIT;IACJQ,UAAU;MACRE,OAAO,CAACC,SAAkCC,SAAAA;AACxC,gBAAQA,MAAAA;UACN,KAAK;AACH,mBAAO;cAAEH,IAAIE,QAAQE,OAAOJ;cAAIK,OAAQH,QAAQE,OAAeE;cAAOC,MAAML,QAAQE;YAAO;UAC7F,KAAK;AACH,mBAAOF,QAAQE;UACjB,KAAK;AACH,mBAAOF;QACX;MACF;IACF;EACF;AACF,CAAA,GACAb,UAAUmB,gBAAgB;EAAEC,QAAQ;IAACf;;AAAe,CAAA,GACpDL,UAAUqB,iBAAiB;EAAEC,UAAUrB;AAAa,CAAA,GACpDD,UAAUuB,sBAAsB;EAAEnB;AAAa,CAAA,GAC/CL,OAAOyB,IAAI;AAGb,IAAA,sBAAelB;",
|
|
6
|
+
"names": ["Plugin", "AppPlugin", "ReactSurface", "SECTION_IDENTIFIER", "meta", "translations", "StackViewType", "StackPlugin", "define", "pipe", "addMetadataModule", "metadata", "id", "parse", "section", "type", "object", "label", "title", "data", "addSchemaModule", "schema", "addSurfaceModule", "activate", "addTranslationsModule", "make"]
|
|
7
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import { Plugin } from "@dxos/app-framework";
|
|
5
|
+
|
|
3
6
|
// src/meta.ts
|
|
4
7
|
import { trim } from "@dxos/util";
|
|
5
8
|
var SECTION_IDENTIFIER = "org.dxos.type.stackSection";
|
|
@@ -16,77 +19,8 @@ var meta = {
|
|
|
16
19
|
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-stack"
|
|
17
20
|
};
|
|
18
21
|
|
|
19
|
-
// src/
|
|
20
|
-
|
|
21
|
-
import { AppPlugin } from "@dxos/app-toolkit";
|
|
22
|
-
import { ReactSurface } from "#capabilities";
|
|
23
|
-
import { SECTION_IDENTIFIER as SECTION_IDENTIFIER2, meta as meta3 } from "#meta";
|
|
24
|
-
import { StackViewType } from "#types";
|
|
25
|
-
|
|
26
|
-
// src/translations.ts
|
|
27
|
-
import { translations as stackTranslations } from "@dxos/react-ui-stack";
|
|
28
|
-
import { meta as meta2 } from "#meta";
|
|
29
|
-
var translations = [
|
|
30
|
-
{
|
|
31
|
-
"en-US": {
|
|
32
|
-
[meta2.id]: {
|
|
33
|
-
"plugin.name": "Stacks",
|
|
34
|
-
"settings.title": "Stack settings",
|
|
35
|
-
"settings.separation.label": "Separate sections",
|
|
36
|
-
"settings.separation.description": "Add visual dividers between sections in stacks.",
|
|
37
|
-
"add-section-beforeAll-dialog.title": "Add a section to the start",
|
|
38
|
-
"add-section-afterAll-dialog.title": "Add a section to the end",
|
|
39
|
-
"add-section-before-dialog.title": "Add a section",
|
|
40
|
-
"add-section-after-dialog.title": "Add a section",
|
|
41
|
-
"add-section-input.placeholder": "Find the type of section to add",
|
|
42
|
-
"upload-file.label": "Add file",
|
|
43
|
-
"add-section.label": "Add section",
|
|
44
|
-
"empty-stack.message": "Drag objects into the stack.",
|
|
45
|
-
"remove-section.label": "Delete",
|
|
46
|
-
"navigate-to-section.label": "Navigate to object",
|
|
47
|
-
"untitled-section.title": "Untitled section",
|
|
48
|
-
"add-section-before.label": "Add before",
|
|
49
|
-
"add-section-after.label": "Add after",
|
|
50
|
-
"expand.label": "Expand",
|
|
51
|
-
"collapse.label": "Collapse",
|
|
52
|
-
"open-chat-thread.label": "Open chat thread",
|
|
53
|
-
"drag-handle.label": "Press space or enter to begin dragging this object."
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
...stackTranslations
|
|
58
|
-
];
|
|
59
|
-
|
|
60
|
-
// src/StackPlugin.ts
|
|
61
|
-
var StackPlugin = Plugin.define(meta3).pipe(AppPlugin.addMetadataModule({
|
|
62
|
-
metadata: {
|
|
63
|
-
id: SECTION_IDENTIFIER2,
|
|
64
|
-
metadata: {
|
|
65
|
-
parse: (section, type) => {
|
|
66
|
-
switch (type) {
|
|
67
|
-
case "node":
|
|
68
|
-
return {
|
|
69
|
-
id: section.object.id,
|
|
70
|
-
label: section.object.title,
|
|
71
|
-
data: section.object
|
|
72
|
-
};
|
|
73
|
-
case "object":
|
|
74
|
-
return section.object;
|
|
75
|
-
case "view-object":
|
|
76
|
-
return section;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}), AppPlugin.addSchemaModule({
|
|
82
|
-
schema: [
|
|
83
|
-
StackViewType
|
|
84
|
-
]
|
|
85
|
-
}), AppPlugin.addSurfaceModule({
|
|
86
|
-
activate: ReactSurface
|
|
87
|
-
}), AppPlugin.addTranslationsModule({
|
|
88
|
-
translations
|
|
89
|
-
}), Plugin.make);
|
|
22
|
+
// src/index.ts
|
|
23
|
+
var StackPlugin = Plugin.lazy(meta, () => import("./StackPlugin-5PFRZ364.mjs"));
|
|
90
24
|
export {
|
|
91
25
|
SECTION_IDENTIFIER,
|
|
92
26
|
StackPlugin,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const SECTION_IDENTIFIER = 'org.dxos.type.stackSection';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.stack',\n // TODO(wittjosiah): Prevents \"stacks\" language from being exposed to users in settings panel.\n // Conside renaming this to the collection plugin and trying to factor more collections logic from the space plugin.\n name: 'Collections',\n description: trim`\n Organize and view curated collections of workspace objects in customizable layouts.\n Group related items together and manage collections with sections and filtering.\n `,\n icon: 'ph--stack-simple--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-stack',\n};\n"
|
|
5
|
-
"mappings": ";;;
|
|
6
|
-
"names": ["trim", "SECTION_IDENTIFIER", "meta", "id", "name", "description", "
|
|
3
|
+
"sources": ["../../../src/index.ts", "../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const StackPlugin = Plugin.lazy(meta, () => import('./StackPlugin'));\n\nexport * from './meta';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const SECTION_IDENTIFIER = 'org.dxos.type.stackSection';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.stack',\n // TODO(wittjosiah): Prevents \"stacks\" language from being exposed to users in settings panel.\n // Conside renaming this to the collection plugin and trying to factor more collections logic from the space plugin.\n name: 'Collections',\n description: trim`\n Organize and view curated collections of workspace objects in customizable layouts.\n Group related items together and manage collections with sections and filtering.\n `,\n icon: 'ph--stack-simple--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-stack',\n};\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,qBAAqB;AAE3B,IAAMC,OAAoB;EAC/BC,IAAI;;;EAGJC,MAAM;EACNC,aAAaL;;;;EAIbM,MAAM;EACNC,QAAQ;AACV;;;ADZO,IAAMC,cAAcC,OAAOC,KAAKC,MAAM,MAAM,OAAO,4BAAA,CAAA;",
|
|
6
|
+
"names": ["Plugin", "trim", "SECTION_IDENTIFIER", "meta", "id", "name", "description", "icon", "source", "StackPlugin", "Plugin", "lazy", "meta"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/meta.ts":{"bytes":
|
|
1
|
+
{"inputs":{"src/meta.ts":{"bytes":2443,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/StackPlugin.ts":{"bytes":4332,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":948,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/StackPlugin.ts","kind":"dynamic-import","original":"./StackPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":4619,"imports":[{"path":"@dxos/react-ui-stack/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/stack.ts":{"bytes":3664,"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":409,"imports":[{"path":"src/types/stack.ts","kind":"import-statement","original":"./stack"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1541},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/StackPlugin-5PFRZ364.mjs","kind":"dynamic-import"}],"exports":["SECTION_IDENTIFIER","StackPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":127},"src/meta.ts":{"bytesInOutput":695}},"bytes":1055},"dist/lib/node-esm/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2141},"dist/lib/node-esm/translations.mjs":{"imports":[{"path":"@dxos/react-ui-stack/translations","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":1404}},"bytes":1589},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1758},"dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"effect/Schema","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["SectionSchema","StackViewType"],"entryPoint":"src/types/index.ts","inputs":{"src/types/stack.ts":{"bytesInOutput":575},"src/types/index.ts":{"bytesInOutput":0}},"bytes":770},"dist/lib/node-esm/StackPlugin-5PFRZ364.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2213},"dist/lib/node-esm/StackPlugin-5PFRZ364.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#types","kind":"import-statement","external":true}],"exports":["StackPlugin","default"],"entryPoint":"src/StackPlugin.ts","inputs":{"src/StackPlugin.ts":{"bytesInOutput":1018}},"bytes":1243}}}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/translations.ts
|
|
4
|
+
import { translations as stackTranslations } from "@dxos/react-ui-stack/translations";
|
|
5
|
+
import { meta } from "#meta";
|
|
6
|
+
var translations = [
|
|
7
|
+
{
|
|
8
|
+
"en-US": {
|
|
9
|
+
[meta.id]: {
|
|
10
|
+
"plugin.name": "Stacks",
|
|
11
|
+
"settings.title": "Stack settings",
|
|
12
|
+
"settings.separation.label": "Separate sections",
|
|
13
|
+
"settings.separation.description": "Add visual dividers between sections in stacks.",
|
|
14
|
+
"add-section-beforeAll-dialog.title": "Add a section to the start",
|
|
15
|
+
"add-section-afterAll-dialog.title": "Add a section to the end",
|
|
16
|
+
"add-section-before-dialog.title": "Add a section",
|
|
17
|
+
"add-section-after-dialog.title": "Add a section",
|
|
18
|
+
"add-section-input.placeholder": "Find the type of section to add",
|
|
19
|
+
"upload-file.label": "Add file",
|
|
20
|
+
"add-section.label": "Add section",
|
|
21
|
+
"empty-stack.message": "Drag objects into the stack.",
|
|
22
|
+
"remove-section.label": "Delete",
|
|
23
|
+
"navigate-to-section.label": "Navigate to object",
|
|
24
|
+
"untitled-section.title": "Untitled section",
|
|
25
|
+
"add-section-before.label": "Add before",
|
|
26
|
+
"add-section-after.label": "Add after",
|
|
27
|
+
"expand.label": "Expand",
|
|
28
|
+
"collapse.label": "Collapse",
|
|
29
|
+
"open-chat-thread.label": "Open chat thread",
|
|
30
|
+
"drag-handle.label": "Press space or enter to begin dragging this object."
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
...stackTranslations
|
|
35
|
+
];
|
|
36
|
+
export {
|
|
37
|
+
translations
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as stackTranslations } from '@dxos/react-ui-stack/translations';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Stacks',\n 'settings.title': 'Stack settings',\n 'settings.separation.label': 'Separate sections',\n 'settings.separation.description': 'Add visual dividers between sections in stacks.',\n 'add-section-beforeAll-dialog.title': 'Add a section to the start',\n 'add-section-afterAll-dialog.title': 'Add a section to the end',\n 'add-section-before-dialog.title': 'Add a section',\n 'add-section-after-dialog.title': 'Add a section',\n 'add-section-input.placeholder': 'Find the type of section to add',\n 'upload-file.label': 'Add file',\n 'add-section.label': 'Add section',\n 'empty-stack.message': 'Drag objects into the stack.',\n 'remove-section.label': 'Delete',\n 'navigate-to-section.label': 'Navigate to object',\n 'untitled-section.title': 'Untitled section',\n 'add-section-before.label': 'Add before',\n 'add-section-after.label': 'Add after',\n 'expand.label': 'Expand',\n 'collapse.label': 'Collapse',\n 'open-chat-thread.label': 'Open chat thread',\n 'drag-handle.label': 'Press space or enter to begin dragging this object.',\n },\n },\n },\n ...stackTranslations,\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;AAKA,SAASA,gBAAgBC,yBAAyB;AAElD,SAASC,YAAY;AAEd,IAAMF,eAAe;EAC1B;IACE,SAAS;MACP,CAACE,KAAKC,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,6BAA6B;QAC7B,mCAAmC;QACnC,sCAAsC;QACtC,qCAAqC;QACrC,mCAAmC;QACnC,kCAAkC;QAClC,iCAAiC;QACjC,qBAAqB;QACrB,qBAAqB;QACrB,uBAAuB;QACvB,wBAAwB;QACxB,6BAA6B;QAC7B,0BAA0B;QAC1B,4BAA4B;QAC5B,2BAA2B;QAC3B,gBAAgB;QAChB,kBAAkB;QAClB,0BAA0B;QAC1B,qBAAqB;MACvB;IACF;EACF;KACGF;;",
|
|
6
|
+
"names": ["translations", "stackTranslations", "meta", "id"]
|
|
7
|
+
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/types/stack.ts"],
|
|
4
4
|
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Type } from '@dxos/echo';\n\n// All section metadata needs to be optional/have defaults.\n// Any objects added to the collection will start with the section defaults.\n// If an object is removed from the collection without removing the section metadata this is fine.\n// Stack components should clean-up the superfluous data on future edits.\n\nexport const SectionSchema = Schema.Struct({\n height: Schema.optional(Schema.Number),\n // Space for data that isn't stack-specific but is specific to this view instance.\n // e.g. cover/fill for an image\n custom: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n});\n\n// TODO(wittjosiah): This needs a relation to be connected to a stack.\nexport const StackViewType = Schema.Struct({\n sections: Schema.Record({ key: Schema.String, value: SectionSchema }),\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.stackView',\n version: '0.1.0',\n }),\n);\n\nexport interface StackViewType extends Schema.Schema.Type<typeof StackViewType> {}\n"],
|
|
5
|
-
"mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAY;AAOd,IAAMC,gBAAuBC,cAAO;EACzCC,QAAeC,gBAAgBC,aAAM;;;EAGrCC,QAAeF,gBAAgBG,cAAO;IAAEC,KAAYC;IAAQC,OAAcC;EAAI,CAAA,CAAA;AAChF,CAAA;AAGO,IAAMC,gBAAuBV,cAAO;EACzCW,UAAiBN,cAAO;IAAEC,KAAYC;IAAQC,OAAOT;EAAc,CAAA;AACrE,CAAA,EAAGa,
|
|
6
|
-
"names": ["Schema", "Type", "SectionSchema", "Struct", "height", "optional", "Number", "custom", "Record", "key", "String", "value", "Any", "StackViewType", "sections", "pipe", "
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAY;AAOd,IAAMC,gBAAuBC,cAAO;EACzCC,QAAeC,gBAAgBC,aAAM;;;EAGrCC,QAAeF,gBAAgBG,cAAO;IAAEC,KAAYC;IAAQC,OAAcC;EAAI,CAAA,CAAA;AAChF,CAAA;AAGO,IAAMC,gBAAuBV,cAAO;EACzCW,UAAiBN,cAAO;IAAEC,KAAYC;IAAQC,OAAOT;EAAc,CAAA;AACrE,CAAA,EAAGa,KACDd,KAAKe,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,CAAA;",
|
|
6
|
+
"names": ["Schema", "Type", "SectionSchema", "Struct", "height", "optional", "Number", "custom", "Record", "key", "String", "value", "Any", "StackViewType", "sections", "pipe", "object", "typename", "version"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackPlugin.d.ts","sourceRoot":"","sources":["../../../src/StackPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"StackPlugin.d.ts","sourceRoot":"","sources":["../../../src/StackPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAS7C,eAAO,MAAM,WAAW,4BAsBvB,CAAC;eAEa,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export declare const CaretDownUp: ({ children, ...props }: ComponentPropsWithoutRef<
|
|
2
|
+
export declare const CaretDownUp: ({ children, ...props }: ComponentPropsWithoutRef<'svg'>) => React.JSX.Element;
|
|
3
3
|
//# sourceMappingURL=CaretDownUp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaretDownUp.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackSection/CaretDownUp.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAE7D,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"CaretDownUp.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackSection/CaretDownUp.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAE7D,eAAO,MAAM,WAAW,2BAA4B,wBAAwB,CAAC,KAAK,CAAC,sBAuBlF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackSection/StackSection.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StackSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackSection/StackSection.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAUjD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAO/C,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY,8CAKtB,iBAAiB,sBA6FnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackSettings/StackSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"StackSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/StackSettings/StackSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,eAAO,MAAM,aAAa,iBAAkB;IAAE,QAAQ,EAAE,kBAAkB,CAAA;CAAE,sBAe3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/StackContainer/StackContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAIrD,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AA8B7C,KAAK,mBAAmB,GAAG,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAEhF,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"StackContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/StackContainer/StackContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAIrD,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AA8B7C,KAAK,mBAAmB,GAAG,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAEhF,eAAO,MAAM,cAAc,0CAA2C,mBAAmB,sBA6HxF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,WAAW,4BAAmD,CAAC;AAE5E,cAAc,QAAQ,CAAC"}
|