@dxos/plugin-kanban 0.8.4-main.2e9d522 → 0.8.4-main.406dc2a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/blueprint-definition-UYVX622Q.mjs +28 -0
- package/dist/lib/browser/blueprint-definition-UYVX622Q.mjs.map +7 -0
- package/dist/lib/browser/{chunk-X44RHBZK.mjs → chunk-K7KYFJ3P.mjs} +6 -34
- package/dist/lib/browser/chunk-K7KYFJ3P.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +14 -15
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-E6O3LBAB.mjs → intent-resolver-LR3SDMKQ.mjs} +15 -15
- package/dist/lib/browser/intent-resolver-LR3SDMKQ.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-MWNNZYMN.mjs → react-surface-R2ORFB43.mjs} +25 -26
- package/dist/lib/browser/react-surface-R2ORFB43.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +3 -5
- package/dist/lib/node-esm/blueprint-definition-42P47FUY.mjs +30 -0
- package/dist/lib/node-esm/blueprint-definition-42P47FUY.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-6WK5CGYY.mjs → chunk-VDWYSHP4.mjs} +6 -34
- package/dist/lib/node-esm/chunk-VDWYSHP4.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +14 -15
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-LPASDELU.mjs → intent-resolver-CKDNVLND.mjs} +15 -15
- package/dist/lib/node-esm/intent-resolver-CKDNVLND.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-T52BBG45.mjs → react-surface-RMRLHCOY.mjs} +25 -26
- package/dist/lib/node-esm/react-surface-RMRLHCOY.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +3 -5
- package/dist/types/src/KanbanPlugin.d.ts +1 -1
- package/dist/types/src/KanbanPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/artifact-definition.d.ts +1 -1
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +5 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +3 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/components/KanbanContainer.d.ts.map +1 -1
- package/dist/types/src/components/KanbanContainer.stories.d.ts +37 -6
- package/dist/types/src/components/KanbanContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/KanbanViewEditor.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +0 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -2
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +11 -54
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +42 -40
- package/src/KanbanPlugin.tsx +50 -50
- package/src/capabilities/artifact-definition.ts +10 -6
- package/src/capabilities/blueprint-definition.ts +30 -0
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/intent-resolver.ts +10 -9
- package/src/capabilities/react-surface.tsx +5 -5
- package/src/components/KanbanContainer.stories.tsx +34 -30
- package/src/components/KanbanContainer.tsx +6 -6
- package/src/components/KanbanViewEditor.tsx +15 -11
- package/src/meta.ts +1 -3
- package/src/translations.ts +2 -2
- package/src/types/index.ts +0 -1
- package/src/types/schema.ts +5 -5
- package/dist/lib/browser/artifact-definition-WMSZK3RW.mjs +0 -174
- package/dist/lib/browser/artifact-definition-WMSZK3RW.mjs.map +0 -7
- package/dist/lib/browser/chunk-X44RHBZK.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-E6O3LBAB.mjs.map +0 -7
- package/dist/lib/browser/react-surface-MWNNZYMN.mjs.map +0 -7
- package/dist/lib/node-esm/artifact-definition-QVZXPDXK.mjs +0 -175
- package/dist/lib/node-esm/artifact-definition-QVZXPDXK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6WK5CGYY.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-LPASDELU.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-T52BBG45.mjs.map +0 -7
- package/dist/types/src/types/kanban.d.ts +0 -11
- package/dist/types/src/types/kanban.d.ts.map +0 -1
- package/src/types/kanban.ts +0 -29
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
KanbanAction,
|
|
4
4
|
PivotColumnAnnotationId,
|
|
5
5
|
meta
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VDWYSHP4.mjs";
|
|
7
7
|
|
|
8
8
|
// src/capabilities/react-surface.tsx
|
|
9
9
|
import React3, { useMemo as useMemo3 } from "react";
|
|
@@ -13,7 +13,7 @@ import { findAnnotation } from "@dxos/effect";
|
|
|
13
13
|
import { ClientCapabilities } from "@dxos/plugin-client";
|
|
14
14
|
import { getSpace as getSpace3, isSpace } from "@dxos/react-client/echo";
|
|
15
15
|
import { SelectInput as SelectInput2, useFormValues } from "@dxos/react-ui-form";
|
|
16
|
-
import {
|
|
16
|
+
import { Kanban as Kanban3 } from "@dxos/react-ui-kanban/types";
|
|
17
17
|
import { DataType } from "@dxos/schema";
|
|
18
18
|
|
|
19
19
|
// src/components/KanbanContainer.tsx
|
|
@@ -21,13 +21,13 @@ import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
|
|
|
21
21
|
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
22
22
|
import { createIntent, useIntentDispatcher } from "@dxos/app-framework";
|
|
23
23
|
import { Filter, Obj, Type } from "@dxos/echo";
|
|
24
|
-
import { EchoSchema } from "@dxos/echo
|
|
24
|
+
import { EchoSchema } from "@dxos/echo/internal";
|
|
25
25
|
import { useGlobalFilteredObjects } from "@dxos/plugin-search";
|
|
26
26
|
import { useClient } from "@dxos/react-client";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
27
|
+
import { getSpace, useQuery } from "@dxos/react-client/echo";
|
|
28
|
+
import { Kanban, useKanbanModel } from "@dxos/react-ui-kanban";
|
|
29
29
|
import { StackItem } from "@dxos/react-ui-stack";
|
|
30
|
-
import { ProjectionModel } from "@dxos/schema";
|
|
30
|
+
import { ProjectionModel, getTypenameFromQuery } from "@dxos/schema";
|
|
31
31
|
var KanbanContainer = ({ view }) => {
|
|
32
32
|
var _effect = _useSignals();
|
|
33
33
|
try {
|
|
@@ -36,6 +36,7 @@ var KanbanContainer = ({ view }) => {
|
|
|
36
36
|
const [projection, setProjection] = useState();
|
|
37
37
|
const space = getSpace(view);
|
|
38
38
|
const { dispatchPromise: dispatch } = useIntentDispatcher();
|
|
39
|
+
const typename = view.query ? getTypenameFromQuery(view.query.ast) : void 0;
|
|
39
40
|
const jsonSchema = useMemo(() => {
|
|
40
41
|
if (!cardSchema) {
|
|
41
42
|
return void 0;
|
|
@@ -45,7 +46,6 @@ var KanbanContainer = ({ view }) => {
|
|
|
45
46
|
cardSchema
|
|
46
47
|
]);
|
|
47
48
|
useEffect(() => {
|
|
48
|
-
const typename = view.query.typename;
|
|
49
49
|
const staticSchema = client.graph.schemaRegistry.schemas.find((schema) => Type.getTypename(schema) === typename);
|
|
50
50
|
if (staticSchema) {
|
|
51
51
|
setCardSchema(() => staticSchema);
|
|
@@ -65,7 +65,7 @@ var KanbanContainer = ({ view }) => {
|
|
|
65
65
|
return unsubscribe;
|
|
66
66
|
}
|
|
67
67
|
}, [
|
|
68
|
-
|
|
68
|
+
typename,
|
|
69
69
|
space
|
|
70
70
|
]);
|
|
71
71
|
useEffect(() => {
|
|
@@ -119,26 +119,25 @@ var KanbanContainer = ({ view }) => {
|
|
|
119
119
|
import { useSignals as _useSignals2 } from "@preact-signals/safe-react/tracking";
|
|
120
120
|
import React2, { useCallback as useCallback2, useMemo as useMemo2 } from "react";
|
|
121
121
|
import { Type as Type2 } from "@dxos/echo";
|
|
122
|
-
import { EchoSchema as EchoSchema2, FormatEnum } from "@dxos/echo
|
|
122
|
+
import { EchoSchema as EchoSchema2, FormatEnum } from "@dxos/echo/internal";
|
|
123
123
|
import { useClient as useClient2 } from "@dxos/react-client";
|
|
124
124
|
import { getSpace as getSpace2, useSchema } from "@dxos/react-client/echo";
|
|
125
125
|
import { Form, SelectInput } from "@dxos/react-ui-form";
|
|
126
|
-
import {
|
|
127
|
-
import { ProjectionModel as ProjectionModel2 } from "@dxos/schema";
|
|
126
|
+
import { Kanban as Kanban2 } from "@dxos/react-ui-kanban/types";
|
|
127
|
+
import { ProjectionModel as ProjectionModel2, getTypenameFromQuery as getTypenameFromQuery2 } from "@dxos/schema";
|
|
128
128
|
var KanbanViewEditor = ({ view }) => {
|
|
129
129
|
var _effect = _useSignals2();
|
|
130
130
|
try {
|
|
131
131
|
const client = useClient2();
|
|
132
132
|
const space = getSpace2(view);
|
|
133
|
-
const
|
|
134
|
-
const currentTypename = useMemo2(() => view.query.typename, [
|
|
135
|
-
view.query.typename
|
|
136
|
-
]);
|
|
133
|
+
const currentTypename = view.query ? getTypenameFromQuery2(view.query.ast) : void 0;
|
|
137
134
|
const schema = useSchema(client, space, currentTypename);
|
|
138
135
|
const projection = useMemo2(() => {
|
|
139
136
|
if (schema) {
|
|
140
137
|
const jsonSchema = schema instanceof EchoSchema2 ? schema.jsonSchema : Type2.toJsonSchema(schema);
|
|
141
|
-
|
|
138
|
+
const projection2 = new ProjectionModel2(jsonSchema, view.projection);
|
|
139
|
+
projection2.normalizeView();
|
|
140
|
+
return projection2;
|
|
142
141
|
}
|
|
143
142
|
}, [
|
|
144
143
|
view.projection,
|
|
@@ -150,14 +149,14 @@ var KanbanViewEditor = ({ view }) => {
|
|
|
150
149
|
label: field.path
|
|
151
150
|
}));
|
|
152
151
|
const handleSave = useCallback2((values) => {
|
|
153
|
-
|
|
152
|
+
view.projection.pivotFieldId = values.columnFieldId;
|
|
154
153
|
}, [
|
|
155
|
-
|
|
154
|
+
view
|
|
156
155
|
]);
|
|
157
156
|
const initialValues = useMemo2(() => ({
|
|
158
|
-
columnFieldId:
|
|
157
|
+
columnFieldId: view.projection.pivotFieldId
|
|
159
158
|
}), [
|
|
160
|
-
|
|
159
|
+
view.projection.pivotFieldId
|
|
161
160
|
]);
|
|
162
161
|
const custom = useMemo2(() => ({
|
|
163
162
|
columnFieldId: (props) => /* @__PURE__ */ React2.createElement(SelectInput, {
|
|
@@ -169,7 +168,7 @@ var KanbanViewEditor = ({ view }) => {
|
|
|
169
168
|
]);
|
|
170
169
|
return /* @__PURE__ */ React2.createElement(Form, {
|
|
171
170
|
Custom: custom,
|
|
172
|
-
schema:
|
|
171
|
+
schema: Kanban2.SettingsSchema,
|
|
173
172
|
values: initialValues,
|
|
174
173
|
onSave: handleSave,
|
|
175
174
|
autoSave: true,
|
|
@@ -182,14 +181,14 @@ var KanbanViewEditor = ({ view }) => {
|
|
|
182
181
|
};
|
|
183
182
|
|
|
184
183
|
// src/capabilities/react-surface.tsx
|
|
185
|
-
var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
184
|
+
var react_surface_default = (() => contributes(Capabilities.ReactSurface, [
|
|
186
185
|
createSurface({
|
|
187
186
|
id: meta.id,
|
|
188
187
|
role: [
|
|
189
188
|
"article",
|
|
190
189
|
"section"
|
|
191
190
|
],
|
|
192
|
-
filter: (data) => Obj2.instanceOf(DataType.View, data.subject) && Obj2.instanceOf(
|
|
191
|
+
filter: (data) => Obj2.instanceOf(DataType.View, data.subject) && Obj2.instanceOf(Kanban3.Kanban, data.subject.presentation.target),
|
|
193
192
|
component: ({ data, role }) => /* @__PURE__ */ React3.createElement(KanbanContainer, {
|
|
194
193
|
view: data.subject,
|
|
195
194
|
role
|
|
@@ -199,7 +198,7 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
|
199
198
|
id: `${meta.id}/object-settings`,
|
|
200
199
|
role: "object-settings",
|
|
201
200
|
position: "hoist",
|
|
202
|
-
filter: (data) => Obj2.instanceOf(DataType.View, data.subject) && Obj2.instanceOf(
|
|
201
|
+
filter: (data) => Obj2.instanceOf(DataType.View, data.subject) && Obj2.instanceOf(Kanban3.Kanban, data.subject.presentation.target),
|
|
203
202
|
component: ({ data }) => /* @__PURE__ */ React3.createElement(KanbanViewEditor, {
|
|
204
203
|
view: data.subject
|
|
205
204
|
})
|
|
@@ -250,8 +249,8 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
|
250
249
|
});
|
|
251
250
|
}
|
|
252
251
|
})
|
|
253
|
-
]);
|
|
252
|
+
]));
|
|
254
253
|
export {
|
|
255
254
|
react_surface_default as default
|
|
256
255
|
};
|
|
257
|
-
//# sourceMappingURL=react-surface-
|
|
256
|
+
//# sourceMappingURL=react-surface-RMRLHCOY.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/components/KanbanContainer.tsx", "../../../src/components/KanbanViewEditor.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport type * as Schema from 'effect/Schema';\nimport React, { useMemo } from 'react';\n\nimport { Capabilities, contributes, createSurface, useCapabilities } from '@dxos/app-framework';\nimport { Obj, Type } from '@dxos/echo';\nimport { findAnnotation } from '@dxos/effect';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { type Space, getSpace, isSpace } from '@dxos/react-client/echo';\nimport { type InputProps, SelectInput, useFormValues } from '@dxos/react-ui-form';\nimport { Kanban } from '@dxos/react-ui-kanban/types';\nimport { DataType } from '@dxos/schema';\n\nimport { KanbanContainer, KanbanViewEditor } from '../components';\nimport { meta } from '../meta';\nimport { PivotColumnAnnotationId } from '../types';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: meta.id,\n role: ['article', 'section'],\n filter: (data): data is { subject: DataType.View } =>\n Obj.instanceOf(DataType.View, data.subject) && Obj.instanceOf(Kanban.Kanban, data.subject.presentation.target),\n component: ({ data, role }) => <KanbanContainer view={data.subject} role={role} />,\n }),\n createSurface({\n id: `${meta.id}/object-settings`,\n role: 'object-settings',\n position: 'hoist',\n filter: (data): data is { subject: DataType.View } =>\n Obj.instanceOf(DataType.View, data.subject) && Obj.instanceOf(Kanban.Kanban, data.subject.presentation.target),\n component: ({ data }) => <KanbanViewEditor view={data.subject} />,\n }),\n createSurface({\n id: `${meta.id}/create-initial-schema-form-[pivot-column]`,\n role: 'form-input',\n filter: (\n data,\n ): data is { prop: string; schema: Schema.Schema<any>; target: Space | DataType.Collection | undefined } => {\n const annotation = findAnnotation<boolean>((data.schema as Schema.Schema.All).ast, PivotColumnAnnotationId);\n return !!annotation;\n },\n component: ({ data: { target }, ...inputProps }) => {\n const props = inputProps as any as InputProps;\n const space = isSpace(target) ? target : getSpace(target);\n if (!space) {\n return null;\n }\n const { typename } = useFormValues();\n // TODO(wittjosiah): Unify this schema lookup.\n const schemaWhitelists = useCapabilities(ClientCapabilities.SchemaWhiteList);\n const staticSchema = schemaWhitelists.flat().find((schema) => Type.getTypename(schema) === typename);\n const [selectedSchema] = space?.db.schemaRegistry.query({ typename }).runSync();\n\n const singleSelectColumns = useMemo(() => {\n const properties = staticSchema\n ? Type.toJsonSchema(staticSchema).properties\n : selectedSchema?.jsonSchema?.properties;\n if (!properties) {\n return [];\n }\n\n const columns = Object.entries(properties).reduce<string[]>((acc, [key, value]) => {\n if (typeof value === 'object' && value?.format === 'single-select') {\n acc.push(key);\n }\n return acc;\n }, []);\n\n return columns;\n }, [selectedSchema?.jsonSchema, staticSchema]);\n\n if (!typename) {\n return null;\n }\n\n return <SelectInput {...props} options={singleSelectColumns.map((column) => ({ value: column }))} />;\n },\n }),\n ]);\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\n\nimport { createIntent, useIntentDispatcher } from '@dxos/app-framework';\nimport { Filter, Obj, Type } from '@dxos/echo';\nimport { EchoSchema, type TypedObject } from '@dxos/echo/internal';\nimport { useGlobalFilteredObjects } from '@dxos/plugin-search';\nimport { useClient } from '@dxos/react-client';\nimport { getSpace, useQuery } from '@dxos/react-client/echo';\nimport { Kanban, useKanbanModel } from '@dxos/react-ui-kanban';\nimport { StackItem } from '@dxos/react-ui-stack';\nimport { type DataType, ProjectionModel, getTypenameFromQuery } from '@dxos/schema';\n\nimport { KanbanAction } from '../types';\n\nexport const KanbanContainer = ({ view }: { view: DataType.View; role: string }) => {\n const client = useClient();\n const [cardSchema, setCardSchema] = useState<TypedObject<any, any>>();\n const [projection, setProjection] = useState<ProjectionModel>();\n const space = getSpace(view);\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n const typename = view.query ? getTypenameFromQuery(view.query.ast) : undefined;\n\n const jsonSchema = useMemo(() => {\n if (!cardSchema) {\n return undefined;\n }\n return cardSchema instanceof EchoSchema ? cardSchema.jsonSchema : Type.toJsonSchema(cardSchema);\n }, [cardSchema]);\n\n useEffect(() => {\n const staticSchema = client.graph.schemaRegistry.schemas.find((schema) => Type.getTypename(schema) === typename);\n if (staticSchema) {\n setCardSchema(() => staticSchema as TypedObject<any, any>);\n }\n if (!staticSchema && typename && space) {\n const query = space.db.schemaRegistry.query({ typename });\n const unsubscribe = query.subscribe(\n () => {\n const [schema] = query.results;\n if (schema) {\n setCardSchema(schema);\n }\n },\n { fire: true },\n );\n return unsubscribe;\n }\n }, [typename, space]);\n\n useEffect(() => {\n if (jsonSchema) {\n setProjection(new ProjectionModel(jsonSchema, view.projection));\n }\n // TODO(ZaymonFC): Is there a better way to get notified about deep changes in the json schema?\n }, [view.projection, JSON.stringify(jsonSchema)]);\n\n const objects = useQuery(space, cardSchema ? Filter.type(cardSchema) : Filter.nothing());\n const filteredObjects = useGlobalFilteredObjects(objects);\n\n const model = useKanbanModel({\n view,\n schema: cardSchema,\n projection,\n items: filteredObjects,\n });\n\n const handleAddCard = useCallback(\n (columnValue: string | undefined) => {\n const path = model?.columnFieldPath;\n if (space && cardSchema && path) {\n const card = Obj.make(cardSchema, { [path]: columnValue });\n space.db.add(card);\n return card.id;\n }\n },\n [space, cardSchema, model],\n );\n\n const handleRemoveCard = useCallback(\n (card: { id: string }) => {\n void dispatch(createIntent(KanbanAction.DeleteCard, { card }));\n },\n [dispatch],\n );\n\n return (\n <StackItem.Content>\n {model && <Kanban model={model} onAddCard={handleAddCard} onRemoveCard={handleRemoveCard} />}\n </StackItem.Content>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { useCallback, useMemo } from 'react';\n\nimport { Type } from '@dxos/echo';\nimport { EchoSchema, FormatEnum } from '@dxos/echo/internal';\nimport { useClient } from '@dxos/react-client';\nimport { getSpace, useSchema } from '@dxos/react-client/echo';\nimport { type CustomInputMap, Form, SelectInput } from '@dxos/react-ui-form';\nimport { Kanban } from '@dxos/react-ui-kanban/types';\nimport { type DataType, ProjectionModel, getTypenameFromQuery } from '@dxos/schema';\n\ntype KanbanViewEditorProps = { view: DataType.View };\n\nexport const KanbanViewEditor = ({ view }: KanbanViewEditorProps) => {\n const client = useClient();\n const space = getSpace(view);\n const currentTypename = view.query ? getTypenameFromQuery(view.query.ast) : undefined;\n const schema = useSchema(client, space, currentTypename);\n\n const projection = useMemo(() => {\n if (schema) {\n const jsonSchema = schema instanceof EchoSchema ? schema.jsonSchema : Type.toJsonSchema(schema);\n const projection = new ProjectionModel(jsonSchema, view.projection);\n projection.normalizeView();\n return projection;\n }\n }, [view.projection, JSON.stringify(schema)]);\n\n const fieldProjections = projection?.getFieldProjections() || [];\n const selectFields = fieldProjections\n .filter((field) => field.props.format === FormatEnum.SingleSelect)\n .map(({ field }) => ({ value: field.id, label: field.path }));\n\n const handleSave = useCallback(\n (values: Partial<{ columnFieldId: string }>) => {\n view.projection.pivotFieldId = values.columnFieldId;\n },\n [view],\n );\n\n const initialValues = useMemo(\n () => ({ columnFieldId: view.projection.pivotFieldId }),\n [view.projection.pivotFieldId],\n );\n const custom: CustomInputMap = useMemo(\n () => ({ columnFieldId: (props) => <SelectInput {...props} options={selectFields} /> }),\n [selectFields],\n );\n\n return (\n <Form\n Custom={custom}\n schema={Kanban.SettingsSchema}\n values={initialValues}\n onSave={handleSave}\n autoSave\n outerSpacing={false}\n classNames='pbs-inputSpacingBlock'\n />\n );\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAKA,OAAOA,UAASC,WAAAA,gBAAe;AAE/B,SAASC,cAAcC,aAAaC,eAAeC,uBAAuB;AAC1E,SAASC,OAAAA,MAAKC,QAAAA,aAAY;AAC1B,SAASC,sBAAsB;AAC/B,SAASC,0BAA0B;AACnC,SAAqBC,YAAAA,WAAUC,eAAe;AAC9C,SAA0BC,eAAAA,cAAaC,qBAAqB;AAC5D,SAASC,UAAAA,eAAc;AACvB,SAASC,gBAAgB;;;;ACVzB,OAAOC,SAASC,aAAaC,WAAWC,SAASC,gBAAgB;AAEjE,SAASC,cAAcC,2BAA2B;AAClD,SAASC,QAAQC,KAAKC,YAAY;AAClC,SAASC,kBAAoC;AAC7C,SAASC,gCAAgC;AACzC,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,gBAAgB;AACnC,SAASC,QAAQC,sBAAsB;AACvC,SAASC,iBAAiB;AAC1B,SAAwBC,iBAAiBC,4BAA4B;AAI9D,IAAMC,kBAAkB,CAAC,EAAEC,KAAI,MAAyC;;;AAC7E,UAAMC,SAASC,UAAAA;AACf,UAAM,CAACC,YAAYC,aAAAA,IAAiBC,SAAAA;AACpC,UAAM,CAACC,YAAYC,aAAAA,IAAiBF,SAAAA;AACp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U,YAAYA,OAAOC,WAAW,iBAAiB;AAClEH,gBAAII,KAAKH,GAAAA;UACX;AACA,iBAAOD;QACT,GAAG,CAAA,CAAE;AAEL,eAAOJ;MACT,GAAG;QAACV,gBAAgBS;QAAYd;OAAa;AAE7C,UAAI,CAACN,UAAU;AACb,eAAO;MACT;AAEA,aAAO,gBAAAf,OAAA,cAAC6C,cAAAA;QAAa,GAAGlC;QAAOmC,SAASf,oBAAoBgB,IAAI,CAACC,YAAY;UAAEN,OAAOM;QAAO,EAAA;;IAC/F;EACF,CAAA;CACD;",
|
|
6
|
+
"names": ["React", "useMemo", "Capabilities", "contributes", "createSurface", "useCapabilities", "Obj", "Type", "findAnnotation", "ClientCapabilities", "getSpace", "isSpace", "SelectInput", "useFormValues", "Kanban", "DataType", "React", "useCallback", "useEffect", "useMemo", "useState", "createIntent", "useIntentDispatcher", "Filter", "Obj", "Type", "EchoSchema", "useGlobalFilteredObjects", "useClient", "getSpace", "useQuery", "Kanban", "useKanbanModel", "StackItem", "ProjectionModel", "getTypenameFromQuery", "KanbanContainer", "view", "client", "useClient", "cardSchema", "setCardSchema", "useState", "projection", "setProjection", "space", "getSpace", "dispatchPromise", "dispatch", "useIntentDispatcher", "typename", "query", "getTypenameFromQuery", "ast", "undefined", "jsonSchema", "useMemo", "EchoSchema", "Type", "toJsonSchema", "useEffect", "staticSchema", "graph", "schemaRegistry", "schemas", "find", "schema", "getTypename", "db", "unsubscribe", "subscribe", "results", "fire", "ProjectionModel", "JSON", "stringify", "objects", "useQuery", "Filter", "type", "nothing", "filteredObjects", "useGlobalFilteredObjects", "model", "useKanbanModel", "items", "handleAddCard", "useCallback", "columnValue", "path", "columnFieldPath", "card", "Obj", "make", "add", "id", "handleRemoveCard", "createIntent", "KanbanAction", "DeleteCard", "StackItem", "Content", "Kanban", "onAddCard", "onRemoveCard", "React", "useCallback", "useMemo", "Type", "EchoSchema", "FormatEnum", "useClient", "getSpace", "useSchema", "Form", "SelectInput", "Kanban", "ProjectionModel", "getTypenameFromQuery", "KanbanViewEditor", "view", "client", "useClient", "space", "getSpace", "currentTypename", "query", "getTypenameFromQuery", "ast", "undefined", "schema", "useSchema", "projection", "useMemo", "jsonSchema", "EchoSchema", "Type", "toJsonSchema", "ProjectionModel", "normalizeView", "JSON", "stringify", "fieldProjections", "getFieldProjections", "selectFields", "filter", "field", "props", "format", "FormatEnum", "SingleSelect", "map", "value", "id", "label", "path", "handleSave", "useCallback", "values", "pivotFieldId", "columnFieldId", "initialValues", "custom", "React", "SelectInput", "options", "Form", "Custom", "Kanban", "SettingsSchema", "onSave", "autoSave", "outerSpacing", "classNames", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "meta", "role", "filter", "data", "Obj", "instanceOf", "DataType", "View", "subject", "Kanban", "presentation", "target", "component", "React", "KanbanContainer", "view", "position", "KanbanViewEditor", "annotation", "findAnnotation", "schema", "ast", "PivotColumnAnnotationId", "inputProps", "props", "space", "isSpace", "getSpace", "typename", "useFormValues", "schemaWhitelists", "useCapabilities", "ClientCapabilities", "SchemaWhiteList", "staticSchema", "flat", "find", "Type", "getTypename", "selectedSchema", "db", "schemaRegistry", "query", "runSync", "singleSelectColumns", "useMemo", "properties", "toJsonSchema", "jsonSchema", "columns", "Object", "entries", "reduce", "acc", "key", "value", "format", "push", "SelectInput", "options", "map", "column"]
|
|
7
|
+
}
|
|
@@ -2,13 +2,11 @@ import { createRequire } from 'node:module';const require = createRequire(import
|
|
|
2
2
|
import {
|
|
3
3
|
CreateKanbanSchema,
|
|
4
4
|
KanbanAction,
|
|
5
|
-
PivotColumnAnnotationId
|
|
6
|
-
|
|
7
|
-
} from "../chunk-6WK5CGYY.mjs";
|
|
5
|
+
PivotColumnAnnotationId
|
|
6
|
+
} from "../chunk-VDWYSHP4.mjs";
|
|
8
7
|
export {
|
|
9
8
|
CreateKanbanSchema,
|
|
10
9
|
KanbanAction,
|
|
11
|
-
PivotColumnAnnotationId
|
|
12
|
-
createKanban
|
|
10
|
+
PivotColumnAnnotationId
|
|
13
11
|
};
|
|
14
12
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const KanbanPlugin:
|
|
1
|
+
export declare const KanbanPlugin: import("@dxos/app-framework").PluginFactory<void>;
|
|
2
2
|
//# sourceMappingURL=KanbanPlugin.d.ts.map
|
|
@@ -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":"AAgBA,eAAO,MAAM,YAAY,mDA8CvB,CAAC"}
|
|
@@ -6,6 +6,6 @@ declare global {
|
|
|
6
6
|
dispatch?: PromiseIntentDispatcher;
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
declare const _default: () => import("@dxos/app-framework").Capability<
|
|
9
|
+
declare const _default: () => import("@dxos/app-framework").Capability<any>;
|
|
10
10
|
export default _default;
|
|
11
11
|
//# sourceMappingURL=artifact-definition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"AAWA,OAAO,EAAgB,KAAK,uBAAuB,EAAoC,MAAM,qBAAqB,CAAC;AAMnH,OAAO,EAAU,KAAK,KAAK,EAAoB,MAAM,yBAAyB,CAAC;AAY/E,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,QAAQ,CAAC,EAAE,uBAAuB,CAAC;KACpC;CACF;;AAED,wBA+GE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
2
|
+
import { type FunctionDefinition } from '@dxos/functions';
|
|
3
|
+
declare const _default: () => (import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<FunctionDefinition<any, any>[]>> | import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Blueprint.Blueprint>>)[];
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=blueprint-definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blueprint-definition.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAY,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;;AAM1D,wBAiBE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const IntentResolver: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver
|
|
3
|
-
export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface
|
|
1
|
+
export declare const BlueprintDefinition: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").AnyCapability[] | import("@dxos/app-framework").Capability<unknown>>>;
|
|
2
|
+
export declare const IntentResolver: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-framework").Capabilities.IntentResolver>> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
3
|
+
export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<import("@dxos/app-framework").Capabilities.ReactSurface>> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB,gJAA+C,CAAC;AAChF,eAAO,MAAM,cAAc,8RAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,4OAAwC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Capabilities, type PluginContext } from '@dxos/app-framework';
|
|
2
|
-
declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<Capabilities.IntentResolver
|
|
2
|
+
declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Capabilities.IntentResolver>>;
|
|
3
3
|
export default _default;
|
|
4
4
|
//# sourceMappingURL=intent-resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,KAAK,aAAa,EAA+B,MAAM,qBAAqB,CAAC;yBAUpF,SAAS,aAAa;AAAtC,wBAwDK"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Capabilities } from '@dxos/app-framework';
|
|
2
|
-
declare const _default: () => import("@dxos/app-framework").Capability<Capabilities.ReactSurface
|
|
2
|
+
declare const _default: () => import("@dxos/app-framework").Capability<import("@dxos/app-framework").InterfaceDef<Capabilities.ReactSurface>>;
|
|
3
3
|
export default _default;
|
|
4
4
|
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAUzE,OAAO,
|
|
1
|
+
{"version":3,"file":"KanbanContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAUzE,OAAO,EAAE,KAAK,QAAQ,EAAyC,MAAM,cAAc,CAAC;AAIpF,eAAO,MAAM,eAAe,GAAI,UAAU;IAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,sBA4E9E,CAAC"}
|
|
@@ -1,10 +1,41 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Kanban } from '@dxos/react-ui-kanban/types';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: () => React.JSX.Element | null;
|
|
7
|
+
render: () => React.JSX.Element;
|
|
8
|
+
decorators: import("@storybook/react").Decorator[];
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: string;
|
|
11
|
+
translations: [{
|
|
12
|
+
readonly 'en-US': {
|
|
13
|
+
readonly [Kanban.Kanban.typename]: {
|
|
14
|
+
readonly 'typename label': "Kanban";
|
|
15
|
+
readonly 'typename label_zero': "Kanbans";
|
|
16
|
+
readonly 'typename label_one': "Kanban";
|
|
17
|
+
readonly 'typename label_other': "Kanbans";
|
|
18
|
+
readonly 'object name placeholder': "New kanban";
|
|
19
|
+
};
|
|
20
|
+
readonly [meta.id]: {
|
|
21
|
+
readonly 'plugin name': "Kanban";
|
|
22
|
+
readonly 'kanban title label': "Title";
|
|
23
|
+
readonly 'column title label': "Column title";
|
|
24
|
+
readonly 'column title placeholder': "New column";
|
|
25
|
+
readonly 'item title label': "Item title";
|
|
26
|
+
readonly 'item title placeholder': "New item";
|
|
27
|
+
readonly 'add column label': "Add column";
|
|
28
|
+
readonly 'add item label': "Add card";
|
|
29
|
+
readonly 'delete column label': "Delete column";
|
|
30
|
+
readonly 'delete item label': "Delete card";
|
|
31
|
+
readonly 'card field deleted label': "Card field deleted";
|
|
32
|
+
readonly 'card deleted label': "Card deleted";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}];
|
|
36
|
+
};
|
|
5
37
|
};
|
|
6
|
-
declare const meta: Meta<StoryProps>;
|
|
7
38
|
export default meta;
|
|
8
|
-
type Story = StoryObj<
|
|
39
|
+
type Story = StoryObj<typeof meta>;
|
|
9
40
|
export declare const Default: Story;
|
|
10
41
|
//# sourceMappingURL=KanbanContainer.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"KanbanContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA2C,MAAM,OAAO,CAAC;AAkBhE,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAwHrD,QAAA,MAAM,IAAI;;;;;;;;;yBAxIyC,CAAQ,MAAM,CAAC,MAC9D,CAAC,QAAQ,CAAC;;;;;;;yBAIK,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;CA8KK,CAAC;AAEzC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanViewEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanViewEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAQpD,OAAO,EAAE,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"KanbanViewEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanViewEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAQpD,OAAO,EAAE,KAAK,QAAQ,EAAyC,MAAM,cAAc,CAAC;AAEpF,KAAK,qBAAqB,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAA;CAAE,CAAC;AAErD,eAAO,MAAM,gBAAgB,GAAI,UAAU,qBAAqB,sBA+C/D,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,IAAI,EAAE,UAQlB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Kanban } from '@dxos/react-ui-kanban/types';
|
|
2
2
|
import { meta } from './meta';
|
|
3
3
|
export declare const translations: [{
|
|
4
4
|
readonly 'en-US': {
|
|
5
|
-
readonly [
|
|
5
|
+
readonly [Kanban.Kanban.typename]: {
|
|
6
6
|
readonly 'typename label': "Kanban";
|
|
7
7
|
readonly 'typename label_zero': "Kanbans";
|
|
8
8
|
readonly 'typename label_one': "Kanban";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;;;;;;UAMvB;QACD,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;UAaR;;EAGwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,mBAAmB,SAAS,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { DataType } from '@dxos/schema';
|
|
2
3
|
/**
|
|
3
4
|
* Kanban data model.
|
|
4
5
|
* A Kanban board is a collection of columns, each of which contains a collection of items.
|
|
@@ -14,8 +15,8 @@ export declare const CreateKanbanSchema: Schema.Struct<{
|
|
|
14
15
|
initialPivotColumn: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
15
16
|
}>;
|
|
16
17
|
export declare namespace KanbanAction {
|
|
17
|
-
const Create_base: Schema.TaggedClass<Create,
|
|
18
|
-
readonly _tag: Schema.tag
|
|
18
|
+
const Create_base: Schema.TaggedClass<Create, `${string}/create`, {
|
|
19
|
+
readonly _tag: Schema.tag<`${string}/create`>;
|
|
19
20
|
} & {
|
|
20
21
|
input: Schema.extend<Schema.Struct<{
|
|
21
22
|
space: Schema.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
|
|
@@ -25,67 +26,23 @@ export declare namespace KanbanAction {
|
|
|
25
26
|
initialPivotColumn: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
26
27
|
}>>;
|
|
27
28
|
output: Schema.Struct<{
|
|
28
|
-
object: import("@dxos/
|
|
29
|
-
name: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
30
|
-
query: import("effect/Schema").Schema<import("@dxos/echo-schema").QueryType, import("@dxos/echo-schema").QueryType, never>;
|
|
31
|
-
projection: import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
32
|
-
schema: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").JsonSchemaType, import("@dxos/echo-schema").JsonSchemaType, never>>;
|
|
33
|
-
fields: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
34
|
-
id: typeof import("effect/Schema").String;
|
|
35
|
-
path: import("effect/Schema").Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
|
|
36
|
-
referencePath: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
37
|
-
visible: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
38
|
-
}>>>>;
|
|
39
|
-
hiddenFields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
40
|
-
id: typeof import("effect/Schema").String;
|
|
41
|
-
path: import("effect/Schema").Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
|
|
42
|
-
referencePath: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
43
|
-
visible: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
44
|
-
}>>>>>;
|
|
45
|
-
}>>;
|
|
46
|
-
presentation: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
47
|
-
[x: string]: any;
|
|
48
|
-
id: string;
|
|
49
|
-
}, never>>;
|
|
50
|
-
}>>;
|
|
29
|
+
object: Schema.Schema<DataType.View, import("@dxos/schema").ViewEncoded, never>;
|
|
51
30
|
}>;
|
|
52
31
|
}>;
|
|
53
32
|
export class Create extends Create_base {
|
|
54
33
|
}
|
|
55
|
-
const DeleteCardField_base: Schema.TaggedClass<DeleteCardField,
|
|
56
|
-
readonly _tag: Schema.tag
|
|
34
|
+
const DeleteCardField_base: Schema.TaggedClass<DeleteCardField, `${string}/delete-card-field`, {
|
|
35
|
+
readonly _tag: Schema.tag<`${string}/delete-card-field`>;
|
|
57
36
|
} & {
|
|
58
37
|
input: Schema.Struct<{
|
|
59
|
-
view: import("@dxos/
|
|
60
|
-
name: import("effect/Schema").optional<import("effect/Schema").SchemaClass<string, string, never>>;
|
|
61
|
-
query: import("effect/Schema").Schema<import("@dxos/echo-schema").QueryType, import("@dxos/echo-schema").QueryType, never>;
|
|
62
|
-
projection: import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
63
|
-
schema: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/echo-schema").JsonSchemaType, import("@dxos/echo-schema").JsonSchemaType, never>>;
|
|
64
|
-
fields: import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
65
|
-
id: typeof import("effect/Schema").String;
|
|
66
|
-
path: import("effect/Schema").Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
|
|
67
|
-
referencePath: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
68
|
-
visible: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
69
|
-
}>>>>;
|
|
70
|
-
hiddenFields: import("effect/Schema").optional<import("effect/Schema").mutable<import("effect/Schema").Array$<import("effect/Schema").mutable<import("effect/Schema").Struct<{
|
|
71
|
-
id: typeof import("effect/Schema").String;
|
|
72
|
-
path: import("effect/Schema").Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
|
|
73
|
-
referencePath: import("effect/Schema").optional<import("effect/Schema").Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
74
|
-
visible: import("effect/Schema").optional<typeof import("effect/Schema").Boolean>;
|
|
75
|
-
}>>>>>;
|
|
76
|
-
}>>;
|
|
77
|
-
presentation: import("@dxos/echo/Type").ref<import("effect/Schema").Schema<import("@dxos/echo/Type").Expando, {
|
|
78
|
-
[x: string]: any;
|
|
79
|
-
id: string;
|
|
80
|
-
}, never>>;
|
|
81
|
-
}>>;
|
|
38
|
+
view: Schema.Schema<DataType.View, import("@dxos/schema").ViewEncoded, never>;
|
|
82
39
|
fieldId: typeof Schema.String;
|
|
83
40
|
deletionData: Schema.optional<Schema.Struct<{
|
|
84
41
|
field: Schema.mutable<Schema.Struct<{
|
|
85
42
|
id: typeof Schema.String;
|
|
86
43
|
path: Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
|
|
87
|
-
referencePath: Schema.optional<Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
88
44
|
visible: Schema.optional<typeof Schema.Boolean>;
|
|
45
|
+
referencePath: Schema.optional<Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
89
46
|
}>>;
|
|
90
47
|
props: typeof Schema.Any;
|
|
91
48
|
index: typeof Schema.Number;
|
|
@@ -95,8 +52,8 @@ export declare namespace KanbanAction {
|
|
|
95
52
|
}>;
|
|
96
53
|
export class DeleteCardField extends DeleteCardField_base {
|
|
97
54
|
}
|
|
98
|
-
const DeleteCard_base: Schema.TaggedClass<DeleteCard,
|
|
99
|
-
readonly _tag: Schema.tag
|
|
55
|
+
const DeleteCard_base: Schema.TaggedClass<DeleteCard, `${string}/delete-card`, {
|
|
56
|
+
readonly _tag: Schema.tag<`${string}/delete-card`>;
|
|
100
57
|
} & {
|
|
101
58
|
input: Schema.Struct<{
|
|
102
59
|
card: typeof Schema.Any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAqC,MAAM,cAAc,CAAC;AAI3E;;;;;;;GAOG;AAGH,eAAO,MAAM,uBAAuB,eAA2D,CAAC;AAEhG,eAAO,MAAM,kBAAkB;;;;EAc7B,CAAC;AAEH,yBAAiB,YAAY,CAAC;;;;;;;;;;;;;;;IAG5B,MAAM,OAAO,MAAO,SAAQ,WAK1B;KAAG;;;;;;;;;;;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAgBnC;KAAG;;;;;;;;;IAEL,MAAM,OAAO,UAAW,SAAQ,eAK9B;KAAG;;CACN"}
|