@infinia/plugin-ui 1.0.0
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/client.d.ts +20 -0
- package/dist/components/FyConfirmDialog.vue.d.ts +27 -0
- package/dist/components/FyDirectoryPicker.vue.d.ts +34 -0
- package/dist/components/FyEmptyState.vue.d.ts +32 -0
- package/dist/components/FyErrorState.vue.d.ts +32 -0
- package/dist/components/FyFilePicker.vue.d.ts +41 -0
- package/dist/components/FyIcon.vue.d.ts +29 -0
- package/dist/components/FyLoadingState.vue.d.ts +23 -0
- package/dist/components/FyNotificationCenter.vue.d.ts +6 -0
- package/dist/components/FyPageHeader.vue.d.ts +21 -0
- package/dist/components/FyPermissionNotice.vue.d.ts +27 -0
- package/dist/components/FyPluginShell.vue.d.ts +52 -0
- package/dist/components/FyStepWizard.vue.d.ts +56 -0
- package/dist/components/FyTaskTable.vue.d.ts +40 -0
- package/dist/components/FyToolbar.vue.d.ts +13 -0
- package/dist/composables/useFengYuNotify.d.ts +17 -0
- package/dist/composables/useFengYuPick.d.ts +48 -0
- package/dist/createFengYuVuetify.d.ts +20 -0
- package/dist/defaults.d.ts +10 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +28390 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/theme.d.ts +14 -0
- package/dist/wizard.d.ts +78 -0
- package/package.json +55 -0
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ThemeDefinition } from 'vuetify';
|
|
2
|
+
/**
|
|
3
|
+
* Codex-desktop monochrome palettes — the single source of truth for color in
|
|
4
|
+
* generated FengYu plugin UIs. These are the same near-neutral values used by
|
|
5
|
+
* the host web shell (`frontend/src/plugins/md3-themes.ts`), renamed to make
|
|
6
|
+
* the FengYu theme names explicit. This package is standalone and does NOT
|
|
7
|
+
* import from `frontend/`; the values are duplicated intentionally.
|
|
8
|
+
*
|
|
9
|
+
* The palette models the Codex desktop app: near-black canvas, layered dark
|
|
10
|
+
* greys, off-white text, hairline borders, and an inverted "primary" so that
|
|
11
|
+
* send/confirm buttons render as Codex's signature inverted chips.
|
|
12
|
+
*/
|
|
13
|
+
export declare const fengyuCodexLight: ThemeDefinition;
|
|
14
|
+
export declare const fengyuCodexDark: ThemeDefinition;
|
package/dist/wizard.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export declare const FY_WIZARD_SNAPSHOT_VERSION: 1;
|
|
2
|
+
export interface FyWizardStep {
|
|
3
|
+
value: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
optional?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type FyWizardStepStatus = 'pending' | 'active' | 'validating' | 'complete' | 'error' | 'skipped';
|
|
9
|
+
export interface FyWizardStepState {
|
|
10
|
+
status: FyWizardStepStatus;
|
|
11
|
+
error?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface FyWizardSnapshot {
|
|
14
|
+
version: typeof FY_WIZARD_SNAPSHOT_VERSION;
|
|
15
|
+
activeStep: string;
|
|
16
|
+
visitedPath: string[];
|
|
17
|
+
states: Record<string, FyWizardStepState>;
|
|
18
|
+
completed: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface FyWizardValidationResult {
|
|
21
|
+
valid: boolean;
|
|
22
|
+
message?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface FyWizardSnapshotResult {
|
|
25
|
+
snapshot?: FyWizardSnapshot;
|
|
26
|
+
error?: string;
|
|
27
|
+
}
|
|
28
|
+
export type FyWizardStatusLabels = Record<FyWizardStepStatus, string>;
|
|
29
|
+
export interface FyWizardLabels {
|
|
30
|
+
status: FyWizardStatusLabels;
|
|
31
|
+
progress: string;
|
|
32
|
+
step: (index: number, total: number) => string;
|
|
33
|
+
compactProgress: (index: number, total: number) => string;
|
|
34
|
+
errorHistory: string;
|
|
35
|
+
errorStep: (title: string, status: string) => string;
|
|
36
|
+
currentStatus: (title: string, status: string) => string;
|
|
37
|
+
showVisitedPath: string;
|
|
38
|
+
hideVisitedPath: string;
|
|
39
|
+
}
|
|
40
|
+
export type FyWizardLabelsInput = Partial<Omit<FyWizardLabels, 'status'>> & {
|
|
41
|
+
status?: Partial<FyWizardStatusLabels>;
|
|
42
|
+
};
|
|
43
|
+
export interface FyWizardSlotActions {
|
|
44
|
+
next: () => Promise<void>;
|
|
45
|
+
back: () => void;
|
|
46
|
+
goTo: (step: string) => void;
|
|
47
|
+
invalidate: (changedStep: string) => void;
|
|
48
|
+
}
|
|
49
|
+
export interface FyWizardStepSlotProps<TContext = unknown> {
|
|
50
|
+
step: FyWizardStep;
|
|
51
|
+
state: FyWizardStepState;
|
|
52
|
+
context: TContext;
|
|
53
|
+
actions: FyWizardSlotActions;
|
|
54
|
+
}
|
|
55
|
+
export interface FyWizardStepLabelSlotProps<TContext = unknown> extends FyWizardStepSlotProps<TContext> {
|
|
56
|
+
index: number;
|
|
57
|
+
statusLabel: string;
|
|
58
|
+
active: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface FyWizardErrorSlotProps<TContext = unknown> extends FyWizardStepSlotProps<TContext> {
|
|
61
|
+
message?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface FyWizardActionsSlotProps<TContext = unknown> {
|
|
64
|
+
step?: FyWizardStep;
|
|
65
|
+
state?: FyWizardStepState;
|
|
66
|
+
context: TContext;
|
|
67
|
+
completed: boolean;
|
|
68
|
+
busy: boolean;
|
|
69
|
+
canBack: boolean;
|
|
70
|
+
nextLabel: string;
|
|
71
|
+
actions: FyWizardSlotActions;
|
|
72
|
+
}
|
|
73
|
+
export declare const FY_WIZARD_DEFAULT_LABELS: Readonly<FyWizardLabels>;
|
|
74
|
+
export declare function guardWizardStepDefinitions(steps: FyWizardStep[], development: boolean): string | undefined;
|
|
75
|
+
export declare function createWizardStates(steps: FyWizardStep[], activeStep: string): Record<string, FyWizardStepState>;
|
|
76
|
+
export declare function invalidateWizardStates(states: Record<string, FyWizardStepState>, invalidatedIds: string[]): Record<string, FyWizardStepState>;
|
|
77
|
+
export declare function buildWizardSnapshot(activeStep: string, visitedPath: string[], states: Record<string, FyWizardStepState>, completed: boolean): FyWizardSnapshot;
|
|
78
|
+
export declare function normalizeWizardSnapshot(steps: FyWizardStep[], input: FyWizardSnapshot): FyWizardSnapshotResult;
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@infinia/plugin-ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Codex-style Vuetify 3 component library for FengYu generated plugins.",
|
|
5
|
+
"license": "GPL-3.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./style.css": "./dist/style.css"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"sideEffects": [
|
|
21
|
+
"*.css"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "vite build && vue-tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --outDir dist",
|
|
25
|
+
"typecheck": "vue-tsc --noEmit",
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"dev:e2e": "vite --config vite.e2e.config.ts",
|
|
28
|
+
"test:visual": "playwright test",
|
|
29
|
+
"prepack": "npm run typecheck && npm test && npm run build"
|
|
30
|
+
},
|
|
31
|
+
"repository": { "type": "git", "url": "git+https://github.com/MuskStark/FengYu.git", "directory": "plugin-ui/vue" },
|
|
32
|
+
"publishConfig": { "access": "public" },
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@infinia/plugin-sdk": "^1.0.0",
|
|
35
|
+
"vue": "^3.5.0",
|
|
36
|
+
"vuetify": "^3.9.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@axe-core/playwright": "^4.10.2",
|
|
40
|
+
"@infinia/plugin-sdk": "file:../../plugin-sdk/typescript",
|
|
41
|
+
"@mdi/font": "^7.4.47",
|
|
42
|
+
"@mdi/js": "^7.4.47",
|
|
43
|
+
"@playwright/test": "^1.51.0",
|
|
44
|
+
"@types/node": "^24.3.0",
|
|
45
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
46
|
+
"@vue/test-utils": "^2.4.6",
|
|
47
|
+
"jsdom": "^26.1.0",
|
|
48
|
+
"typescript": "^5.9.2",
|
|
49
|
+
"vite": "^7.1.3",
|
|
50
|
+
"vitest": "^3.2.4",
|
|
51
|
+
"vue": "3.5.39",
|
|
52
|
+
"vue-tsc": "^3.0.6",
|
|
53
|
+
"vuetify": "^3.9.3"
|
|
54
|
+
}
|
|
55
|
+
}
|