@atscript/vue-wf 0.1.169 → 0.1.171
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/dist/{as-wf-form-Cb-iyrR8.mjs → as-wf-form-DEkBW0o_.mjs} +2 -3
- package/dist/as-wf-form.d.mts +1 -1
- package/dist/as-wf-form.mjs +1 -1
- package/dist/{as-wf-form.vue-DCCb9M60.d.mts → as-wf-form.vue-CXYFkkFM.d.mts} +6 -6
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +9 -9
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { t as as_wf_finish_default } from "./as-wf-finish-DSlzLuDT.mjs";
|
|
2
2
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeProps, onMounted, onUnmounted, openBlock, reactive, ref, renderSlot, shallowRef, toDisplayString, toRaw, unref, watch, withCtx } from "vue";
|
|
3
|
-
import { createFormData, createFormDef, getDeclaredFormActions } from "@atscript/ui";
|
|
3
|
+
import { createFormData, createFormDef, deserializeServedType, getDeclaredFormActions } from "@atscript/ui";
|
|
4
4
|
import { AS_UI_MESSAGES } from "@atscript/ui/messages";
|
|
5
5
|
import { useAsTexts } from "@atscript/vue-form/locale";
|
|
6
|
-
import { deserializeAnnotatedType } from "@atscript/typescript/utils";
|
|
7
6
|
import { AsForm } from "@atscript/vue-form";
|
|
8
7
|
//#region src/use-wf-form.ts
|
|
9
8
|
/**
|
|
@@ -115,7 +114,7 @@ function useWfForm(options) {
|
|
|
115
114
|
if (payloadJson !== lastPayloadJson) {
|
|
116
115
|
lastPayloadJson = payloadJson;
|
|
117
116
|
formKey.value++;
|
|
118
|
-
const type =
|
|
117
|
+
const type = deserializeServedType(ir.payload);
|
|
119
118
|
formDef.value = createFormDef(type);
|
|
120
119
|
formData.value = reactive(createFormData(type));
|
|
121
120
|
}
|
package/dist/as-wf-form.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-wf-form.vue-
|
|
1
|
+
import { t as _default } from "./as-wf-form.vue-CXYFkkFM.mjs";
|
|
2
2
|
export { _default as default };
|
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-DEkBW0o_.mjs";
|
|
2
2
|
export { as_wf_form_default as default };
|
|
@@ -351,20 +351,20 @@ declare const __VLS_base: vue.DefineComponent<AsWfFormProps, {
|
|
|
351
351
|
action: typeof onAction;
|
|
352
352
|
supportsAction: typeof supportsAction;
|
|
353
353
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
354
|
-
|
|
354
|
+
dismiss: () => any;
|
|
355
|
+
action: (action: WfActionRequest) => any;
|
|
355
356
|
error: (error: WfFormError) => any;
|
|
357
|
+
finished: (response: unknown) => any;
|
|
356
358
|
submit: (data: unknown) => any;
|
|
357
359
|
loading: (isLoading: boolean) => any;
|
|
358
|
-
dismiss: () => any;
|
|
359
|
-
action: (action: WfActionRequest) => any;
|
|
360
360
|
form: (def: FormDef, context?: Record<string, unknown> | undefined) => any;
|
|
361
361
|
}, string, vue.PublicProps, Readonly<AsWfFormProps> & Readonly<{
|
|
362
|
-
|
|
362
|
+
onDismiss?: (() => any) | undefined;
|
|
363
|
+
onAction?: ((action: WfActionRequest) => any) | undefined;
|
|
363
364
|
onError?: ((error: WfFormError) => any) | undefined;
|
|
365
|
+
onFinished?: ((response: unknown) => any) | undefined;
|
|
364
366
|
onSubmit?: ((data: unknown) => any) | undefined;
|
|
365
367
|
onLoading?: ((isLoading: boolean) => any) | undefined;
|
|
366
|
-
onDismiss?: (() => any) | undefined;
|
|
367
|
-
onAction?: ((action: WfActionRequest) => any) | undefined;
|
|
368
368
|
onForm?: ((def: FormDef, context?: Record<string, unknown> | undefined) => any) | undefined;
|
|
369
369
|
}>, {
|
|
370
370
|
tokenTransport: "body" | "cookie" | "query";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as WfNext, i as WfMessage, n as WfButton, r as WfFinished, t as WfActionRequest } from "./index-C5MmoWFB.mjs";
|
|
2
|
-
import { a as useWfForm, i as WfFormError, n as UseWfFormOptions, r as UseWfFormReturn, t as _default$1 } from "./as-wf-form.vue-
|
|
2
|
+
import { a as useWfForm, i as WfFormError, n as UseWfFormOptions, r as UseWfFormReturn, t as _default$1 } from "./as-wf-form.vue-CXYFkkFM.mjs";
|
|
3
3
|
import { t as _default } from "./as-wf-finish.vue-BhXMooP3.mjs";
|
|
4
4
|
export { _default as AsWfFinish, _default$1 as AsWfForm, type UseWfFormOptions, type UseWfFormReturn, type WfActionRequest, type WfButton, type WfFinished, type WfFormError, type WfMessage, type WfNext, useWfForm };
|
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-DEkBW0o_.mjs";
|
|
2
2
|
import { t as as_wf_finish_default } from "./as-wf-finish-DSlzLuDT.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.171",
|
|
4
4
|
"description": "Workflow form integration for Vue 3 — HTTP round-trip loop driven by atscript type metadata",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -51,25 +51,25 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@atscript/ui": "^0.1.
|
|
54
|
+
"@atscript/ui": "^0.1.171"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@atscript/core": "^0.2.
|
|
58
|
-
"@atscript/typescript": "^0.2.
|
|
57
|
+
"@atscript/core": "^0.2.12",
|
|
58
|
+
"@atscript/typescript": "^0.2.12",
|
|
59
59
|
"@vitejs/plugin-vue": "^6",
|
|
60
60
|
"@vue/test-utils": "^2",
|
|
61
61
|
"happy-dom": "^18",
|
|
62
|
-
"unplugin-atscript": "^0.2.
|
|
62
|
+
"unplugin-atscript": "^0.2.12",
|
|
63
63
|
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14",
|
|
64
64
|
"vue": "^3",
|
|
65
65
|
"vue-tsc": "~3.2.9",
|
|
66
|
-
"@atscript/moost-wf": "^0.1.
|
|
67
|
-
"@atscript/vue-form": "^0.1.
|
|
66
|
+
"@atscript/moost-wf": "^0.1.171",
|
|
67
|
+
"@atscript/vue-form": "^0.1.171"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@atscript/typescript": "^0.2.
|
|
70
|
+
"@atscript/typescript": "^0.2.12",
|
|
71
71
|
"vue": "^3",
|
|
72
|
-
"@atscript/vue-form": "^0.1.
|
|
72
|
+
"@atscript/vue-form": "^0.1.171"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"build": "node ../../scripts/gen-exports.mjs && vp pack",
|