@nocobase/plugin-workflow 2.2.0-alpha.3 → 2.2.0-alpha.4

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 (60) hide show
  1. package/dist/client/{142.d84a976875799df4.js → 142.fb4936d78fc80007.js} +1 -1
  2. package/dist/client/{159.3d5abee06b818db3.js → 159.cc9a0f2d92cab2c1.js} +1 -1
  3. package/dist/client/{382.80ebd002a9971b65.js → 382.d37fba14a6b91b0b.js} +1 -1
  4. package/dist/client/{394.d7eacf666590a6ae.js → 394.a37310b78419ad7a.js} +1 -1
  5. package/dist/client/{438.c4de8f085e490158.js → 438.6c6409d821d8c353.js} +1 -1
  6. package/dist/client/509.0504f44820a39d45.js +10 -0
  7. package/dist/client/{54.c452a382e9b3953d.js → 54.d3d5d9f2f2115201.js} +1 -1
  8. package/dist/client/618.1aa6c21d0f2840cb.js +10 -0
  9. package/dist/client/635.42814cddec653cdd.js +10 -0
  10. package/dist/client/67.ea0c78153b4842ef.js +10 -0
  11. package/dist/client/719.cd8ca7c9f00584be.js +10 -0
  12. package/dist/client/739.49407722fca8d236.js +10 -0
  13. package/dist/client/782.e0f0d84dd5cfac2a.js +10 -0
  14. package/dist/client/{828.77de843c49fb307a.js → 828.78ff0c90212276c0.js} +1 -1
  15. package/dist/client/{87.d2c2b5b1cae08bfc.js → 87.083467b89aaf3e53.js} +1 -1
  16. package/dist/client/{938.77649c32dae1c225.js → 938.26493fc09ba1ccbc.js} +1 -1
  17. package/dist/client/972.600a190e71978122.js +10 -0
  18. package/dist/client/index.js +1 -1
  19. package/dist/client/variable.d.ts +3 -9
  20. package/dist/client-v2/142.fe4f9b7869876ff1.js +10 -0
  21. package/dist/client-v2/{276.43297f402f31970e.js → 276.8ca10542a0424df3.js} +1 -1
  22. package/dist/client-v2/387.eae325172ba209e5.js +10 -0
  23. package/dist/client-v2/{513.ab2bdd96ad9ece4d.js → 513.19fe2e75d7cb18f8.js} +1 -1
  24. package/dist/client-v2/635.d14f99a9520d336b.js +10 -0
  25. package/dist/client-v2/677.d3294a45cd038c72.js +10 -0
  26. package/dist/client-v2/{739.906e94bbe6d52a3d.js → 739.5b60845103064f8d.js} +1 -1
  27. package/dist/client-v2/canvas/BranchContext.d.ts +11 -2
  28. package/dist/client-v2/canvas/WorkflowVariableInput.d.ts +1 -0
  29. package/dist/client-v2/canvas/contexts.d.ts +2 -0
  30. package/dist/client-v2/components/FilterDynamicComponent.d.ts +6 -1
  31. package/dist/client-v2/components/collection/AssignedFieldsEditor.d.ts +8 -1
  32. package/dist/client-v2/hooks/useWorkflowRuntimePaths.d.ts +0 -21
  33. package/dist/client-v2/index.d.ts +1 -3
  34. package/dist/client-v2/index.js +1 -1
  35. package/dist/client-v2/nodes/components/filter.d.ts +2 -1
  36. package/dist/client-v2/utils/contextSingleton.d.ts +9 -0
  37. package/dist/common/defaultWorkflowFilter.d.ts +21 -0
  38. package/dist/common/defaultWorkflowFilter.js +38 -0
  39. package/dist/externalVersion.js +13 -13
  40. package/dist/locale/en-US.json +6 -0
  41. package/dist/locale/zh-CN.json +6 -0
  42. package/dist/locale/zh-TW.json +6 -0
  43. package/dist/node_modules/cron-parser/package.json +1 -1
  44. package/dist/node_modules/joi/package.json +1 -1
  45. package/dist/node_modules/lru-cache/package.json +1 -1
  46. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  47. package/package.json +3 -2
  48. package/dist/client/509.2f72dd97808f12d1.js +0 -10
  49. package/dist/client/618.a97bc812678ab2a7.js +0 -10
  50. package/dist/client/635.3f165e9ed7e940b2.js +0 -10
  51. package/dist/client/67.4117e04bd42f9d42.js +0 -10
  52. package/dist/client/719.5801e3f1cf81b97b.js +0 -10
  53. package/dist/client/739.955f18b3dc31ae3a.js +0 -10
  54. package/dist/client/782.332fd345a98b82c2.js +0 -10
  55. package/dist/client/972.4da2796f3f2df874.js +0 -10
  56. package/dist/client-v2/142.3d386748090ff6d3.js +0 -10
  57. package/dist/client-v2/224.44a5e1227bee33fb.js +0 -10
  58. package/dist/client-v2/387.ab3eac2eb447f36f.js +0 -10
  59. package/dist/client-v2/635.37de4abe241b30e8.js +0 -10
  60. package/dist/client-v2/canvas/WorkflowVariableSelect.d.ts +0 -29
@@ -6,27 +6,6 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- declare global {
10
- interface Window {
11
- __nocobase_modern_client_prefix__?: string;
12
- }
13
- }
14
- /**
15
- * Workflow's v2 React pieces are intentionally reused by both runtimes during
16
- * the progressive migration:
17
- *
18
- * - pure v2 runtime: mounted under the modern client prefix (`/v/admin/...` by
19
- * default), with workflow canvas / execution routes at `/admin/workflow/...`
20
- * - legacy v1 runtime: some actions still render through v1 pages and must jump
21
- * back to the legacy settings routes at `/admin/settings/workflow/...`
22
- *
23
- * The runtime marker is the server-injected
24
- * `window.__nocobase_modern_client_prefix__`. When it exists we are inside the
25
- * modern client shell; when it does not, the same reused component code is
26
- * running under the legacy shell and must navigate to the legacy workflow
27
- * routes. Callers should use these helpers instead of directly importing
28
- * `client-v2/constants.ts` when the code can execute in both shells.
29
- */
30
9
  export declare function isWorkflowV2Runtime(): boolean;
31
10
  export declare function getWorkflowCanvasRuntimePath(id: string | number): string;
32
11
  export declare function getWorkflowExecutionRuntimePath(id: string | number): string;
@@ -12,13 +12,11 @@ export { Instruction, useAvailableUpstreams, useNodeContext } from './canvas/Ins
12
12
  export type { LoaderOf, NodeAvailableContext, TempAssociationSource } from './canvas/Instruction';
13
13
  export { Branch } from './canvas/Branch';
14
14
  export { NodeDefaultView } from './canvas/Node';
15
- export { useCurrentWorkflowContext, useFlowContext } from './canvas/contexts';
15
+ export { useCurrentWorkflowContext, useFlowContext, WorkflowVariableSourceContext } from './canvas/contexts';
16
16
  export type { CanvasNode } from './canvas/contexts';
17
17
  export { default as useStyles } from './canvas/style';
18
18
  export { WorkflowVariableInput } from './canvas/WorkflowVariableInput';
19
19
  export type { WorkflowVariableInputProps } from './canvas/WorkflowVariableInput';
20
- export { WorkflowVariableSelect } from './canvas/WorkflowVariableSelect';
21
- export type { WorkflowVariableSelectProps } from './canvas/WorkflowVariableSelect';
22
20
  export { WorkflowVariableTag } from './canvas/WorkflowVariableTag';
23
21
  export type { WorkflowVariableTagProps } from './canvas/WorkflowVariableTag';
24
22
  export { WorkflowVariableTextArea } from './canvas/WorkflowVariableTextArea';