@joinskips/common 0.0.0-stage → 0.1.0-develop.144

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 (131) hide show
  1. package/README.md +104 -2
  2. package/dist/chat/SkipsChat.d.ts +37 -0
  3. package/dist/chat/SkipsChat.js +103 -0
  4. package/dist/chat/client.d.ts +53 -0
  5. package/dist/chat/client.js +178 -0
  6. package/dist/chat/connection.d.ts +4 -0
  7. package/dist/chat/connection.js +6 -0
  8. package/dist/chat/generated/skips-app/index.d.ts +1 -0
  9. package/dist/chat/generated/skips-app/index.js +2 -0
  10. package/dist/chat/generated/skips-app/types.gen.d.ts +733 -0
  11. package/dist/chat/generated/skips-app/types.gen.js +2 -0
  12. package/dist/chat/index.d.ts +3 -0
  13. package/dist/chat/index.js +2 -0
  14. package/dist/chat/platform.d.ts +4 -0
  15. package/dist/chat/platform.js +46 -0
  16. package/dist/chat/session.d.ts +19 -0
  17. package/dist/chat/session.js +95 -0
  18. package/dist/chat/useSkipsChat.d.ts +79 -0
  19. package/dist/chat/useSkipsChat.js +507 -0
  20. package/dist/chat/verify.d.ts +35 -0
  21. package/dist/chat/verify.js +84 -0
  22. package/dist/elements/skips-elements.js +18521 -0
  23. package/dist/helpers/attachments.d.ts +12 -0
  24. package/dist/helpers/attachments.js +34 -0
  25. package/dist/helpers/cable.d.ts +34 -0
  26. package/dist/helpers/cable.js +88 -0
  27. package/dist/helpers/cableFrames.d.ts +40 -0
  28. package/dist/helpers/cableFrames.js +70 -0
  29. package/dist/helpers/cardNote.d.ts +79 -0
  30. package/dist/helpers/cardNote.js +152 -0
  31. package/dist/helpers/commandNote.d.ts +4 -0
  32. package/dist/helpers/commandNote.js +23 -0
  33. package/dist/helpers/index.d.ts +19 -0
  34. package/dist/helpers/index.js +19 -0
  35. package/dist/helpers/markdown.d.ts +47 -0
  36. package/dist/helpers/markdown.js +129 -0
  37. package/dist/helpers/medicationOrder.d.ts +333 -0
  38. package/dist/helpers/medicationOrder.js +383 -0
  39. package/dist/helpers/message.d.ts +46 -0
  40. package/dist/helpers/message.js +12 -0
  41. package/dist/helpers/noteView.d.ts +35 -0
  42. package/dist/helpers/noteView.js +65 -0
  43. package/dist/helpers/orderForm.d.ts +126 -0
  44. package/dist/helpers/orderForm.js +271 -0
  45. package/dist/helpers/ordersMenu.d.ts +56 -0
  46. package/dist/helpers/ordersMenu.js +129 -0
  47. package/dist/helpers/regimenChoice.d.ts +42 -0
  48. package/dist/helpers/regimenChoice.js +73 -0
  49. package/dist/helpers/scrollBox.d.ts +5 -0
  50. package/dist/helpers/scrollBox.js +15 -0
  51. package/dist/helpers/skipTyping.d.ts +26 -0
  52. package/dist/helpers/skipTyping.js +29 -0
  53. package/dist/helpers/skipsMessage.d.ts +55 -0
  54. package/dist/helpers/skipsMessage.js +130 -0
  55. package/dist/helpers/stageRefill.d.ts +33 -0
  56. package/dist/helpers/stageRefill.js +41 -0
  57. package/dist/helpers/thread.d.ts +54 -0
  58. package/dist/helpers/thread.js +122 -0
  59. package/dist/helpers/typing.d.ts +13 -0
  60. package/dist/helpers/typing.js +68 -0
  61. package/dist/helpers/usrxNote.d.ts +22 -0
  62. package/dist/helpers/usrxNote.js +26 -0
  63. package/dist/helpers/visibleArea.d.ts +15 -0
  64. package/dist/helpers/visibleArea.js +11 -0
  65. package/dist/helpers/welcome.d.ts +25 -0
  66. package/dist/helpers/welcome.js +51 -0
  67. package/dist/hooks/index.d.ts +8 -0
  68. package/dist/hooks/index.js +8 -0
  69. package/dist/hooks/useCardNoteActions.d.ts +82 -0
  70. package/dist/hooks/useCardNoteActions.js +210 -0
  71. package/dist/hooks/useCodeEntry.d.ts +6 -0
  72. package/dist/hooks/useCodeEntry.js +14 -0
  73. package/dist/hooks/useComposer.d.ts +20 -0
  74. package/dist/hooks/useComposer.js +40 -0
  75. package/dist/hooks/useOrderForm.d.ts +80 -0
  76. package/dist/hooks/useOrderForm.js +403 -0
  77. package/dist/hooks/useOrdersMenu.d.ts +114 -0
  78. package/dist/hooks/useOrdersMenu.js +337 -0
  79. package/dist/hooks/useRegimenChoice.d.ts +23 -0
  80. package/dist/hooks/useRegimenChoice.js +50 -0
  81. package/dist/hooks/useResendCountdown.d.ts +2 -0
  82. package/dist/hooks/useResendCountdown.js +19 -0
  83. package/dist/hooks/useStepField.d.ts +8 -0
  84. package/dist/hooks/useStepField.js +17 -0
  85. package/dist/hooks/useTypingCue.d.ts +11 -0
  86. package/dist/hooks/useTypingCue.js +41 -0
  87. package/dist/hooks/useWelcomeTyping.d.ts +2 -0
  88. package/dist/hooks/useWelcomeTyping.js +25 -0
  89. package/dist/index.d.ts +5 -0
  90. package/dist/index.js +5 -0
  91. package/dist/staff/CardNoteActions.d.ts +10 -0
  92. package/dist/staff/CardNoteActions.js +16 -0
  93. package/dist/staff/OrderFormNote.d.ts +8 -0
  94. package/dist/staff/OrderFormNote.js +8 -0
  95. package/dist/staff/OrdersMenuNote.d.ts +8 -0
  96. package/dist/staff/OrdersMenuNote.js +8 -0
  97. package/dist/staff/RegimenChoiceNote.d.ts +7 -0
  98. package/dist/staff/RegimenChoiceNote.js +8 -0
  99. package/dist/staff/features.d.ts +9 -0
  100. package/dist/staff/features.js +8 -0
  101. package/dist/staff/index.d.ts +11 -0
  102. package/dist/staff/index.js +7 -0
  103. package/dist/ui/Bubble.d.ts +5 -0
  104. package/dist/ui/Bubble.js +9 -0
  105. package/dist/ui/CardActions.d.ts +34 -0
  106. package/dist/ui/CardActions.js +28 -0
  107. package/dist/ui/Conversation.d.ts +69 -0
  108. package/dist/ui/Conversation.js +192 -0
  109. package/dist/ui/Markdown.d.ts +11 -0
  110. package/dist/ui/Markdown.js +51 -0
  111. package/dist/ui/NoteFold.d.ts +19 -0
  112. package/dist/ui/NoteFold.js +12 -0
  113. package/dist/ui/NoteViewControl.d.ts +19 -0
  114. package/dist/ui/NoteViewControl.js +20 -0
  115. package/dist/ui/OrderForm.d.ts +71 -0
  116. package/dist/ui/OrderForm.js +118 -0
  117. package/dist/ui/OrdersMenu.d.ts +71 -0
  118. package/dist/ui/OrdersMenu.js +128 -0
  119. package/dist/ui/RegimenChoice.d.ts +23 -0
  120. package/dist/ui/RegimenChoice.js +16 -0
  121. package/dist/ui/SkipAvatar.d.ts +7 -0
  122. package/dist/ui/SkipAvatar.js +8 -0
  123. package/dist/ui/StaffButton.d.ts +18 -0
  124. package/dist/ui/StaffButton.js +17 -0
  125. package/dist/ui/Welcome.d.ts +91 -0
  126. package/dist/ui/Welcome.js +128 -0
  127. package/dist/ui/index.d.ts +8 -0
  128. package/dist/ui/index.js +7 -0
  129. package/dist/ui/parts.d.ts +38 -0
  130. package/dist/ui/parts.js +6 -0
  131. package/package.json +115 -4
@@ -0,0 +1,128 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useEffect, useId, useState } from 'react';
3
+ import { AccessibilityInfo, ActivityIndicator, Animated, Pressable, Text, TextInput, View } from 'react-native';
4
+ import { DOT_CYCLE_MS } from "../helpers/skipTyping.js";
5
+ import { EMAIL_MAX_LENGTH, NAME_MAX_LENGTH, resendClock } from "../helpers/welcome.js";
6
+ import { Markdown } from "./Markdown.js";
7
+ import { useColor } from "./parts.js";
8
+ import { SkipAvatar } from "./SkipAvatar.js";
9
+ const PILL_LOOK = {
10
+ solid: { box: 'bg-action active:bg-action-pressed', text: 'text-action-ink' },
11
+ stroked: { box: 'border border-line-control bg-surface active:bg-muted', text: 'text-ink' },
12
+ link: { box: 'active:opacity-60', text: 'text-ink' },
13
+ };
14
+ // Every button with words is the member sign-in's, as wide as the column it sits in. Only a link is smaller.
15
+ const PILL_SHAPE = {
16
+ solid: { box: 'h-control-tall w-full rounded-card px-4', text: 'text-lg font-semibold' },
17
+ stroked: { box: 'h-control-tall w-full rounded-card px-4', text: 'text-lg font-semibold' },
18
+ link: { box: 'min-h-control-compact px-1', text: 'text-base' },
19
+ };
20
+ /** The chat's button: the member sign-in's, as wide as its column, or a link. */
21
+ export function Pill({ label, look = 'solid', disabled = false, loading = false, back = false, onPress, }) {
22
+ const ink = useColor(look === 'solid' ? 'action-ink' : 'ink');
23
+ return (_jsxs(Pressable, { role: "button", accessibilityLabel: label, disabled: disabled || loading, "aria-busy": loading, onPress: onPress, className: `flex-row items-center justify-center gap-2 ${PILL_SHAPE[look].box} ${PILL_LOOK[look].box} ${disabled ? 'opacity-40' : ''}`, children: [loading ? _jsx(ActivityIndicator, { "aria-hidden": true, size: "small", color: ink }) : null, _jsxs(Text, { className: `font-ui ${PILL_SHAPE[look].text} ${PILL_LOOK[look].text}`, children: [back ? _jsx(Text, { "aria-hidden": true, children: "\u2190 " }) : null, label] })] }));
24
+ }
25
+ /** The choice under Skip's welcome: log in as a member, or go on here as someone new. */
26
+ export function WelcomeChoice({ words, onLogIn, onContinueHere, }) {
27
+ return (_jsxs(View, { className: "w-full max-w-[360px] gap-2 self-center py-1", children: [_jsx(Pill, { label: words.logIn, look: "stroked", onPress: onLogIn }), _jsx(Pill, { label: words.continueHere, onPress: onContinueHere })] }));
28
+ }
29
+ /** The answers to Skip's question, all drawn alike. One answer only: while one is on its way, none can be pressed. */
30
+ export function Choices({ items, question, sending, holding = false, failed, words, onChoose, }) {
31
+ return (_jsxs(View, { className: "w-full max-w-[360px] items-center gap-1 self-start py-1", children: [_jsx(View, { role: "group", accessibilityLabel: question, className: "w-full gap-2", children: items.map((item) => (_jsx(Pill, { label: item.title, look: "stroked", disabled: holding || sending !== null, loading: sending === item.value, onPress: () => {
32
+ onChoose(item);
33
+ } }, item.value))) }), failed ? (_jsx(Text, { role: "alert", className: "font-ui text-sm text-error-ink", children: words.choiceNotSent })) : null] }));
34
+ }
35
+ // The error under a field, as the field's description. React Native's types leave aria-describedby out, and
36
+ // react-native-web reads it.
37
+ function describedBy(errorId) {
38
+ return errorId === undefined ? {} : { 'aria-describedby': errorId };
39
+ }
40
+ // One thing asked of a visitor, laid out as the member sign-in asks it: the label, the field in focus, and a button
41
+ // as wide as the field.
42
+ function StepField({ label, error, submitLabel, submitDisabled = false, value, onChangeText, onSubmit, input, digits = false, aside, children, }) {
43
+ const errorId = useId();
44
+ const placeholder = useColor('ink-placeholder');
45
+ return (_jsxs(View, { className: "w-full max-w-[360px] gap-2 self-center", children: [_jsx(Text, { className: "font-ui text-md font-medium text-ink", children: label }), _jsx(TextInput, { autoFocus: true, value: value, onChangeText: onChangeText, onSubmitEditing: onSubmit, accessibilityLabel: label, "aria-invalid": error !== null, ...describedBy(error === null ? undefined : errorId), placeholderTextColor: placeholder, className: `h-control-tall rounded-card border bg-surface px-4 font-ui text-ink ${digits ? 'text-center text-3xl font-semibold tracking-widest' : 'text-lg'} ${error === null ? 'border-line-control' : 'border-error-ink'}`, ...input }), error === null ? null : (_jsx(Text, { nativeID: errorId, role: "alert", className: "font-ui text-sm text-error-ink", children: error })), aside ? (_jsx(View, { className: "self-center", children: _jsx(Pill, { label: aside.label, look: "link", back: true, onPress: aside.onPress }) })) : null, _jsx(View, { className: "mt-2", children: _jsx(Pill, { label: submitLabel, disabled: submitDisabled, onPress: onSubmit }) }), children] }));
46
+ }
47
+ /** The email asked for after Continue here, and again for a visitor changing it, with the terms they agree to. */
48
+ export function EmailStep({ words, field }) {
49
+ return (_jsx(StepField, { label: words.emailLabel, error: field.refused ? words.emailError : null, submitLabel: words.emailSubmit, value: field.typed, onChangeText: field.onChangeText, onSubmit: field.submit, input: {
50
+ autoComplete: 'email',
51
+ inputMode: 'email',
52
+ maxLength: EMAIL_MAX_LENGTH,
53
+ autoCapitalize: 'none',
54
+ placeholder: words.emailPlaceholder,
55
+ }, children: _jsx(View, { className: "pt-2", children: _jsx(Markdown, { text: words.terms, note: true }) }) }));
56
+ }
57
+ /** The name asked of a visitor the Skips App does not know, with the way back to change a mistyped email. */
58
+ export function NameStep({ words, field, onChangeEmail }) {
59
+ return (_jsx(StepField, { label: words.nameLabel, error: field.refused ? words.nameError : null, submitLabel: words.nameSubmit, value: field.typed, onChangeText: field.onChangeText, onSubmit: field.submit, input: { autoComplete: 'name', maxLength: NAME_MAX_LENGTH, autoCapitalize: 'words' }, aside: { label: words.changeEmail, onPress: onChangeEmail } }));
60
+ }
61
+ export function CodeStep({ words, length, noMatch, ranOut, entry, secondsLeft, onSubmit, onResend, onChangeEmail, }) {
62
+ const { code } = entry;
63
+ const error = ranOut ? words.codeRanOut : noMatch ? words.codeNoMatch : null;
64
+ // A short code would use up one of the code service's tries for nothing.
65
+ const whole = code.length === length;
66
+ return (_jsxs(StepField, { label: words.codeLabel, error: error, submitLabel: words.codeSubmit, submitDisabled: !whole, value: code, onChangeText: entry.onChangeText, onSubmit: () => {
67
+ if (whole)
68
+ onSubmit(code);
69
+ }, input: {
70
+ inputMode: 'numeric',
71
+ autoComplete: 'one-time-code',
72
+ textContentType: 'oneTimeCode',
73
+ placeholder: '0'.repeat(length),
74
+ }, digits: true, children: [_jsx(Pill, { label: words.resend, look: "stroked", disabled: secondsLeft > 0, onPress: onResend }), _jsxs(View, { className: "flex-row flex-wrap items-center justify-center gap-2", children: [secondsLeft > 0 ? (_jsxs(_Fragment, { children: [_jsx(Text, { role: "timer", accessibilityLabel: words.resendWait, className: "font-ui text-sm text-ink-secondary", children: resendClock(secondsLeft) }), _jsx(Text, { "aria-hidden": true, className: "font-ui text-base text-line-control", children: "\u2022" })] })) : null, _jsx(Pill, { label: words.changeEmail, look: "link", back: true, onPress: onChangeEmail })] })] }));
75
+ }
76
+ const DOTS = [0, 1, 2];
77
+ const DOT_SIZE = 6;
78
+ // A dot at rest is faint, rises this far at the top of its turn, and holds at the still strength for a visitor who
79
+ // asks for less motion.
80
+ export const DOT_REST_OPACITY = 0.35;
81
+ export const DOT_RISE = 3;
82
+ export const DOT_STILL_OPACITY = 0.6;
83
+ // Null until the device has answered, so the dots never start before a visitor who wants them still is known.
84
+ function useReducedMotion() {
85
+ const [reduced, setReduced] = useState(null);
86
+ useEffect(() => {
87
+ void (async () => {
88
+ setReduced(await AccessibilityInfo.isReduceMotionEnabled());
89
+ })();
90
+ const change = AccessibilityInfo.addEventListener('reduceMotionChanged', setReduced);
91
+ return () => {
92
+ change.remove();
93
+ };
94
+ }, []);
95
+ return reduced;
96
+ }
97
+ export function SkipTyping({ label, skipMark }) {
98
+ const dotColor = useColor('ink-secondary');
99
+ const reduced = useReducedMotion();
100
+ const still = reduced === true;
101
+ // Made once and kept, so render reads no ref.
102
+ const [rise] = useState(() => DOTS.map(() => new Animated.Value(0)));
103
+ useEffect(() => {
104
+ if (reduced !== false)
105
+ return undefined;
106
+ const step = DOT_CYCLE_MS / (2 * DOTS.length);
107
+ const loop = Animated.loop(Animated.stagger(step, rise.map((value) => Animated.sequence([
108
+ Animated.timing(value, { toValue: 1, duration: step, useNativeDriver: true }),
109
+ Animated.timing(value, { toValue: 0, duration: step, useNativeDriver: true }),
110
+ ]))));
111
+ loop.start();
112
+ return () => {
113
+ loop.stop();
114
+ };
115
+ }, [rise, reduced]);
116
+ return (_jsxs(View, { className: "mt-3 flex-row items-end gap-2", children: [_jsx(SkipAvatar, { skipMark: skipMark }), _jsx(View, { role: "status", accessibilityLabel: label, className: "flex-row items-center gap-1 rounded-[20px] rounded-bl-[7px] border border-line-subtle bg-surface px-4 py-4", children: rise.map((value, dot) => (_jsx(Animated.View, { style: {
117
+ width: DOT_SIZE,
118
+ height: DOT_SIZE,
119
+ borderRadius: DOT_SIZE / 2,
120
+ backgroundColor: dotColor,
121
+ ...(still
122
+ ? { opacity: DOT_STILL_OPACITY }
123
+ : {
124
+ opacity: value.interpolate({ inputRange: [0, 1], outputRange: [DOT_REST_OPACITY, 1] }),
125
+ transform: [{ translateY: value.interpolate({ inputRange: [0, 1], outputRange: [0, -DOT_RISE] }) }],
126
+ }),
127
+ } }, DOTS[dot]))) })] }));
128
+ }
@@ -0,0 +1,8 @@
1
+ export { Conversation, type ConversationProps, type LoadState } from './Conversation.tsx';
2
+ export { Bubble, type BubbleProps } from './Bubble.tsx';
3
+ export { CardActions, type CardActionsProps, type CardActionsWords } from './CardActions.tsx';
4
+ export type { ChatIcon, ChatIconName, ChatWords } from './parts.ts';
5
+ export { NoteFold, type NoteFoldProps, type NoteFoldWords } from './NoteFold.tsx';
6
+ export { NoteViewControl, type NoteViewControlProps, type NoteViewWords } from './NoteViewControl.tsx';
7
+ export { RegimenChoice, type RegimenChoiceProps, type RegimenChoiceWords } from './RegimenChoice.tsx';
8
+ export { Choices, CodeStep, EmailStep, NameStep, Pill, SkipTyping, WelcomeChoice, type PillProps, type WelcomeWords, } from './Welcome.tsx';
@@ -0,0 +1,7 @@
1
+ export { Conversation } from "./Conversation.js";
2
+ export { Bubble } from "./Bubble.js";
3
+ export { CardActions } from "./CardActions.js";
4
+ export { NoteFold } from "./NoteFold.js";
5
+ export { NoteViewControl } from "./NoteViewControl.js";
6
+ export { RegimenChoice } from "./RegimenChoice.js";
7
+ export { Choices, CodeStep, EmailStep, NameStep, Pill, SkipTyping, WelcomeChoice, } from "./Welcome.js";
@@ -0,0 +1,38 @@
1
+ import type { ComponentType } from 'react';
2
+ /** The icons the chat draws, from the brand's interface icons, which each app already draws. */
3
+ export type ChatIconName = 'attach' | 'arrow-right' | 'file' | 'close';
4
+ export interface ChatIconProps {
5
+ name: ChatIconName;
6
+ color: string;
7
+ size: number;
8
+ }
9
+ export type ChatIcon = ComponentType<ChatIconProps>;
10
+ /** The two reasons an attachment is refused, in the chat's words. */
11
+ export interface AttachmentRefusedWords {
12
+ type: string;
13
+ size: string;
14
+ }
15
+ /** Every word the chat shows, which each app passes in. */
16
+ export interface ChatWords {
17
+ composerPlaceholder: string;
18
+ send: string;
19
+ attach: string;
20
+ remove: string;
21
+ photo: string;
22
+ pdf: string;
23
+ sending: string;
24
+ notSent: string;
25
+ retry: string;
26
+ you: string;
27
+ skip: string;
28
+ emergencyNote: string;
29
+ feedDown: string;
30
+ loading: string;
31
+ loadFailed: string;
32
+ attachmentRefused: AttachmentRefusedWords;
33
+ fileKind: (name: string) => string;
34
+ fileSize: (bytes: number) => string;
35
+ messageTime: (ms: number) => string;
36
+ typingLine: (names: string[]) => string;
37
+ }
38
+ export declare function useColor(token: string): string;
@@ -0,0 +1,6 @@
1
+ import { useCSSVariable } from 'uniwind';
2
+ // A colour token for props a class cannot reach, such as an icon's colour.
3
+ export function useColor(token) {
4
+ const value = useCSSVariable(`--color-${token}`);
5
+ return value === undefined ? '' : String(value);
6
+ }
package/package.json CHANGED
@@ -1,6 +1,117 @@
1
1
  {
2
2
  "name": "@joinskips/common",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0-develop.144",
4
+ "description": "The code the Skips apps share, built once in React Native: components, hooks and helpers.",
5
+ "license": "UNLICENSED",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/joinskips/common.git"
9
+ },
10
+ "type": "module",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "./ui": {
17
+ "types": "./dist/ui/index.d.ts",
18
+ "default": "./dist/ui/index.js"
19
+ },
20
+ "./hooks": {
21
+ "types": "./dist/hooks/index.d.ts",
22
+ "default": "./dist/hooks/index.js"
23
+ },
24
+ "./helpers": {
25
+ "types": "./dist/helpers/index.d.ts",
26
+ "default": "./dist/helpers/index.js"
27
+ },
28
+ "./chat": {
29
+ "types": "./dist/chat/index.d.ts",
30
+ "default": "./dist/chat/index.js"
31
+ },
32
+ "./connection": {
33
+ "types": "./dist/chat/connection.d.ts",
34
+ "default": "./dist/chat/connection.js"
35
+ },
36
+ "./staff": {
37
+ "types": "./dist/staff/index.d.ts",
38
+ "default": "./dist/staff/index.js"
39
+ },
40
+ "./elements": "./dist/elements/skips-elements.js"
41
+ },
42
+ "sideEffects": [
43
+ "./dist/elements/*"
44
+ ],
45
+ "files": [
46
+ "dist"
47
+ ],
48
+ "engines": {
49
+ "node": ">=22.14.0"
50
+ },
51
+ "devEngines": {
52
+ "runtime": {
53
+ "name": "node",
54
+ "version": ">=22.18.0"
55
+ }
56
+ },
57
+ "scripts": {
58
+ "api": "openapi-ts",
59
+ "api:pull": "node scripts/api-pull.ts",
60
+ "prebuild": "node scripts/storybook-theme.ts",
61
+ "build": "tsc && vite build -c vite.elements.config.ts",
62
+ "check": "tsc --noEmit -p tsconfig.check.json && tsc -p scripts/tsconfig.json",
63
+ "lint": "eslint .",
64
+ "pretest": "node scripts/storybook-theme.ts",
65
+ "test": "vitest run --coverage",
66
+ "prepack": "npm run build",
67
+ "prestorybook": "node scripts/storybook-theme.ts",
68
+ "storybook": "storybook dev -p 6007",
69
+ "prebuild-storybook": "node scripts/storybook-theme.ts",
70
+ "build-storybook": "storybook build"
71
+ },
72
+ "peerDependencies": {
73
+ "react": "^19.0.0",
74
+ "react-native": ">=0.81.0",
75
+ "react-native-web": "~0.21.0",
76
+ "tailwindcss": "^4.0.0",
77
+ "uniwind": "1.13.2"
78
+ },
79
+ "devDependencies": {
80
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.8.1",
81
+ "@hey-api/openapi-ts": "0.99.0",
82
+ "@joinskips/brand": "^9.0.0-develop.152",
83
+ "@storybook/addon-a11y": "^10.6.6",
84
+ "@storybook/addon-vitest": "^10.6.6",
85
+ "@storybook/react-native-web-vite": "^10.6.6",
86
+ "@tailwindcss/vite": "^4.3.5",
87
+ "@types/markdown-it": "^14.2.0",
88
+ "@types/node": "^24.19.2",
89
+ "@types/react": "~19.3.0",
90
+ "@types/validator": "^13.15.10",
91
+ "@vitest/browser-playwright": "^5.1.0",
92
+ "@vitest/coverage-v8": "^5.1.0",
93
+ "eslint": "^9.39.5",
94
+ "eslint-plugin-promise": "^7.3.0",
95
+ "eslint-plugin-react": "^7.37.5",
96
+ "eslint-plugin-react-hooks": "^7.1.1",
97
+ "eslint-plugin-storybook": "^10.6.7",
98
+ "globals": "^17.14.0",
99
+ "jiti": "^2.7.0",
100
+ "playwright": "^1.63.0",
101
+ "react": "^19.3.1",
102
+ "react-dom": "^19.3.1",
103
+ "react-native-web": "^0.21.4",
104
+ "storybook": "^10.6.6",
105
+ "tailwindcss": "^4.3.5",
106
+ "typescript": "~6.0.3",
107
+ "typescript-eslint": "^8.72.2",
108
+ "uniwind": "1.13.2",
109
+ "vite": "^8.3.7",
110
+ "vitest": "^5.1.0",
111
+ "yaml": "^2.9.1"
112
+ },
113
+ "dependencies": {
114
+ "markdown-it": "^14.3.3",
115
+ "validator": "^13.15.35"
116
+ }
117
+ }