@feedmepos/mf-miniprogram-v2 0.1.0-dev.14 → 0.1.0-dev.15
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-CUiLt2sL.js → ControlPlaneView-xvKoOCT1.js} +3981 -3421
- package/dist/app.js +1 -1
- package/dist/package.json +1 -1
- package/dist/src/components/BrandKitPanel.vue.d.ts +9 -0
- package/dist/src/components/BrandKitProposalCard.vue.d.ts +7 -0
- package/dist/src/composables/brandkitProposal.d.ts +14 -0
- package/dist/src/composables/useBrandKit.d.ts +45 -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,9 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
2
|
+
close: () => any;
|
|
3
|
+
saved: () => any;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
5
|
+
onClose?: (() => any) | undefined;
|
|
6
|
+
onSaved?: (() => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BrandKitProposal } from '../composables/brandkitProposal';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
proposal: BrandKitProposal;
|
|
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,14 @@
|
|
|
1
|
+
export interface BrandKitProposal {
|
|
2
|
+
name?: string;
|
|
3
|
+
colors: Record<string, string>;
|
|
4
|
+
fonts: Record<string, string>;
|
|
5
|
+
}
|
|
6
|
+
export type ChatSegment = {
|
|
7
|
+
kind: 'markdown';
|
|
8
|
+
text: string;
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'proposal';
|
|
11
|
+
proposal: BrandKitProposal;
|
|
12
|
+
};
|
|
13
|
+
export declare function parseBrandKitProposal(json: string): BrandKitProposal | null;
|
|
14
|
+
export declare function splitBrandKitProposals(text: string): ChatSegment[] | null;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface BrandKitField {
|
|
2
|
+
path: string;
|
|
3
|
+
label: string;
|
|
4
|
+
group: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const COLOR_FIELDS: BrandKitField[];
|
|
8
|
+
export declare const FONT_FIELDS: BrandKitField[];
|
|
9
|
+
export declare function isHexColor(value: string): boolean;
|
|
10
|
+
export declare function toInputHex(value: string): string;
|
|
11
|
+
type KitObject = Record<string, unknown>;
|
|
12
|
+
declare function load(force?: boolean): Promise<void>;
|
|
13
|
+
declare function save(): Promise<void>;
|
|
14
|
+
declare function revertLastSave(): Promise<void>;
|
|
15
|
+
declare function applyProposal(proposal: {
|
|
16
|
+
name?: string;
|
|
17
|
+
colors: Record<string, string>;
|
|
18
|
+
fonts: Record<string, string>;
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
declare function discardEdits(): void;
|
|
21
|
+
export declare function useBrandKit(): {
|
|
22
|
+
state: {
|
|
23
|
+
panelOpen: boolean;
|
|
24
|
+
loading: boolean;
|
|
25
|
+
saving: boolean;
|
|
26
|
+
loaded: boolean;
|
|
27
|
+
error: string | null;
|
|
28
|
+
businessId: string | null;
|
|
29
|
+
colors: Record<string, string>;
|
|
30
|
+
fonts: Record<string, string>;
|
|
31
|
+
savedColors: Record<string, string>;
|
|
32
|
+
savedFonts: Record<string, string>;
|
|
33
|
+
revertKit: KitObject | null;
|
|
34
|
+
appliedProposal: string | null;
|
|
35
|
+
};
|
|
36
|
+
dirtyCount: import("vue").ComputedRef<number>;
|
|
37
|
+
hasInvalidColor: import("vue").ComputedRef<boolean>;
|
|
38
|
+
load: typeof load;
|
|
39
|
+
save: typeof save;
|
|
40
|
+
revertLastSave: typeof revertLastSave;
|
|
41
|
+
applyProposal: typeof applyProposal;
|
|
42
|
+
discardEdits: typeof discardEdits;
|
|
43
|
+
};
|
|
44
|
+
export type BrandKitStore = ReturnType<typeof useBrandKit>;
|
|
45
|
+
export {};
|