@feedmepos/mf-miniprogram-v2 0.1.0-dev.23 → 0.1.0-dev.24
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/{ControlPlaneView-CUBTM2zB.js → ControlPlaneView-DVeW58te.js} +4432 -3880
- package/dist/app.js +1 -1
- package/dist/package.json +1 -1
- package/dist/src/components/QuickEditMessage.vue.d.ts +7 -0
- package/dist/src/components/QuickEditSidebar.vue.d.ts +26 -0
- package/dist/src/composables/quickEdit.d.ts +73 -0
- package/dist/src/composables/useChat.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
package/dist/package.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { QuickEditHistoryItem } from '../composables/quickEdit';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: QuickEditHistoryItem;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type QuickEditFieldStatus, type QuickEditSelection, type QuickEditValue } from '../composables/quickEdit';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
selection: QuickEditSelection;
|
|
4
|
+
statuses: Record<string, QuickEditFieldStatus>;
|
|
5
|
+
reasons: Record<string, string>;
|
|
6
|
+
busy?: boolean;
|
|
7
|
+
error?: string | null;
|
|
8
|
+
uploadAsset: (file: File) => Promise<string>;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
change: (payload: {
|
|
12
|
+
prop: string;
|
|
13
|
+
value: QuickEditValue;
|
|
14
|
+
}) => any;
|
|
15
|
+
confirm: () => any;
|
|
16
|
+
cancel: () => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onChange?: ((payload: {
|
|
19
|
+
prop: string;
|
|
20
|
+
value: QuickEditValue;
|
|
21
|
+
}) => any) | undefined;
|
|
22
|
+
onConfirm?: (() => any) | undefined;
|
|
23
|
+
onCancel?: (() => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export type QuickEditControl = 'text' | 'textarea' | 'image' | 'color' | 'select' | 'number' | 'boolean';
|
|
2
|
+
export interface QuickEditOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface QuickEditField {
|
|
7
|
+
control: QuickEditControl;
|
|
8
|
+
label: string;
|
|
9
|
+
binding?: 'static' | 'data';
|
|
10
|
+
maxLength?: number;
|
|
11
|
+
accept?: string[];
|
|
12
|
+
options?: QuickEditOption[];
|
|
13
|
+
min?: number;
|
|
14
|
+
max?: number;
|
|
15
|
+
step?: number;
|
|
16
|
+
}
|
|
17
|
+
export type QuickEditValue = string | number | boolean;
|
|
18
|
+
export type QuickEditLocate = 'usage-site' | 'component-own' | 'ambiguous-vfor';
|
|
19
|
+
export interface QuickEditSelection {
|
|
20
|
+
matched: true;
|
|
21
|
+
component: string;
|
|
22
|
+
label: string;
|
|
23
|
+
schema: Record<string, QuickEditField>;
|
|
24
|
+
values: Record<string, QuickEditValue>;
|
|
25
|
+
presentProps?: Record<string, boolean>;
|
|
26
|
+
rect: {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
} | null;
|
|
32
|
+
source: {
|
|
33
|
+
usageFile: string;
|
|
34
|
+
componentFile: string;
|
|
35
|
+
inspector: string | null;
|
|
36
|
+
inspectorVia?: 'vnode' | 'dom' | null;
|
|
37
|
+
locate: QuickEditLocate;
|
|
38
|
+
inVFor: boolean;
|
|
39
|
+
instanceKey: string | number | null;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export type QuickEditFieldStatus = 'idle' | 'applying' | 'applied' | 'escalated' | 'error';
|
|
43
|
+
export interface QuickEditApplyResult {
|
|
44
|
+
prop: string;
|
|
45
|
+
status: 'applied' | 'escalated';
|
|
46
|
+
reason?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface QuickEditApplyResponse {
|
|
49
|
+
ok: boolean;
|
|
50
|
+
applied: QuickEditApplyResult[];
|
|
51
|
+
escalated: QuickEditApplyResult[];
|
|
52
|
+
results: QuickEditApplyResult[];
|
|
53
|
+
preview: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface QuickEditHistoryItem {
|
|
56
|
+
component: string;
|
|
57
|
+
file: string;
|
|
58
|
+
edits: Array<{
|
|
59
|
+
prop: string;
|
|
60
|
+
value: QuickEditValue;
|
|
61
|
+
reason?: string;
|
|
62
|
+
}>;
|
|
63
|
+
fallback: boolean;
|
|
64
|
+
}
|
|
65
|
+
export declare function wrapQuickEditPayload(item: QuickEditHistoryItem): string;
|
|
66
|
+
export declare function parseQuickEditMessage(text: string): QuickEditHistoryItem | null;
|
|
67
|
+
export declare function quickEditValueError(field: QuickEditField, value: unknown): string | null;
|
|
68
|
+
export declare function quickEditShortFile(path: string): string;
|
|
69
|
+
export declare function buildQuickEditFallbackPrompt(selection: QuickEditSelection, edits: Array<{
|
|
70
|
+
prop: string;
|
|
71
|
+
value: QuickEditValue;
|
|
72
|
+
reason: string;
|
|
73
|
+
}>): string;
|