@dxos/plugin-stack 0.6.12-main.ed7cda7 → 0.6.12-staging.0b4bb48

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.
Files changed (42) hide show
  1. package/dist/lib/browser/{StackMain-MT6W47OT.mjs → StackMain-XRQRNZ4I.mjs} +4 -4
  2. package/dist/lib/browser/StackMain-XRQRNZ4I.mjs.map +7 -0
  3. package/dist/lib/{node-esm/chunk-T42IEBEL.mjs → browser/chunk-AYDYMPJK.mjs} +5 -4
  4. package/dist/lib/browser/chunk-AYDYMPJK.mjs.map +7 -0
  5. package/dist/lib/browser/index.mjs +5 -3
  6. package/dist/lib/browser/index.mjs.map +3 -3
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/browser/meta.mjs +1 -1
  9. package/dist/lib/node/{StackMain-P5DO4ND6.cjs → StackMain-XJGYFDDN.cjs} +12 -12
  10. package/dist/lib/node/StackMain-XJGYFDDN.cjs.map +7 -0
  11. package/dist/lib/node/{chunk-PGL7XDNJ.cjs → chunk-I42JKRXR.cjs} +18 -5
  12. package/dist/lib/node/chunk-I42JKRXR.cjs.map +7 -0
  13. package/dist/lib/node/index.cjs +41 -39
  14. package/dist/lib/node/index.cjs.map +3 -3
  15. package/dist/lib/node/meta.cjs +4 -4
  16. package/dist/lib/node/meta.cjs.map +1 -1
  17. package/dist/lib/node/meta.json +1 -1
  18. package/dist/types/src/StackPlugin.d.ts.map +1 -1
  19. package/dist/types/src/components/StackMain.d.ts.map +1 -1
  20. package/dist/types/src/meta.d.ts +4 -1
  21. package/dist/types/src/meta.d.ts.map +1 -1
  22. package/package.json +27 -30
  23. package/src/StackPlugin.tsx +3 -1
  24. package/src/components/StackMain.tsx +3 -4
  25. package/src/meta.tsx +5 -1
  26. package/dist/lib/browser/StackMain-MT6W47OT.mjs.map +0 -7
  27. package/dist/lib/browser/chunk-H4O4KKLZ.mjs +0 -16
  28. package/dist/lib/browser/chunk-H4O4KKLZ.mjs.map +0 -7
  29. package/dist/lib/node/StackMain-P5DO4ND6.cjs.map +0 -7
  30. package/dist/lib/node/chunk-PGL7XDNJ.cjs.map +0 -7
  31. package/dist/lib/node-esm/StackMain-QLAHERGZ.mjs +0 -277
  32. package/dist/lib/node-esm/StackMain-QLAHERGZ.mjs.map +0 -7
  33. package/dist/lib/node-esm/chunk-4ULAI3BI.mjs +0 -23
  34. package/dist/lib/node-esm/chunk-4ULAI3BI.mjs.map +0 -7
  35. package/dist/lib/node-esm/chunk-T42IEBEL.mjs.map +0 -7
  36. package/dist/lib/node-esm/index.mjs +0 -284
  37. package/dist/lib/node-esm/index.mjs.map +0 -7
  38. package/dist/lib/node-esm/meta.json +0 -1
  39. package/dist/lib/node-esm/meta.mjs +0 -12
  40. package/dist/lib/node-esm/meta.mjs.map +0 -7
  41. package/dist/lib/node-esm/types/index.mjs +0 -10
  42. package/dist/lib/node-esm/types/index.mjs.map +0 -7
@@ -1,284 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- SECTION_IDENTIFIER,
4
- STACK_PLUGIN,
5
- meta_default
6
- } from "./chunk-T42IEBEL.mjs";
7
- import {
8
- SectionSchema,
9
- StackViewType
10
- } from "./chunk-4ULAI3BI.mjs";
11
-
12
- // packages/plugins/plugin-stack/src/StackPlugin.tsx
13
- import React4 from "react";
14
- import { create as create2 } from "@dxos/echo-schema";
15
- import { LocalStorageStore } from "@dxos/local-storage";
16
- import { CollectionType } from "@dxos/plugin-space/types";
17
- import { Main } from "@dxos/react-ui";
18
- import { baseSurface, topbarBlockPaddingStart, bottombarBlockPaddingEnd } from "@dxos/react-ui-theme";
19
-
20
- // packages/plugins/plugin-stack/src/components/index.ts
21
- import React3 from "react";
22
-
23
- // packages/plugins/plugin-stack/src/components/StackSettings.tsx
24
- import React from "react";
25
- import { SettingsValue } from "@dxos/plugin-settings";
26
- import { Input, useTranslation } from "@dxos/react-ui";
27
- var StackSettings = ({ settings }) => {
28
- const { t } = useTranslation(STACK_PLUGIN);
29
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SettingsValue, {
30
- label: t("settings separation label")
31
- }, /* @__PURE__ */ React.createElement(Input.Switch, {
32
- checked: settings.separation,
33
- onCheckedChange: (checked) => settings.separation = !!checked
34
- })));
35
- };
36
-
37
- // packages/plugins/plugin-stack/src/components/AddSectionDialog.tsx
38
- import { FilePlus } from "@phosphor-icons/react";
39
- import React2, { useCallback, useRef, useState } from "react";
40
- import { usePlugin, useIntent, LayoutAction, useResolvePlugin, parseFileManagerPlugin } from "@dxos/app-framework";
41
- import { create } from "@dxos/echo-schema";
42
- import { FileType } from "@dxos/plugin-ipfs/types";
43
- import { getSpace } from "@dxos/react-client/echo";
44
- import { Dialog, toLocalizedString, useTranslation as useTranslation2 } from "@dxos/react-ui";
45
- import { Path } from "@dxos/react-ui-mosaic";
46
- import { SearchList } from "@dxos/react-ui-searchlist";
47
- import { getSize, mx } from "@dxos/react-ui-theme";
48
- import { nonNullable } from "@dxos/util";
49
- var dataHasAddSectionDialogProps = (data) => {
50
- return "subject" in data && typeof data.subject === "object" && !!data.subject && "position" in data.subject && typeof data.subject.position === "string" && "collection" in data.subject;
51
- };
52
- var AddSectionDialog = ({ path, position, collection }) => {
53
- const { t } = useTranslation2(STACK_PLUGIN);
54
- const stackPlugin = usePlugin(STACK_PLUGIN);
55
- const fileManagerPlugin = useResolvePlugin(parseFileManagerPlugin);
56
- const fileRef = useRef(null);
57
- const { dispatch } = useIntent();
58
- const space = getSpace(collection);
59
- const [pending, setPending] = useState(false);
60
- const [uploadError, setUploadError] = useState();
61
- const handleAdd = useCallback((sectionObject) => {
62
- const index = position === "beforeAll" ? 0 : position === "afterAll" ? collection.objects.length : collection.objects.filter(nonNullable).findIndex((section) => section.id === Path.last(path));
63
- collection.objects.splice(index + (position === "after" ? 1 : 0), 0, sectionObject);
64
- const stack = collection.views[StackViewType.typename];
65
- if (stack) {
66
- stack.sections[sectionObject.id] = {};
67
- }
68
- setPending(false);
69
- void dispatch?.({
70
- action: LayoutAction.SET_LAYOUT,
71
- data: {
72
- element: "dialog",
73
- state: false
74
- }
75
- });
76
- }, [
77
- collection,
78
- path,
79
- position,
80
- dispatch
81
- ]);
82
- const handleFileUpload = fileManagerPlugin?.provides.file.upload && space ? async (file) => {
83
- const filename = file.name.split(".")[0];
84
- try {
85
- const info = await fileManagerPlugin.provides.file.upload?.(file, space);
86
- if (info) {
87
- const obj = create(FileType, {
88
- type: file.type,
89
- name: filename,
90
- filename,
91
- cid: info.cid
92
- });
93
- handleAdd(obj);
94
- }
95
- } catch (err) {
96
- setUploadError(err);
97
- }
98
- } : void 0;
99
- return /* @__PURE__ */ React2.createElement(Dialog.Content, null, /* @__PURE__ */ React2.createElement(Dialog.Title, null, t(`add section ${position} dialog title`)), /* @__PURE__ */ React2.createElement(SearchList.Root, {
100
- label: t("add section input placeholder")
101
- }, /* @__PURE__ */ React2.createElement(SearchList.Input, {
102
- placeholder: t("add section input placeholder"),
103
- classNames: "pli-3",
104
- disabled: pending
105
- }), /* @__PURE__ */ React2.createElement(SearchList.Content, {
106
- classNames: "min-bs-24 bs-fit max-bs-64 overflow-auto",
107
- ...pending && {
108
- inert: "true"
109
- }
110
- }, stackPlugin?.provides?.stack.creators?.map(({ id, icon: Icon, label: propsLabel, testId, intent }) => {
111
- const label = toLocalizedString(propsLabel, t);
112
- return /* @__PURE__ */ React2.createElement(SearchList.Item, {
113
- value: label,
114
- key: id,
115
- onSelect: async () => {
116
- setPending(true);
117
- const { data: nextSection } = await dispatch({
118
- ...intent,
119
- data: {
120
- space
121
- }
122
- }) ?? {};
123
- handleAdd(nextSection);
124
- },
125
- classNames: "flex items-center gap-2 pli-2",
126
- "data-testid": testId
127
- }, Icon && /* @__PURE__ */ React2.createElement(Icon, {
128
- className: mx(getSize(4), "shrink-0")
129
- }), /* @__PURE__ */ React2.createElement("span", {
130
- className: "grow truncate"
131
- }, label));
132
- }), handleFileUpload && /* @__PURE__ */ React2.createElement(SearchList.Item, {
133
- value: t("upload file label"),
134
- classNames: "flex items-center gap-2 pli-2",
135
- onSelect: () => fileRef.current?.click()
136
- }, /* @__PURE__ */ React2.createElement(FilePlus, null), /* @__PURE__ */ React2.createElement("span", {
137
- className: "grow truncate"
138
- }, t("upload file label"))), uploadError && /* @__PURE__ */ React2.createElement("div", {
139
- className: "text-error-500"
140
- }, uploadError.message))), handleFileUpload && /* @__PURE__ */ React2.createElement("input", {
141
- type: "file",
142
- className: "sr-only",
143
- ref: fileRef,
144
- onChange: ({ target: { files } }) => files && handleFileUpload(files[0])
145
- }));
146
- };
147
-
148
- // packages/plugins/plugin-stack/src/components/index.ts
149
- var StackMain = React3.lazy(() => import("./StackMain-QLAHERGZ.mjs"));
150
-
151
- // packages/plugins/plugin-stack/src/translations.ts
152
- import { translations as stackTranslations } from "@dxos/react-ui-stack";
153
- var translations_default = [
154
- {
155
- "en-US": {
156
- [STACK_PLUGIN]: {
157
- "plugin name": "Stacks",
158
- "settings separation label": "Separate sections",
159
- "add section beforeAll dialog title": "Add a section to the start",
160
- "add section afterAll dialog title": "Add a section to the end",
161
- "add section before dialog title": "Add a section",
162
- "add section after dialog title": "Add a section",
163
- "add section input placeholder": "Find the type of section to add",
164
- "upload file label": "Add file",
165
- "add section label": "Add section"
166
- }
167
- }
168
- },
169
- ...stackTranslations
170
- ];
171
-
172
- // packages/plugins/plugin-stack/src/StackPlugin.tsx
173
- var StackPlugin = () => {
174
- const settings = new LocalStorageStore(STACK_PLUGIN, {
175
- separation: true
176
- });
177
- const stackState = create2({
178
- creators: []
179
- });
180
- return {
181
- meta: meta_default,
182
- ready: async (plugins) => {
183
- settings.prop({
184
- key: "separation",
185
- type: LocalStorageStore.bool()
186
- });
187
- for (const plugin of plugins) {
188
- if (plugin.meta.id === STACK_PLUGIN) {
189
- continue;
190
- }
191
- if (Array.isArray(plugin.provides?.stack?.creators)) {
192
- stackState.creators.push(...plugin.provides.stack.creators ?? []);
193
- }
194
- }
195
- },
196
- provides: {
197
- settings: settings.values,
198
- metadata: {
199
- records: {
200
- [StackViewType.typename]: {
201
- placeholder: [
202
- "stack title placeholder",
203
- {
204
- ns: STACK_PLUGIN
205
- }
206
- ],
207
- icon: "ph--stack-simple--regular"
208
- },
209
- [SECTION_IDENTIFIER]: {
210
- parse: (section, type) => {
211
- switch (type) {
212
- case "node":
213
- return {
214
- id: section.object.id,
215
- label: section.object.title,
216
- data: section.object
217
- };
218
- case "object":
219
- return section.object;
220
- case "view-object":
221
- return section;
222
- }
223
- }
224
- }
225
- }
226
- },
227
- translations: translations_default,
228
- echo: {
229
- schema: [
230
- StackViewType
231
- ]
232
- },
233
- surface: {
234
- component: ({ data, role }) => {
235
- switch (data.component) {
236
- case `${STACK_PLUGIN}/AddSectionDialog`:
237
- return dataHasAddSectionDialogProps(data) ? /* @__PURE__ */ React4.createElement(AddSectionDialog, data.subject) : null;
238
- }
239
- const primary = data.active ?? data.object;
240
- switch (role) {
241
- case "main":
242
- return primary instanceof CollectionType ? /* @__PURE__ */ React4.createElement(Main.Content, {
243
- bounce: true,
244
- classNames: [
245
- baseSurface,
246
- topbarBlockPaddingStart,
247
- bottombarBlockPaddingEnd
248
- ]
249
- }, /* @__PURE__ */ React4.createElement(StackMain, {
250
- collection: primary,
251
- separation: settings.values.separation
252
- })) : null;
253
- case "article":
254
- return primary instanceof CollectionType ? /* @__PURE__ */ React4.createElement("div", {
255
- role: "none",
256
- className: "row-span-2 overflow-auto"
257
- }, /* @__PURE__ */ React4.createElement(StackMain, {
258
- collection: primary,
259
- separation: settings.values.separation
260
- })) : null;
261
- case "settings": {
262
- return data.plugin === meta_default.id ? /* @__PURE__ */ React4.createElement(StackSettings, {
263
- settings: settings.values
264
- }) : null;
265
- }
266
- default:
267
- return null;
268
- }
269
- }
270
- },
271
- stack: stackState
272
- }
273
- };
274
- };
275
-
276
- // packages/plugins/plugin-stack/src/index.ts
277
- var src_default = StackPlugin;
278
- export {
279
- SectionSchema,
280
- StackPlugin,
281
- StackViewType,
282
- src_default as default
283
- };
284
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/StackPlugin.tsx", "../../../src/components/index.ts", "../../../src/components/StackSettings.tsx", "../../../src/components/AddSectionDialog.tsx", "../../../src/translations.ts", "../../../src/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Plugin, type PluginDefinition } from '@dxos/app-framework';\nimport { create } from '@dxos/echo-schema';\nimport { type EchoReactiveObject } from '@dxos/echo-schema';\nimport { LocalStorageStore } from '@dxos/local-storage';\nimport { CollectionType } from '@dxos/plugin-space/types';\nimport { Main } from '@dxos/react-ui';\nimport { baseSurface, topbarBlockPaddingStart, bottombarBlockPaddingEnd } from '@dxos/react-ui-theme';\n\nimport { StackMain, StackSettings, AddSectionDialog, dataHasAddSectionDialogProps } from './components';\nimport meta, { SECTION_IDENTIFIER, STACK_PLUGIN } from './meta';\nimport translations from './translations';\nimport { StackViewType } from './types';\nimport { type StackPluginProvides, type StackProvides, type StackState, type StackSettingsProps } from './types';\n\nexport const StackPlugin = (): PluginDefinition<StackPluginProvides> => {\n const settings = new LocalStorageStore<StackSettingsProps>(STACK_PLUGIN, { separation: true });\n const stackState = create<StackState>({ creators: [] });\n\n return {\n meta,\n ready: async (plugins) => {\n settings.prop({ key: 'separation', type: LocalStorageStore.bool() });\n\n for (const plugin of plugins) {\n if (plugin.meta.id === STACK_PLUGIN) {\n continue;\n }\n\n if (Array.isArray((plugin as Plugin<StackProvides>).provides?.stack?.creators)) {\n stackState.creators.push(...((plugin as Plugin<StackProvides>).provides.stack.creators ?? []));\n }\n }\n },\n provides: {\n settings: settings.values,\n metadata: {\n records: {\n [StackViewType.typename]: {\n placeholder: ['stack title placeholder', { ns: STACK_PLUGIN }],\n icon: 'ph--stack-simple--regular',\n },\n [SECTION_IDENTIFIER]: {\n parse: (section: { object: EchoReactiveObject<any> }, type: string) => {\n switch (type) {\n case 'node':\n // TODO(wittjosiah): Remove cast.\n return { id: section.object.id, label: section.object.title, data: section.object };\n case 'object':\n return section.object;\n case 'view-object':\n return section;\n }\n },\n },\n },\n },\n translations,\n echo: {\n schema: [StackViewType],\n },\n surface: {\n component: ({ data, role }) => {\n switch (data.component) {\n case `${STACK_PLUGIN}/AddSectionDialog`:\n return dataHasAddSectionDialogProps(data) ? <AddSectionDialog {...data.subject} /> : null;\n }\n\n const primary = data.active ?? data.object;\n switch (role) {\n case 'main':\n return primary instanceof CollectionType ? (\n <Main.Content bounce classNames={[baseSurface, topbarBlockPaddingStart, bottombarBlockPaddingEnd]}>\n <StackMain collection={primary} separation={settings.values.separation} />\n </Main.Content>\n ) : null;\n case 'article':\n return primary instanceof CollectionType ? (\n <div role='none' className='row-span-2 overflow-auto'>\n <StackMain collection={primary} separation={settings.values.separation} />\n </div>\n ) : null;\n case 'settings': {\n return data.plugin === meta.id ? <StackSettings settings={settings.values} /> : null;\n }\n default:\n return null;\n }\n },\n },\n stack: stackState,\n },\n };\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\n// Lazily load components for content surfaces.\nexport const StackMain = React.lazy(() => import('./StackMain'));\n\nexport * from './StackSettings';\nexport * from './AddSectionDialog';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { SettingsValue } from '@dxos/plugin-settings';\nimport { Input, useTranslation } from '@dxos/react-ui';\n\nimport { STACK_PLUGIN } from '../meta';\nimport { type StackSettingsProps } from '../types';\n\nexport const StackSettings = ({ settings }: { settings: StackSettingsProps }) => {\n const { t } = useTranslation(STACK_PLUGIN);\n\n return (\n <>\n <SettingsValue label={t('settings separation label')}>\n <Input.Switch checked={settings.separation} onCheckedChange={(checked) => (settings.separation = !!checked)} />\n </SettingsValue>\n </>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { FilePlus } from '@phosphor-icons/react';\nimport React, { useCallback, useRef, useState } from 'react';\n\nimport { usePlugin, useIntent, LayoutAction, useResolvePlugin, parseFileManagerPlugin } from '@dxos/app-framework';\nimport { type EchoReactiveObject, create } from '@dxos/echo-schema';\nimport { FileType } from '@dxos/plugin-ipfs/types';\nimport { type CollectionType } from '@dxos/plugin-space/types';\nimport { getSpace } from '@dxos/react-client/echo';\nimport { Dialog, toLocalizedString, useTranslation } from '@dxos/react-ui';\nimport { Path } from '@dxos/react-ui-mosaic';\nimport { SearchList } from '@dxos/react-ui-searchlist';\nimport { type AddSectionPosition } from '@dxos/react-ui-stack';\nimport { getSize, mx } from '@dxos/react-ui-theme';\nimport { nonNullable } from '@dxos/util';\n\nimport { STACK_PLUGIN } from '../meta';\nimport { StackViewType, type StackPluginProvides } from '../types';\n\ntype AddSectionDialogProps = { path?: string; position: AddSectionPosition; collection: CollectionType };\n\nexport const dataHasAddSectionDialogProps = (data: any): data is { subject: AddSectionDialogProps } => {\n return (\n 'subject' in data &&\n typeof data.subject === 'object' &&\n !!data.subject &&\n 'position' in data.subject &&\n typeof data.subject.position === 'string' &&\n 'collection' in data.subject\n );\n};\n\nexport const AddSectionDialog = ({ path, position, collection }: AddSectionDialogProps) => {\n const { t } = useTranslation(STACK_PLUGIN);\n const stackPlugin = usePlugin<StackPluginProvides>(STACK_PLUGIN);\n const fileManagerPlugin = useResolvePlugin(parseFileManagerPlugin);\n const fileRef = useRef<HTMLInputElement | null>(null);\n const { dispatch } = useIntent();\n const space = getSpace(collection);\n const [pending, setPending] = useState<boolean>(false);\n const [uploadError, setUploadError] = useState<Error | undefined>();\n\n const handleAdd = useCallback(\n (sectionObject: EchoReactiveObject<any>) => {\n const index =\n position === 'beforeAll'\n ? 0\n : position === 'afterAll'\n ? collection.objects.length\n : collection.objects.filter(nonNullable).findIndex((section) => section.id === Path.last(path!));\n\n collection.objects.splice(index + (position === 'after' ? 1 : 0), 0, sectionObject);\n const stack = collection.views[StackViewType.typename];\n if (stack) {\n stack.sections[sectionObject.id] = {};\n }\n setPending(false);\n void dispatch?.({ action: LayoutAction.SET_LAYOUT, data: { element: 'dialog', state: false } });\n },\n [collection, path, position, dispatch],\n );\n\n const handleFileUpload =\n fileManagerPlugin?.provides.file.upload && space\n ? async (file: File) => {\n const filename = file.name.split('.')[0];\n try {\n const info = await fileManagerPlugin.provides.file.upload?.(file, space);\n if (info) {\n const obj = create(FileType, { type: file.type, name: filename, filename, cid: info.cid });\n handleAdd(obj);\n }\n } catch (err: any) {\n setUploadError(err);\n }\n }\n : undefined;\n\n return (\n <Dialog.Content>\n <Dialog.Title>{t(`add section ${position} dialog title`)}</Dialog.Title>\n <SearchList.Root label={t('add section input placeholder')}>\n <SearchList.Input placeholder={t('add section input placeholder')} classNames='pli-3' disabled={pending} />\n <SearchList.Content classNames='min-bs-24 bs-fit max-bs-64 overflow-auto' {...(pending && { inert: 'true' })}>\n {stackPlugin?.provides?.stack.creators?.map(({ id, icon: Icon, label: propsLabel, testId, intent }) => {\n const label = toLocalizedString(propsLabel, t);\n return (\n <SearchList.Item\n value={label}\n key={id}\n onSelect={async () => {\n setPending(true);\n const { data: nextSection } = (await dispatch({ ...intent, data: { space } })) ?? {};\n handleAdd(nextSection);\n }}\n classNames='flex items-center gap-2 pli-2'\n data-testid={testId}\n >\n {Icon && <Icon className={mx(getSize(4), 'shrink-0')} />}\n <span className='grow truncate'>{label}</span>\n </SearchList.Item>\n );\n })}\n {handleFileUpload && (\n <SearchList.Item\n value={t('upload file label')}\n classNames='flex items-center gap-2 pli-2'\n onSelect={() => fileRef.current?.click()}\n >\n <FilePlus />\n <span className='grow truncate'>{t('upload file label')}</span>\n </SearchList.Item>\n )}\n {uploadError && <div className='text-error-500'>{uploadError.message}</div>}\n </SearchList.Content>\n </SearchList.Root>\n {handleFileUpload && (\n <input\n type='file'\n className='sr-only'\n ref={fileRef}\n onChange={({ target: { files } }) => files && handleFileUpload(files[0])}\n />\n )}\n </Dialog.Content>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { translations as stackTranslations } from '@dxos/react-ui-stack';\n\nimport { STACK_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [STACK_PLUGIN]: {\n 'plugin name': 'Stacks',\n 'settings separation label': 'Separate sections',\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 },\n },\n },\n ...stackTranslations,\n];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { StackPlugin } from './StackPlugin';\n\nexport default StackPlugin;\n\nexport * from './types';\n\nexport * from './StackPlugin';\n"],
5
- "mappings": ";;;;;;;;;;;;AAIA,OAAOA,YAAW;AAGlB,SAASC,UAAAA,eAAc;AAEvB,SAASC,yBAAyB;AAClC,SAASC,sBAAsB;AAC/B,SAASC,YAAY;AACrB,SAASC,aAAaC,yBAAyBC,gCAAgC;;;ACR/E,OAAOC,YAAW;;;ACAlB,OAAOC,WAAW;AAElB,SAASC,qBAAqB;AAC9B,SAASC,OAAOC,sBAAsB;AAK/B,IAAMC,gBAAgB,CAAC,EAAEC,SAAQ,MAAoC;AAC1E,QAAM,EAAEC,EAAC,IAAKC,eAAeC,YAAAA;AAE7B,SACE,sBAAA,cAAA,MAAA,UAAA,MACE,sBAAA,cAACC,eAAAA;IAAcC,OAAOJ,EAAE,2BAAA;KACtB,sBAAA,cAACK,MAAMC,QAAM;IAACC,SAASR,SAASS;IAAYC,iBAAiB,CAACF,YAAaR,SAASS,aAAa,CAAC,CAACD;;AAI3G;;;AClBA,SAASG,gBAAgB;AACzB,OAAOC,UAASC,aAAaC,QAAQC,gBAAgB;AAErD,SAASC,WAAWC,WAAWC,cAAcC,kBAAkBC,8BAA8B;AAC7F,SAAkCC,cAAc;AAChD,SAASC,gBAAgB;AAEzB,SAASC,gBAAgB;AACzB,SAASC,QAAQC,mBAAmBC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AAKC,SAAO;gBAACC,QAAAA;gBAAOC,YAAY;kBAACC;kBAAaC;kBAAyBC;;iBACtE,gBAAAZ,OAAA,cAACa,WAAAA;gBAAUC,YAAYX;gBAAS3C,YAAYH,SAASqB,OAAOlB;oBAE5D;YACN,KAAK;AACH,qBAAO2C,mBAAmBE,iBACxB,gBAAAL,OAAA,cAACe,OAAAA;gBAAIjB,MAAK;gBAAOkB,WAAU;iBACzB,gBAAAhB,OAAA,cAACa,WAAAA;gBAAUC,YAAYX;gBAAS3C,YAAYH,SAASqB,OAAOlB;oBAE5D;YACN,KAAK,YAAY;AACf,qBAAOgC,KAAKrB,WAAWP,aAAKQ,KAAK,gBAAA4B,OAAA,cAACiB,eAAAA;gBAAc5D,UAAUA,SAASqB;mBAAa;YAClF;YACA;AACE,qBAAO;UACX;QACF;MACF;MACAF,OAAOf;IACT;EACF;AACF;;;AK5FA,IAAA,cAAeyD;",
6
- "names": ["React", "create", "LocalStorageStore", "CollectionType", "Main", "baseSurface", "topbarBlockPaddingStart", "bottombarBlockPaddingEnd", "React", "React", "SettingsValue", "Input", "useTranslation", "StackSettings", "settings", "t", "useTranslation", "STACK_PLUGIN", "SettingsValue", "label", "Input", "Switch", "checked", "separation", "onCheckedChange", "FilePlus", "React", "useCallback", "useRef", "useState", "usePlugin", "useIntent", "LayoutAction", "useResolvePlugin", "parseFileManagerPlugin", "create", "FileType", "getSpace", "Dialog", "toLocalizedString", "useTranslation", "Path", "SearchList", "getSize", "mx", "nonNullable", "dataHasAddSectionDialogProps", "data", "subject", "position", "AddSectionDialog", "path", "collection", "t", "useTranslation", "STACK_PLUGIN", "stackPlugin", "usePlugin", "fileManagerPlugin", "useResolvePlugin", "parseFileManagerPlugin", "fileRef", "useRef", "dispatch", "useIntent", "space", "getSpace", "pending", "setPending", "useState", "uploadError", "setUploadError", "handleAdd", "useCallback", "sectionObject", "index", "objects", "length", "filter", "nonNullable", "findIndex", "section", "id", "Path", "last", "splice", "stack", "views", "StackViewType", "typename", "sections", "action", "LayoutAction", "SET_LAYOUT", "element", "state", "handleFileUpload", "provides", "file", "upload", "filename", "name", "split", "info", "obj", "create", "FileType", "type", "cid", "err", "undefined", "React", "Dialog", "Content", "Title", "SearchList", "Root", "label", "Input", "placeholder", "classNames", "disabled", "inert", "creators", "map", "icon", "Icon", "propsLabel", "testId", "intent", "toLocalizedString", "Item", "value", "key", "onSelect", "nextSection", "data-testid", "className", "mx", "getSize", "span", "current", "click", "FilePlus", "div", "message", "input", "ref", "onChange", "target", "files", "StackMain", "React", "lazy", "translations", "stackTranslations", "STACK_PLUGIN", "stackTranslations", "StackPlugin", "settings", "LocalStorageStore", "STACK_PLUGIN", "separation", "stackState", "create", "creators", "meta", "ready", "plugins", "prop", "key", "type", "bool", "plugin", "id", "Array", "isArray", "provides", "stack", "push", "values", "metadata", "records", "StackViewType", "typename", "placeholder", "ns", "icon", "SECTION_IDENTIFIER", "parse", "section", "object", "label", "title", "data", "translations", "echo", "schema", "surface", "component", "role", "dataHasAddSectionDialogProps", "React", "AddSectionDialog", "subject", "primary", "active", "CollectionType", "Main", "Content", "bounce", "classNames", "baseSurface", "topbarBlockPaddingStart", "bottombarBlockPaddingEnd", "StackMain", "collection", "div", "className", "StackSettings", "StackPlugin"]
7
- }
@@ -1 +0,0 @@
1
- {"inputs":{"packages/plugins/plugin-stack/src/meta.tsx":{"bytes":1422,"imports":[],"format":"esm"},"packages/plugins/plugin-stack/src/components/StackSettings.tsx":{"bytes":2578,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-stack/src/meta.tsx","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-stack/src/types/stack.ts":{"bytes":3077,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/plugin-stack/src/types/types.ts":{"bytes":2031,"imports":[],"format":"esm"},"packages/plugins/plugin-stack/src/types/index.ts":{"bytes":581,"imports":[{"path":"packages/plugins/plugin-stack/src/types/stack.ts","kind":"import-statement","original":"./stack"},{"path":"packages/plugins/plugin-stack/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-stack/src/components/AddSectionDialog.tsx":{"bytes":18438,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-ipfs/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-stack/src/meta.tsx","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-stack/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-stack/src/components/AddSection.tsx":{"bytes":10461,"imports":[{"path":"@fluentui/react-tabster","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-stack/src/meta.tsx","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-stack/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-stack/src/components/StackMain.tsx":{"bytes":26729,"imports":[{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-stack/src/components/AddSection.tsx","kind":"import-statement","original":"./AddSection"},{"path":"packages/plugins/plugin-stack/src/meta.tsx","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-stack/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-stack/src/components/index.ts":{"bytes":1140,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-stack/src/components/StackSettings.tsx","kind":"import-statement","original":"./StackSettings"},{"path":"packages/plugins/plugin-stack/src/components/AddSectionDialog.tsx","kind":"import-statement","original":"./AddSectionDialog"},{"path":"packages/plugins/plugin-stack/src/components/StackMain.tsx","kind":"dynamic-import","original":"./StackMain"}],"format":"esm"},"packages/plugins/plugin-stack/src/translations.ts":{"bytes":2731,"imports":[{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-stack/src/meta.tsx","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-stack/src/StackPlugin.tsx":{"bytes":14243,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-stack/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-stack/src/meta.tsx","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-stack/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/plugin-stack/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/plugin-stack/src/index.ts":{"bytes":854,"imports":[{"path":"packages/plugins/plugin-stack/src/StackPlugin.tsx","kind":"import-statement","original":"./StackPlugin"},{"path":"packages/plugins/plugin-stack/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/plugin-stack/src/StackPlugin.tsx","kind":"import-statement","original":"./StackPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-stack/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":19551},"packages/plugins/plugin-stack/dist/lib/node-esm/index.mjs":{"imports":[{"path":"packages/plugins/plugin-stack/dist/lib/node-esm/chunk-T42IEBEL.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-stack/dist/lib/node-esm/chunk-4ULAI3BI.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/types","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/plugin-settings","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-ipfs/types","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-searchlist","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-stack/dist/lib/node-esm/StackMain-QLAHERGZ.mjs","kind":"dynamic-import"},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true}],"exports":["SectionSchema","StackPlugin","StackViewType","default"],"entryPoint":"packages/plugins/plugin-stack/src/index.ts","inputs":{"packages/plugins/plugin-stack/src/StackPlugin.tsx":{"bytesInOutput":3542},"packages/plugins/plugin-stack/src/components/index.ts":{"bytesInOutput":99},"packages/plugins/plugin-stack/src/components/StackSettings.tsx":{"bytesInOutput":554},"packages/plugins/plugin-stack/src/components/AddSectionDialog.tsx":{"bytesInOutput":4643},"packages/plugins/plugin-stack/src/translations.ts":{"bytesInOutput":710},"packages/plugins/plugin-stack/src/index.ts":{"bytesInOutput":31}},"bytes":10420},"packages/plugins/plugin-stack/dist/lib/node-esm/meta.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-stack/dist/lib/node-esm/meta.mjs":{"imports":[{"path":"packages/plugins/plugin-stack/dist/lib/node-esm/chunk-T42IEBEL.mjs","kind":"import-statement"}],"exports":["SECTION_IDENTIFIER","STACK_PLUGIN","default"],"entryPoint":"packages/plugins/plugin-stack/src/meta.tsx","inputs":{},"bytes":295},"packages/plugins/plugin-stack/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-stack/dist/lib/node-esm/types/index.mjs":{"imports":[{"path":"packages/plugins/plugin-stack/dist/lib/node-esm/chunk-4ULAI3BI.mjs","kind":"import-statement"}],"exports":["SectionSchema","StackViewType"],"entryPoint":"packages/plugins/plugin-stack/src/types/index.ts","inputs":{},"bytes":246},"packages/plugins/plugin-stack/dist/lib/node-esm/StackMain-QLAHERGZ.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":19299},"packages/plugins/plugin-stack/dist/lib/node-esm/StackMain-QLAHERGZ.mjs":{"imports":[{"path":"packages/plugins/plugin-stack/dist/lib/node-esm/chunk-T42IEBEL.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-stack/dist/lib/node-esm/chunk-4ULAI3BI.mjs","kind":"import-statement"},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"@dxos/plugin-space","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-mosaic","kind":"import-statement","external":true},{"path":"@dxos/react-ui-stack","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@fluentui/react-tabster","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-stack/src/components/StackMain.tsx","inputs":{"packages/plugins/plugin-stack/src/components/StackMain.tsx":{"bytesInOutput":6274},"packages/plugins/plugin-stack/src/components/AddSection.tsx":{"bytesInOutput":2546}},"bytes":9326},"packages/plugins/plugin-stack/dist/lib/node-esm/chunk-T42IEBEL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":634},"packages/plugins/plugin-stack/dist/lib/node-esm/chunk-T42IEBEL.mjs":{"imports":[],"exports":["SECTION_IDENTIFIER","STACK_PLUGIN","meta_default"],"inputs":{"packages/plugins/plugin-stack/src/meta.tsx":{"bytesInOutput":299}},"bytes":548},"packages/plugins/plugin-stack/dist/lib/node-esm/chunk-4ULAI3BI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1477},"packages/plugins/plugin-stack/dist/lib/node-esm/chunk-4ULAI3BI.mjs":{"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["SectionSchema","StackViewType"],"inputs":{"packages/plugins/plugin-stack/src/types/stack.ts":{"bytesInOutput":463},"packages/plugins/plugin-stack/src/types/index.ts":{"bytesInOutput":0}},"bytes":698}}}
@@ -1,12 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- SECTION_IDENTIFIER,
4
- STACK_PLUGIN,
5
- meta_default
6
- } from "./chunk-T42IEBEL.mjs";
7
- export {
8
- SECTION_IDENTIFIER,
9
- STACK_PLUGIN,
10
- meta_default as default
11
- };
12
- //# sourceMappingURL=meta.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,10 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- SectionSchema,
4
- StackViewType
5
- } from "../chunk-4ULAI3BI.mjs";
6
- export {
7
- SectionSchema,
8
- StackViewType
9
- };
10
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }