@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.
- package/lib/components/FlowModelRenderer.d.ts +1 -1
- package/lib/components/settings/wrappers/contextual/DefaultSettingsIcon.d.ts +3 -0
- package/lib/components/settings/wrappers/contextual/DefaultSettingsIcon.js +48 -9
- package/lib/components/settings/wrappers/contextual/FlowsFloatContextMenu.d.ts +19 -43
- package/lib/components/settings/wrappers/contextual/FlowsFloatContextMenu.js +332 -296
- package/lib/components/settings/wrappers/contextual/useFloatToolbarPortal.d.ts +36 -0
- package/lib/components/settings/wrappers/contextual/useFloatToolbarPortal.js +272 -0
- package/lib/components/settings/wrappers/contextual/useFloatToolbarVisibility.d.ts +30 -0
- package/lib/components/settings/wrappers/contextual/useFloatToolbarVisibility.js +247 -0
- package/lib/flowEngine.js +1 -4
- package/lib/runjs-context/snippets/scene/detail/set-field-style.snippet.js +7 -7
- package/lib/runjs-context/snippets/scene/table/set-cell-style.snippet.js +1 -1
- package/lib/types.d.ts +0 -12
- package/package.json +4 -4
- package/src/__tests__/flow-engine.test.ts +0 -48
- package/src/__tests__/flowEngine.modelLoaders.test.ts +1 -5
- package/src/__tests__/flowEngine.saveModel.test.ts +0 -4
- package/src/__tests__/runjsSnippets.test.ts +2 -2
- package/src/components/FlowModelRenderer.tsx +3 -1
- package/src/components/__tests__/flow-model-render-error-fallback.test.tsx +17 -7
- package/src/components/settings/wrappers/contextual/DefaultSettingsIcon.tsx +63 -9
- package/src/components/settings/wrappers/contextual/FlowsFloatContextMenu.tsx +457 -440
- package/src/components/settings/wrappers/contextual/__tests__/DefaultSettingsIcon.test.tsx +95 -0
- package/src/components/settings/wrappers/contextual/__tests__/FlowsFloatContextMenu.test.tsx +547 -0
- package/src/components/settings/wrappers/contextual/useFloatToolbarPortal.ts +358 -0
- package/src/components/settings/wrappers/contextual/useFloatToolbarVisibility.ts +281 -0
- package/src/components/subModel/__tests__/AddSubModelButton.test.tsx +0 -1
- package/src/flowEngine.ts +1 -7
- package/src/runjs-context/snippets/scene/detail/set-field-style.snippet.ts +7 -7
- package/src/runjs-context/snippets/scene/table/set-cell-style.snippet.ts +1 -1
- 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>;
|