@dxos/plugin-kanban 0.8.4-main.abd8ff62ef → 0.8.4-main.bc2380dfbc
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/KanbanArticle-NEJ3LNBO.mjs +132 -0
- package/dist/lib/neutral/KanbanArticle-NEJ3LNBO.mjs.map +7 -0
- package/dist/lib/neutral/KanbanPlugin.mjs +36 -0
- package/dist/lib/neutral/KanbanPlugin.mjs.map +7 -0
- package/dist/lib/neutral/KanbanPlugin.node.mjs +27 -0
- package/dist/lib/neutral/KanbanPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/KanbanPlugin.workerd.mjs +21 -0
- package/dist/lib/neutral/KanbanPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/KanbanSettings-G6M47NSK.mjs +83 -0
- package/dist/lib/neutral/KanbanSettings-G6M47NSK.mjs.map +7 -0
- package/dist/lib/neutral/blueprint-definition-FHVIEKTQ.mjs +15 -0
- package/dist/lib/neutral/blueprint-definition-FHVIEKTQ.mjs.map +7 -0
- package/dist/lib/neutral/blueprints/index.mjs +8 -0
- package/dist/lib/neutral/capabilities/index.mjs +19 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-6FPBLOS3.mjs +8 -0
- package/dist/lib/neutral/chunk-6FPBLOS3.mjs.map +7 -0
- package/dist/lib/{browser/index.mjs → neutral/chunk-KDPM77BD.mjs} +1 -9
- package/dist/lib/neutral/chunk-KDPM77BD.mjs.map +7 -0
- package/dist/lib/neutral/chunk-OQ72EEGU.mjs +254 -0
- package/dist/lib/neutral/chunk-OQ72EEGU.mjs.map +7 -0
- package/dist/lib/{browser/blueprints/index.mjs → neutral/chunk-ZTQW5KQS.mjs} +3 -4
- package/dist/lib/{browser/blueprints/index.mjs.map → neutral/chunk-ZTQW5KQS.mjs.map} +2 -2
- package/dist/lib/neutral/components/index.mjs +243 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +11 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-object-DKBSI46K.mjs +40 -0
- package/dist/lib/neutral/create-object-DKBSI46K.mjs.map +7 -0
- package/dist/lib/{browser/delete-card-7OSCNCW2.mjs → neutral/delete-card-356CBACE.mjs} +4 -4
- package/dist/lib/neutral/delete-card-356CBACE.mjs.map +7 -0
- package/dist/lib/{browser/delete-card-field-NSB2RE3Z.mjs → neutral/delete-card-field-IRCZL2BR.mjs} +4 -4
- package/dist/lib/neutral/delete-card-field-IRCZL2BR.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +432 -0
- package/dist/lib/neutral/hooks/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +34 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/migrations-IWBT35UT.mjs +31 -0
- package/dist/lib/neutral/migrations-IWBT35UT.mjs.map +7 -0
- package/dist/lib/neutral/operation-handler-B7IW6MXU.mjs +13 -0
- package/dist/lib/neutral/operation-handler-B7IW6MXU.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +8 -0
- package/dist/lib/neutral/operations/index.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +16 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-QROEHBRW.mjs +93 -0
- package/dist/lib/neutral/react-surface-QROEHBRW.mjs.map +7 -0
- package/dist/lib/{browser/restore-card-FO3WERIE.mjs → neutral/restore-card-P25Y4YSE.mjs} +4 -4
- package/dist/lib/neutral/restore-card-P25Y4YSE.mjs.map +7 -0
- package/dist/lib/{browser/restore-card-field-U5XYEEOW.mjs → neutral/restore-card-field-NHR3R4XI.mjs} +4 -4
- package/dist/lib/neutral/restore-card-field-NHR3R4XI.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +60 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +22 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/lib/neutral/undo-mappings-6CHW6BOF.mjs +42 -0
- package/dist/lib/neutral/undo-mappings-6CHW6BOF.mjs.map +7 -0
- package/dist/types/src/KanbanPlugin.d.ts.map +1 -1
- package/dist/types/src/KanbanPlugin.node.d.ts.map +1 -1
- package/dist/types/src/KanbanPlugin.workerd.d.ts +4 -0
- package/dist/types/src/KanbanPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/create-object.d.ts +11 -0
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +6 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations.d.ts +2 -1
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
- package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts +3 -23
- package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts.map +1 -1
- package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts.map +1 -1
- package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts +2 -3
- package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts.map +1 -1
- package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts +2 -3
- package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts.map +1 -1
- package/dist/types/src/components/KanbanBoard/context.d.ts +38 -0
- package/dist/types/src/components/KanbanBoard/context.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanArticle/KanbanArticle.d.ts +6 -0
- package/dist/types/src/containers/KanbanArticle/KanbanArticle.d.ts.map +1 -0
- package/dist/types/src/containers/{KanbanContainer/KanbanContainer.stories.d.ts → KanbanArticle/KanbanArticle.stories.d.ts} +1 -1
- package/dist/types/src/containers/KanbanArticle/KanbanArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanArticle/index.d.ts +2 -0
- package/dist/types/src/containers/KanbanArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +1 -1
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/delete-card-field.d.ts +2 -2
- package/dist/types/src/operations/delete-card-field.d.ts.map +1 -1
- package/dist/types/src/operations/delete-card.d.ts +2 -2
- package/dist/types/src/operations/delete-card.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +0 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/restore-card-field.d.ts +2 -2
- package/dist/types/src/operations/restore-card-field.d.ts.map +1 -1
- package/dist/types/src/operations/restore-card.d.ts +2 -2
- package/dist/types/src/operations/restore-card.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/types/Kanban.d.ts +1 -2
- package/dist/types/src/types/Kanban.d.ts.map +1 -1
- package/dist/types/src/{operations/definitions.d.ts → types/KanbanOperation.d.ts} +1 -1
- package/dist/types/src/types/KanbanOperation.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +101 -73
- package/src/KanbanPlugin.node.ts +3 -37
- package/src/KanbanPlugin.tsx +11 -38
- package/src/KanbanPlugin.workerd.ts +18 -0
- package/src/capabilities/artifact-definition.ts +3 -4
- package/src/capabilities/create-object.ts +40 -0
- package/src/capabilities/index.ts +1 -0
- package/src/capabilities/migrations.ts +3 -3
- package/src/capabilities/react-surface.tsx +3 -4
- package/src/capabilities/undo-mappings.ts +1 -1
- package/src/components/KanbanBoard/KanbanBoard.stories.tsx +1 -2
- package/src/components/KanbanBoard/KanbanBoard.tsx +13 -47
- package/src/components/KanbanBoard/KanbanCard.tsx +75 -72
- package/src/components/KanbanBoard/KanbanColumn.tsx +9 -8
- package/src/components/KanbanBoard/context.ts +54 -0
- package/src/containers/{KanbanContainer/KanbanContainer.stories.tsx → KanbanArticle/KanbanArticle.stories.tsx} +9 -8
- package/src/containers/{KanbanContainer/KanbanContainer.tsx → KanbanArticle/KanbanArticle.tsx} +8 -8
- package/src/containers/KanbanArticle/index.ts +5 -0
- package/src/containers/index.ts +1 -1
- package/src/hooks/useKanbanBoardModel.browser.test.ts +1 -2
- package/src/index.ts +3 -6
- package/src/operations/delete-card-field.ts +2 -2
- package/src/operations/delete-card.ts +2 -2
- package/src/operations/index.ts +0 -2
- package/src/operations/restore-card-field.ts +2 -2
- package/src/operations/restore-card.ts +2 -2
- package/src/playwright/smoke.spec.ts +3 -3
- package/src/plugin.ts +11 -0
- package/src/types/Kanban.ts +1 -2
- package/src/{operations/definitions.ts → types/KanbanOperation.ts} +4 -0
- package/src/types/index.ts +3 -1
- package/src/types/migrations.test.ts +2 -3
- package/src/types/schema.ts +1 -1
- package/src/util/arrangement.test.ts +1 -2
- package/dist/lib/browser/chunk-T32TEM55.mjs +0 -105
- package/dist/lib/browser/chunk-T32TEM55.mjs.map +0 -7
- package/dist/lib/browser/delete-card-7OSCNCW2.mjs.map +0 -7
- package/dist/lib/browser/delete-card-field-NSB2RE3Z.mjs.map +0 -7
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operations/index.mjs +0 -13
- package/dist/lib/browser/operations/index.mjs.map +0 -7
- package/dist/lib/browser/restore-card-FO3WERIE.mjs.map +0 -7
- package/dist/lib/browser/restore-card-field-U5XYEEOW.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -160
- package/dist/lib/browser/types/index.mjs.map +0 -7
- package/dist/lib/node-esm/blueprints/index.mjs +0 -28
- package/dist/lib/node-esm/blueprints/index.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-W2RNFBMZ.mjs +0 -106
- package/dist/lib/node-esm/chunk-W2RNFBMZ.mjs.map +0 -7
- package/dist/lib/node-esm/delete-card-ZIREL6HN.mjs +0 -25
- package/dist/lib/node-esm/delete-card-ZIREL6HN.mjs.map +0 -7
- package/dist/lib/node-esm/delete-card-field-IPTEGVPP.mjs +0 -43
- package/dist/lib/node-esm/delete-card-field-IPTEGVPP.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -30
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/operations/index.mjs +0 -14
- package/dist/lib/node-esm/operations/index.mjs.map +0 -7
- package/dist/lib/node-esm/restore-card-WJJ4YB7K.mjs +0 -22
- package/dist/lib/node-esm/restore-card-WJJ4YB7K.mjs.map +0 -7
- package/dist/lib/node-esm/restore-card-field-L24WJXAW.mjs +0 -41
- package/dist/lib/node-esm/restore-card-field-L24WJXAW.mjs.map +0 -7
- package/dist/lib/node-esm/translations.mjs +0 -45
- package/dist/lib/node-esm/translations.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -161
- package/dist/lib/node-esm/types/index.mjs.map +0 -7
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts +0 -6
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts.map +0 -1
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.stories.d.ts.map +0 -1
- package/dist/types/src/containers/KanbanContainer/index.d.ts +0 -2
- package/dist/types/src/containers/KanbanContainer/index.d.ts.map +0 -1
- package/dist/types/src/operations/definitions.d.ts.map +0 -1
- package/src/containers/KanbanContainer/index.ts +0 -5
- /package/dist/lib/{browser/chunk-J5LGTIGS.mjs.map → neutral/blueprints/index.mjs.map} +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{browser → neutral}/translations.mjs +0 -0
- /package/dist/lib/{browser → neutral}/translations.mjs.map +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/testing/KanbanCardTileSimple.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { forwardRef, useCallback, useMemo, useState } from 'react';\n\nimport { Obj } from '@dxos/echo';\nimport { Card, Toolbar, useTranslation } from '@dxos/react-ui';\nimport { Menu, createMenuAction } from '@dxos/react-ui-menu';\nimport { Focus, Mosaic, useBoard } from '@dxos/react-ui-mosaic';\n\nimport { type KanbanCardProps, useKanbanBoard } from '#components';\nimport { meta } from '#meta';\n\nconst KANBAN_CARD_TILE_SIMPLE_NAME = 'KanbanCardTileSimple';\n\n/**\n * Card tile without Surface; for stories and tests when plugin manager is not available.\n */\nexport const KanbanCardTileSimple = forwardRef<HTMLDivElement, KanbanCardProps>(\n ({ data, location, debug }, forwardedRef) => {\n const { t } = useTranslation(meta.id);\n const { model } = useBoard(KANBAN_CARD_TILE_SIMPLE_NAME);\n const { onCardRemove } = useKanbanBoard(KANBAN_CARD_TILE_SIMPLE_NAME);\n const [dragHandle, setDragHandle] = useState<HTMLButtonElement | null>(null);\n const dragHandleRef = useCallback((el: HTMLButtonElement | null) => setDragHandle(el), []);\n\n const menuItems = useMemo(\n () =>\n onCardRemove\n ? [\n createMenuAction('remove', () => onCardRemove(data), {\n label: t('remove-card.label'),\n icon: 'ph--trash--regular',\n }),\n ]\n : [],\n [onCardRemove, data, t],\n );\n\n return (\n <Menu.Root>\n <Mosaic.Tile\n asChild\n id={model.getItemId(data)}\n data={data}\n location={location}\n debug={debug}\n dragHandle={dragHandle}\n >\n <Focus.Item asChild>\n <Card.Root ref={forwardedRef} data-testid='board-item'>\n <Card.Toolbar>\n <Card.DragHandle ref={dragHandleRef} />\n <Card.Title>{Obj.getLabel(data)}</Card.Title>\n {/* TODO(wittjosiah): Reconcile with Card.Menu. */}\n <Menu.Trigger asChild disabled={!menuItems?.length}>\n <Toolbar.IconButton\n iconOnly\n variant='ghost'\n icon='ph--dots-three-vertical--regular'\n label={t('action-menu.label')}\n />\n </Menu.Trigger>\n <Menu.Content items={menuItems} />\n </Card.Toolbar>\n <Card.Content>\n <Card.Section>\n <pre className='p-2 text-xs text-description whitespace-pre-wrap'>\n {JSON.stringify(data, null, 2)}\n </pre>\n </Card.Section>\n </Card.Content>\n </Card.Root>\n </Focus.Item>\n </Mosaic.Tile>\n </Menu.Root>\n );\n },\n);\n\nKanbanCardTileSimple.displayName = KANBAN_CARD_TILE_SIMPLE_NAME;\n"],
|
|
5
|
+
"mappings": ";;;AAIA,OAAOA,SAASC,YAAYC,aAAaC,SAASC,gBAAgB;AAElE,SAASC,WAAW;AACpB,SAASC,MAAMC,SAASC,sBAAsB;AAC9C,SAASC,MAAMC,wBAAwB;AACvC,SAASC,OAAOC,QAAQC,gBAAgB;AAExC,SAA+BC,sBAAsB;AACrD,SAASC,YAAY;AAErB,IAAMC,+BAA+B;AAK9B,IAAMC,uBAAuBhB,2BAClC,CAAC,EAAEiB,MAAMC,UAAUC,MAAK,GAAIC,iBAAAA;AAC1B,QAAM,EAAEC,EAAC,IAAKd,eAAeO,KAAKQ,EAAE;AACpC,QAAM,EAAEC,MAAK,IAAKX,SAASG,4BAAAA;AAC3B,QAAM,EAAES,aAAY,IAAKX,eAAeE,4BAAAA;AACxC,QAAM,CAACU,YAAYC,aAAAA,IAAiBvB,SAAmC,IAAA;AACvE,QAAMwB,gBAAgB1B,YAAY,CAAC2B,OAAiCF,cAAcE,EAAAA,GAAK,CAAA,CAAE;AAEzF,QAAMC,YAAY3B,QAChB,MACEsB,eACI;IACEf,iBAAiB,UAAU,MAAMe,aAAaP,IAAAA,GAAO;MACnDa,OAAOT,EAAE,mBAAA;MACTU,MAAM;IACR,CAAA;MAEF,CAAA,GACN;IAACP;IAAcP;IAAMI;GAAE;AAGzB,SACE,sBAAA,cAACb,KAAKwB,MAAI,MACR,sBAAA,cAACrB,OAAOsB,MAAI;IACVC,SAAAA;IACAZ,IAAIC,MAAMY,UAAUlB,IAAAA;IACpBA;IACAC;IACAC;IACAM;KAEA,sBAAA,cAACf,MAAM0B,MAAI;IAACF,SAAAA;KACV,sBAAA,cAAC7B,KAAK2B,MAAI;IAACK,KAAKjB;IAAckB,eAAY;KACxC,sBAAA,cAACjC,KAAKC,SAAO,MACX,sBAAA,cAACD,KAAKkC,YAAU;IAACF,KAAKV;MACtB,sBAAA,cAACtB,KAAKmC,OAAK,MAAEpC,IAAIqC,SAASxB,IAAAA,CAAAA,GAE1B,sBAAA,cAACT,KAAKkC,SAAO;IAACR,SAAAA;IAAQS,UAAU,CAACd,WAAWe;KAC1C,sBAAA,cAACtC,QAAQuC,YAAU;IACjBC,UAAAA;IACAC,SAAQ;IACRhB,MAAK;IACLD,OAAOT,EAAE,mBAAA;OAGb,sBAAA,cAACb,KAAKwC,SAAO;IAACC,OAAOpB;OAEvB,sBAAA,cAACxB,KAAK2C,SAAO,MACX,sBAAA,cAAC3C,KAAK6C,SAAO,MACX,sBAAA,cAACC,OAAAA;IAAIC,WAAU;KACZC,KAAKC,UAAUrC,MAAM,MAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAS9C,CAAA;AAGFD,qBAAqBuC,cAAcxC;",
|
|
6
|
+
"names": ["React", "forwardRef", "useCallback", "useMemo", "useState", "Obj", "Card", "Toolbar", "useTranslation", "Menu", "createMenuAction", "Focus", "Mosaic", "useBoard", "useKanbanBoard", "meta", "KANBAN_CARD_TILE_SIMPLE_NAME", "KanbanCardTileSimple", "data", "location", "debug", "forwardedRef", "t", "id", "model", "onCardRemove", "dragHandle", "setDragHandle", "dragHandleRef", "el", "menuItems", "label", "icon", "Root", "Tile", "asChild", "getItemId", "Item", "ref", "data-testid", "DragHandle", "Title", "getLabel", "Trigger", "disabled", "length", "IconButton", "iconOnly", "variant", "Content", "items", "Section", "pre", "className", "JSON", "stringify", "displayName"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CreateKanbanSchema,
|
|
3
|
+
KanbanOperation_exports,
|
|
4
|
+
KanbanSettingsSchema,
|
|
5
|
+
KanbanViewSettingsSchema,
|
|
6
|
+
Kanban_exports,
|
|
7
|
+
PivotColumnAnnotationId,
|
|
8
|
+
UNCATEGORIZED_ATTRIBUTES,
|
|
9
|
+
UNCATEGORIZED_VALUE
|
|
10
|
+
} from "../chunk-OQ72EEGU.mjs";
|
|
11
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
12
|
+
export {
|
|
13
|
+
CreateKanbanSchema,
|
|
14
|
+
Kanban_exports as Kanban,
|
|
15
|
+
KanbanOperation_exports as KanbanOperation,
|
|
16
|
+
KanbanSettingsSchema,
|
|
17
|
+
KanbanViewSettingsSchema,
|
|
18
|
+
PivotColumnAnnotationId,
|
|
19
|
+
UNCATEGORIZED_ATTRIBUTES,
|
|
20
|
+
UNCATEGORIZED_VALUE
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/capabilities/undo-mappings.ts
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import { Capabilities, Capability, UndoMapping } from "@dxos/app-framework";
|
|
6
|
+
import { meta } from "#meta";
|
|
7
|
+
import { KanbanOperation } from "#types";
|
|
8
|
+
var undo_mappings_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.UndoMapping, [
|
|
9
|
+
UndoMapping.make({
|
|
10
|
+
operation: KanbanOperation.DeleteCardField,
|
|
11
|
+
inverse: KanbanOperation.RestoreCardField,
|
|
12
|
+
deriveContext: (input, output) => ({
|
|
13
|
+
view: input.view,
|
|
14
|
+
field: output.field,
|
|
15
|
+
props: output.props,
|
|
16
|
+
index: output.index
|
|
17
|
+
}),
|
|
18
|
+
message: [
|
|
19
|
+
"card-field-deleted.label",
|
|
20
|
+
{
|
|
21
|
+
ns: meta.id
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}),
|
|
25
|
+
UndoMapping.make({
|
|
26
|
+
operation: KanbanOperation.DeleteCard,
|
|
27
|
+
inverse: KanbanOperation.RestoreCard,
|
|
28
|
+
deriveContext: (_input, output) => ({
|
|
29
|
+
card: output.card
|
|
30
|
+
}),
|
|
31
|
+
message: [
|
|
32
|
+
"card-deleted.label",
|
|
33
|
+
{
|
|
34
|
+
ns: meta.id
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
})
|
|
38
|
+
])));
|
|
39
|
+
export {
|
|
40
|
+
undo_mappings_default as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=undo-mappings-6CHW6BOF.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/undo-mappings.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability, UndoMapping } from '@dxos/app-framework';\n\nimport { meta } from '#meta';\nimport { KanbanOperation } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.UndoMapping, [\n UndoMapping.make({\n operation: KanbanOperation.DeleteCardField,\n inverse: KanbanOperation.RestoreCardField,\n deriveContext: (input, output) => ({\n view: input.view,\n field: output.field,\n props: output.props,\n index: output.index,\n }),\n message: ['card-field-deleted.label', { ns: meta.id }],\n }),\n UndoMapping.make({\n operation: KanbanOperation.DeleteCard,\n inverse: KanbanOperation.RestoreCard,\n deriveContext: (_input, output) => ({\n card: output.card,\n }),\n message: ['card-deleted.label', { ns: meta.id }],\n }),\n ]),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;AAEA,YAAYA,YAAY;AAExB,SAASC,cAAcC,YAAYC,mBAAmB;AAEtD,SAASC,YAAY;AACrB,SAASC,uBAAuB;AAEhC,IAAA,wBAAeH,WAAWI,WAAW,MAC5BC,eACLL,WAAWM,YAAYP,aAAaE,aAAa;EAC/CA,YAAYM,KAAK;IACfC,WAAWL,gBAAgBM;IAC3BC,SAASP,gBAAgBQ;IACzBC,eAAe,CAACC,OAAOC,YAAY;MACjCC,MAAMF,MAAME;MACZC,OAAOF,OAAOE;MACdC,OAAOH,OAAOG;MACdC,OAAOJ,OAAOI;IAChB;IACAC,SAAS;MAAC;MAA4B;QAAEC,IAAIlB,KAAKmB;MAAG;;EACtD,CAAA;EACApB,YAAYM,KAAK;IACfC,WAAWL,gBAAgBmB;IAC3BZ,SAASP,gBAAgBoB;IACzBX,eAAe,CAACY,QAAQV,YAAY;MAClCW,MAAMX,OAAOW;IACf;IACAN,SAAS;MAAC;MAAsB;QAAEC,IAAIlB,KAAKmB;MAAG;;EAChD,CAAA;CACD,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "UndoMapping", "meta", "KanbanOperation", "makeModule", "succeed", "contributes", "make", "operation", "DeleteCardField", "inverse", "RestoreCardField", "deriveContext", "input", "output", "view", "field", "props", "index", "message", "ns", "id", "DeleteCard", "RestoreCard", "_input", "card"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanPlugin.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KanbanPlugin.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAgB7C,eAAO,MAAM,YAAY,4BAaxB,CAAC;eAEa,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanPlugin.node.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KanbanPlugin.node.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,YAAY,4BAOxB,CAAC;eAEa,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanPlugin.workerd.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.workerd.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,YAAY,4BAIxB,CAAC;eAEa,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAgB,UAAU,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAgB,UAAU,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAM7F,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAWrD,OAAO,CAAC,MAAM,CAAC,CAAC;IACd,UAAU,qBAAqB;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,QAAQ,CAAC,EAAE,uBAAuB,CAAC;KACpC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
|
|
5
|
+
id: string;
|
|
6
|
+
createObject: import("@dxos/plugin-space").CreateObject;
|
|
7
|
+
inputSchema?: import("effect/Schema").Schema.AnyNoContext;
|
|
8
|
+
customPanel?: import("react").ComponentType<SpaceCapabilities.CreateObjectCustomPanelProps>;
|
|
9
|
+
}>>>, never, never>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=create-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-object.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/create-object.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { Capability } from '@dxos/app-framework';
|
|
2
2
|
import type { Blueprint, OperationHandlerSet } from '@dxos/compute';
|
|
3
3
|
export declare const BlueprintDefinition: Capability.LazyCapability<[], Capability.Capability<Capability.InterfaceDef<Blueprint.Definition>>[], Error>;
|
|
4
|
+
export declare const CreateObject: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
|
|
5
|
+
id: string;
|
|
6
|
+
createObject: import("@dxos/plugin-space").CreateObject;
|
|
7
|
+
inputSchema?: import("effect/Schema").Schema.AnyNoContext;
|
|
8
|
+
customPanel?: import("react").ComponentType<import("@dxos/plugin-space").SpaceCapabilities.CreateObjectCustomPanelProps>;
|
|
9
|
+
}>>>, Error>;
|
|
4
10
|
export declare const Migrations: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/echo/Migration").ObjectMigration[]>>, Error>;
|
|
5
11
|
export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
|
|
6
12
|
export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpE,eAAO,MAAM,mBAAmB,8GAAiF,CAAC;AAClH,eAAO,MAAM,UAAU,0IAA8D,CAAC;AACtF,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,kJAAmE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpE,eAAO,MAAM,mBAAmB,8GAAiF,CAAC;AAClH,eAAO,MAAM,YAAY;;;;;YAAmE,CAAC;AAC7F,eAAO,MAAM,UAAU,0IAA8D,CAAC;AACtF,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,kJAAmE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import { Capability } from '@dxos/app-framework';
|
|
3
|
-
|
|
3
|
+
import { Migration } from '@dxos/echo';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Migration.ObjectMigration[]>>, never, never>;
|
|
4
5
|
export default _default;
|
|
5
6
|
//# sourceMappingURL=migrations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/migrations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/migrations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,29 +1,9 @@
|
|
|
1
1
|
import { type Atom } from '@effect-atom/atom-react';
|
|
2
|
-
import React, { type ComponentPropsWithoutRef, type
|
|
2
|
+
import React, { type ComponentPropsWithoutRef, type PropsWithChildren } from 'react';
|
|
3
3
|
import { Obj } from '@dxos/echo';
|
|
4
4
|
import type { ProjectionModel } from '@dxos/schema';
|
|
5
|
-
import { type Kanban
|
|
6
|
-
import { type KanbanCardProps } from './
|
|
7
|
-
import { type KanbanColumnProps } from './KanbanColumn';
|
|
8
|
-
/**
|
|
9
|
-
* Context value for the Kanban board.
|
|
10
|
-
* Items are Echo objects (Obj.Unknown).
|
|
11
|
-
*/
|
|
12
|
-
type KanbanBoardContextValue = {
|
|
13
|
-
kanbanId: string;
|
|
14
|
-
projection: ProjectionModel | undefined;
|
|
15
|
-
columnFieldPath: string | undefined;
|
|
16
|
-
change: KanbanChangeCallback<Obj.Unknown>;
|
|
17
|
-
pivotFieldId: string | undefined;
|
|
18
|
-
getPivotAttributes: (columnValue: string) => {
|
|
19
|
-
title: string;
|
|
20
|
-
color: string;
|
|
21
|
-
};
|
|
22
|
-
itemTile?: ComponentType<KanbanCardProps>;
|
|
23
|
-
onCardAdd?: (columnValue: string | undefined) => string | undefined;
|
|
24
|
-
onCardRemove?: (card: Obj.Unknown) => void;
|
|
25
|
-
};
|
|
26
|
-
declare const useKanbanBoard: (consumerName: string) => KanbanBoardContextValue;
|
|
5
|
+
import { type Kanban } from '#types';
|
|
6
|
+
import { type KanbanBoardContextValue, type KanbanCardProps, type KanbanColumnProps, useKanbanBoard } from './context';
|
|
27
7
|
type KanbanBoardRootProps = PropsWithChildren<{
|
|
28
8
|
kanban: Kanban.Kanban;
|
|
29
9
|
/** Required when providing context; Root derives columnFieldPath, pivotFieldId, getPivotAttributes from kanban + projection. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanBoard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAmB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanBoard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAmB,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,KAAK,iBAAiB,EAAoC,MAAM,OAAO,CAAC;AAEvH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD,OAAO,EAAE,KAAK,MAAM,EAAiD,MAAM,QAAQ,CAAC;AAEpF,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,cAAc,EACf,MAAM,WAAW,CAAC;AAYnB,KAAK,oBAAoB,GAAG,iBAAiB,CAC3C;IACE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,gIAAgI;IAChI,UAAU,EAAE,eAAe,CAAC;IAC5B,kFAAkF;IAClF,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;IACpE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC5C,GAAG,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAG,UAAU,CAAC,GACtD,wBAAwB,CAAC,KAAK,CAAC,CAClC,CAAC;wCAE8B,EAC9B,QAAQ,EACR,MAAM,EACN,UAAU,EACV,KAAK,EACL,MAAM,EACN,QAAqB,EACrB,SAAS,EACT,YAAY,EACb,EAAE,oBAAoB;;;;AAkEvB,KAAK,uBAAuB,GAAG,EAAE,CAAC;AAElC,eAAO,MAAM,kBAAkB;;2HAqB7B,CAAC;AAQH,eAAO,MAAM,WAAW;IACtB,IAAI;8FAlGH,oBAAoB;;;IAmGrB,OAAO;;;IACP,MAAM;IACN,IAAI;CACL,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,YAAY,EAAE,oBAAoB,IAAI,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanBoard.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanBoard.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"KanbanBoard.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanBoard.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgE,MAAM,OAAO,CAAC;AAyHrF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type KanbanCardProps = Pick<MosaicTileProps<Obj.Unknown>, 'location' | 'data' | 'debug'>;
|
|
2
|
+
import { type KanbanCardProps } from './context';
|
|
3
|
+
export { type KanbanCardProps };
|
|
5
4
|
/**
|
|
6
5
|
* Mosaic Tile for Kanban card.
|
|
7
6
|
* Uses Surface for content; requires plugin manager context.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAW1E,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,WAAW,CAAC;AAEjE,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC;AAIhC;;;GAGG;AACH,eAAO,MAAM,UAAU,wFAyEtB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
|
|
4
|
-
export type KanbanColumnProps = Pick<MosaicTileProps<ColumnStructure>, 'location' | 'data' | 'debug'>;
|
|
2
|
+
import { type KanbanColumnProps } from './context';
|
|
3
|
+
export { type KanbanColumnProps };
|
|
5
4
|
/**
|
|
6
5
|
* Mosaic Tile for Kanban column.
|
|
7
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanColumn.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanColumn.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmC,MAAM,OAAO,CAAC;AAQxD,OAAO,EAAE,KAAK,iBAAiB,EAAkB,MAAM,WAAW,CAAC;AAEnE,OAAO,EAAE,KAAK,iBAAiB,EAAE,CAAC;AAIlC;;GAEG;AACH,eAAO,MAAM,YAAY,0FAgDxB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
import { type Obj } from '@dxos/echo';
|
|
3
|
+
import { type MosaicTileProps } from '@dxos/react-ui-mosaic';
|
|
4
|
+
import { type ProjectionModel } from '@dxos/schema';
|
|
5
|
+
import { type ColumnStructure, type KanbanChangeCallback } from '#types';
|
|
6
|
+
/**
|
|
7
|
+
* Card tile props. Defined here (rather than in `KanbanCard.tsx`) so the
|
|
8
|
+
* context type can reference it without forming a cycle through that
|
|
9
|
+
* module's runtime exports — webkit treats the resulting TDZ as a hard
|
|
10
|
+
* error while other engines are lenient.
|
|
11
|
+
*/
|
|
12
|
+
export type KanbanCardProps = Pick<MosaicTileProps<Obj.Unknown>, 'location' | 'data' | 'debug' | 'draggable'>;
|
|
13
|
+
/**
|
|
14
|
+
* Column tile props. See note on {@link KanbanCardProps}.
|
|
15
|
+
*/
|
|
16
|
+
export type KanbanColumnProps = Pick<MosaicTileProps<ColumnStructure>, 'location' | 'data' | 'debug' | 'draggable'>;
|
|
17
|
+
/**
|
|
18
|
+
* Context value for the Kanban board.
|
|
19
|
+
* Items are Echo objects (Obj.Unknown).
|
|
20
|
+
*/
|
|
21
|
+
export type KanbanBoardContextValue = {
|
|
22
|
+
kanbanId: string;
|
|
23
|
+
projection: ProjectionModel | undefined;
|
|
24
|
+
columnFieldPath: string | undefined;
|
|
25
|
+
change: KanbanChangeCallback<Obj.Unknown>;
|
|
26
|
+
pivotFieldId: string | undefined;
|
|
27
|
+
getPivotAttributes: (columnValue: string) => {
|
|
28
|
+
title: string;
|
|
29
|
+
color: string;
|
|
30
|
+
};
|
|
31
|
+
itemTile?: ComponentType<KanbanCardProps>;
|
|
32
|
+
onCardAdd?: (columnValue: string | undefined) => string | undefined;
|
|
33
|
+
onCardRemove?: (card: Obj.Unknown) => void;
|
|
34
|
+
};
|
|
35
|
+
export declare const KanbanBoardContext: import("react").FC<KanbanBoardContextValue & {
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
}>, useKanbanBoard: (consumerName: string) => KanbanBoardContextValue;
|
|
38
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/context.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,oBAAoB,EAAiD,MAAM,QAAQ,CAAC;AAIxH;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC,CAAC;AAE9G;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC,CAAC;AAEpH;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,eAAe,GAAG,SAAS,CAAC;IACxC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,MAAM,EAAE,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC1C,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,kBAAkB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E,QAAQ,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;IACpE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAO,kBAAkB;;IAAE,cAAc,mDAS9C,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
3
|
+
import { Kanban } from '#types';
|
|
4
|
+
export type KanbanArticleProps = AppSurface.ObjectArticleProps<Kanban.Kanban>;
|
|
5
|
+
export declare const KanbanArticle: (props: KanbanArticleProps) => React.JSX.Element;
|
|
6
|
+
//# sourceMappingURL=KanbanArticle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/KanbanArticle/KanbanArticle.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAUvD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAE9E,eAAO,MAAM,aAAa,UAAW,kBAAkB,sBAStD,CAAC"}
|
|
@@ -76,4 +76,4 @@ export declare const Default: Story;
|
|
|
76
76
|
* This allows testing schema mutations like adding/removing fields.
|
|
77
77
|
*/
|
|
78
78
|
export declare const MutableSchema: Story;
|
|
79
|
-
//# sourceMappingURL=
|
|
79
|
+
//# sourceMappingURL=KanbanArticle.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanArticle.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/KanbanArticle/KanbanArticle.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjF,OAAO,KAA2C,MAAM,OAAO,CAAC;AAmJhE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS+B,CAAC;eAE3B,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAiErB,CAAC;AAEF;;;GAGG;AAKH,eAAO,MAAM,aAAa,EAAE,KA2B3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/KanbanArticle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,GAAG,CAAyC,CAAC;AACvF,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,GAAG,CAA0C,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,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Operation } from '@dxos/compute';
|
|
2
|
-
import {
|
|
3
|
-
declare const handler: Operation.WithHandler<typeof DeleteCardField>;
|
|
2
|
+
import { KanbanOperation } from '../types';
|
|
3
|
+
declare const handler: Operation.WithHandler<typeof KanbanOperation.DeleteCardField>;
|
|
4
4
|
export default handler;
|
|
5
5
|
//# sourceMappingURL=delete-card-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-card-field.d.ts","sourceRoot":"","sources":["../../../../src/operations/delete-card-field.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"delete-card-field.d.ts","sourceRoot":"","sources":["../../../../src/operations/delete-card-field.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,eAAe,CA+B1E,CAAC;eAEa,OAAO"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Operation } from '@dxos/compute';
|
|
2
|
-
import {
|
|
3
|
-
declare const handler: Operation.WithHandler<typeof DeleteCard>;
|
|
2
|
+
import { KanbanOperation } from '../types';
|
|
3
|
+
declare const handler: Operation.WithHandler<typeof KanbanOperation.DeleteCard>;
|
|
4
4
|
export default handler;
|
|
5
5
|
//# sourceMappingURL=delete-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-card.d.ts","sourceRoot":"","sources":["../../../../src/operations/delete-card.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"delete-card.d.ts","sourceRoot":"","sources":["../../../../src/operations/delete-card.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,UAAU,CAUrE,CAAC;eAEa,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/operations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,yBAAyB,yCAKrC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Operation } from '@dxos/compute';
|
|
2
|
-
import {
|
|
3
|
-
declare const handler: Operation.WithHandler<typeof RestoreCardField>;
|
|
2
|
+
import { KanbanOperation } from '../types';
|
|
3
|
+
declare const handler: Operation.WithHandler<typeof KanbanOperation.RestoreCardField>;
|
|
4
4
|
export default handler;
|
|
5
5
|
//# sourceMappingURL=restore-card-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-card-field.d.ts","sourceRoot":"","sources":["../../../../src/operations/restore-card-field.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"restore-card-field.d.ts","sourceRoot":"","sources":["../../../../src/operations/restore-card-field.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,gBAAgB,CAyB3E,CAAC;eAEa,OAAO"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Operation } from '@dxos/compute';
|
|
2
|
-
import {
|
|
3
|
-
declare const handler: Operation.WithHandler<typeof RestoreCard>;
|
|
2
|
+
import { KanbanOperation } from '../types';
|
|
3
|
+
declare const handler: Operation.WithHandler<typeof KanbanOperation.RestoreCard>;
|
|
4
4
|
export default handler;
|
|
5
5
|
//# sourceMappingURL=restore-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-card.d.ts","sourceRoot":"","sources":["../../../../src/operations/restore-card.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"restore-card.d.ts","sourceRoot":"","sources":["../../../../src/operations/restore-card.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,WAAW,CAQtE,CAAC;eAEa,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,YAAY,4BAA6C,CAAC;AAEvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
import { Obj, Ref, Type } from '@dxos/echo';
|
|
3
|
-
import { View } from '@dxos/echo';
|
|
2
|
+
import { Obj, Ref, Type, View } from '@dxos/echo';
|
|
4
3
|
/** Column order and per-column card ids. */
|
|
5
4
|
export declare const Arrangement: Schema.Struct<{
|
|
6
5
|
order: Schema.Array$<typeof Schema.String>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kanban.d.ts","sourceRoot":"","sources":["../../../../src/types/Kanban.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAc,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Kanban.d.ts","sourceRoot":"","sources":["../../../../src/types/Kanban.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAc,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAqB9D,4CAA4C;AAC5C,eAAO,MAAM,WAAW;;;;;;EAGe,CAAC;AAExC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;wBASpB,CAAC;AAYF,uFAAuF;AACvF,eAAO,MAAM,cAAc;;;EAGzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvE,yGAAyG;AACzG,eAAO,MAAM,eAAe;;IAE1B,oFAAoF;;IAEpF,0CAA0C;;EAE1C,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AAEzE,oEAAoE;AACpE,eAAO,MAAM,UAAU;;;;;IARrB,oFAAoF;;IAEpF,0CAA0C;;IAM2B,CAAC;AACxE,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/D,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;wBAgBlB,CAAC;AAEF,6EAA6E;AAC7E,MAAM,WAAW,MAAO,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC;CAAG;AAEpE,oCAAoC;AACpC,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC;AAE3D,qCAAqC;AACrC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC;AAE7D,eAAO,MAAM,YAAY,WAAY,MAAM,KAAG,MAAM,IAAI,UAAyC,CAAC;AAClG,eAAO,MAAM,aAAa,WAAY,MAAM,KAAG,MAAM,IAAI,WAA2C,CAAC;AAErG,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI,UAAW,aAAa,KAAG,MAS3C,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;CAC7C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,UAAW,cAAc,KAAG,MASjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KanbanOperation.d.ts","sourceRoot":"","sources":["../../../../src/types/KanbanOperation.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAMlC,eAAO,MAAM,qBAAqB;;;;;;;;;EAIhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErF,eAAO,MAAM,eAAe;;;;;;;;;;;;sBAQ1B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;EAE3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3E,eAAO,MAAM,UAAU;;;;SAMrB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;4BAU3B,CAAC;AAEH,eAAO,MAAM,WAAW;;eAMtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,mBAAmB,SAAS,CAAC;AAE7B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC"}
|