@nocobase/plugin-workflow 0.20.0-alpha.16 → 0.20.0-alpha.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/client/ExecutionContextProvider.d.ts +7 -0
  2. package/dist/client/components/CollectionBlockInitializer.d.ts +1 -1
  3. package/dist/client/components/DetailsBlockProvider.d.ts +6 -0
  4. package/dist/client/components/SimpleDesigner.d.ts +2 -0
  5. package/dist/client/components/ValueBlock.d.ts +1 -0
  6. package/dist/client/components/index.d.ts +2 -0
  7. package/dist/client/hooks/index.d.ts +3 -0
  8. package/dist/client/hooks/useWorkflowExecuted.d.ts +2 -0
  9. package/dist/client/index.d.ts +12 -12
  10. package/dist/client/index.js +37 -37
  11. package/dist/client/nodes/calculation.d.ts +1 -0
  12. package/dist/client/nodes/create.d.ts +2 -5
  13. package/dist/client/nodes/destroy.d.ts +1 -4
  14. package/dist/client/nodes/query.d.ts +1 -4
  15. package/dist/client/nodes/update.d.ts +2 -5
  16. package/dist/client/schemas/collection.d.ts +1 -4
  17. package/dist/client/triggers/collection.d.ts +6 -3
  18. package/dist/client/triggers/schedule/OnField.d.ts +1 -1
  19. package/dist/client/utils.d.ts +2 -0
  20. package/dist/externalVersion.js +11 -10
  21. package/dist/node_modules/cron-parser/package.json +1 -1
  22. package/dist/node_modules/lru-cache/package.json +1 -1
  23. package/dist/server/instructions/CreateInstruction.js +3 -1
  24. package/dist/server/instructions/DestroyInstruction.js +4 -2
  25. package/dist/server/instructions/QueryInstruction.js +4 -2
  26. package/dist/server/instructions/UpdateInstruction.js +4 -2
  27. package/dist/server/triggers/CollectionTrigger.js +29 -18
  28. package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.js +12 -6
  29. package/package.json +3 -3
  30. package/dist/client/constant.d.ts +0 -2
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare function ExecutionContextProvider({ children, workflow, execution, nodes }: {
3
+ children: any;
4
+ workflow: any;
5
+ execution: any;
6
+ nodes: any;
7
+ }): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare function CollectionBlockInitializer(): React.JSX.Element;
2
+ export declare function CollectionBlockInitializer(props: any): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare function DetailsBlockProvider({ collection, dataPath, children }: {
3
+ collection: any;
4
+ dataPath: any;
5
+ children: any;
6
+ }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function SimpleDesigner(): React.JSX.Element;
@@ -2,4 +2,5 @@
2
2
  export declare const ValueBlock: (() => JSX.Element) & {
3
3
  Initializer: () => JSX.Element;
4
4
  Result: (props: any) => JSX.Element;
5
+ Designer: () => JSX.Element;
5
6
  };
@@ -1,6 +1,8 @@
1
1
  export * from './CollectionBlockInitializer';
2
+ export * from './DetailsBlockProvider';
2
3
  export * from './FieldsSelect';
3
4
  export * from './FilterDynamicComponent';
4
5
  export * from './RadioWithTooltip';
5
6
  export * from './CheckboxGroupWithTooltip';
6
7
  export * from './ValueBlock';
8
+ export * from './SimpleDesigner';
@@ -0,0 +1,3 @@
1
+ export * from './useGetAriaLabelOfAddButton';
2
+ export * from './useTriggerWorkflowActionProps';
3
+ export * from './useWorkflowExecuted';
@@ -0,0 +1,2 @@
1
+ export declare function useWorkflowExecuted(): boolean;
2
+ export declare function useWorkflowAnyExecuted(): boolean;
@@ -1,15 +1,3 @@
1
- export * from './Branch';
2
- export * from './FlowContext';
3
- export * from './constants';
4
- export * from './nodes';
5
- export { Trigger, useTrigger } from './triggers';
6
- export * from './variable';
7
- export * from './components';
8
- export * from './utils';
9
- export * from './hooks/useGetAriaLabelOfAddButton';
10
- export { default as useStyles } from './style';
11
- export * from './variable';
12
- export * from './hooks/useTriggerWorkflowActionProps';
13
1
  import { Plugin } from '@nocobase/client';
14
2
  import { Trigger } from './triggers';
15
3
  import { Instruction } from './nodes';
@@ -35,3 +23,15 @@ export default class PluginWorkflowClient extends Plugin {
35
23
  addComponents(): void;
36
24
  addRoutes(): void;
37
25
  }
26
+ export * from './Branch';
27
+ export * from './FlowContext';
28
+ export * from './constants';
29
+ export * from './nodes';
30
+ export { Trigger, useTrigger } from './triggers';
31
+ export * from './variable';
32
+ export * from './components';
33
+ export * from './utils';
34
+ export * from './hooks';
35
+ export { default as useStyles } from './style';
36
+ export * from './variable';
37
+ export * from './ExecutionContextProvider';