@nocobase/plugin-kanban 3.0.0-alpha.11 → 3.0.0-alpha.13

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.
@@ -7,12 +7,13 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import { CollectionBlockModel } from '@nocobase/client-v2';
10
- import { MultiRecordResource } from '@nocobase/flow-engine';
10
+ import { MultiRecordResource, type FlowModel } from '@nocobase/flow-engine';
11
11
  import React from 'react';
12
12
  import { type KanbanGroupOption } from './utils';
13
13
  type KanbanPopupActionOptions = {
14
14
  persist?: boolean;
15
15
  };
16
+ type KanbanPopupActionKey = 'cardViewAction' | 'quickCreateAction';
16
17
  declare class KanbanBlockResource extends MultiRecordResource {
17
18
  refresh(): Promise<void>;
18
19
  }
@@ -88,7 +89,7 @@ export declare class KanbanBlockModel extends CollectionBlockModel<{
88
89
  renderActions(): React.JSX.Element;
89
90
  getPopupActionUid(): any;
90
91
  getQuickCreateActionUid(): any;
91
- loadPopupAction(actionKey: 'cardViewAction' | 'quickCreateAction'): Promise<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
92
+ loadPopupAction(actionKey: KanbanPopupActionKey): Promise<FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
92
93
  syncPopupAction(action: any, options: {
93
94
  mode: string;
94
95
  size: string;
@@ -100,9 +101,13 @@ export declare class KanbanBlockModel extends CollectionBlockModel<{
100
101
  popupTemplateParams?: Record<string, any>;
101
102
  }, syncOptions?: KanbanPopupActionOptions): Promise<void>;
102
103
  syncCardViewAction(action: any, options?: KanbanPopupActionOptions): Promise<void>;
103
- ensureCardViewAction(options?: KanbanPopupActionOptions): Promise<any>;
104
+ private initializePopupAction;
105
+ private getOrInitializePopupAction;
106
+ private persistNewPopupAction;
107
+ private runPopupActionOperation;
108
+ ensureCardViewAction(options?: KanbanPopupActionOptions): Promise<FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
104
109
  getQuickCreateAction(): any;
105
- ensureQuickCreateAction(options?: KanbanPopupActionOptions): Promise<any>;
110
+ ensureQuickCreateAction(options?: KanbanPopupActionOptions): Promise<FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
106
111
  syncQuickCreateAction(action: any, options?: KanbanPopupActionOptions): Promise<void>;
107
112
  openEmptyPopupShell(options: {
108
113
  mode?: string;
@@ -11,19 +11,19 @@ module.exports = {
11
11
  "@ant-design/icons": "5.6.1",
12
12
  "@formily/react": "2.3.7",
13
13
  "@formily/shared": "2.3.7",
14
- "@nocobase/client": "3.0.0-alpha.11",
14
+ "@nocobase/client": "3.0.0-alpha.13",
15
15
  "antd": "5.24.2",
16
16
  "react": "18.2.0",
17
17
  "react-i18next": "11.18.6",
18
18
  "@emotion/css": "11.13.0",
19
19
  "@formily/antd-v5": "1.2.3",
20
20
  "@formily/core": "2.3.7",
21
- "@nocobase/utils": "3.0.0-alpha.11",
22
- "@nocobase/flow-engine": "3.0.0-alpha.11",
21
+ "@nocobase/utils": "3.0.0-alpha.13",
22
+ "@nocobase/flow-engine": "3.0.0-alpha.13",
23
23
  "lodash": "4.18.1",
24
- "@nocobase/client-v2": "3.0.0-alpha.11",
25
- "@nocobase/server": "3.0.0-alpha.11",
26
- "@nocobase/test": "3.0.0-alpha.11",
24
+ "@nocobase/client-v2": "3.0.0-alpha.13",
25
+ "@nocobase/server": "3.0.0-alpha.13",
26
+ "@nocobase/test": "3.0.0-alpha.13",
27
27
  "antd-style": "3.7.1",
28
28
  "@dnd-kit/core": "6.1.0",
29
29
  "@dnd-kit/sortable": "7.0.2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-kanban",
3
- "version": "3.0.0-alpha.11",
3
+ "version": "3.0.0-alpha.13",
4
4
  "main": "dist/server/index.js",
5
5
  "homepage": "https://docs.nocobase.com/handbook/block-kanban",
6
6
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/block-kanban",
@@ -23,7 +23,7 @@
23
23
  "@dnd-kit/sortable": "^7.0.0",
24
24
  "react-intersection-observer": "^9.8.1"
25
25
  },
26
- "gitHead": "03574f3a2d10b1ed8469dc7405aa0c4696d6d1d1",
26
+ "gitHead": "1786007244b67ba18ac92e0512c084795a6687cc",
27
27
  "keywords": [
28
28
  "Blocks"
29
29
  ]