@dxos/plugin-kanban 0.6.8-main.046e6cf

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 (74) hide show
  1. package/LICENSE +8 -0
  2. package/README.md +15 -0
  3. package/dist/lib/browser/KanbanMain-OVUL576T.mjs +444 -0
  4. package/dist/lib/browser/KanbanMain-OVUL576T.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-DMDAZVOX.mjs +21 -0
  6. package/dist/lib/browser/chunk-DMDAZVOX.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-LEPZRV4E.mjs +47 -0
  8. package/dist/lib/browser/chunk-LEPZRV4E.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +176 -0
  10. package/dist/lib/browser/index.mjs.map +7 -0
  11. package/dist/lib/browser/meta.json +1 -0
  12. package/dist/lib/browser/meta.mjs +9 -0
  13. package/dist/lib/browser/meta.mjs.map +7 -0
  14. package/dist/lib/browser/types/index.mjs +14 -0
  15. package/dist/lib/browser/types/index.mjs.map +7 -0
  16. package/dist/lib/node/KanbanMain-RSRZLAM5.cjs +453 -0
  17. package/dist/lib/node/KanbanMain-RSRZLAM5.cjs.map +7 -0
  18. package/dist/lib/node/chunk-CJTEPA5Z.cjs +54 -0
  19. package/dist/lib/node/chunk-CJTEPA5Z.cjs.map +7 -0
  20. package/dist/lib/node/chunk-RYK4NJNG.cjs +67 -0
  21. package/dist/lib/node/chunk-RYK4NJNG.cjs.map +7 -0
  22. package/dist/lib/node/index.cjs +192 -0
  23. package/dist/lib/node/index.cjs.map +7 -0
  24. package/dist/lib/node/meta.cjs +30 -0
  25. package/dist/lib/node/meta.cjs.map +7 -0
  26. package/dist/lib/node/meta.json +1 -0
  27. package/dist/lib/node/types/index.cjs +36 -0
  28. package/dist/lib/node/types/index.cjs.map +7 -0
  29. package/dist/types/src/KanbanPlugin.d.ts +4 -0
  30. package/dist/types/src/KanbanPlugin.d.ts.map +1 -0
  31. package/dist/types/src/components/KanbanBoard.d.ts +6 -0
  32. package/dist/types/src/components/KanbanBoard.d.ts.map +1 -0
  33. package/dist/types/src/components/KanbanCard.d.ts +9 -0
  34. package/dist/types/src/components/KanbanCard.d.ts.map +1 -0
  35. package/dist/types/src/components/KanbanColumn.d.ts +14 -0
  36. package/dist/types/src/components/KanbanColumn.d.ts.map +1 -0
  37. package/dist/types/src/components/KanbanMain.d.ts +7 -0
  38. package/dist/types/src/components/KanbanMain.d.ts.map +1 -0
  39. package/dist/types/src/components/index.d.ts +5 -0
  40. package/dist/types/src/components/index.d.ts.map +1 -0
  41. package/dist/types/src/components/util.d.ts +7 -0
  42. package/dist/types/src/components/util.d.ts.map +1 -0
  43. package/dist/types/src/index.d.ts +4 -0
  44. package/dist/types/src/index.d.ts.map +1 -0
  45. package/dist/types/src/meta.d.ts +15 -0
  46. package/dist/types/src/meta.d.ts.map +1 -0
  47. package/dist/types/src/sanity.test.d.ts +2 -0
  48. package/dist/types/src/sanity.test.d.ts.map +1 -0
  49. package/dist/types/src/stories/testing.d.ts +19 -0
  50. package/dist/types/src/stories/testing.d.ts.map +1 -0
  51. package/dist/types/src/translations.d.ts +20 -0
  52. package/dist/types/src/translations.d.ts.map +1 -0
  53. package/dist/types/src/types/index.d.ts +3 -0
  54. package/dist/types/src/types/index.d.ts.map +1 -0
  55. package/dist/types/src/types/kanban.d.ts +76 -0
  56. package/dist/types/src/types/kanban.d.ts.map +1 -0
  57. package/dist/types/src/types/types.d.ts +18 -0
  58. package/dist/types/src/types/types.d.ts.map +1 -0
  59. package/package.json +85 -0
  60. package/src/KanbanPlugin.tsx +112 -0
  61. package/src/components/KanbanBoard.tsx +195 -0
  62. package/src/components/KanbanCard.tsx +82 -0
  63. package/src/components/KanbanColumn.tsx +143 -0
  64. package/src/components/KanbanMain.tsx +37 -0
  65. package/src/components/index.ts +8 -0
  66. package/src/components/util.ts +38 -0
  67. package/src/index.ts +9 -0
  68. package/src/meta.tsx +19 -0
  69. package/src/sanity.test.ts +13 -0
  70. package/src/stories/testing.ts +29 -0
  71. package/src/translations.ts +26 -0
  72. package/src/types/index.ts +6 -0
  73. package/src/types/kanban.ts +22 -0
  74. package/src/types/types.ts +57 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/kanban.ts", "../../../src/types/types.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Expando, ref, S, TypedObject } from '@dxos/echo-schema';\n\nexport class KanbanItemType extends TypedObject({ typename: 'dxos.org/type/KanbanItem', version: '0.1.0' })({\n object: S.optional(ref(Expando)),\n name: S.optional(S.String),\n index: S.optional(S.String),\n}) {}\n\nexport class KanbanColumnType extends TypedObject({ typename: 'dxos.org/type/KanbanColumn', version: '0.1.0' })({\n name: S.optional(S.String),\n index: S.optional(S.String),\n items: S.mutable(S.Array(ref(KanbanItemType))),\n}) {}\n\nexport class KanbanType extends TypedObject({ typename: 'dxos.org/type/Kanban', version: '0.1.0' })({\n name: S.optional(S.String),\n columns: S.mutable(S.Array(ref(KanbanColumnType))),\n}) {}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport type {\n GraphBuilderProvides,\n IntentResolverProvides,\n MetadataRecordsProvides,\n SurfaceProvides,\n TranslationsProvides,\n} from '@dxos/app-framework';\nimport { type SchemaProvides } from '@dxos/plugin-client';\n\nimport { type KanbanColumnType, type KanbanItemType, type KanbanType } from './kanban';\nimport { KANBAN_PLUGIN } from '../meta';\n\n/**\n * Kanban data model.\n * A Kanban board is a collection of columns, each of which contains a collection of items.\n * The layout of columns and items is controlled by models.\n * The underlying data model may be represented by direct object relationships\n * (e.g., a column object containing an array of ordered items) or projections constructed\n * by the model (e.g., a query of items based on metadata within a column object).\n */\n\nconst KANBAN_ACTION = `${KANBAN_PLUGIN}/action`;\n\nexport enum KanbanAction {\n CREATE = `${KANBAN_ACTION}/create`,\n}\n\nexport type KanbanPluginProvides = SurfaceProvides &\n IntentResolverProvides &\n GraphBuilderProvides &\n MetadataRecordsProvides &\n TranslationsProvides &\n SchemaProvides;\n\n// TODO(burdon): Undo?\n// TODO(burdon): Typescript types (replace proto with annotations?)\n// TODO(burdon): Should pure components depend on ECHO? Relationship between ECHO object/array and Observable.\n// TODO(burdon): Can the plugin configure the object based on the data? E.g., how are the models constructed?\n// TODO(burdon): Create models. Simple first based on actual data.\n// Model is always a projection since the dragging state is tentative.\n\n// TODO(burdon): Extend model for moving items (in and across columns).\nexport interface KanbanModel {\n root: KanbanType;\n createColumn(): KanbanColumnType;\n createItem(column: KanbanColumnType): KanbanItemType;\n}\n\nexport type Location = {\n column: KanbanColumnType;\n item?: KanbanItemType;\n idx?: number;\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,yBAA6C;AAEtC,IAAMA,iBAAN,kBAA6BC,gCAAY;EAAEC,UAAU;EAA4BC,SAAS;AAAQ,CAAA,EAAG;EAC1GC,QAAQC,qBAAEC,aAASC,wBAAIC,0BAAAA,CAAAA;EACvBC,MAAMJ,qBAAEC,SAASD,qBAAEK,MAAM;EACzBC,OAAON,qBAAEC,SAASD,qBAAEK,MAAM;AAC5B,CAAA,EAAA;AAAI;AAEG,IAAME,mBAAN,kBAA+BX,gCAAY;EAAEC,UAAU;EAA8BC,SAAS;AAAQ,CAAA,EAAG;EAC9GM,MAAMJ,qBAAEC,SAASD,qBAAEK,MAAM;EACzBC,OAAON,qBAAEC,SAASD,qBAAEK,MAAM;EAC1BG,OAAOR,qBAAES,QAAQT,qBAAEU,UAAMR,wBAAIP,cAAAA,CAAAA,CAAAA;AAC/B,CAAA,EAAA;AAAI;AAEG,IAAMgB,aAAN,kBAAyBf,gCAAY;EAAEC,UAAU;EAAwBC,SAAS;AAAQ,CAAA,EAAG;EAClGM,MAAMJ,qBAAEC,SAASD,qBAAEK,MAAM;EACzBO,SAASZ,qBAAES,QAAQT,qBAAEU,UAAMR,wBAAIK,gBAAAA,CAAAA,CAAAA;AACjC,CAAA,EAAA;AAAI;ACIJ,IAAMM,gBAAgB,GAAGC,mCAAAA;;UAEbC,eAAAA;0CACD,GAAGF,aAAAA,SAAsB,IAAA;GADxBE,iBAAAA,eAAAA,CAAAA,EAAAA;",
6
+ "names": ["KanbanItemType", "TypedObject", "typename", "version", "object", "S", "optional", "ref", "Expando", "name", "String", "index", "KanbanColumnType", "items", "mutable", "Array", "KanbanType", "columns", "KANBAN_ACTION", "KANBAN_PLUGIN", "KanbanAction"]
7
+ }
@@ -0,0 +1,192 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var node_exports = {};
30
+ __export(node_exports, {
31
+ KanbanPlugin: () => KanbanPlugin,
32
+ default: () => src_default
33
+ });
34
+ module.exports = __toCommonJS(node_exports);
35
+ var import_chunk_RYK4NJNG = require("./chunk-RYK4NJNG.cjs");
36
+ var import_chunk_CJTEPA5Z = require("./chunk-CJTEPA5Z.cjs");
37
+ var import_react = require("@phosphor-icons/react");
38
+ var import_react2 = __toESM(require("react"));
39
+ var import_app_framework = require("@dxos/app-framework");
40
+ var import_echo_schema = require("@dxos/echo-schema");
41
+ var import_plugin_client = require("@dxos/plugin-client");
42
+ var import_plugin_graph = require("@dxos/plugin-graph");
43
+ var import_plugin_space = require("@dxos/plugin-space");
44
+ var import_echo = require("@dxos/react-client/echo");
45
+ var import_react3 = __toESM(require("react"));
46
+ var KanbanMain = import_react3.default.lazy(() => import("./KanbanMain-RSRZLAM5.cjs"));
47
+ var translations_default = [
48
+ {
49
+ "en-US": {
50
+ [import_chunk_CJTEPA5Z.KANBAN_PLUGIN]: {
51
+ "plugin name": "Kanban",
52
+ "kanban title label": "Title",
53
+ "kanban title placeholder": "New kanban",
54
+ "column title label": "Column title",
55
+ "column title placeholder": "New column",
56
+ "item title label": "Item title",
57
+ "item title placeholder": "New item",
58
+ "add column label": "Add column",
59
+ "add item label": "Add item",
60
+ "delete column label": "Delete column",
61
+ "delete item label": "Delete item",
62
+ "create kanban label": "Create kanban"
63
+ }
64
+ }
65
+ }
66
+ ];
67
+ var KanbanPlugin = () => {
68
+ return {
69
+ meta: import_chunk_CJTEPA5Z.meta_default,
70
+ provides: {
71
+ metadata: {
72
+ records: {
73
+ [import_chunk_RYK4NJNG.KanbanType.typename]: {
74
+ placeholder: [
75
+ "kanban title placeholder",
76
+ {
77
+ ns: import_chunk_CJTEPA5Z.KANBAN_PLUGIN
78
+ }
79
+ ],
80
+ icon: (props) => /* @__PURE__ */ import_react2.default.createElement(import_react.Kanban, props),
81
+ iconSymbol: "ph--kanban--regular",
82
+ // TODO(wittjosiah): Move out of metadata.
83
+ loadReferences: (kanban) => (0, import_echo.loadObjectReferences)(kanban, (kanban2) => kanban2.columns)
84
+ },
85
+ [import_chunk_RYK4NJNG.KanbanColumnType.typename]: {
86
+ // TODO(wittjosiah): Move out of metadata.
87
+ loadReferences: (column) => (0, import_echo.loadObjectReferences)(column, (column2) => column2.items)
88
+ },
89
+ [import_chunk_RYK4NJNG.KanbanItemType.typename]: {
90
+ // TODO(wittjosiah): Move out of metadata.
91
+ loadReferences: (item) => []
92
+ }
93
+ }
94
+ },
95
+ echo: {
96
+ schema: [
97
+ import_chunk_RYK4NJNG.KanbanType,
98
+ import_chunk_RYK4NJNG.KanbanColumnType,
99
+ import_chunk_RYK4NJNG.KanbanItemType
100
+ ]
101
+ },
102
+ translations: translations_default,
103
+ graph: {
104
+ builder: (plugins) => {
105
+ const client = (0, import_app_framework.resolvePlugin)(plugins, import_plugin_client.parseClientPlugin)?.provides.client;
106
+ const dispatch = (0, import_app_framework.resolvePlugin)(plugins, import_app_framework.parseIntentPlugin)?.provides.intent.dispatch;
107
+ if (!client || !dispatch) {
108
+ return [];
109
+ }
110
+ return (0, import_plugin_graph.createExtension)({
111
+ id: import_chunk_RYK4NJNG.KanbanAction.CREATE,
112
+ filter: (node) => (0, import_plugin_graph.isActionGroup)(node) && node.id.startsWith(import_plugin_space.SpaceAction.ADD_OBJECT),
113
+ actions: ({ node }) => {
114
+ const id = node.id.split("/").at(-1);
115
+ const [spaceId, objectId] = id?.split(":") ?? [];
116
+ const space = client.spaces.get().find((space2) => space2.id === spaceId);
117
+ const object = objectId && space?.db.getObjectById(objectId);
118
+ const target = objectId ? object : space;
119
+ if (!target) {
120
+ return;
121
+ }
122
+ return [
123
+ {
124
+ id: `${import_chunk_CJTEPA5Z.KANBAN_PLUGIN}/create/${node.id}`,
125
+ data: async () => {
126
+ await dispatch([
127
+ {
128
+ plugin: import_chunk_CJTEPA5Z.KANBAN_PLUGIN,
129
+ action: import_chunk_RYK4NJNG.KanbanAction.CREATE
130
+ },
131
+ {
132
+ action: import_plugin_space.SpaceAction.ADD_OBJECT,
133
+ data: {
134
+ target
135
+ }
136
+ },
137
+ {
138
+ action: import_app_framework.NavigationAction.OPEN
139
+ }
140
+ ]);
141
+ },
142
+ properties: {
143
+ label: [
144
+ "create kanban label",
145
+ {
146
+ ns: import_chunk_CJTEPA5Z.KANBAN_PLUGIN
147
+ }
148
+ ],
149
+ icon: (props) => /* @__PURE__ */ import_react2.default.createElement(import_react.Kanban, props),
150
+ iconSymbol: "ph--kanban--regular",
151
+ testId: "kanbanPlugin.createObject"
152
+ }
153
+ }
154
+ ];
155
+ }
156
+ });
157
+ }
158
+ },
159
+ surface: {
160
+ component: ({ data, role }) => {
161
+ switch (role) {
162
+ case "main":
163
+ return data.active instanceof import_chunk_RYK4NJNG.KanbanType ? /* @__PURE__ */ import_react2.default.createElement(KanbanMain, {
164
+ kanban: data.active
165
+ }) : null;
166
+ default:
167
+ return null;
168
+ }
169
+ }
170
+ },
171
+ intent: {
172
+ resolver: (intent) => {
173
+ switch (intent.action) {
174
+ case import_chunk_RYK4NJNG.KanbanAction.CREATE: {
175
+ return {
176
+ data: (0, import_echo_schema.create)(import_chunk_RYK4NJNG.KanbanType, {
177
+ columns: []
178
+ })
179
+ };
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }
185
+ };
186
+ };
187
+ var src_default = KanbanPlugin;
188
+ // Annotate the CommonJS export names for ESM import in node:
189
+ 0 && (module.exports = {
190
+ KanbanPlugin
191
+ });
192
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/KanbanPlugin.tsx", "../../../src/components/index.ts", "../../../src/translations.ts", "../../../src/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type IconProps, Kanban } from '@phosphor-icons/react';\nimport React from 'react';\n\nimport { resolvePlugin, type PluginDefinition, parseIntentPlugin, NavigationAction } from '@dxos/app-framework';\nimport { create } from '@dxos/echo-schema';\nimport { parseClientPlugin } from '@dxos/plugin-client';\nimport { type ActionGroup, createExtension, isActionGroup } from '@dxos/plugin-graph';\nimport { SpaceAction } from '@dxos/plugin-space';\nimport { loadObjectReferences } from '@dxos/react-client/echo';\n\nimport { KanbanMain } from './components';\nimport meta, { KANBAN_PLUGIN } from './meta';\nimport translations from './translations';\nimport { KanbanColumnType, KanbanItemType, KanbanType } from './types';\nimport { KanbanAction, type KanbanPluginProvides } from './types';\n\nexport const KanbanPlugin = (): PluginDefinition<KanbanPluginProvides> => {\n return {\n meta,\n provides: {\n metadata: {\n records: {\n [KanbanType.typename]: {\n placeholder: ['kanban title placeholder', { ns: KANBAN_PLUGIN }],\n icon: (props: IconProps) => <Kanban {...props} />,\n iconSymbol: 'ph--kanban--regular',\n // TODO(wittjosiah): Move out of metadata.\n loadReferences: (kanban: KanbanType) => loadObjectReferences(kanban, (kanban) => kanban.columns),\n },\n [KanbanColumnType.typename]: {\n // TODO(wittjosiah): Move out of metadata.\n loadReferences: (column: KanbanColumnType) => loadObjectReferences(column, (column) => column.items),\n },\n [KanbanItemType.typename]: {\n // TODO(wittjosiah): Move out of metadata.\n loadReferences: (item: KanbanItemType) => [], // loadObjectReferences(item, (item) => item.object),\n },\n },\n },\n echo: {\n schema: [KanbanType, KanbanColumnType, KanbanItemType],\n },\n translations,\n graph: {\n builder: (plugins) => {\n const client = resolvePlugin(plugins, parseClientPlugin)?.provides.client;\n const dispatch = resolvePlugin(plugins, parseIntentPlugin)?.provides.intent.dispatch;\n if (!client || !dispatch) {\n return [];\n }\n\n return createExtension({\n id: KanbanAction.CREATE,\n filter: (node): node is ActionGroup => isActionGroup(node) && node.id.startsWith(SpaceAction.ADD_OBJECT),\n actions: ({ node }) => {\n const id = node.id.split('/').at(-1);\n const [spaceId, objectId] = id?.split(':') ?? [];\n const space = client.spaces.get().find((space) => space.id === spaceId);\n const object = objectId && space?.db.getObjectById(objectId);\n const target = objectId ? object : space;\n if (!target) {\n return;\n }\n\n return [\n {\n id: `${KANBAN_PLUGIN}/create/${node.id}`,\n data: async () => {\n await dispatch([\n { plugin: KANBAN_PLUGIN, action: KanbanAction.CREATE },\n { action: SpaceAction.ADD_OBJECT, data: { target } },\n { action: NavigationAction.OPEN },\n ]);\n },\n properties: {\n label: ['create kanban label', { ns: KANBAN_PLUGIN }],\n icon: (props: IconProps) => <Kanban {...props} />,\n iconSymbol: 'ph--kanban--regular',\n testId: 'kanbanPlugin.createObject',\n },\n },\n ];\n },\n });\n },\n },\n surface: {\n component: ({ data, role }) => {\n switch (role) {\n case 'main':\n return data.active instanceof KanbanType ? <KanbanMain kanban={data.active} /> : null;\n default:\n return null;\n }\n },\n },\n intent: {\n resolver: (intent) => {\n switch (intent.action) {\n case KanbanAction.CREATE: {\n return { data: create(KanbanType, { columns: [] }) };\n }\n }\n },\n },\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 KanbanMain = React.lazy(() => import('./KanbanMain'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { KANBAN_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [KANBAN_PLUGIN]: {\n 'plugin name': 'Kanban',\n 'kanban title label': 'Title',\n 'kanban title placeholder': 'New kanban',\n 'column title label': 'Column title',\n 'column title placeholder': 'New column',\n 'item title label': 'Item title',\n 'item title placeholder': 'New item',\n 'add column label': 'Add column',\n 'add item label': 'Add item',\n 'delete column label': 'Delete column',\n 'delete item label': 'Delete item',\n 'create kanban label': 'Create kanban',\n },\n },\n },\n];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { KanbanPlugin } from './KanbanPlugin';\n\nexport default KanbanPlugin;\n\nexport * from './KanbanPlugin';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAuC;AACvC,IAAAA,gBAAkB;AAElB,2BAA0F;AAC1F,yBAAuB;AACvB,2BAAkC;AAClC,0BAAiE;AACjE,0BAA4B;AAC5B,kBAAqC;ACRrC,IAAAA,gBAAkB;AAGX,IAAMC,aAAaC,cAAAA,QAAMC,KAAK,MAAM,OAAO,2BAAA,CAAA;ACDlD,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,mCAAAA,GAAgB;QACf,eAAe;QACf,sBAAsB;QACtB,4BAA4B;QAC5B,sBAAsB;QACtB,4BAA4B;QAC5B,oBAAoB;QACpB,0BAA0B;QAC1B,oBAAoB;QACpB,kBAAkB;QAClB,uBAAuB;QACvB,qBAAqB;QACrB,uBAAuB;MACzB;IACF;EACF;;AFJK,IAAMC,eAAe,MAAA;AAC1B,SAAO;IACLC,MAAAA;IACAC,UAAU;MACRC,UAAU;QACRC,SAAS;UACP,CAACC,iCAAWC,QAAQ,GAAG;YACrBC,aAAa;cAAC;cAA4B;gBAAEC,IAAIT;cAAc;;YAC9DU,MAAM,CAACC,UAAqBb,8BAAAA,QAAA,cAACc,qBAAWD,KAAAA;YACxCE,YAAY;;YAEZC,gBAAgB,CAACC,eAAuBC,kCAAqBD,QAAQ,CAACA,YAAWA,QAAOE,OAAO;UACjG;UACA,CAACC,uCAAiBX,QAAQ,GAAG;;YAE3BO,gBAAgB,CAACK,eAA6BH,kCAAqBG,QAAQ,CAACA,YAAWA,QAAOC,KAAK;UACrG;UACA,CAACC,qCAAed,QAAQ,GAAG;;YAEzBO,gBAAgB,CAACQ,SAAyB,CAAA;UAC5C;QACF;MACF;MACAC,MAAM;QACJC,QAAQ;UAAClB;UAAYY;UAAkBG;;MACzC;MACAI,cAAAA;MACAC,OAAO;QACLC,SAAS,CAACC,YAAAA;AACR,gBAAMC,aAASC,oCAAcF,SAASG,sCAAAA,GAAoB5B,SAAS0B;AACnE,gBAAMG,eAAWF,oCAAcF,SAASK,sCAAAA,GAAoB9B,SAAS+B,OAAOF;AAC5E,cAAI,CAACH,UAAU,CAACG,UAAU;AACxB,mBAAO,CAAA;UACT;AAEA,qBAAOG,qCAAgB;YACrBC,IAAIC,mCAAaC;YACjBC,QAAQ,CAACC,aAA8BC,mCAAcD,IAAAA,KAASA,KAAKJ,GAAGM,WAAWC,gCAAYC,UAAU;YACvGC,SAAS,CAAC,EAAEL,KAAI,MAAE;AAChB,oBAAMJ,KAAKI,KAAKJ,GAAGU,MAAM,GAAA,EAAKC,GAAG,EAAC;AAClC,oBAAM,CAACC,SAASC,QAAAA,IAAYb,IAAIU,MAAM,GAAA,KAAQ,CAAA;AAC9C,oBAAMI,QAAQrB,OAAOsB,OAAOC,IAAG,EAAGC,KAAK,CAACH,WAAUA,OAAMd,OAAOY,OAAAA;AAC/D,oBAAMM,SAASL,YAAYC,OAAOK,GAAGC,cAAcP,QAAAA;AACnD,oBAAMQ,SAASR,WAAWK,SAASJ;AACnC,kBAAI,CAACO,QAAQ;AACX;cACF;AAEA,qBAAO;gBACL;kBACErB,IAAI,GAAGpC,mCAAAA,WAAwBwC,KAAKJ,EAAE;kBACtCsB,MAAM,YAAA;AACJ,0BAAM1B,SAAS;sBACb;wBAAE2B,QAAQ3D;wBAAe4D,QAAQvB,mCAAaC;sBAAO;sBACrD;wBAAEsB,QAAQjB,gCAAYC;wBAAYc,MAAM;0BAAED;wBAAO;sBAAE;sBACnD;wBAAEG,QAAQC,sCAAiBC;sBAAK;qBACjC;kBACH;kBACAC,YAAY;oBACVC,OAAO;sBAAC;sBAAuB;wBAAEvD,IAAIT;sBAAc;;oBACnDU,MAAM,CAACC,UAAqBb,8BAAAA,QAAA,cAACc,qBAAWD,KAAAA;oBACxCE,YAAY;oBACZoD,QAAQ;kBACV;gBACF;;YAEJ;UACF,CAAA;QACF;MACF;MACAC,SAAS;QACPC,WAAW,CAAC,EAAET,MAAMU,KAAI,MAAE;AACxB,kBAAQA,MAAAA;YACN,KAAK;AACH,qBAAOV,KAAKW,kBAAkB/D,mCAAaR,8BAAAA,QAAA,cAACD,YAAAA;gBAAWkB,QAAQ2C,KAAKW;mBAAa;YACnF;AACE,qBAAO;UACX;QACF;MACF;MACAnC,QAAQ;QACNoC,UAAU,CAACpC,WAAAA;AACT,kBAAQA,OAAO0B,QAAM;YACnB,KAAKvB,mCAAaC,QAAQ;AACxB,qBAAO;gBAAEoB,UAAMa,2BAAOjE,kCAAY;kBAAEW,SAAS,CAAA;gBAAG,CAAA;cAAG;YACrD;UACF;QACF;MACF;IACF;EACF;AACF;AGzGA,IAAA,cAAehB;",
6
+ "names": ["import_react", "KanbanMain", "React", "lazy", "KANBAN_PLUGIN", "KanbanPlugin", "meta", "provides", "metadata", "records", "KanbanType", "typename", "placeholder", "ns", "icon", "props", "Kanban", "iconSymbol", "loadReferences", "kanban", "loadObjectReferences", "columns", "KanbanColumnType", "column", "items", "KanbanItemType", "item", "echo", "schema", "translations", "graph", "builder", "plugins", "client", "resolvePlugin", "parseClientPlugin", "dispatch", "parseIntentPlugin", "intent", "createExtension", "id", "KanbanAction", "CREATE", "filter", "node", "isActionGroup", "startsWith", "SpaceAction", "ADD_OBJECT", "actions", "split", "at", "spaceId", "objectId", "space", "spaces", "get", "find", "object", "db", "getObjectById", "target", "data", "plugin", "action", "NavigationAction", "OPEN", "properties", "label", "testId", "surface", "component", "role", "active", "resolver", "create"]
7
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var meta_exports = {};
20
+ __export(meta_exports, {
21
+ KANBAN_PLUGIN: () => import_chunk_CJTEPA5Z.KANBAN_PLUGIN,
22
+ default: () => import_chunk_CJTEPA5Z.meta_default
23
+ });
24
+ module.exports = __toCommonJS(meta_exports);
25
+ var import_chunk_CJTEPA5Z = require("./chunk-CJTEPA5Z.cjs");
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
28
+ KANBAN_PLUGIN
29
+ });
30
+ //# sourceMappingURL=meta.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["meta.cjs"],
4
+ "sourcesContent": ["import {\n KANBAN_PLUGIN,\n meta_default\n} from \"./chunk-CJTEPA5Z.cjs\";\nexport {\n KANBAN_PLUGIN,\n meta_default as default\n};\n//# sourceMappingURL=meta.cjs.map\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAGO;",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ {"inputs":{"packages/plugins/experimental/plugin-kanban/src/meta.tsx":{"bytes":2005,"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}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/components/KanbanCard.tsx":{"bytes":11021,"imports":[{"path":"@dnd-kit/sortable","kind":"import-statement","external":true},{"path":"@dnd-kit/utilities","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-kanban/src/meta.tsx","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/components/util.ts":{"bytes":4112,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/components/KanbanColumn.tsx":{"bytes":18468,"imports":[{"path":"@dnd-kit/core","kind":"import-statement","external":true},{"path":"@dnd-kit/sortable","kind":"import-statement","external":true},{"path":"@dnd-kit/utilities","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","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":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-kanban/src/components/KanbanCard.tsx","kind":"import-statement","original":"./KanbanCard"},{"path":"packages/plugins/experimental/plugin-kanban/src/components/util.ts","kind":"import-statement","original":"./util"},{"path":"packages/plugins/experimental/plugin-kanban/src/meta.tsx","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/components/KanbanBoard.tsx":{"bytes":23457,"imports":[{"path":"@dnd-kit/core","kind":"import-statement","external":true},{"path":"@dnd-kit/sortable","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-kanban/src/components/KanbanCard.tsx","kind":"import-statement","original":"./KanbanCard"},{"path":"packages/plugins/experimental/plugin-kanban/src/components/KanbanColumn.tsx","kind":"import-statement","original":"./KanbanColumn"},{"path":"packages/plugins/experimental/plugin-kanban/src/components/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/types/kanban.ts":{"bytes":3260,"imports":[{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/types/types.ts":{"bytes":3939,"imports":[{"path":"packages/plugins/experimental/plugin-kanban/src/meta.tsx","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/types/index.ts":{"bytes":600,"imports":[{"path":"packages/plugins/experimental/plugin-kanban/src/types/kanban.ts","kind":"import-statement","original":"./kanban"},{"path":"packages/plugins/experimental/plugin-kanban/src/types/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/components/KanbanMain.tsx":{"bytes":4739,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","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-theme","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-kanban/src/components/KanbanBoard.tsx","kind":"import-statement","original":"./KanbanBoard"},{"path":"packages/plugins/experimental/plugin-kanban/src/types/index.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/components/index.ts":{"bytes":943,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-kanban/src/components/KanbanMain.tsx","kind":"dynamic-import","original":"./KanbanMain"}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/translations.ts":{"bytes":2509,"imports":[{"path":"packages/plugins/experimental/plugin-kanban/src/meta.tsx","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/KanbanPlugin.tsx":{"bytes":16966,"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-client","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":"packages/plugins/experimental/plugin-kanban/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/experimental/plugin-kanban/src/meta.tsx","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/experimental/plugin-kanban/src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"packages/plugins/experimental/plugin-kanban/src/types/index.ts","kind":"import-statement","original":"./types"},{"path":"packages/plugins/experimental/plugin-kanban/src/types/index.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"packages/plugins/experimental/plugin-kanban/src/index.ts":{"bytes":795,"imports":[{"path":"packages/plugins/experimental/plugin-kanban/src/KanbanPlugin.tsx","kind":"import-statement","original":"./KanbanPlugin"},{"path":"packages/plugins/experimental/plugin-kanban/src/KanbanPlugin.tsx","kind":"import-statement","original":"./KanbanPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/experimental/plugin-kanban/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":9238},"packages/plugins/experimental/plugin-kanban/dist/lib/node/index.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-RYK4NJNG.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-CJTEPA5Z.cjs","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-client","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":"react","kind":"import-statement","external":true},{"path":"packages/plugins/experimental/plugin-kanban/dist/lib/node/KanbanMain-RSRZLAM5.cjs","kind":"dynamic-import"}],"exports":["KanbanPlugin","default"],"entryPoint":"packages/plugins/experimental/plugin-kanban/src/index.ts","inputs":{"packages/plugins/experimental/plugin-kanban/src/KanbanPlugin.tsx":{"bytesInOutput":4358},"packages/plugins/experimental/plugin-kanban/src/components/index.ts":{"bytesInOutput":99},"packages/plugins/experimental/plugin-kanban/src/translations.ts":{"bytesInOutput":619},"packages/plugins/experimental/plugin-kanban/src/index.ts":{"bytesInOutput":32}},"bytes":5714},"packages/plugins/experimental/plugin-kanban/dist/lib/node/meta.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-kanban/dist/lib/node/meta.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-CJTEPA5Z.cjs","kind":"import-statement"}],"exports":["KANBAN_PLUGIN","default"],"entryPoint":"packages/plugins/experimental/plugin-kanban/src/meta.tsx","inputs":{},"bytes":161},"packages/plugins/experimental/plugin-kanban/dist/lib/node/types/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/experimental/plugin-kanban/dist/lib/node/types/index.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-RYK4NJNG.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-CJTEPA5Z.cjs","kind":"import-statement"}],"exports":["KanbanAction","KanbanColumnType","KanbanItemType","KanbanType"],"entryPoint":"packages/plugins/experimental/plugin-kanban/src/types/index.ts","inputs":{},"bytes":254},"packages/plugins/experimental/plugin-kanban/dist/lib/node/KanbanMain-RSRZLAM5.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":31751},"packages/plugins/experimental/plugin-kanban/dist/lib/node/KanbanMain-RSRZLAM5.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-RYK4NJNG.cjs","kind":"import-statement"},{"path":"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-CJTEPA5Z.cjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","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-theme","kind":"import-statement","external":true},{"path":"@dnd-kit/core","kind":"import-statement","external":true},{"path":"@dnd-kit/sortable","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dnd-kit/sortable","kind":"import-statement","external":true},{"path":"@dnd-kit/utilities","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-editor","kind":"import-statement","external":true},{"path":"@dxos/react-ui-theme","kind":"import-statement","external":true},{"path":"@dnd-kit/core","kind":"import-statement","external":true},{"path":"@dnd-kit/sortable","kind":"import-statement","external":true},{"path":"@dnd-kit/utilities","kind":"import-statement","external":true},{"path":"@phosphor-icons/react","kind":"import-statement","external":true},{"path":"react","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":"@dxos/util","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-client/echo","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/experimental/plugin-kanban/src/components/KanbanMain.tsx","inputs":{"packages/plugins/experimental/plugin-kanban/src/components/KanbanMain.tsx":{"bytesInOutput":964},"packages/plugins/experimental/plugin-kanban/src/components/KanbanBoard.tsx":{"bytesInOutput":5200},"packages/plugins/experimental/plugin-kanban/src/components/KanbanCard.tsx":{"bytesInOutput":2924},"packages/plugins/experimental/plugin-kanban/src/components/KanbanColumn.tsx":{"bytesInOutput":5070},"packages/plugins/experimental/plugin-kanban/src/components/util.ts":{"bytesInOutput":755}},"bytes":15762},"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-RYK4NJNG.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3910},"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-RYK4NJNG.cjs":{"imports":[{"path":"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-CJTEPA5Z.cjs","kind":"import-statement"},{"path":"@dxos/echo-schema","kind":"import-statement","external":true}],"exports":["KanbanAction","KanbanColumnType","KanbanItemType","KanbanType"],"inputs":{"packages/plugins/experimental/plugin-kanban/src/types/kanban.ts":{"bytesInOutput":714},"packages/plugins/experimental/plugin-kanban/src/types/index.ts":{"bytesInOutput":0},"packages/plugins/experimental/plugin-kanban/src/types/types.ts":{"bytesInOutput":214}},"bytes":1243},"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-CJTEPA5Z.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":982},"packages/plugins/experimental/plugin-kanban/dist/lib/node/chunk-CJTEPA5Z.cjs":{"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}],"exports":["KANBAN_PLUGIN","meta_default"],"inputs":{"packages/plugins/experimental/plugin-kanban/src/meta.tsx":{"bytesInOutput":447}},"bytes":596}}}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var types_exports = {};
20
+ __export(types_exports, {
21
+ KanbanAction: () => import_chunk_RYK4NJNG.KanbanAction,
22
+ KanbanColumnType: () => import_chunk_RYK4NJNG.KanbanColumnType,
23
+ KanbanItemType: () => import_chunk_RYK4NJNG.KanbanItemType,
24
+ KanbanType: () => import_chunk_RYK4NJNG.KanbanType
25
+ });
26
+ module.exports = __toCommonJS(types_exports);
27
+ var import_chunk_RYK4NJNG = require("../chunk-RYK4NJNG.cjs");
28
+ var import_chunk_CJTEPA5Z = require("../chunk-CJTEPA5Z.cjs");
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ KanbanAction,
32
+ KanbanColumnType,
33
+ KanbanItemType,
34
+ KanbanType
35
+ });
36
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["index.cjs"],
4
+ "sourcesContent": ["import {\n KanbanAction,\n KanbanColumnType,\n KanbanItemType,\n KanbanType\n} from \"../chunk-RYK4NJNG.cjs\";\nimport \"../chunk-CJTEPA5Z.cjs\";\nexport {\n KanbanAction,\n KanbanColumnType,\n KanbanItemType,\n KanbanType\n};\n//# sourceMappingURL=index.cjs.map\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAKO;AACP,4BAAO;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ import { type PluginDefinition } from '@dxos/app-framework';
2
+ import { type KanbanPluginProvides } from './types';
3
+ export declare const KanbanPlugin: () => PluginDefinition<KanbanPluginProvides>;
4
+ //# sourceMappingURL=KanbanPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanPlugin.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAiB,KAAK,gBAAgB,EAAuC,MAAM,qBAAqB,CAAC;AAWhH,OAAO,EAAgB,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAElE,eAAO,MAAM,YAAY,QAAO,gBAAgB,CAAC,oBAAoB,CA2FpE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type FC } from 'react';
2
+ import type { KanbanModel } from '../types';
3
+ export declare const KanbanBoard: FC<{
4
+ model: KanbanModel;
5
+ }>;
6
+ //# sourceMappingURL=KanbanBoard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanBoard.tsx"],"names":[],"mappings":"AAgBA,OAAc,EAAE,KAAK,EAAE,EAAuB,MAAM,OAAO,CAAC;AAQ5D,OAAO,KAAK,EAA8C,WAAW,EAAE,MAAM,UAAU,CAAC;AAKxF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC;IAAE,KAAK,EAAE,WAAW,CAAA;CAAE,CAqKlD,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type FC } from 'react';
2
+ import { type KanbanColumnType, type KanbanItemType } from '../types';
3
+ export declare const KanbanCardComponent: FC<{
4
+ column?: KanbanColumnType;
5
+ item: KanbanItemType;
6
+ debug?: boolean;
7
+ onDelete?: () => void;
8
+ }>;
9
+ //# sourceMappingURL=KanbanCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanCard.tsx"],"names":[],"mappings":"AAOA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAavC,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAYtE,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC;IACnC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CA4CA,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type FC } from 'react';
2
+ import { type KanbanColumnType, type KanbanItemType } from '../types';
3
+ export type ItemsMapper = (column: string, items: KanbanItemType[]) => KanbanItemType[];
4
+ export declare const KanbanColumnComponentPlaceholder: FC<{
5
+ onAdd: () => void;
6
+ }>;
7
+ export declare const KanbanColumnComponent: FC<{
8
+ column: KanbanColumnType;
9
+ itemMapper?: ItemsMapper;
10
+ debug?: boolean;
11
+ onCreate?: (column: KanbanColumnType) => KanbanItemType;
12
+ onDelete?: () => void;
13
+ }>;
14
+ //# sourceMappingURL=KanbanColumn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanColumn.tsx"],"names":[],"mappings":"AAQA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AASvC,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAEtE,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,cAAc,EAAE,CAAC;AAuBxF,eAAO,MAAM,gCAAgC,EAAE,EAAE,CAAC;IAAE,KAAK,EAAE,MAAM,IAAI,CAAA;CAAE,CAUtE,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC;IACrC,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,cAAc,CAAC;IACxD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAkFA,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type FC } from 'react';
2
+ import { type KanbanType } from '../types';
3
+ declare const KanbanMain: FC<{
4
+ kanban: KanbanType;
5
+ }>;
6
+ export default KanbanMain;
7
+ //# sourceMappingURL=KanbanMain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanMain.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanMain.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAQvC,OAAO,EAAE,KAAK,UAAU,EAAsD,MAAM,UAAU,CAAC;AAE/F,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC;IAAE,MAAM,EAAE,UAAU,CAAA;CAAE,CAoB1C,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const KanbanMain: React.LazyExoticComponent<React.FC<{
3
+ kanban: import("../types").KanbanType;
4
+ }>>;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,UAAU;;GAA2C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type KanbanColumnType, type Location } from '../types';
2
+ export declare const useSubscription: (data: any) => void;
3
+ /**
4
+ * Find the column or item within the model.
5
+ */
6
+ export declare const findLocation: (columns: KanbanColumnType[], id: string) => Location | undefined;
7
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../../src/components/util.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGhE,eAAO,MAAM,eAAe,SAAU,GAAG,SAOxC,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,YAAY,YAAa,gBAAgB,EAAE,MAAM,MAAM,KAAG,QAAQ,GAAG,SAYjF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { KanbanPlugin } from './KanbanPlugin';
2
+ export default KanbanPlugin;
3
+ export * from './KanbanPlugin';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAe,YAAY,CAAC;AAE5B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type IconProps } from '@phosphor-icons/react';
2
+ import React from 'react';
3
+ export declare const KANBAN_PLUGIN = "dxos.org/plugin/kanban";
4
+ declare const _default: {
5
+ id: string;
6
+ shortId?: string;
7
+ name?: string;
8
+ description?: string;
9
+ homePage?: string;
10
+ tags?: string[];
11
+ iconComponent?: React.FC<IconProps>;
12
+ iconSymbol?: string;
13
+ };
14
+ export default _default;
15
+ //# sourceMappingURL=meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,aAAa,2BAA2B,CAAC;;;;;;;;;;;AAEtD,wBAOG"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sanity.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanity.test.d.ts","sourceRoot":"","sources":["../../../src/sanity.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ export declare const createKanban: () => import("@dxos/echo-schema").ReactiveObject<{
2
+ name?: string | undefined;
3
+ columns: import("@dxos/echo-schema").Ref<{
4
+ name?: string | undefined;
5
+ index?: string | undefined;
6
+ items: import("@dxos/echo-schema").Ref<{
7
+ object?: import("@dxos/echo-schema").Ref<import("@dxos/echo-schema").Expando>;
8
+ name?: string | undefined;
9
+ index?: string | undefined;
10
+ } & {
11
+ id: string;
12
+ }>[];
13
+ } & {
14
+ id: string;
15
+ }>[];
16
+ } & {
17
+ id: string;
18
+ }>;
19
+ //# sourceMappingURL=testing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/stories/testing.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;EAkBxB,CAAC"}
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ 'en-US': {
3
+ "dxos.org/plugin/kanban": {
4
+ 'plugin name': string;
5
+ 'kanban title label': string;
6
+ 'kanban title placeholder': string;
7
+ 'column title label': string;
8
+ 'column title placeholder': string;
9
+ 'item title label': string;
10
+ 'item title placeholder': string;
11
+ 'add column label': string;
12
+ 'add item label': string;
13
+ 'delete column label': string;
14
+ 'delete item label': string;
15
+ 'create kanban label': string;
16
+ };
17
+ };
18
+ }[];
19
+ export default _default;
20
+ //# sourceMappingURL=translations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAMA,wBAmBE"}
@@ -0,0 +1,3 @@
1
+ export * from './kanban';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}