@facet-tools/ui 0.0.0-stage → 0.1.0-rc.1

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.
Files changed (82) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +6 -0
  3. package/README.md +24 -2
  4. package/THIRD_PARTY.md +673 -0
  5. package/dist/NOTICE +6 -0
  6. package/dist/THIRD_PARTY.md +15 -0
  7. package/dist/atlas-BsWEDCxa.d.cts +4861 -0
  8. package/dist/atlas-BsWEDCxa.d.ts +4861 -0
  9. package/dist/chunk-7FW4IMVY.cjs +2013 -0
  10. package/dist/chunk-7FW4IMVY.cjs.map +1 -0
  11. package/dist/chunk-7SLSRYM3.cjs +6324 -0
  12. package/dist/chunk-7SLSRYM3.cjs.map +1 -0
  13. package/dist/chunk-A4BERWE6.js +19973 -0
  14. package/dist/chunk-A4BERWE6.js.map +1 -0
  15. package/dist/chunk-EZP2CCQY.js +6209 -0
  16. package/dist/chunk-EZP2CCQY.js.map +1 -0
  17. package/dist/chunk-FR6DIALV.js +511 -0
  18. package/dist/chunk-FR6DIALV.js.map +1 -0
  19. package/dist/chunk-GDFKDECN.cjs +1788 -0
  20. package/dist/chunk-GDFKDECN.cjs.map +1 -0
  21. package/dist/chunk-K2OVG2BC.cjs +20035 -0
  22. package/dist/chunk-K2OVG2BC.cjs.map +1 -0
  23. package/dist/chunk-LOI5RY3Y.js +1754 -0
  24. package/dist/chunk-LOI5RY3Y.js.map +1 -0
  25. package/dist/chunk-SWCO2XQL.js +1968 -0
  26. package/dist/chunk-SWCO2XQL.js.map +1 -0
  27. package/dist/chunk-WAG2ZZJH.cjs +514 -0
  28. package/dist/chunk-WAG2ZZJH.cjs.map +1 -0
  29. package/dist/classic.cjs +467 -0
  30. package/dist/classic.cjs.map +1 -0
  31. package/dist/classic.css +635 -0
  32. package/dist/classic.d.cts +4 -0
  33. package/dist/classic.d.ts +4 -0
  34. package/dist/classic.js +6 -0
  35. package/dist/classic.js.map +1 -0
  36. package/dist/companion-BUs0yNdX.d.cts +110 -0
  37. package/dist/companion-DOQ435G6.d.ts +110 -0
  38. package/dist/core/fixtures.cjs +268 -0
  39. package/dist/core/fixtures.cjs.map +1 -0
  40. package/dist/core/fixtures.d.cts +11 -0
  41. package/dist/core/fixtures.d.ts +11 -0
  42. package/dist/core/fixtures.js +261 -0
  43. package/dist/core/fixtures.js.map +1 -0
  44. package/dist/core.cjs +310 -0
  45. package/dist/core.cjs.map +1 -0
  46. package/dist/core.d.cts +268 -0
  47. package/dist/core.d.ts +268 -0
  48. package/dist/core.js +5 -0
  49. package/dist/core.js.map +1 -0
  50. package/dist/elements.cjs +616 -0
  51. package/dist/elements.cjs.map +1 -0
  52. package/dist/elements.d.cts +20 -0
  53. package/dist/elements.d.ts +20 -0
  54. package/dist/elements.js +612 -0
  55. package/dist/elements.js.map +1 -0
  56. package/dist/facet/atlas.cjs +25 -0
  57. package/dist/facet/atlas.cjs.map +1 -0
  58. package/dist/facet/atlas.d.cts +2 -0
  59. package/dist/facet/atlas.d.ts +2 -0
  60. package/dist/facet/atlas.js +4 -0
  61. package/dist/facet/atlas.js.map +1 -0
  62. package/dist/facet-ui.standalone.js +104 -0
  63. package/dist/facet.cjs +253 -0
  64. package/dist/facet.cjs.map +1 -0
  65. package/dist/facet.css +10649 -0
  66. package/dist/facet.d.cts +91 -0
  67. package/dist/facet.d.ts +91 -0
  68. package/dist/facet.js +4 -0
  69. package/dist/facet.js.map +1 -0
  70. package/dist/index.cjs +467 -0
  71. package/dist/index.cjs.map +1 -0
  72. package/dist/index.d.cts +1584 -0
  73. package/dist/index.d.ts +1584 -0
  74. package/dist/index.js +6 -0
  75. package/dist/index.js.map +1 -0
  76. package/dist/licenses/react-dom@19.2.8/LICENSE +21 -0
  77. package/dist/licenses/react@19.2.8/LICENSE +21 -0
  78. package/dist/licenses/scheduler@0.27.0/LICENSE +21 -0
  79. package/dist/tokens.css +635 -0
  80. package/dist/types-DkZBrIXE.d.cts +527 -0
  81. package/dist/types-DkZBrIXE.d.ts +527 -0
  82. package/package.json +169 -4
@@ -0,0 +1,527 @@
1
+ declare class YamlError extends Error {
2
+ readonly line?: number;
3
+ constructor(message: string, line?: number);
4
+ }
5
+ type YamlValue = string | number | boolean | null | YamlValue[] | {
6
+ [key: string]: YamlValue;
7
+ };
8
+ declare function parseYaml(text: string): YamlValue;
9
+
10
+ type GlossaryTerm = {
11
+ term: string;
12
+ definition: string;
13
+ renderings: Record<string, string>;
14
+ };
15
+ type Glossary = {
16
+ schemaVersion: string;
17
+ terms: GlossaryTerm[];
18
+ };
19
+ declare function parseGlossary(text: string | undefined): Glossary | null;
20
+ declare function glossaryTermList(glossary: Glossary | null): string[];
21
+ declare function lookupTerm(glossary: Glossary | null, term: string): GlossaryTerm | null;
22
+ type ProseSegment = {
23
+ kind: "text";
24
+ text: string;
25
+ } | {
26
+ kind: "term";
27
+ text: string;
28
+ term: string;
29
+ };
30
+ declare function linkTerms(text: string, terms: string[]): ProseSegment[];
31
+
32
+ type Classification = "core" | "supporting" | "generic";
33
+ type TaxonomyCapability = {
34
+ name: string;
35
+ title: string;
36
+ purpose: string;
37
+ classification: Classification | null;
38
+ inherited: boolean;
39
+ };
40
+ type TaxonomyDomain = {
41
+ name: string;
42
+ title: string;
43
+ purpose: string;
44
+ classification: Classification | null;
45
+ ownerTeam: string;
46
+ capabilities: TaxonomyCapability[];
47
+ };
48
+ type Taxonomy = {
49
+ schemaVersion: string;
50
+ domains: TaxonomyDomain[];
51
+ };
52
+ declare function parseTaxonomy(text: string | undefined): Taxonomy | null;
53
+ type TaxonomyNode = {
54
+ domain: string;
55
+ capability: string;
56
+ title: string;
57
+ purpose: string;
58
+ classification: Classification | null;
59
+ ids: string[];
60
+ empty: boolean;
61
+ undeclared: boolean;
62
+ };
63
+ type TaxonomyBranch = {
64
+ domain: TaxonomyDomain;
65
+ nodes: TaxonomyNode[];
66
+ ids: string[];
67
+ };
68
+ declare function taxonomyTree(taxonomy: Taxonomy | null, ids: string[]): TaxonomyBranch[];
69
+
70
+ type RecordKind = "feature" | "policy" | "assumption" | "entity";
71
+ type Anchor = {
72
+ path: string;
73
+ line: number;
74
+ role: string;
75
+ excerpt?: string;
76
+ proves?: string[];
77
+ };
78
+ type OrphanAnchor = {
79
+ path: string;
80
+ line: number;
81
+ id: string;
82
+ };
83
+ type ScannedFile = {
84
+ path: string;
85
+ loc: number;
86
+ };
87
+ type DriftEntry = {
88
+ id: string;
89
+ path: string;
90
+ changedAt: string;
91
+ };
92
+ type RepoScan = {
93
+ scannedAt?: string;
94
+ loc?: number;
95
+ testLoc?: number;
96
+ files?: number;
97
+ testFiles?: number;
98
+ languages?: Record<string, number>;
99
+ anchors?: Record<string, Anchor[]>;
100
+ orphanAnchors?: OrphanAnchor[];
101
+ anchoredFiles?: ScannedFile[];
102
+ unanchoredFiles?: ScannedFile[];
103
+ drift?: DriftEntry[];
104
+ [key: string]: unknown;
105
+ };
106
+ type ScenarioStep = {
107
+ keyword: GherkinKeyword | "";
108
+ parent: GherkinKeyword | "";
109
+ text: string;
110
+ };
111
+ type GherkinKeyword = "GIVEN" | "WHEN" | "THEN" | "AND" | "BUT";
112
+ type TestRef = {
113
+ kind: string;
114
+ id: string;
115
+ proves: string[];
116
+ };
117
+ type Scenario = {
118
+ id: string;
119
+ steps: ScenarioStep[];
120
+ pre: YamlValue;
121
+ post: YamlValue;
122
+ proven: boolean;
123
+ tests: TestRef[];
124
+ backing: ScenarioBacking;
125
+ deviation: ScenarioDeviation | null;
126
+ audience: ScenarioAudience | null;
127
+ implementedBy: Anchor[];
128
+ anchorsAdopted: boolean;
129
+ };
130
+ type ScenarioAudience = "product" | "engineering";
131
+ type ScenarioBacking = {
132
+ state: "backed" | "unbacked";
133
+ reason: string;
134
+ unblockedBy: string;
135
+ };
136
+ type ScenarioDeviation = {
137
+ reason: string;
138
+ confirmedBy: string;
139
+ trackedAs: string;
140
+ };
141
+ type DefectFix = {
142
+ commit: string;
143
+ date: string;
144
+ files: string[];
145
+ subject: string;
146
+ issue: string;
147
+ recordedBy: string;
148
+ };
149
+ type Defects = {
150
+ present: boolean;
151
+ fixes: DefectFix[];
152
+ total: number;
153
+ byFile: {
154
+ path: string;
155
+ count: number;
156
+ }[];
157
+ lastFix: string;
158
+ };
159
+ type KnowledgeSlot = {
160
+ key: string;
161
+ question?: string;
162
+ answer?: string;
163
+ derive?: string[];
164
+ };
165
+ type Slo = {
166
+ id?: string;
167
+ target?: string;
168
+ window?: string;
169
+ query?: string;
170
+ query_source?: string;
171
+ [key: string]: unknown;
172
+ };
173
+ type Alert = {
174
+ id?: string;
175
+ severity?: string;
176
+ condition?: string;
177
+ runbook?: string;
178
+ [key: string]: unknown;
179
+ };
180
+ type ContinuousCheck = {
181
+ id?: string;
182
+ frequency?: string;
183
+ [key: string]: unknown;
184
+ };
185
+ type RecordVariant = {
186
+ lifecycle: string;
187
+ notes?: string;
188
+ };
189
+ type FeatureFlag = {
190
+ key: string;
191
+ system?: string;
192
+ default?: boolean;
193
+ variants: string[];
194
+ rollout?: string;
195
+ retireBy?: string;
196
+ };
197
+ type Dashboard = {
198
+ url: string;
199
+ };
200
+ type MetricEmission = {
201
+ name: string;
202
+ kind: string;
203
+ labels: string[];
204
+ description?: string;
205
+ };
206
+ type TraceEmission = {
207
+ spanName: string;
208
+ parentSpan?: string;
209
+ attributes: string[];
210
+ };
211
+ type LogEvent = {
212
+ event: string;
213
+ level: string;
214
+ attributes: string[];
215
+ };
216
+ type ComplianceCheck = {
217
+ id?: string;
218
+ next_due?: string;
219
+ frequency?: string;
220
+ overdue?: boolean;
221
+ [key: string]: unknown;
222
+ };
223
+ type Clause = {
224
+ text?: string;
225
+ requirement?: string;
226
+ [key: string]: unknown;
227
+ };
228
+ type SchemaField = {
229
+ name?: string;
230
+ type?: string;
231
+ sensitivity?: string;
232
+ constraints?: YamlValue;
233
+ [key: string]: unknown;
234
+ };
235
+ type Evidence = {
236
+ id?: string;
237
+ kind?: string;
238
+ at?: string;
239
+ [key: string]: unknown;
240
+ };
241
+ type RawRecord = {
242
+ path: string;
243
+ raw: string;
244
+ doc: Record<string, YamlValue>;
245
+ };
246
+ type CorpusError = {
247
+ path: string;
248
+ message: string;
249
+ line?: number;
250
+ };
251
+ type FacetRecord = {
252
+ path: string;
253
+ raw: string;
254
+ doc: Record<string, YamlValue>;
255
+ id: string;
256
+ kind: RecordKind;
257
+ seg: string[];
258
+ domain: string;
259
+ capability: string;
260
+ label: string;
261
+ lifecycle: string;
262
+ variants: Record<string, RecordVariant> | null;
263
+ activeAnywhere: boolean;
264
+ schemaVersion: string;
265
+ summary: string;
266
+ adrs: string[];
267
+ scenarios: Scenario[];
268
+ tests: TestRef[];
269
+ provenBy: Record<string, TestRef[]>;
270
+ proven: number;
271
+ total: number;
272
+ slos: Slo[];
273
+ alerts: Alert[];
274
+ checks: ContinuousCheck[];
275
+ dashboards: Dashboard[];
276
+ flags: FeatureFlag[];
277
+ metricsEmitted: MetricEmission[];
278
+ tracesEmitted: TraceEmission[];
279
+ logEvents: LogEvent[];
280
+ knowledge: KnowledgeSlot[];
281
+ team: string;
282
+ individual: string;
283
+ createdAt: string;
284
+ supersededBy: string | null;
285
+ dependsOn: string[];
286
+ dependedOnBy: string[];
287
+ relatedPolicies: string[];
288
+ relatedAssumptions: string[];
289
+ relatedEntities: string[];
290
+ changeRef: string;
291
+ clauses: Clause[];
292
+ scope: Record<string, YamlValue> | null;
293
+ complianceChecks: ComplianceCheck[];
294
+ artifacts: string[];
295
+ fields: SchemaField[];
296
+ schemaNo?: YamlValue;
297
+ retention: YamlValue;
298
+ readBy: string[];
299
+ mutatedBy: string[];
300
+ evidence: Evidence[];
301
+ referencedBy: string[];
302
+ criticality: string;
303
+ risk: string;
304
+ anchors: Anchor[];
305
+ defects: Defects;
306
+ present: Record<string, boolean>;
307
+ ageMonths?: number | null;
308
+ stale?: boolean;
309
+ };
310
+ type Edge = {
311
+ from: string;
312
+ to: string;
313
+ };
314
+ type UndeclaredMention = {
315
+ from: string;
316
+ to: string;
317
+ };
318
+ type Domain = {
319
+ name: string;
320
+ items: FacetRecord[];
321
+ };
322
+ type DomainCoverage = {
323
+ name: string;
324
+ total: number;
325
+ proven: number;
326
+ pct: number | null;
327
+ tests: number;
328
+ };
329
+ type FieldPath = {
330
+ path: string;
331
+ n: number;
332
+ rendered: boolean;
333
+ };
334
+ type DecisionTarget = {
335
+ target: string;
336
+ count: number;
337
+ recordIds: string[];
338
+ };
339
+ type ScenarioEntry = Scenario & {
340
+ rec: FacetRecord;
341
+ };
342
+ type SloEntry = Slo & {
343
+ rec: FacetRecord;
344
+ };
345
+ type AlertEntry = Alert & {
346
+ rec: FacetRecord;
347
+ };
348
+ type CheckEntry = ContinuousCheck & {
349
+ rec: FacetRecord;
350
+ };
351
+ type TeamEntry = {
352
+ items: FacetRecord[];
353
+ contact: string;
354
+ };
355
+ type ErrorCodeMention = {
356
+ id: string;
357
+ statement: string;
358
+ };
359
+ type ErrorCodeEntry = {
360
+ code: string;
361
+ band: string;
362
+ records: ErrorCodeMention[];
363
+ };
364
+ type ErrorCodeBandGroup = {
365
+ band: string;
366
+ codes: ErrorCodeEntry[];
367
+ nextFree: string | null;
368
+ };
369
+ type ErrorCodeRegister = {
370
+ pattern: string;
371
+ entries: ErrorCodeEntry[];
372
+ bands: ErrorCodeBandGroup[];
373
+ collisions: string[];
374
+ };
375
+ type VocabValue = {
376
+ value: string;
377
+ count: number;
378
+ recordIds: string[];
379
+ };
380
+ type VocabGroup = {
381
+ key: string;
382
+ values: VocabValue[];
383
+ count: number;
384
+ recordIds: string[];
385
+ merged: boolean;
386
+ };
387
+ type VocabCoverage = {
388
+ present: VocabGroup[];
389
+ missing: {
390
+ count: number;
391
+ recordIds: string[];
392
+ };
393
+ };
394
+ type EnumRawConstraint = {
395
+ entity: string;
396
+ field: string;
397
+ values: string[];
398
+ };
399
+ type EnumValueSet = {
400
+ key: string;
401
+ values: string[];
402
+ entities: string[];
403
+ };
404
+ type EnumRegisterEntry = {
405
+ field: string;
406
+ valueSets: EnumValueSet[];
407
+ divergent: boolean;
408
+ };
409
+ type EnumRegister = {
410
+ entries: EnumRegisterEntry[];
411
+ fieldCount: number;
412
+ divergentFieldCount: number;
413
+ };
414
+ type CalibrationMetric = {
415
+ name: string;
416
+ median: number;
417
+ min: number;
418
+ max: number;
419
+ samples: number;
420
+ below: number;
421
+ above: number;
422
+ band: {
423
+ low: number;
424
+ high: number;
425
+ };
426
+ };
427
+ type Calibration = {
428
+ registry?: string;
429
+ records: number;
430
+ scenarios: number;
431
+ anchoredFiles: number;
432
+ domains: number;
433
+ capabilities: number;
434
+ hasTaxonomy: boolean;
435
+ metrics: CalibrationMetric[];
436
+ readings: string[];
437
+ };
438
+ type AtlasModel = {
439
+ rc: Record<string, YamlValue>;
440
+ glossary: Glossary | null;
441
+ taxonomy: Taxonomy | null;
442
+ taxonomyTree: TaxonomyBranch[];
443
+ calibration: Calibration | null;
444
+ paths: string[];
445
+ recs: FacetRecord[];
446
+ byId: Record<string, FacetRecord>;
447
+ features: FacetRecord[];
448
+ policies: FacetRecord[];
449
+ assumptions: FacetRecord[];
450
+ entities: FacetRecord[];
451
+ domains: Domain[];
452
+ scnTotal: number;
453
+ scnProven: number;
454
+ allScn: ScenarioEntry[];
455
+ testKinds: Record<string, number>;
456
+ domainCov: DomainCoverage[];
457
+ fieldPaths: FieldPath[];
458
+ notRendered: FieldPath[];
459
+ slos: SloEntry[];
460
+ alerts: AlertEntry[];
461
+ checks: CheckEntry[];
462
+ noRunbook: number;
463
+ sources: string[];
464
+ edges: Edge[];
465
+ undeclaredMentions: UndeclaredMention[];
466
+ ghosts: string[];
467
+ depth: Record<string, number>;
468
+ deg: Record<string, {
469
+ up: number;
470
+ down: number;
471
+ }>;
472
+ maxDepth: number;
473
+ cyclic: string[];
474
+ overdue: number;
475
+ overdueList: {
476
+ rec: FacetRecord;
477
+ check: ComplianceCheck;
478
+ }[];
479
+ stale: number;
480
+ pii: number;
481
+ enc: number;
482
+ clauseCount: number;
483
+ mustCount: number;
484
+ basis: string[];
485
+ lifecycles: Record<string, number>;
486
+ teams: Record<string, TeamEntry>;
487
+ versions: Record<string, number>;
488
+ created: {
489
+ date: string;
490
+ id: string;
491
+ }[];
492
+ scan: RepoScan;
493
+ anchorMap: Record<string, Anchor[]>;
494
+ anchorPairs: (Anchor & {
495
+ id: string;
496
+ })[];
497
+ driftIds: Record<string, DriftEntry[]>;
498
+ unanchored: FacetRecord[];
499
+ noIntent: FacetRecord[];
500
+ knowSlots: number;
501
+ knowAnswered: number;
502
+ noOwner: FacetRecord[];
503
+ superseded: FacetRecord[];
504
+ complete: FacetRecord[];
505
+ noObs: FacetRecord[];
506
+ uncovered: FacetRecord[];
507
+ defectTotal: number;
508
+ defectRecords: FacetRecord[];
509
+ defectsUnproven: FacetRecord[];
510
+ decisionTargets: DecisionTarget[];
511
+ noKnowledge: FacetRecord[];
512
+ errorCodeRegister: ErrorCodeRegister;
513
+ alertSeverities: VocabGroup[];
514
+ sloSourceCoverage: VocabCoverage;
515
+ retentionSpellings: VocabGroup[];
516
+ enumRegister: EnumRegister;
517
+ corpusErrors: CorpusError[];
518
+ };
519
+ type RoleKey = "c" | "arch" | "delivery" | "eng" | "qa" | "po" | "gov" | "ops";
520
+ type RoleDef = {
521
+ key: RoleKey;
522
+ tag: string;
523
+ title: string;
524
+ hint: string;
525
+ };
526
+
527
+ export { type ScenarioDeviation as $, type AtlasModel as A, type EnumRegisterEntry as B, type Calibration as C, type Defects as D, type EnumRegister as E, type FacetRecord as F, type GherkinKeyword as G, type EnumValueSet as H, type ErrorCodeBandGroup as I, type ErrorCodeMention as J, type Evidence as K, type FeatureFlag as L, type FieldPath as M, type GlossaryTerm as N, type KnowledgeSlot as O, type LogEvent as P, type MetricEmission as Q, type RepoScan as R, type ScenarioStep as S, type Taxonomy as T, type OrphanAnchor as U, type ProseSegment as V, type RecordVariant as W, type Scenario as X, type YamlValue as Y, type ScenarioAudience as Z, type ScenarioBacking as _, type RoleKey as a, type ScenarioEntry as a0, type SchemaField as a1, type Slo as a2, type SloEntry as a3, type TaxonomyBranch as a4, type TaxonomyCapability as a5, type TaxonomyDomain as a6, type TaxonomyNode as a7, type TeamEntry as a8, type TestRef as a9, type TraceEmission as aa, type UndeclaredMention as ab, type VocabCoverage as ac, type VocabGroup as ad, type VocabValue as ae, YamlError as af, glossaryTermList as ag, linkTerms as ah, lookupTerm as ai, parseGlossary as aj, parseTaxonomy as ak, parseYaml as al, taxonomyTree as am, type RecordKind as b, type RawRecord as c, type ErrorCodeRegister as d, type CorpusError as e, type Glossary as f, type EnumRawConstraint as g, type ErrorCodeEntry as h, type ScannedFile as i, type RoleDef as j, type Alert as k, type AlertEntry as l, type Anchor as m, type CalibrationMetric as n, type CheckEntry as o, type Classification as p, type Clause as q, type ComplianceCheck as r, type ContinuousCheck as s, type Dashboard as t, type DecisionTarget as u, type DefectFix as v, type Domain as w, type DomainCoverage as x, type DriftEntry as y, type Edge as z };
package/package.json CHANGED
@@ -1,6 +1,171 @@
1
1
  {
2
2
  "name": "@facet-tools/ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0-rc.1",
4
+ "description": "React components, design tokens, custom elements and FACET record data models.",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/facet-framework/facet-ui.git"
9
+ },
10
+ "homepage": "https://github.com/facet-framework/facet-ui#readme",
11
+ "keywords": [
12
+ "facet",
13
+ "design-system",
14
+ "react",
15
+ "web-components",
16
+ "atlas"
17
+ ],
18
+ "type": "module",
19
+ "sideEffects": [
20
+ "*.css",
21
+ "./dist/elements.js",
22
+ "./dist/elements.cjs",
23
+ "./dist/facet-ui.standalone.js"
24
+ ],
25
+ "main": "./dist/index.cjs",
26
+ "module": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "import": {
31
+ "types": "./dist/index.d.ts",
32
+ "default": "./dist/index.js"
33
+ },
34
+ "require": {
35
+ "types": "./dist/index.d.cts",
36
+ "default": "./dist/index.cjs"
37
+ }
38
+ },
39
+ "./core": {
40
+ "import": {
41
+ "types": "./dist/core.d.ts",
42
+ "default": "./dist/core.js"
43
+ },
44
+ "require": {
45
+ "types": "./dist/core.d.cts",
46
+ "default": "./dist/core.cjs"
47
+ }
48
+ },
49
+ "./core/fixtures": {
50
+ "import": {
51
+ "types": "./dist/core/fixtures.d.ts",
52
+ "default": "./dist/core/fixtures.js"
53
+ },
54
+ "require": {
55
+ "types": "./dist/core/fixtures.d.cts",
56
+ "default": "./dist/core/fixtures.cjs"
57
+ }
58
+ },
59
+ "./elements": {
60
+ "import": {
61
+ "types": "./dist/elements.d.ts",
62
+ "default": "./dist/elements.js"
63
+ },
64
+ "require": {
65
+ "types": "./dist/elements.d.cts",
66
+ "default": "./dist/elements.cjs"
67
+ }
68
+ },
69
+ "./elements/standalone": "./dist/facet-ui.standalone.js",
70
+ "./facet": {
71
+ "import": {
72
+ "types": "./dist/facet.d.ts",
73
+ "default": "./dist/facet.js"
74
+ },
75
+ "require": {
76
+ "types": "./dist/facet.d.cts",
77
+ "default": "./dist/facet.cjs"
78
+ }
79
+ },
80
+ "./facet/atlas": {
81
+ "import": {
82
+ "types": "./dist/facet/atlas.d.ts",
83
+ "default": "./dist/facet/atlas.js"
84
+ },
85
+ "require": {
86
+ "types": "./dist/facet/atlas.d.cts",
87
+ "default": "./dist/facet/atlas.cjs"
88
+ }
89
+ },
90
+ "./facet.css": "./dist/facet.css",
91
+ "./classic": {
92
+ "import": {
93
+ "types": "./dist/classic.d.ts",
94
+ "default": "./dist/classic.js"
95
+ },
96
+ "require": {
97
+ "types": "./dist/classic.d.cts",
98
+ "default": "./dist/classic.cjs"
99
+ }
100
+ },
101
+ "./classic.css": "./dist/classic.css",
102
+ "./tokens.css": "./dist/tokens.css",
103
+ "./styles.css": "./dist/tokens.css",
104
+ "./package.json": "./package.json"
105
+ },
106
+ "files": [
107
+ "dist",
108
+ "LICENSE",
109
+ "NOTICE",
110
+ "README.md",
111
+ "THIRD_PARTY.md"
112
+ ],
113
+ "engines": {
114
+ "node": ">=22.18.0"
115
+ },
116
+ "packageManager": "pnpm@10.33.0",
117
+ "scripts": {
118
+ "build": "tsup && node scripts/deprecate-aliases.mjs && tsup --config tsup.standalone.config.ts && pnpm run licenses:generate",
119
+ "dev": "tsup --watch",
120
+ "storybook": "storybook dev -p 6006",
121
+ "build-storybook": "storybook build",
122
+ "test": "jest",
123
+ "test:coverage": "jest --coverage",
124
+ "typecheck": "tsc --noEmit",
125
+ "format": "prettier --write .",
126
+ "format:check": "prettier --check .",
127
+ "lint": "eslint .",
128
+ "verify": "pnpm typecheck && pnpm lint && pnpm build && pnpm test:coverage --runInBand && npm pack --dry-run",
129
+ "storybook:facet": "storybook dev -p 6007 -c .storybook-facet",
130
+ "build-storybook:facet": "storybook build -c .storybook-facet -o storybook-facet-static",
131
+ "licenses:generate": "node scripts/licenses.mjs"
132
+ },
133
+ "peerDependencies": {
134
+ "react": ">=18",
135
+ "react-dom": ">=18"
136
+ },
137
+ "devDependencies": {
138
+ "@eslint/js": "^9.39.5",
139
+ "@storybook/addon-a11y": "^9.1.20",
140
+ "@storybook/addon-docs": "^9.1.20",
141
+ "@storybook/react-vite": "^9.1.20",
142
+ "@testing-library/jest-dom": "^6.9.1",
143
+ "@testing-library/react": "^16.3.2",
144
+ "@testing-library/user-event": "^14.6.1",
145
+ "@types/jest": "^30.0.0",
146
+ "@types/node": "^22.20.1",
147
+ "@types/react": "^19.2.17",
148
+ "@types/react-dom": "^19.2.3",
149
+ "eslint": "^9.39.5",
150
+ "eslint-plugin-jest": "^29.16.0",
151
+ "eslint-plugin-jsx-a11y": "^6.10.2",
152
+ "eslint-plugin-react": "^7.37.5",
153
+ "eslint-plugin-react-hooks": "^7.1.1",
154
+ "eslint-plugin-storybook": "^9.1.20",
155
+ "globals": "^17.8.0",
156
+ "jest": "^30.4.2",
157
+ "jest-environment-jsdom": "^30.4.1",
158
+ "prettier": "^3.4.2",
159
+ "react": "^19.2.8",
160
+ "react-dom": "^19.2.8",
161
+ "storybook": "^9.1.20",
162
+ "ts-jest": "^29.2.5",
163
+ "tsup": "^8.3.5",
164
+ "typescript": "^5.9.3",
165
+ "typescript-eslint": "^8.65.0",
166
+ "vite": "^6.0.7"
167
+ },
168
+ "publishConfig": {
169
+ "access": "public"
170
+ }
171
+ }