@larose-ui/core 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 laRose contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,233 @@
1
+ /**
2
+ * Log a one-time deprecation warning in non-production environments.
3
+ */
4
+ declare function warnDeprecation(id: string, message: string, replacement?: string): void;
5
+ /** Reset warned set — for tests only. */
6
+ declare function resetDeprecationWarnings(): void;
7
+
8
+ type SessionState = 'authenticated' | 'unauthenticated' | 'refreshing' | 'expired' | 'revoked' | 'unauthorized';
9
+ interface UserContext {
10
+ id: string;
11
+ name?: string;
12
+ email?: string;
13
+ roles?: string[];
14
+ attributes?: Record<string, unknown>;
15
+ }
16
+ interface TenantContext {
17
+ id: string;
18
+ name?: string;
19
+ locale?: string;
20
+ timezone?: string;
21
+ theme?: ThemeMode;
22
+ /** Named preset from @larose-ui/themes (e.g. ocean, forest) */
23
+ themePreset?: string;
24
+ brandColors?: Record<string, string>;
25
+ permissions?: string[];
26
+ features?: Record<string, boolean | 'loading'>;
27
+ }
28
+ interface FeatureFlagResult {
29
+ enabled: boolean;
30
+ loading: boolean;
31
+ reason?: string;
32
+ variant?: string;
33
+ }
34
+ interface A11yPreferences {
35
+ reducedMotion: boolean;
36
+ highContrast: boolean;
37
+ }
38
+ interface VersionMatrix {
39
+ frontend: string;
40
+ api?: string;
41
+ feature?: string;
42
+ compatible: boolean;
43
+ warnings: string[];
44
+ }
45
+ interface NetworkSnapshot {
46
+ condition: NetworkCondition;
47
+ online: boolean;
48
+ effectiveType?: string;
49
+ rtt?: number;
50
+ }
51
+ interface PermissionSnapshot {
52
+ granted: string[];
53
+ loading: boolean;
54
+ }
55
+ interface FeatureFlagSnapshot {
56
+ flags: Record<string, FeatureFlagResult>;
57
+ loading: boolean;
58
+ }
59
+ interface OfflineSnapshot {
60
+ status: string;
61
+ queueLength: number;
62
+ }
63
+ interface LocaleSnapshot {
64
+ locale: string;
65
+ dir: 'ltr' | 'rtl';
66
+ }
67
+ interface ThemeSnapshot {
68
+ mode: ThemeMode;
69
+ density: Density;
70
+ tenantId?: string;
71
+ }
72
+ /**
73
+ * Unified read-only snapshot of the laRose frontend operating environment.
74
+ * Consumed by DevTools, observability correlators, and application diagnostics.
75
+ */
76
+ interface LaRoseRuntimeContext {
77
+ environment: Environment;
78
+ tenant: TenantContext | null;
79
+ user: UserContext | null;
80
+ session: SessionState;
81
+ permissions: PermissionSnapshot;
82
+ features: FeatureFlagSnapshot;
83
+ network: NetworkSnapshot;
84
+ offline: OfflineSnapshot;
85
+ locale: LocaleSnapshot;
86
+ timezone: string;
87
+ theme: ThemeSnapshot;
88
+ accessibility: A11yPreferences;
89
+ version: VersionMatrix;
90
+ }
91
+ declare function createDefaultRuntimeContext(overrides?: Partial<LaRoseRuntimeContext>): LaRoseRuntimeContext;
92
+
93
+ type RuntimeEventType = 'runtime.mounted' | 'runtime.updated' | 'runtime.tenant.changed' | 'session.transition' | 'network.transition' | 'permission.checked' | 'feature.evaluated' | 'offline.transition' | 'environment.changed' | 'api.request' | 'api.response' | 'error' | 'component.mounted' | 'component.rendered' | 'user.interaction';
94
+ interface RuntimeEvent<T extends Record<string, unknown> = Record<string, unknown>> {
95
+ type: RuntimeEventType;
96
+ timestamp: number;
97
+ component?: string;
98
+ metadata?: T;
99
+ }
100
+ interface RuntimeEventBus {
101
+ emit(event: Omit<RuntimeEvent, 'timestamp'> & {
102
+ timestamp?: number;
103
+ }): RuntimeEvent;
104
+ subscribe(listener: (event: RuntimeEvent) => void): () => void;
105
+ getTimeline(limit?: number): RuntimeEvent[];
106
+ clear(): void;
107
+ }
108
+ interface RuntimeEventBusOptions {
109
+ maxEvents?: number;
110
+ }
111
+ declare function createRuntimeEventBus(options?: RuntimeEventBusOptions): RuntimeEventBus;
112
+
113
+ type SessionEvent = {
114
+ type: 'AUTHENTICATE';
115
+ } | {
116
+ type: 'REFRESH';
117
+ } | {
118
+ type: 'REFRESH_SUCCESS';
119
+ } | {
120
+ type: 'REFRESH_FAILED';
121
+ } | {
122
+ type: 'EXPIRE';
123
+ } | {
124
+ type: 'REVOKE';
125
+ } | {
126
+ type: 'UNAUTHORIZE';
127
+ } | {
128
+ type: 'SIGN_OUT';
129
+ };
130
+ interface SessionStateMachine {
131
+ state: SessionState;
132
+ send: (event: SessionEvent) => SessionState;
133
+ reset: () => void;
134
+ }
135
+ declare function createSessionStateMachine(initial?: SessionState): SessionStateMachine;
136
+
137
+ interface FeatureFlagEvaluationContext {
138
+ userId?: string;
139
+ tenantId?: string;
140
+ organizationId?: string;
141
+ environment?: Environment;
142
+ attributes?: Record<string, unknown>;
143
+ }
144
+ interface FeatureFlagEvaluator {
145
+ evaluate(name: string, context: FeatureFlagEvaluationContext): FeatureFlagResult;
146
+ }
147
+ type StaticFeatureFlagValue = boolean | 'loading';
148
+ interface PercentageRolloutConfig {
149
+ enabled: boolean;
150
+ percentage?: number;
151
+ loading?: boolean;
152
+ }
153
+ declare function createStaticFeatureFlagEvaluator(flags: Record<string, StaticFeatureFlagValue>, loading?: boolean): FeatureFlagEvaluator;
154
+ declare function createPercentageRolloutEvaluator(config: Record<string, PercentageRolloutConfig>): FeatureFlagEvaluator;
155
+ declare function createCompositeFeatureFlagEvaluator(evaluators: FeatureFlagEvaluator[]): FeatureFlagEvaluator;
156
+
157
+ declare function detectA11yPreferences(): A11yPreferences;
158
+ declare function subscribeA11yPreferences(onChange: (preferences: A11yPreferences) => void): () => void;
159
+
160
+ /**
161
+ * UI component lifecycle states supported across laRose.
162
+ */
163
+ type UIState = 'idle' | 'loading' | 'success' | 'error' | 'empty' | 'disabled' | 'readonly' | 'unauthorized' | 'offline' | 'retrying';
164
+ /**
165
+ * Async operation states for state-machine driven components.
166
+ */
167
+ type AsyncState = 'idle' | 'loading' | 'submitting' | 'success' | 'error' | 'retrying';
168
+ type Density = 'compact' | 'comfortable' | 'spacious';
169
+ type ThemeMode = 'light' | 'dark';
170
+ type Environment = 'development' | 'staging' | 'production' | 'demo' | 'readonly' | 'maintenance';
171
+ type NetworkCondition = 'online' | 'fast' | 'offline' | 'slow' | 'intermittent' | 'high-latency' | 'failed' | 'recovering';
172
+ type PermissionFallback = 'visible' | 'hidden' | 'disabled' | 'readonly' | 'forbidden' | 'loading';
173
+ type HttpErrorCode = 401 | 403 | 404 | 409 | 422 | 429 | 500 | 503;
174
+ interface ApiError {
175
+ code: HttpErrorCode | number;
176
+ message: string;
177
+ details?: Record<string, unknown>;
178
+ retryable: boolean;
179
+ }
180
+ interface AsyncStateMachine<TData = unknown, TError = ApiError> {
181
+ state: AsyncState;
182
+ data: TData | null;
183
+ error: TError | null;
184
+ retryCount: number;
185
+ send: (event: AsyncEvent) => void;
186
+ reset: () => void;
187
+ }
188
+ type AsyncEvent = {
189
+ type: 'START';
190
+ } | {
191
+ type: 'SUBMIT';
192
+ } | {
193
+ type: 'SUCCESS';
194
+ data?: unknown;
195
+ } | {
196
+ type: 'ERROR';
197
+ error?: unknown;
198
+ } | {
199
+ type: 'RETRY';
200
+ } | {
201
+ type: 'RESET';
202
+ };
203
+ interface Permission {
204
+ action: string;
205
+ resource?: string;
206
+ allowed: boolean;
207
+ reason?: string;
208
+ }
209
+ interface VersionInfo {
210
+ frontend: string;
211
+ backend?: string;
212
+ compatible: boolean;
213
+ warnings: string[];
214
+ }
215
+ type Variant = 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive';
216
+ type Size = 'sm' | 'md' | 'lg';
217
+ interface ComponentStateProps {
218
+ state?: UIState;
219
+ loading?: boolean;
220
+ error?: string | ApiError | null;
221
+ disabled?: boolean;
222
+ readonly?: boolean;
223
+ }
224
+ declare function classifyHttpError(status: number, message?: string): ApiError;
225
+ declare function createAsyncStateMachine<TData = unknown, TError = ApiError>(initialState?: AsyncState): AsyncStateMachine<TData, TError>;
226
+ declare function resolveUIState(props: ComponentStateProps): UIState;
227
+ declare function createEventEmitter<T extends Record<string, unknown>>(): {
228
+ on<K extends keyof T>(event: K, listener: (payload: T[K]) => void): () => boolean | undefined;
229
+ emit<K extends keyof T>(event: K, payload: T[K]): void;
230
+ };
231
+ declare const LAROSE_VERSION = "0.1.0";
232
+
233
+ export { type A11yPreferences, type ApiError, type AsyncEvent, type AsyncState, type AsyncStateMachine, type ComponentStateProps, type Density, type Environment, type FeatureFlagEvaluationContext, type FeatureFlagEvaluator, type FeatureFlagResult, type FeatureFlagSnapshot, type HttpErrorCode, LAROSE_VERSION, type LaRoseRuntimeContext, type LocaleSnapshot, type NetworkCondition, type NetworkSnapshot, type OfflineSnapshot, type PercentageRolloutConfig, type Permission, type PermissionFallback, type PermissionSnapshot, type RuntimeEvent, type RuntimeEventBus, type RuntimeEventType, type SessionEvent, type SessionState, type SessionStateMachine, type Size, type StaticFeatureFlagValue, type TenantContext, type ThemeMode, type ThemeSnapshot, type UIState, type UserContext, type Variant, type VersionInfo, type VersionMatrix, classifyHttpError, createAsyncStateMachine, createCompositeFeatureFlagEvaluator, createDefaultRuntimeContext, createEventEmitter, createPercentageRolloutEvaluator, createRuntimeEventBus, createSessionStateMachine, createStaticFeatureFlagEvaluator, detectA11yPreferences, resetDeprecationWarnings, resolveUIState, subscribeA11yPreferences, warnDeprecation };
package/dist/index.js ADDED
@@ -0,0 +1,330 @@
1
+ // src/deprecation.ts
2
+ var warned = /* @__PURE__ */ new Set();
3
+ function warnDeprecation(id, message, replacement) {
4
+ const isProd = typeof process !== "undefined" && process.env.NODE_ENV === "production";
5
+ if (isProd || warned.has(id)) return;
6
+ warned.add(id);
7
+ const suffix = replacement ? ` Use ${replacement} instead.` : "";
8
+ console.warn(`[laRose] Deprecated (${id}): ${message}.${suffix}`);
9
+ }
10
+ function resetDeprecationWarnings() {
11
+ warned.clear();
12
+ }
13
+
14
+ // src/runtime/types.ts
15
+ function createDefaultRuntimeContext(overrides = {}) {
16
+ return {
17
+ environment: "development",
18
+ tenant: null,
19
+ user: null,
20
+ session: "unauthenticated",
21
+ permissions: { granted: [], loading: false },
22
+ features: { flags: {}, loading: false },
23
+ network: { condition: "fast", online: true },
24
+ offline: { status: "idle", queueLength: 0 },
25
+ locale: { locale: "en", dir: "ltr" },
26
+ timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
27
+ theme: { mode: "light", density: "comfortable" },
28
+ accessibility: { reducedMotion: false, highContrast: false },
29
+ version: {
30
+ frontend: "0.1.0",
31
+ compatible: true,
32
+ warnings: []
33
+ },
34
+ ...overrides
35
+ };
36
+ }
37
+
38
+ // src/runtime/eventBus.ts
39
+ function createRuntimeEventBus(options = {}) {
40
+ const maxEvents = options.maxEvents ?? 500;
41
+ const timeline = [];
42
+ const listeners = /* @__PURE__ */ new Set();
43
+ return {
44
+ emit(event) {
45
+ const full = {
46
+ ...event,
47
+ timestamp: event.timestamp ?? Date.now()
48
+ };
49
+ timeline.push(full);
50
+ if (timeline.length > maxEvents) {
51
+ timeline.shift();
52
+ }
53
+ listeners.forEach((listener) => listener(full));
54
+ return full;
55
+ },
56
+ subscribe(listener) {
57
+ listeners.add(listener);
58
+ return () => listeners.delete(listener);
59
+ },
60
+ getTimeline(limit) {
61
+ if (limit === void 0) return [...timeline];
62
+ return timeline.slice(-limit);
63
+ },
64
+ clear() {
65
+ timeline.length = 0;
66
+ }
67
+ };
68
+ }
69
+
70
+ // src/runtime/session.ts
71
+ function createSessionStateMachine(initial = "unauthenticated") {
72
+ let state = initial;
73
+ const machine = {
74
+ get state() {
75
+ return state;
76
+ },
77
+ send(event) {
78
+ switch (event.type) {
79
+ case "AUTHENTICATE":
80
+ state = "authenticated";
81
+ break;
82
+ case "REFRESH":
83
+ if (state === "authenticated" || state === "expired") {
84
+ state = "refreshing";
85
+ }
86
+ break;
87
+ case "REFRESH_SUCCESS":
88
+ state = "authenticated";
89
+ break;
90
+ case "REFRESH_FAILED":
91
+ state = state === "refreshing" ? "expired" : state;
92
+ break;
93
+ case "EXPIRE":
94
+ state = "expired";
95
+ break;
96
+ case "REVOKE":
97
+ state = "revoked";
98
+ break;
99
+ case "UNAUTHORIZE":
100
+ state = "unauthorized";
101
+ break;
102
+ case "SIGN_OUT":
103
+ state = "unauthenticated";
104
+ break;
105
+ }
106
+ return state;
107
+ },
108
+ reset() {
109
+ state = initial;
110
+ }
111
+ };
112
+ return machine;
113
+ }
114
+
115
+ // src/runtime/featureFlags.ts
116
+ function hashToPercent(input) {
117
+ let hash = 0;
118
+ for (let i = 0; i < input.length; i++) {
119
+ hash = (hash << 5) - hash + input.charCodeAt(i);
120
+ hash |= 0;
121
+ }
122
+ return Math.abs(hash) % 100;
123
+ }
124
+ function createStaticFeatureFlagEvaluator(flags, loading = false) {
125
+ return {
126
+ evaluate(name) {
127
+ const value = flags[name];
128
+ if (value === "loading" || loading) {
129
+ return { enabled: false, loading: true };
130
+ }
131
+ if (value === true) {
132
+ return { enabled: true, loading: false };
133
+ }
134
+ return {
135
+ enabled: false,
136
+ loading: false,
137
+ reason: value === false ? "disabled" : "unknown flag"
138
+ };
139
+ }
140
+ };
141
+ }
142
+ function createPercentageRolloutEvaluator(config) {
143
+ return {
144
+ evaluate(name, context) {
145
+ const entry = config[name];
146
+ if (!entry) {
147
+ return { enabled: false, loading: false, reason: "unknown flag" };
148
+ }
149
+ if (entry.loading) {
150
+ return { enabled: false, loading: true };
151
+ }
152
+ if (!entry.enabled) {
153
+ return { enabled: false, loading: false, reason: "disabled" };
154
+ }
155
+ const percentage = entry.percentage ?? 100;
156
+ if (percentage >= 100) {
157
+ return { enabled: true, loading: false };
158
+ }
159
+ if (percentage <= 0) {
160
+ return { enabled: false, loading: false, reason: "rollout 0%" };
161
+ }
162
+ const bucketKey = `${context.userId ?? "anonymous"}:${context.tenantId ?? "default"}:${name}`;
163
+ const bucket = hashToPercent(bucketKey);
164
+ const enabled = bucket < percentage;
165
+ return {
166
+ enabled,
167
+ loading: false,
168
+ reason: enabled ? void 0 : `rollout ${percentage}%`,
169
+ variant: enabled ? "treatment" : "control"
170
+ };
171
+ }
172
+ };
173
+ }
174
+ function createCompositeFeatureFlagEvaluator(evaluators) {
175
+ return {
176
+ evaluate(name, context) {
177
+ for (const evaluator of evaluators) {
178
+ const result = evaluator.evaluate(name, context);
179
+ if (result.loading || result.enabled || result.reason !== "unknown flag") {
180
+ return result;
181
+ }
182
+ }
183
+ return { enabled: false, loading: false, reason: "unknown flag" };
184
+ }
185
+ };
186
+ }
187
+
188
+ // src/runtime/a11y.ts
189
+ function detectA11yPreferences() {
190
+ if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
191
+ return { reducedMotion: false, highContrast: false };
192
+ }
193
+ const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
194
+ const highContrast = window.matchMedia("(prefers-contrast: more)").matches;
195
+ return { reducedMotion, highContrast };
196
+ }
197
+ function subscribeA11yPreferences(onChange) {
198
+ if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
199
+ return () => {
200
+ };
201
+ }
202
+ const motionQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
203
+ const contrastQuery = window.matchMedia("(prefers-contrast: more)");
204
+ const notify = () => onChange(detectA11yPreferences());
205
+ motionQuery.addEventListener("change", notify);
206
+ contrastQuery.addEventListener("change", notify);
207
+ return () => {
208
+ motionQuery.removeEventListener("change", notify);
209
+ contrastQuery.removeEventListener("change", notify);
210
+ };
211
+ }
212
+
213
+ // src/index.ts
214
+ function classifyHttpError(status, message) {
215
+ const defaultMessage = message ?? "An unexpected error occurred";
216
+ const retryable = status === 429 || status === 500 || status === 503;
217
+ const messages = {
218
+ 401: "You are not authenticated. Please sign in.",
219
+ 403: "You don't have permission to perform this action.",
220
+ 404: "The requested resource was not found.",
221
+ 409: "A conflict was detected. The resource may have been modified.",
222
+ 422: "Validation failed. Please check your input.",
223
+ 429: "Too many requests. Please wait before retrying.",
224
+ 500: "A server error occurred. Please try again.",
225
+ 503: "Service temporarily unavailable. Please try again."
226
+ };
227
+ const code = status;
228
+ return {
229
+ code: status,
230
+ message: messages[code] ?? defaultMessage,
231
+ retryable
232
+ };
233
+ }
234
+ function createAsyncStateMachine(initialState = "idle") {
235
+ let state = initialState;
236
+ let data = null;
237
+ let error = null;
238
+ let retryCount = 0;
239
+ const listeners = /* @__PURE__ */ new Set();
240
+ const notify = () => listeners.forEach((l) => l());
241
+ const machine = {
242
+ get state() {
243
+ return state;
244
+ },
245
+ get data() {
246
+ return data;
247
+ },
248
+ get error() {
249
+ return error;
250
+ },
251
+ get retryCount() {
252
+ return retryCount;
253
+ },
254
+ send(event) {
255
+ switch (event.type) {
256
+ case "START":
257
+ state = "loading";
258
+ error = null;
259
+ break;
260
+ case "SUBMIT":
261
+ state = "submitting";
262
+ error = null;
263
+ break;
264
+ case "SUCCESS":
265
+ state = "success";
266
+ data = event.data ?? data;
267
+ error = null;
268
+ break;
269
+ case "ERROR":
270
+ state = "error";
271
+ error = event.error ?? error;
272
+ break;
273
+ case "RETRY":
274
+ retryCount += 1;
275
+ state = "retrying";
276
+ break;
277
+ case "RESET":
278
+ state = "idle";
279
+ data = null;
280
+ error = null;
281
+ retryCount = 0;
282
+ break;
283
+ }
284
+ notify();
285
+ },
286
+ reset() {
287
+ machine.send({ type: "RESET" });
288
+ }
289
+ };
290
+ return machine;
291
+ }
292
+ function resolveUIState(props) {
293
+ if (props.state) return props.state;
294
+ if (props.disabled) return "disabled";
295
+ if (props.readonly) return "readonly";
296
+ if (props.loading) return "loading";
297
+ if (props.error) return "error";
298
+ return "idle";
299
+ }
300
+ function createEventEmitter() {
301
+ const listeners = /* @__PURE__ */ new Map();
302
+ return {
303
+ on(event, listener) {
304
+ if (!listeners.has(event)) listeners.set(event, /* @__PURE__ */ new Set());
305
+ listeners.get(event).add(listener);
306
+ return () => listeners.get(event)?.delete(listener);
307
+ },
308
+ emit(event, payload) {
309
+ listeners.get(event)?.forEach((l) => l(payload));
310
+ }
311
+ };
312
+ }
313
+ var LAROSE_VERSION = "0.1.0";
314
+ export {
315
+ LAROSE_VERSION,
316
+ classifyHttpError,
317
+ createAsyncStateMachine,
318
+ createCompositeFeatureFlagEvaluator,
319
+ createDefaultRuntimeContext,
320
+ createEventEmitter,
321
+ createPercentageRolloutEvaluator,
322
+ createRuntimeEventBus,
323
+ createSessionStateMachine,
324
+ createStaticFeatureFlagEvaluator,
325
+ detectA11yPreferences,
326
+ resetDeprecationWarnings,
327
+ resolveUIState,
328
+ subscribeA11yPreferences,
329
+ warnDeprecation
330
+ };
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@larose-ui/core",
3
+ "version": "0.1.0",
4
+ "description": "Core types, state machines, and utilities for laRose UI platform",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "devDependencies": {
19
+ "tsup": "^8.3.5",
20
+ "typescript": "^5.7.2",
21
+ "vitest": "^2.1.8"
22
+ },
23
+ "license": "MIT",
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/larose-ui/larose.git",
30
+ "directory": "packages/core"
31
+ },
32
+ "keywords": [
33
+ "larose",
34
+ "react",
35
+ "ui-platform",
36
+ "design-system",
37
+ "saas"
38
+ ],
39
+ "scripts": {
40
+ "build": "tsup src/index.ts --format esm --dts --clean",
41
+ "dev": "tsup src/index.ts --format esm --dts --watch",
42
+ "test": "vitest run",
43
+ "typecheck": "tsc --noEmit",
44
+ "clean": "rm -rf dist"
45
+ }
46
+ }