@fias/arche-sdk 1.1.3 → 1.1.5
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/bridge.d.ts +11 -1
- package/dist/bridge.d.ts.map +1 -1
- package/dist/bridge.js +61 -2
- package/dist/bridge.js.map +1 -1
- package/dist/bridge.test.js +24 -7
- package/dist/bridge.test.js.map +1 -1
- package/dist/cli/create-plugin.js +4 -1
- package/dist/cli/create-plugin.js.map +1 -1
- package/dist/hooks.d.ts +18 -1
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +69 -2
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.test.js +30 -6
- package/dist/hooks.test.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1966 -5
- package/dist/theme.d.ts +18 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +85 -0
- package/dist/theme.js.map +1 -0
- package/dist/themes/catalog-data.d.ts +3 -0
- package/dist/themes/catalog-data.d.ts.map +1 -0
- package/dist/themes/catalog-data.js +1559 -0
- package/dist/themes/catalog-data.js.map +1 -0
- package/dist/themes/fonts.d.ts +17 -0
- package/dist/themes/fonts.d.ts.map +1 -0
- package/dist/themes/fonts.js +175 -0
- package/dist/themes/fonts.js.map +1 -0
- package/dist/themes/index.d.ts +20 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/index.js +76 -0
- package/dist/themes/index.js.map +1 -0
- package/dist/types.d.ts +28 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -4
- package/templates/default/.cursorrules +1 -0
- package/templates/default/.github/copilot-instructions.md +1 -0
- package/templates/default/AGENTS.md +351 -0
- package/templates/default/CLAUDE.md +351 -0
- package/templates/default/fias-plugin.json +2 -1
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical FIAS Plugin Theme Constants
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for the theme colors provided to plugins.
|
|
5
|
+
* Matches the Fias monochromatic theme defined in client/src/index.css.
|
|
6
|
+
*
|
|
7
|
+
* Used by:
|
|
8
|
+
* - plugin-dev-harness (local development)
|
|
9
|
+
* - plugin-builder-preview (builder preview iframe)
|
|
10
|
+
* - PluginRenderer (production plugin rendering)
|
|
11
|
+
* - bridge routes (server-side fallback)
|
|
12
|
+
* - arche-sdk tests
|
|
13
|
+
*/
|
|
14
|
+
import type { FiasTheme } from './types';
|
|
15
|
+
export declare const DARK_THEME: FiasTheme;
|
|
16
|
+
export declare const LIGHT_THEME: FiasTheme;
|
|
17
|
+
export declare function getDefaultTheme(mode: 'light' | 'dark'): FiasTheme;
|
|
18
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAkBzC,eAAO,MAAM,UAAU,EAAE,SAwBxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,SAwBzB,CAAC;AAEF,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEjE"}
|
package/dist/theme.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Canonical FIAS Plugin Theme Constants
|
|
4
|
+
*
|
|
5
|
+
* Single source of truth for the theme colors provided to plugins.
|
|
6
|
+
* Matches the Fias monochromatic theme defined in client/src/index.css.
|
|
7
|
+
*
|
|
8
|
+
* Used by:
|
|
9
|
+
* - plugin-dev-harness (local development)
|
|
10
|
+
* - plugin-builder-preview (builder preview iframe)
|
|
11
|
+
* - PluginRenderer (production plugin rendering)
|
|
12
|
+
* - bridge routes (server-side fallback)
|
|
13
|
+
* - arche-sdk tests
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LIGHT_THEME = exports.DARK_THEME = void 0;
|
|
17
|
+
exports.getDefaultTheme = getDefaultTheme;
|
|
18
|
+
const SYSTEM_FONTS = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif';
|
|
19
|
+
const MONO_FONTS = '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace';
|
|
20
|
+
const SHARED_SPACING = { xs: '4px', sm: '8px', md: '16px', lg: '24px', xl: '32px' };
|
|
21
|
+
const SHARED_FONTS = { body: SYSTEM_FONTS, heading: SYSTEM_FONTS, mono: MONO_FONTS };
|
|
22
|
+
const SHARED_COMPONENTS = {
|
|
23
|
+
borderRadius: '0.5rem',
|
|
24
|
+
buttonRadius: '0.375rem',
|
|
25
|
+
cardRadius: '0.5rem',
|
|
26
|
+
inputRadius: '0.375rem',
|
|
27
|
+
shadowSm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
|
|
28
|
+
shadowMd: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)',
|
|
29
|
+
shadowLg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)',
|
|
30
|
+
borderWidth: '1px',
|
|
31
|
+
};
|
|
32
|
+
exports.DARK_THEME = {
|
|
33
|
+
mode: 'dark',
|
|
34
|
+
colors: {
|
|
35
|
+
primary: '#ffffff',
|
|
36
|
+
primaryText: '#0a0a0a',
|
|
37
|
+
secondary: '#1f1f1f',
|
|
38
|
+
accent: '#3b82f6',
|
|
39
|
+
background: '#0a0a0a',
|
|
40
|
+
surface: '#171717',
|
|
41
|
+
card: '#141414',
|
|
42
|
+
cardText: '#ffffff',
|
|
43
|
+
text: '#ffffff',
|
|
44
|
+
textSecondary: '#a6a6a6',
|
|
45
|
+
muted: '#1e1e1e',
|
|
46
|
+
mutedText: '#737373',
|
|
47
|
+
border: '#2e2e2e',
|
|
48
|
+
error: '#ef4444',
|
|
49
|
+
warning: '#f59e0b',
|
|
50
|
+
success: '#22c55e',
|
|
51
|
+
info: '#3b82f6',
|
|
52
|
+
},
|
|
53
|
+
spacing: SHARED_SPACING,
|
|
54
|
+
fonts: SHARED_FONTS,
|
|
55
|
+
components: SHARED_COMPONENTS,
|
|
56
|
+
};
|
|
57
|
+
exports.LIGHT_THEME = {
|
|
58
|
+
mode: 'light',
|
|
59
|
+
colors: {
|
|
60
|
+
primary: '#171717',
|
|
61
|
+
primaryText: '#ffffff',
|
|
62
|
+
secondary: '#e5e5e5',
|
|
63
|
+
accent: '#2563eb',
|
|
64
|
+
background: '#ffffff',
|
|
65
|
+
surface: '#fafafa',
|
|
66
|
+
card: '#ffffff',
|
|
67
|
+
cardText: '#0a0a0a',
|
|
68
|
+
text: '#0a0a0a',
|
|
69
|
+
textSecondary: '#737373',
|
|
70
|
+
muted: '#f5f5f5',
|
|
71
|
+
mutedText: '#a3a3a3',
|
|
72
|
+
border: '#e5e5e5',
|
|
73
|
+
error: '#dc2626',
|
|
74
|
+
warning: '#d97706',
|
|
75
|
+
success: '#16a34a',
|
|
76
|
+
info: '#2563eb',
|
|
77
|
+
},
|
|
78
|
+
spacing: SHARED_SPACING,
|
|
79
|
+
fonts: SHARED_FONTS,
|
|
80
|
+
components: SHARED_COMPONENTS,
|
|
81
|
+
};
|
|
82
|
+
function getDefaultTheme(mode) {
|
|
83
|
+
return mode === 'light' ? exports.LIGHT_THEME : exports.DARK_THEME;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAwEH,0CAEC;AAtED,MAAM,YAAY,GAAG,mE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