@atscript/vue-wf 0.1.70 → 0.1.71
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.
|
@@ -129,21 +129,21 @@ function useWfForm(options) {
|
|
|
129
129
|
if (new URLSearchParams(window.location.search).get(tokenName)) console.warn(`[useWfForm] URL contains ?${tokenName}=… but no \`initialToken\` was passed and \`tokenTransport\` is "${transport}". Workflow will start fresh instead of resuming the magic-link flow. Pass \`initial-token="route.query.${tokenName}"\` or set \`tokenTransport: "query"\`.`);
|
|
130
130
|
}
|
|
131
131
|
const body = { [wfidName]: options.name };
|
|
132
|
-
if (input) body.input = input;
|
|
132
|
+
if (input) body.input = { formData: input };
|
|
133
133
|
if (initialToken) body[tokenName] = initialToken;
|
|
134
134
|
await post(body);
|
|
135
135
|
}
|
|
136
136
|
async function submit(data) {
|
|
137
|
-
await post({ input: data });
|
|
137
|
+
await post({ input: { formData: data } });
|
|
138
138
|
}
|
|
139
139
|
async function action(name) {
|
|
140
|
-
await post({ action: name });
|
|
140
|
+
await post({ input: { action: name } });
|
|
141
141
|
}
|
|
142
142
|
async function actionWithData(name, data) {
|
|
143
|
-
await post({
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
});
|
|
143
|
+
await post({ input: {
|
|
144
|
+
action: name,
|
|
145
|
+
formData: data
|
|
146
|
+
} });
|
|
147
147
|
}
|
|
148
148
|
async function retry() {
|
|
149
149
|
if (lastRequestBody) await post(lastRequestBody);
|
package/dist/as-wf-form.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_wf_form_default } from "./as-wf-form-
|
|
1
|
+
import { t as as_wf_form_default } from "./as-wf-form-DVRd6Jvc.mjs";
|
|
2
2
|
export { as_wf_form_default as default };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as useWfForm, t as as_wf_form_default } from "./as-wf-form-
|
|
1
|
+
import { n as useWfForm, t as as_wf_form_default } from "./as-wf-form-DVRd6Jvc.mjs";
|
|
2
2
|
import { t as as_wf_finish_default } from "./as-wf-finish-CfbsKJhX.mjs";
|
|
3
3
|
export { as_wf_finish_default as AsWfFinish, as_wf_form_default as AsWfForm, useWfForm };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/vue-wf",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.71",
|
|
4
4
|
"description": "Workflow form integration for Vue 3 — HTTP round-trip loop driven by atscript type metadata",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@atscript/ui": "^0.1.
|
|
53
|
+
"@atscript/ui": "^0.1.71"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@atscript/core": "^0.1.58",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14",
|
|
63
63
|
"vue": "^3",
|
|
64
64
|
"vue-tsc": "^3.2.6",
|
|
65
|
-
"@atscript/
|
|
66
|
-
"@atscript/
|
|
65
|
+
"@atscript/moost-wf": "^0.1.71",
|
|
66
|
+
"@atscript/vue-form": "^0.1.71"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@atscript/typescript": "^0.1.58",
|
|
70
70
|
"vue": "^3",
|
|
71
|
-
"@atscript/vue-form": "^0.1.
|
|
71
|
+
"@atscript/vue-form": "^0.1.71"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"build": "node ../../scripts/gen-exports.mjs && vp pack",
|