@bahmni/command-palette-app 0.0.1-dev.314

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/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # @bahmni/command-palette
2
+
3
+ CommandPalette application for Bahmni.
4
+
5
+ This library was generated with [Nx](https://nx.dev).
6
+
7
+ ## Running unit tests
8
+
9
+ Run `nx test @bahmni/command-palette` to execute the unit tests via [Jest](https://jestjs.io/).
@@ -0,0 +1,7 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ interface CommandPaletteProviderProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const CommandPaletteProvider: React.FC<CommandPaletteProviderProps>;
6
+ export {};
7
+ //# sourceMappingURL=CommandPaletteProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPaletteProvider.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPaletteProvider/CommandPaletteProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG9C,UAAU,2BAA2B;IACnC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CASxE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CommandPaletteProvider } from './CommandPaletteProvider';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPaletteProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { PatientFieldsConfig, TriggerConfig } from '@bahmni/widgets';
2
+ export declare const BAHMNI_COMMAND_PALETTE_NAMESPACE = "command-palette";
3
+ export declare const COMMAND_PALETTE_APP_CONFIG_URL = "/bahmni_config/openmrs/apps/command-palette/app.json";
4
+ export declare const EXTENSION_BASE_URL = "/bahmni_config/openmrs/apps";
5
+ export declare const DEFAULT_TRIGGER: TriggerConfig;
6
+ export declare const DEFAULT_PATIENT_FIELDS: PatientFieldsConfig;
7
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE1E,eAAO,MAAM,gCAAgC,oBAAoB,CAAC;AAElE,eAAO,MAAM,8BAA8B,yDACa,CAAC;AACzD,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAEhE,eAAO,MAAM,eAAe,EAAE,aAG7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,mBAGpC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const COMMAND_PALETTE_NAV_ITEM_POINT = "org.bahmni.commandpalette.navItem";
2
+ export declare const COMMAND_PALETTE_PATIENT_ACTION_POINT = "org.bahmni.commandpalette.patientAction";
3
+ //# sourceMappingURL=extensionPoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionPoints.d.ts","sourceRoot":"","sources":["../../src/constants/extensionPoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,sCACN,CAAC;AACtC,eAAO,MAAM,oCAAoC,4CACN,CAAC"}
@@ -0,0 +1,110 @@
1
+ declare const _default: {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Command Palette App Configuration",
4
+ "type": "object",
5
+ "required": ["id"],
6
+ "properties": {
7
+ "id": { "type": "string" },
8
+ "commandPalette": {
9
+ "type": "object",
10
+ "additionalProperties": false,
11
+ "properties": {
12
+ "trigger": {
13
+ "type": "object",
14
+ "additionalProperties": false,
15
+ "required": ["type"],
16
+ "properties": {
17
+ "type": { "type": "string", "enum": ["combination", "double"] },
18
+ "keys": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
19
+ "interval": { "type": "number" }
20
+ },
21
+ "allOf": [
22
+ {
23
+ "if": {
24
+ "properties": { "type": { "const": "combination" } },
25
+ "required": ["type"]
26
+ },
27
+ "then": { "required": ["keys"] }
28
+ },
29
+ {
30
+ "if": {
31
+ "properties": { "type": { "const": "double" } },
32
+ "required": ["type"]
33
+ },
34
+ "then": { "required": ["keys"] }
35
+ }
36
+ ]
37
+ },
38
+ "patientFields": {
39
+ "type": "object",
40
+ "additionalProperties": false,
41
+ "required": ["primaryFields", "additionalFields"],
42
+ "properties": {
43
+ "primaryFields": {
44
+ "type": "array",
45
+ "items": {
46
+ "type": "string",
47
+ "enum": [
48
+ "name",
49
+ "identifier",
50
+ "age",
51
+ "gender",
52
+ "birthDate",
53
+ "addressFieldValue",
54
+ "extraIdentifiers",
55
+ "customAttribute",
56
+ "activeVisitUuid"
57
+ ]
58
+ }
59
+ },
60
+ "additionalFields": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "string",
64
+ "enum": [
65
+ "name",
66
+ "identifier",
67
+ "age",
68
+ "gender",
69
+ "birthDate",
70
+ "addressFieldValue",
71
+ "extraIdentifiers",
72
+ "customAttribute",
73
+ "activeVisitUuid"
74
+ ]
75
+ }
76
+ }
77
+ }
78
+ },
79
+ "searchAnnotations": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": ["prefix", "label"],
85
+ "properties": {
86
+ "prefix": { "type": "string" },
87
+ "label": { "type": "string" },
88
+ "searchType": {
89
+ "type": "string",
90
+ "enum": ["patientAttribute", "patientNameOrId"]
91
+ },
92
+ "fieldType": { "type": "string", "enum": ["person", "address"] },
93
+ "fieldsToSearch": { "type": "array", "items": { "type": "string" } }
94
+ },
95
+ "if": {
96
+ "not": {
97
+ "properties": { "searchType": { "const": "patientNameOrId" } },
98
+ "required": ["searchType"]
99
+ }
100
+ },
101
+ "then": { "required": ["fieldType", "fieldsToSearch"] }
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ ;
109
+
110
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { CommandPaletteConfig } from '../models/commandPaletteConfig';
2
+ export type { CommandPaletteConfig };
3
+ export declare function useCommandPaletteConfig(): CommandPaletteConfig;
4
+ //# sourceMappingURL=useCommandPaletteConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCommandPaletteConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useCommandPaletteConfig.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EACV,oBAAoB,EAGrB,MAAM,gCAAgC,CAAC;AAQxC,YAAY,EAAE,oBAAoB,EAAE,CAAC;AAarC,wBAAgB,uBAAuB,IAAI,oBAAoB,CAgG9D"}
@@ -0,0 +1,2 @@
1
+ export { CommandPaletteProvider } from './components/CommandPaletteProvider';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,88 @@
1
+ import { jsx as E } from "react/jsx-runtime";
2
+ import { CommandPaletteProvider as I } from "@bahmni/widgets";
3
+ import { formatUrl as F, initAppI18n as _, getConfig as N, getCurrentUserPrivileges as q, fetchModuleExtensions as x, hasPrivilege as M } from "@bahmni/services";
4
+ import { useState as a, useEffect as f } from "react";
5
+ import { useLocation as O } from "react-router-dom";
6
+ const L = "command-palette", D = "/bahmni_config/openmrs/apps/command-palette/app.json", S = {
7
+ type: "combination",
8
+ keys: ["cmd+k", "ctrl+k"]
9
+ }, j = {
10
+ primaryFields: ["name", "identifier"],
11
+ additionalFields: ["age", "gender"]
12
+ }, U = "org.bahmni.commandpalette.navItem", k = "org.bahmni.commandpalette.patientAction", R = (t) => t.split("{{")[0].replace(/\/$/, ""), V = (t) => ({ patientUuid: r, patientIdentifier: o = "" }) => F(t, { patientUuid: r, patientIdentifier: o }), y = (t) => t.translationKey ?? t.label ?? "", w = "http://json-schema.org/draft-07/schema#", G = "Command Palette App Configuration", $ = "object", B = ["id"], H = { id: { type: "string" }, commandPalette: { type: "object", additionalProperties: !1, properties: { trigger: { type: "object", additionalProperties: !1, required: ["type"], properties: { type: { type: "string", enum: ["combination", "double"] }, keys: { type: "array", items: { type: "string" }, minItems: 1 }, interval: { type: "number" } }, allOf: [{ if: { properties: { type: { const: "combination" } }, required: ["type"] }, then: { required: ["keys"] } }, { if: { properties: { type: { const: "double" } }, required: ["type"] }, then: { required: ["keys"] } }] }, patientFields: { type: "object", additionalProperties: !1, required: ["primaryFields", "additionalFields"], properties: { primaryFields: { type: "array", items: { type: "string", enum: ["name", "identifier", "age", "gender", "birthDate", "addressFieldValue", "extraIdentifiers", "customAttribute", "activeVisitUuid"] } }, additionalFields: { type: "array", items: { type: "string", enum: ["name", "identifier", "age", "gender", "birthDate", "addressFieldValue", "extraIdentifiers", "customAttribute", "activeVisitUuid"] } } } }, searchAnnotations: { type: "array", items: { type: "object", additionalProperties: !1, required: ["prefix", "label"], properties: { prefix: { type: "string" }, label: { type: "string" }, searchType: { type: "string", enum: ["patientAttribute", "patientNameOrId"] }, fieldType: { type: "string", enum: ["person", "address"] }, fieldsToSearch: { type: "array", items: { type: "string" } } }, if: { not: { properties: { searchType: { const: "patientNameOrId" } }, required: ["searchType"] } }, then: { required: ["fieldType", "fieldsToSearch"] } } } } } }, J = {
13
+ $schema: w,
14
+ title: G,
15
+ type: $,
16
+ required: B,
17
+ properties: H
18
+ };
19
+ function K(t, r) {
20
+ return t.appContext ? (Array.isArray(t.appContext) ? t.appContext : [t.appContext]).some((l) => r.startsWith(l)) : !0;
21
+ }
22
+ function W() {
23
+ const [t, r] = a([]), [o, l] = a([]), [g, P] = a(j), [h, A] = a(S), [T, b] = a([]), [d, C] = a(
24
+ []
25
+ ), [m, v] = a(null), { pathname: c } = O();
26
+ return f(() => {
27
+ const s = new AbortController();
28
+ return (async () => {
29
+ const [, e, i, p] = await Promise.allSettled([
30
+ _(L),
31
+ N(
32
+ D,
33
+ J
34
+ ),
35
+ q(),
36
+ x("command-palette")
37
+ ]);
38
+ if (s.signal.aborted) return;
39
+ const u = e.status === "fulfilled" ? e.value : null;
40
+ if (u) {
41
+ const n = u.commandPalette;
42
+ n?.trigger && A(n.trigger), n?.patientFields && P(n.patientFields), n?.searchAnnotations && b(n.searchAnnotations);
43
+ }
44
+ v(
45
+ i.status === "fulfilled" ? i.value : null
46
+ ), C(
47
+ p.status === "fulfilled" ? p.value : []
48
+ );
49
+ })(), () => s.abort();
50
+ }, []), f(() => {
51
+ const s = (e) => d.filter((i) => i.extensionPointId === e).filter((i) => K(i, c)).filter(
52
+ (i) => !i.requiredPrivilege || M(m, i.requiredPrivilege)
53
+ ).sort((i, p) => (i.order ?? 0) - (p.order ?? 0));
54
+ r(
55
+ s(U).map((e) => ({
56
+ id: e.id,
57
+ label: y(e),
58
+ path: e.url ?? "",
59
+ icon: e.icon,
60
+ newTab: e.newTab
61
+ }))
62
+ ), l(
63
+ s(k).map((e) => ({
64
+ id: e.id,
65
+ label: y(e),
66
+ icon: e.icon,
67
+ getPath: V(e.pathTemplate ?? ""),
68
+ basePath: R(e.pathTemplate ?? "")
69
+ }))
70
+ );
71
+ }, [d, m, c]), {
72
+ navItems: t,
73
+ patientActions: o,
74
+ patientFieldsConfig: g,
75
+ trigger: h,
76
+ searchAnnotations: T
77
+ };
78
+ }
79
+ const z = ({
80
+ children: t
81
+ }) => {
82
+ const r = W();
83
+ return /* @__PURE__ */ E(I, { ...r, children: t });
84
+ };
85
+ z.displayName = "BahmniCommandPaletteProvider";
86
+ export {
87
+ z as CommandPaletteProvider
88
+ };
@@ -0,0 +1,28 @@
1
+ {
2
+ "COMMAND_PALETTE_ARIA_LABEL": "Command palette",
3
+ "COMMAND_PALETTE_SEARCH_BY_ANNOTATION": "Search by {{annotation}}...",
4
+ "COMMAND_PALETTE_SEARCH_WITH_FILTERS": "Search or type @ for filters...",
5
+ "COMMAND_PALETTE_SEARCH_DEFAULT": "Search patients or navigate...",
6
+ "COMMAND_PALETTE_NO_RESULTS": "No results found.",
7
+ "COMMAND_PALETTE_GROUP_SEARCH_FILTERS": "Search filters",
8
+ "COMMAND_PALETTE_GROUP_NAVIGATION": "Navigation",
9
+ "COMMAND_PALETTE_GROUP_PATIENTS": "Patients",
10
+ "COMMAND_PALETTE_SEARCHING": "Searching patients...",
11
+ "COMMAND_PALETTE_SEARCH_ERROR": "Search failed. Please try again.",
12
+ "COMMAND_PALETTE_EXPAND_DETAILS": "Expand details",
13
+ "COMMAND_PALETTE_COLLAPSE_DETAILS": "Collapse details",
14
+ "COMMAND_PALETTE_ACTION_ENTER_HINT": "{{label}} (Enter)",
15
+ "COMMAND_PALETTE_HINT_NAVIGATE": "navigate",
16
+ "COMMAND_PALETTE_HINT_SWITCH_ACTION": "switch action",
17
+ "COMMAND_PALETTE_HINT_SELECT": "select",
18
+ "COMMAND_PALETTE_HINT_CLOSE": "close",
19
+ "COMMAND_PALETTE_FIELD_NAME": "Name",
20
+ "COMMAND_PALETTE_FIELD_ID": "ID",
21
+ "COMMAND_PALETTE_FIELD_AGE": "Age",
22
+ "COMMAND_PALETTE_FIELD_GENDER": "Gender",
23
+ "COMMAND_PALETTE_FIELD_DOB": "DOB",
24
+ "COMMAND_PALETTE_FIELD_ADDRESS": "Address",
25
+ "COMMAND_PALETTE_FIELD_EXTRA_IDS": "Extra IDs",
26
+ "COMMAND_PALETTE_FIELD_ATTRIBUTE": "Attribute",
27
+ "COMMAND_PALETTE_FIELD_ACTIVE_VISIT": "Active Visit"
28
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "COMMAND_PALETTE_ARIA_LABEL": "Paleta de comandos",
3
+ "COMMAND_PALETTE_SEARCH_BY_ANNOTATION": "Buscar por {{annotation}}...",
4
+ "COMMAND_PALETTE_SEARCH_WITH_FILTERS": "Buscar o escriba @ para filtros...",
5
+ "COMMAND_PALETTE_SEARCH_DEFAULT": "Buscar pacientes o navegar...",
6
+ "COMMAND_PALETTE_NO_RESULTS": "No se encontraron resultados.",
7
+ "COMMAND_PALETTE_GROUP_SEARCH_FILTERS": "Filtros de búsqueda",
8
+ "COMMAND_PALETTE_GROUP_NAVIGATION": "Navegación",
9
+ "COMMAND_PALETTE_GROUP_PATIENTS": "Pacientes",
10
+ "COMMAND_PALETTE_SEARCHING": "Buscando pacientes...",
11
+ "COMMAND_PALETTE_SEARCH_ERROR": "Error en la búsqueda. Por favor, inténtelo de nuevo.",
12
+ "COMMAND_PALETTE_EXPAND_DETAILS": "Expandir detalles",
13
+ "COMMAND_PALETTE_COLLAPSE_DETAILS": "Contraer detalles",
14
+ "COMMAND_PALETTE_ACTION_ENTER_HINT": "{{label}} (Intro)",
15
+ "COMMAND_PALETTE_HINT_NAVIGATE": "navegar",
16
+ "COMMAND_PALETTE_HINT_SWITCH_ACTION": "cambiar acción",
17
+ "COMMAND_PALETTE_HINT_SELECT": "seleccionar",
18
+ "COMMAND_PALETTE_HINT_CLOSE": "cerrar",
19
+ "COMMAND_PALETTE_FIELD_NAME": "Nombre",
20
+ "COMMAND_PALETTE_FIELD_ID": "ID",
21
+ "COMMAND_PALETTE_FIELD_AGE": "Edad",
22
+ "COMMAND_PALETTE_FIELD_GENDER": "Género",
23
+ "COMMAND_PALETTE_FIELD_DOB": "F. Nacimiento",
24
+ "COMMAND_PALETTE_FIELD_ADDRESS": "Dirección",
25
+ "COMMAND_PALETTE_FIELD_EXTRA_IDS": "IDs adicionales",
26
+ "COMMAND_PALETTE_FIELD_ATTRIBUTE": "Atributo",
27
+ "COMMAND_PALETTE_FIELD_ACTIVE_VISIT": "Visita activa"
28
+ }
@@ -0,0 +1,31 @@
1
+ import { NavItem, PatientAction, PatientFieldsConfig, SearchAnnotation, TriggerConfig } from '@bahmni/widgets';
2
+ export interface CommandPaletteExtension {
3
+ id: string;
4
+ extensionPointId: string;
5
+ label?: string;
6
+ translationKey?: string;
7
+ icon?: string;
8
+ order?: number;
9
+ requiredPrivilege?: string;
10
+ url?: string;
11
+ newTab?: boolean;
12
+ pathTemplate?: string;
13
+ appContext?: string | string[];
14
+ }
15
+ export interface CommandPaletteAppConfig {
16
+ trigger?: TriggerConfig;
17
+ patientFields?: PatientFieldsConfig;
18
+ searchAnnotations?: SearchAnnotation[];
19
+ }
20
+ export interface CommandPaletteAppJson {
21
+ id: string;
22
+ commandPalette?: CommandPaletteAppConfig;
23
+ }
24
+ export interface CommandPaletteConfig {
25
+ navItems: NavItem[];
26
+ patientActions: PatientAction[];
27
+ patientFieldsConfig: PatientFieldsConfig;
28
+ trigger: TriggerConfig;
29
+ searchAnnotations: SearchAnnotation[];
30
+ }
31
+ //# sourceMappingURL=commandPaletteConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commandPaletteConfig.d.ts","sourceRoot":"","sources":["../../src/models/commandPaletteConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACd,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC1C;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,OAAO,EAAE,aAAa,CAAC;IACvB,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;CACvC"}
@@ -0,0 +1,6 @@
1
+ import { PatientActionContext } from '@bahmni/widgets';
2
+ import { CommandPaletteExtension } from '../models/commandPaletteConfig';
3
+ export declare const basePathFromTemplate: (template: string) => string;
4
+ export declare const pathTemplateToGetPath: (template: string) => ({ patientUuid, patientIdentifier }: PatientActionContext) => string;
5
+ export declare const resolveLabel: (e: CommandPaletteExtension) => string;
6
+ //# sourceMappingURL=extensionUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionUtils.d.ts","sourceRoot":"","sources":["../../src/utils/extensionUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAE9E,eAAO,MAAM,oBAAoB,GAAI,UAAU,MAAM,KAAG,MACZ,CAAC;AAE7C,eAAO,MAAM,qBAAqB,GAC/B,UAAU,MAAM,MAChB,oCAAyC,oBAAoB,KAAG,MACR,CAAC;AAE5D,eAAO,MAAM,YAAY,GAAI,GAAG,uBAAuB,KAAG,MACvB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@bahmni/command-palette-app",
3
+ "version": "0.0.1-dev.314",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ "./package.json": "./package.json",
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./styles": "./dist/index.css",
16
+ "./locales/*": "./dist/locales/*"
17
+ },
18
+ "peerDependencies": {
19
+ "react": "^19.0.0",
20
+ "react-dom": "^19.0.0",
21
+ "react-router-dom": "^7.5.3"
22
+ },
23
+ "author": "Thoughtworks Inc.",
24
+ "license": "MPLv2",
25
+ "files": [
26
+ "dist",
27
+ "README.md",
28
+ "LICENSE"
29
+ ]
30
+ }