@shenghuabi/workflow 1.0.7 → 1.0.9

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/index.mjs CHANGED
@@ -121,7 +121,14 @@ import * as v from "valibot";
121
121
  // packages/workflow/share/util/layout.ts
122
122
  import { actions } from "@piying/view-angular-core";
123
123
  function asColumn() {
124
- return actions.class.component("grid gap-2");
124
+ return actions.wrappers.patch([
125
+ {
126
+ type: "div",
127
+ attributes: {
128
+ class: "grid gap-2"
129
+ }
130
+ }
131
+ ]);
125
132
  }
126
133
 
127
134
  // packages/workflow/share/common/examples.define.ts
@@ -197,10 +204,7 @@ var HandleDataDefine = v2.pipe(
197
204
  );
198
205
 
199
206
  // packages/workflow/share/common/inline-template.define.ts
200
- import {
201
- actions as actions3,
202
- disableWhen
203
- } from "@piying/view-angular-core";
207
+ import { actions as actions3, disableWhen } from "@piying/view-angular-core";
204
208
  import { map } from "rxjs";
205
209
  import * as v3 from "valibot";
206
210
  var INLINE_Template = v3.pipe(
@@ -211,7 +215,7 @@ var INLINE_Template = v3.pipe(
211
215
  v3.optional(v3.string(), "{{NODE.description}}"),
212
216
  v3.title("模板"),
213
217
  v3.description("允许使用变量:{{NODE.xxx}}(参考节点帮助)"),
214
- actions3.wrappers.set(["tooltip", "form-field"]),
218
+ actions3.wrappers.set(["tooltip", "label"]),
215
219
  actions3.class.top("flex-1"),
216
220
  disableWhen({
217
221
  listen: (fn) => fn({
@@ -220,7 +224,8 @@ var INLINE_Template = v3.pipe(
220
224
  })
221
225
  )
222
226
  }),
223
- actions3.class.component("flex gap-2")
227
+ actions3.wrappers.patch(["div"]),
228
+ actions3.class.top("flex gap-2")
224
229
  );
225
230
  var INLINE_Template2 = v3.pipe(
226
231
  v3.object({
@@ -230,7 +235,7 @@ var INLINE_Template2 = v3.pipe(
230
235
  v3.optional(v3.string()),
231
236
  v3.title("模板"),
232
237
  v3.description("允许使用变量:{{ENTRY.xxx}}(参考节点帮助)"),
233
- actions3.wrappers.set(["tooltip", "form-field"]),
238
+ actions3.wrappers.set(["tooltip", "label"]),
234
239
  actions3.class.top("flex-1"),
235
240
  disableWhen({
236
241
  listen: (fn) => fn({
@@ -239,7 +244,8 @@ var INLINE_Template2 = v3.pipe(
239
244
  })
240
245
  )
241
246
  }),
242
- actions3.class.component("flex gap-2 items-center")
247
+ actions3.wrappers.patch(["div"]),
248
+ actions3.class.top("flex gap-2 items-center")
243
249
  );
244
250
 
245
251
  // packages/workflow/share/common/llm.define.ts
@@ -469,7 +475,8 @@ var CHAT_NODE_DEFINE = v7.looseObject({
469
475
  ),
470
476
  examples: EXAMPLES_DEFINE
471
477
  }),
472
- actions5.class.component("grid auto-rows-auto gap-2")
478
+ actions5.wrappers.patch(["div"]),
479
+ actions5.class.top("grid auto-rows-auto gap-2")
473
480
  ),
474
481
  value: v7.pipe(
475
482
  v7.custom(Boolean),