@nocobase/flow-engine 2.1.0-alpha.13 → 2.1.0-alpha.14

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 (31) hide show
  1. package/lib/components/FlowModelRenderer.d.ts +1 -1
  2. package/lib/components/settings/wrappers/contextual/DefaultSettingsIcon.d.ts +3 -0
  3. package/lib/components/settings/wrappers/contextual/DefaultSettingsIcon.js +48 -9
  4. package/lib/components/settings/wrappers/contextual/FlowsFloatContextMenu.d.ts +19 -43
  5. package/lib/components/settings/wrappers/contextual/FlowsFloatContextMenu.js +332 -296
  6. package/lib/components/settings/wrappers/contextual/useFloatToolbarPortal.d.ts +36 -0
  7. package/lib/components/settings/wrappers/contextual/useFloatToolbarPortal.js +272 -0
  8. package/lib/components/settings/wrappers/contextual/useFloatToolbarVisibility.d.ts +30 -0
  9. package/lib/components/settings/wrappers/contextual/useFloatToolbarVisibility.js +247 -0
  10. package/lib/flowEngine.js +1 -4
  11. package/lib/runjs-context/snippets/scene/detail/set-field-style.snippet.js +7 -7
  12. package/lib/runjs-context/snippets/scene/table/set-cell-style.snippet.js +1 -1
  13. package/lib/types.d.ts +0 -12
  14. package/package.json +4 -4
  15. package/src/__tests__/flow-engine.test.ts +0 -48
  16. package/src/__tests__/flowEngine.modelLoaders.test.ts +1 -5
  17. package/src/__tests__/flowEngine.saveModel.test.ts +0 -4
  18. package/src/__tests__/runjsSnippets.test.ts +2 -2
  19. package/src/components/FlowModelRenderer.tsx +3 -1
  20. package/src/components/__tests__/flow-model-render-error-fallback.test.tsx +17 -7
  21. package/src/components/settings/wrappers/contextual/DefaultSettingsIcon.tsx +63 -9
  22. package/src/components/settings/wrappers/contextual/FlowsFloatContextMenu.tsx +457 -440
  23. package/src/components/settings/wrappers/contextual/__tests__/DefaultSettingsIcon.test.tsx +95 -0
  24. package/src/components/settings/wrappers/contextual/__tests__/FlowsFloatContextMenu.test.tsx +547 -0
  25. package/src/components/settings/wrappers/contextual/useFloatToolbarPortal.ts +358 -0
  26. package/src/components/settings/wrappers/contextual/useFloatToolbarVisibility.ts +281 -0
  27. package/src/components/subModel/__tests__/AddSubModelButton.test.tsx +0 -1
  28. package/src/flowEngine.ts +1 -7
  29. package/src/runjs-context/snippets/scene/detail/set-field-style.snippet.ts +7 -7
  30. package/src/runjs-context/snippets/scene/table/set-cell-style.snippet.ts +1 -1
  31. package/src/types.ts +0 -11
package/src/types.ts CHANGED
@@ -437,17 +437,6 @@ export interface EnsureBatchResult {
437
437
 
438
438
  export interface IFlowModelRepository<T extends FlowModel = FlowModel> {
439
439
  findOne(query: Record<string, any>): Promise<Record<string, any> | null>;
440
- /**
441
- * Ensure a model exists (create if missing) in a single request.
442
- */
443
- ensure: (
444
- values: Record<string, any>,
445
- options?: { includeAsyncNode?: boolean },
446
- ) => Promise<Record<string, any> | null>;
447
- /**
448
- * Optional: run multiple ops in a single transaction (server capability).
449
- */
450
- mutate?: (values: Record<string, any>, options?: { includeAsyncNode?: boolean }) => Promise<Record<string, any>>;
451
440
  save(model: T, options?: { onlyStepParams?: boolean }): Promise<Record<string, any>>;
452
441
  destroy(uid: string): Promise<boolean>;
453
442
  move(sourceId: string, targetId: string, position: 'before' | 'after'): Promise<void>;