@fairmint/ui 0.4.9 → 0.4.11
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/components/BrandedLoadingScreen/BrandedLoadingScreen.cjs +1 -1
- package/dist/components/BrandedLoadingScreen/BrandedLoadingScreen.js +1 -1
- package/dist/components/ErrorFallback/ErrorFallback.cjs +1 -1
- package/dist/components/ErrorFallback/ErrorFallback.js +1 -1
- package/dist/components/form/FormField.cjs +1 -1
- package/dist/components/form/FormField.js +1 -1
- package/dist/components/generic/AgentSuggestion/AgentSuggestion.cjs +1 -1
- package/dist/components/generic/AgentSuggestion/AgentSuggestion.js +1 -1
- package/dist/components/generic/Banner/Banner.cjs +1 -1
- package/dist/components/generic/Banner/Banner.js +1 -1
- package/dist/components/generic/BottomSheet/BottomSheet.cjs +1 -1
- package/dist/components/generic/BottomSheet/BottomSheet.js +1 -1
- package/dist/components/generic/CompanyBanner/CompanyBanner.cjs +1 -1
- package/dist/components/generic/CompanyBanner/CompanyBanner.js +1 -1
- package/dist/components/generic/ConfidentialityBanner/ConfidentialityBanner.cjs +1 -1
- package/dist/components/generic/ConfidentialityBanner/ConfidentialityBanner.js +1 -1
- package/dist/components/generic/Currency/Currency.cjs +1 -1
- package/dist/components/generic/Currency/Currency.js +1 -1
- package/dist/components/generic/DataRow/DataRow.cjs +24 -3
- package/dist/components/generic/DataRow/DataRow.cjs.map +1 -1
- package/dist/components/generic/DataRow/DataRow.d.ts.map +1 -1
- package/dist/components/generic/DataRow/DataRow.js +24 -3
- package/dist/components/generic/DataRow/DataRow.js.map +1 -1
- package/dist/components/generic/DataTable/DataTable.cjs +2 -2
- package/dist/components/generic/DataTable/DataTable.cjs.map +1 -1
- package/dist/components/generic/DataTable/DataTable.js +2 -2
- package/dist/components/generic/DataTable/DataTable.js.map +1 -1
- package/dist/components/generic/DateDisplay/DateDisplay.cjs +1 -1
- package/dist/components/generic/DateDisplay/DateDisplay.js +1 -1
- package/dist/components/generic/DocumentRow/DocumentRow.cjs +1 -1
- package/dist/components/generic/DocumentRow/DocumentRow.js +1 -1
- package/dist/components/generic/EditableSection/EditableSection.cjs +1 -1
- package/dist/components/generic/EditableSection/EditableSection.js +1 -1
- package/dist/components/generic/EmptyState/EmptyState.cjs +1 -1
- package/dist/components/generic/EmptyState/EmptyState.js +1 -1
- package/dist/components/generic/ErrorPage/ErrorPage.cjs +1 -1
- package/dist/components/generic/ErrorPage/ErrorPage.js +1 -1
- package/dist/components/generic/Eyebrow/Eyebrow.cjs +1 -1
- package/dist/components/generic/Eyebrow/Eyebrow.js +1 -1
- package/dist/components/generic/FileDropzone/FileDropzone.cjs +1 -1
- package/dist/components/generic/FileDropzone/FileDropzone.js +1 -1
- package/dist/components/generic/ListRow/ListRow.cjs +5 -4
- package/dist/components/generic/ListRow/ListRow.cjs.map +1 -1
- package/dist/components/generic/ListRow/ListRow.d.ts.map +1 -1
- package/dist/components/generic/ListRow/ListRow.js +5 -4
- package/dist/components/generic/ListRow/ListRow.js.map +1 -1
- package/dist/components/generic/MultiSelectSearch/MultiSelectSearch.cjs +1 -1
- package/dist/components/generic/MultiSelectSearch/MultiSelectSearch.js +1 -1
- package/dist/components/generic/NotificationRow/NotificationRow.cjs +1 -1
- package/dist/components/generic/NotificationRow/NotificationRow.js +1 -1
- package/dist/components/generic/Percent/Percent.cjs +1 -1
- package/dist/components/generic/Percent/Percent.js +1 -1
- package/dist/components/generic/PhotoCropModal/PhotoCropModal.cjs +1 -1
- package/dist/components/generic/PhotoCropModal/PhotoCropModal.js +1 -1
- package/dist/components/generic/ProcessingState/ProcessingState.cjs +1 -1
- package/dist/components/generic/ProcessingState/ProcessingState.js +1 -1
- package/dist/components/generic/RadioCard/RadioCard.cjs +1 -1
- package/dist/components/generic/RadioCard/RadioCard.js +1 -1
- package/dist/components/generic/StatCard/StatCard.cjs +1 -1
- package/dist/components/generic/StatCard/StatCard.js +1 -1
- package/dist/components/generic/StepCard/StepCard.cjs +3 -2
- package/dist/components/generic/StepCard/StepCard.cjs.map +1 -1
- package/dist/components/generic/StepCard/StepCard.d.ts.map +1 -1
- package/dist/components/generic/StepCard/StepCard.js +3 -2
- package/dist/components/generic/StepCard/StepCard.js.map +1 -1
- package/dist/components/generic/StepProgress/StepProgress.cjs +11 -7
- package/dist/components/generic/StepProgress/StepProgress.cjs.map +1 -1
- package/dist/components/generic/StepProgress/StepProgress.d.ts.map +1 -1
- package/dist/components/generic/StepProgress/StepProgress.js +11 -7
- package/dist/components/generic/StepProgress/StepProgress.js.map +1 -1
- package/dist/components/generic/TablePagination/TablePagination.cjs +1 -1
- package/dist/components/generic/TablePagination/TablePagination.js +1 -1
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.cjs +1 -1
- package/dist/components/generic/TaskInboxPopover/TaskInboxPopover.js +1 -1
- package/dist/components/generic/TaskRow/TaskRow.cjs +1 -1
- package/dist/components/generic/TaskRow/TaskRow.js +1 -1
- package/dist/components/layout/AccountSheet/AccountSheet.cjs +1 -1
- package/dist/components/layout/AccountSheet/AccountSheet.js +1 -1
- package/dist/components/layout/MobileNav/MobileNav.cjs +1 -1
- package/dist/components/layout/MobileNav/MobileNav.js +1 -1
- package/dist/components/layout/PageHeader/PageHeader.cjs +1 -1
- package/dist/components/layout/PageHeader/PageHeader.js +1 -1
- package/dist/components/primitives/Glossary/GlossaryContext.cjs +39 -0
- package/dist/components/primitives/Glossary/GlossaryContext.cjs.map +1 -0
- package/dist/components/primitives/Glossary/GlossaryContext.d.ts +49 -0
- package/dist/components/primitives/Glossary/GlossaryContext.d.ts.map +1 -0
- package/dist/components/primitives/Glossary/GlossaryContext.js +39 -0
- package/dist/components/primitives/Glossary/GlossaryContext.js.map +1 -0
- package/dist/components/primitives/Glossary/GlossaryTerm.cjs +147 -0
- package/dist/components/primitives/Glossary/GlossaryTerm.cjs.map +1 -0
- package/dist/components/primitives/Glossary/GlossaryTerm.d.ts +10 -0
- package/dist/components/primitives/Glossary/GlossaryTerm.d.ts.map +1 -0
- package/dist/components/primitives/Glossary/GlossaryTerm.js +147 -0
- package/dist/components/primitives/Glossary/GlossaryTerm.js.map +1 -0
- package/dist/components/primitives/Glossary/index.d.ts +3 -0
- package/dist/components/primitives/Glossary/index.d.ts.map +1 -0
- package/dist/components/primitives/Text/Text.cjs +112 -0
- package/dist/components/primitives/Text/Text.cjs.map +1 -0
- package/dist/components/primitives/Text/Text.d.ts +22 -0
- package/dist/components/primitives/Text/Text.d.ts.map +1 -0
- package/dist/components/primitives/Text/Text.js +112 -0
- package/dist/components/primitives/Text/Text.js.map +1 -0
- package/dist/components/primitives/Text/index.d.ts +2 -0
- package/dist/components/primitives/Text/index.d.ts.map +1 -0
- package/dist/components/primitives/index.d.ts +2 -0
- package/dist/components/primitives/index.d.ts.map +1 -1
- package/dist/components/primitives/layout.cjs.map +1 -1
- package/dist/components/primitives/layout.d.ts +2 -1
- package/dist/components/primitives/layout.d.ts.map +1 -1
- package/dist/components/primitives/layout.js.map +1 -1
- package/dist/components/primitives/muiCompat.cjs +8 -8
- package/dist/components/primitives/muiCompat.cjs.map +1 -1
- package/dist/components/primitives/muiCompat.d.ts.map +1 -1
- package/dist/components/primitives/muiCompat.js +8 -8
- package/dist/components/primitives/muiCompat.js.map +1 -1
- package/dist/components/specific/DocumentRow/DocumentRow.cjs +1 -1
- package/dist/components/specific/DocumentRow/DocumentRow.js +1 -1
- package/dist/components/specific/InvestorProfileCard/InvestorProfileCard.cjs +1 -1
- package/dist/components/specific/InvestorProfileCard/InvestorProfileCard.js +1 -1
- package/dist/components/specific/WalletList/WalletList.cjs +1 -1
- package/dist/components/specific/WalletList/WalletList.js +1 -1
- package/dist/components/specific/WalletListItem/WalletListItem.cjs +3 -2
- package/dist/components/specific/WalletListItem/WalletListItem.cjs.map +1 -1
- package/dist/components/specific/WalletListItem/WalletListItem.d.ts.map +1 -1
- package/dist/components/specific/WalletListItem/WalletListItem.js +3 -2
- package/dist/components/specific/WalletListItem/WalletListItem.js.map +1 -1
- package/dist/constants/glossary.cjs +210 -0
- package/dist/constants/glossary.cjs.map +1 -0
- package/dist/constants/glossary.d.ts +26 -0
- package/dist/constants/glossary.d.ts.map +1 -0
- package/dist/constants/glossary.js +210 -0
- package/dist/constants/glossary.js.map +1 -0
- package/dist/fairmint-ui.cjs +13 -1
- package/dist/fairmint-ui.cjs.map +1 -1
- package/dist/fairmint-ui.js +13 -1
- package/dist/fairmint-ui.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/styles.css +7 -12
- package/dist/utils/glossaryMatcher.cjs +89 -0
- package/dist/utils/glossaryMatcher.cjs.map +1 -0
- package/dist/utils/glossaryMatcher.d.ts +23 -0
- package/dist/utils/glossaryMatcher.d.ts.map +1 -0
- package/dist/utils/glossaryMatcher.js +89 -0
- package/dist/utils/glossaryMatcher.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
const FINANCIAL_GLOSSARY = [
|
|
2
|
+
{
|
|
3
|
+
id: "SPV",
|
|
4
|
+
label: "SPV",
|
|
5
|
+
aliases: ["SPV", "SPVs"],
|
|
6
|
+
question: "What is an SPV?",
|
|
7
|
+
explanation: "A special-purpose vehicle that pools multiple investors into one line on the cap table.",
|
|
8
|
+
matchSensitive: true
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: "Reg D 506(b)",
|
|
12
|
+
label: "Reg D 506(b)",
|
|
13
|
+
aliases: ["Reg D 506(b)", "Rule 506(b)"],
|
|
14
|
+
question: "What is a Reg D 506(b) offering?",
|
|
15
|
+
explanation: "A private offering allowing accredited investors and up to 35 non-accredited investors, with no general solicitation or advertising.",
|
|
16
|
+
matchSensitive: false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: "Rule 506(c)",
|
|
20
|
+
label: "Rule 506(c)",
|
|
21
|
+
aliases: ["Rule 506(c)", "Reg D 506(c)"],
|
|
22
|
+
question: "What is a Rule 506(c) offering?",
|
|
23
|
+
explanation: "A private offering that permits general advertising, but requires all investors to be verified as accredited.",
|
|
24
|
+
matchSensitive: false
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: "Post-money SAFE",
|
|
28
|
+
label: "Post-money SAFE",
|
|
29
|
+
aliases: ["post-money SAFE"],
|
|
30
|
+
question: "What is a post-money SAFE?",
|
|
31
|
+
explanation: "A Simple Agreement for Future Equity whose valuation cap is calculated after the round's investment is added.",
|
|
32
|
+
matchSensitive: false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: "Pre-money SAFE",
|
|
36
|
+
label: "Pre-money SAFE",
|
|
37
|
+
aliases: ["pre-money SAFE"],
|
|
38
|
+
question: "What is a pre-money SAFE?",
|
|
39
|
+
explanation: "A Simple Agreement for Future Equity whose valuation cap is calculated before the round's investment is added.",
|
|
40
|
+
matchSensitive: false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "Valuation cap",
|
|
44
|
+
label: "Valuation cap",
|
|
45
|
+
aliases: ["valuation cap"],
|
|
46
|
+
question: "What is a valuation cap?",
|
|
47
|
+
explanation: "The maximum company valuation at which an investment instrument will convert into equity.",
|
|
48
|
+
matchSensitive: false
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "Pro-rata rights",
|
|
52
|
+
label: "Pro-rata rights",
|
|
53
|
+
aliases: ["pro-rata rights", "pro rata rights", "pro-rata", "pro rata"],
|
|
54
|
+
question: "What are pro-rata rights?",
|
|
55
|
+
explanation: "The contractual right of an investor to participate in future financing rounds to maintain their ownership percentage.",
|
|
56
|
+
matchSensitive: false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "MFN",
|
|
60
|
+
label: "MFN",
|
|
61
|
+
aliases: ["most favored nation", "MFN"],
|
|
62
|
+
question: "What is an MFN clause?",
|
|
63
|
+
explanation: "Most Favored Nation: a clause entitling an investor to receive any more favorable terms offered to subsequent investors.",
|
|
64
|
+
matchSensitive: false
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: "Token warrant",
|
|
68
|
+
label: "Token warrant",
|
|
69
|
+
aliases: ["token warrant", "token warrants"],
|
|
70
|
+
question: "What is a token warrant?",
|
|
71
|
+
explanation: "A contractual right granting the holder the option to purchase future digital tokens at a predetermined price.",
|
|
72
|
+
matchSensitive: false
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "Convertible note",
|
|
76
|
+
label: "Convertible note",
|
|
77
|
+
aliases: ["convertible note", "convertible notes"],
|
|
78
|
+
question: "What is a convertible note?",
|
|
79
|
+
explanation: "A debt instrument that converts into equity at a future financing event rather than being repaid in cash.",
|
|
80
|
+
matchSensitive: false
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "Master fund",
|
|
84
|
+
label: "Master fund",
|
|
85
|
+
aliases: ["master fund"],
|
|
86
|
+
question: "What is a master fund?",
|
|
87
|
+
explanation: "A parent fund structure that holds and manages multiple underlying series or sub-funds under unified governance.",
|
|
88
|
+
matchSensitive: false
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: "LPA",
|
|
92
|
+
label: "LPA",
|
|
93
|
+
aliases: ["limited partnership agreement", "LPA"],
|
|
94
|
+
question: "What is an LPA?",
|
|
95
|
+
explanation: "Limited Partnership Agreement: the core legal agreement governing the rights, obligations, and terms of a fund partnership.",
|
|
96
|
+
matchSensitive: false
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "Accredited investor",
|
|
100
|
+
label: "Accredited investor",
|
|
101
|
+
aliases: ["accredited investor", "accredited investors"],
|
|
102
|
+
question: "Who is an accredited investor?",
|
|
103
|
+
explanation: "An individual or entity meeting specific SEC income or net worth thresholds, permitted to invest in unregistered securities.",
|
|
104
|
+
matchSensitive: false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: "409A",
|
|
108
|
+
label: "409A",
|
|
109
|
+
aliases: ["409A", "409a"],
|
|
110
|
+
question: "What is a 409A valuation?",
|
|
111
|
+
explanation: "An independent appraisal of a private company's common stock fair market value, required to set compliant option exercise prices.",
|
|
112
|
+
matchSensitive: false
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: "ISO",
|
|
116
|
+
label: "ISO",
|
|
117
|
+
aliases: ["ISO", "ISOs"],
|
|
118
|
+
question: "What is an ISO?",
|
|
119
|
+
explanation: "Incentive Stock Option: a statutory stock option available to employees with potential tax advantages upon exercise.",
|
|
120
|
+
matchSensitive: true
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: "NSO",
|
|
124
|
+
label: "NSO",
|
|
125
|
+
aliases: ["NSO", "NSOs"],
|
|
126
|
+
question: "What is an NSO?",
|
|
127
|
+
explanation: "Non-Qualified Stock Option: a stock option that does not qualify for special IRS tax treatment and is taxed at ordinary income rates on exercise.",
|
|
128
|
+
matchSensitive: true
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: "RSU",
|
|
132
|
+
label: "RSU",
|
|
133
|
+
aliases: ["RSU", "RSUs"],
|
|
134
|
+
question: "What is an RSU?",
|
|
135
|
+
explanation: "Restricted Stock Unit: a grant of company shares that are delivered upon meeting vesting conditions, with no purchase price required.",
|
|
136
|
+
matchSensitive: true
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: "Vesting",
|
|
140
|
+
label: "Vesting",
|
|
141
|
+
aliases: ["vesting", "vesting schedule", "cliff"],
|
|
142
|
+
question: "What is vesting?",
|
|
143
|
+
explanation: "The process or schedule by which an individual earns full ownership of equity over time. A cliff is the initial waiting period before any equity vests.",
|
|
144
|
+
matchSensitive: false
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
id: "Exercise price",
|
|
148
|
+
label: "Exercise price",
|
|
149
|
+
aliases: ["exercise price", "strike price"],
|
|
150
|
+
question: "What is an exercise price?",
|
|
151
|
+
explanation: "The fixed price per share at which an option holder can purchase underlying company stock.",
|
|
152
|
+
matchSensitive: false
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: "Option pool",
|
|
156
|
+
label: "Option pool",
|
|
157
|
+
aliases: ["option pool", "option pools"],
|
|
158
|
+
question: "What is an option pool?",
|
|
159
|
+
explanation: "A block of company shares set aside to grant to future employees, contractors, and advisors as equity compensation.",
|
|
160
|
+
matchSensitive: false
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: "Fully diluted",
|
|
164
|
+
label: "Fully diluted",
|
|
165
|
+
aliases: ["fully diluted"],
|
|
166
|
+
question: "What does fully diluted mean?",
|
|
167
|
+
explanation: "A calculation of total ownership that assumes all convertibles, options, warrants, and unissued pool shares are converted into common shares.",
|
|
168
|
+
matchSensitive: false
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: "Form D",
|
|
172
|
+
label: "Form D",
|
|
173
|
+
aliases: ["Form D"],
|
|
174
|
+
question: "What is Form D?",
|
|
175
|
+
explanation: "A brief notice filed with the SEC within 15 days of the first sale of securities in an exempt Regulation D offering.",
|
|
176
|
+
matchSensitive: true
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: "KYC",
|
|
180
|
+
label: "KYC",
|
|
181
|
+
aliases: ["know your customer", "KYC"],
|
|
182
|
+
question: "What is KYC?",
|
|
183
|
+
explanation: "Know Your Customer: regulatory requirements to verify the identity of investors before accepting capital.",
|
|
184
|
+
matchSensitive: false
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
id: "AML",
|
|
188
|
+
label: "AML",
|
|
189
|
+
aliases: ["anti-money laundering", "AML"],
|
|
190
|
+
question: "What is AML?",
|
|
191
|
+
explanation: "Anti-Money Laundering: screening procedures and legal requirements to detect and prevent financial crimes.",
|
|
192
|
+
matchSensitive: false
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: "Transfer agent",
|
|
196
|
+
label: "Transfer agent",
|
|
197
|
+
aliases: ["transfer agent", "transfer agents"],
|
|
198
|
+
question: "What is a transfer agent?",
|
|
199
|
+
explanation: "An SEC-registered entity responsible for maintaining the official ledger of security holders and processing equity transactions.",
|
|
200
|
+
matchSensitive: false
|
|
201
|
+
}
|
|
202
|
+
];
|
|
203
|
+
function getGlossaryTerm(id) {
|
|
204
|
+
return FINANCIAL_GLOSSARY.find((term) => term.id === id);
|
|
205
|
+
}
|
|
206
|
+
export {
|
|
207
|
+
FINANCIAL_GLOSSARY,
|
|
208
|
+
getGlossaryTerm
|
|
209
|
+
};
|
|
210
|
+
//# sourceMappingURL=glossary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glossary.js","sources":["../../src/constants/glossary.ts"],"sourcesContent":["/**\n * Static financial glossary for Fairmint applications (ENG-2069).\n *\n * Hardcoded by design: definitions are curated and stable. Used by `@fairmint/ui`'s\n * `<GlossaryProvider>` and `<Text>` to automatically linkify financial and equity jargon\n * across founder and investor surfaces.\n */\n\nexport interface GlossaryTermDefinition {\n /** Unique identifier for the term (e.g. \"SPV\", \"409A\"). */\n id: string;\n /** Display label for the canonical term name. */\n label: string;\n /** Text variations to match against in copy. Longest alias matches first. */\n aliases: readonly string[];\n /** Short, plain-language definition shown in tooltips. */\n explanation: string;\n /** Suggested question to send when opened in an AI chat assistant. */\n question?: string;\n /** When true, aliases require exact case matching (used for acronyms like ISO vs isosceles). */\n matchSensitive: boolean;\n}\n\nexport type GlossaryTerm = GlossaryTermDefinition;\nexport type GlossaryTermData = GlossaryTermDefinition;\n\nexport const FINANCIAL_GLOSSARY: readonly GlossaryTerm[] = [\n {\n id: \"SPV\",\n label: \"SPV\",\n aliases: [\"SPV\", \"SPVs\"],\n question: \"What is an SPV?\",\n explanation:\n \"A special-purpose vehicle that pools multiple investors into one line on the cap table.\",\n matchSensitive: true,\n },\n {\n id: \"Reg D 506(b)\",\n label: \"Reg D 506(b)\",\n aliases: [\"Reg D 506(b)\", \"Rule 506(b)\"],\n question: \"What is a Reg D 506(b) offering?\",\n explanation:\n \"A private offering allowing accredited investors and up to 35 non-accredited investors, with no general solicitation or advertising.\",\n matchSensitive: false,\n },\n {\n id: \"Rule 506(c)\",\n label: \"Rule 506(c)\",\n aliases: [\"Rule 506(c)\", \"Reg D 506(c)\"],\n question: \"What is a Rule 506(c) offering?\",\n explanation:\n \"A private offering that permits general advertising, but requires all investors to be verified as accredited.\",\n matchSensitive: false,\n },\n {\n id: \"Post-money SAFE\",\n label: \"Post-money SAFE\",\n aliases: [\"post-money SAFE\"],\n question: \"What is a post-money SAFE?\",\n explanation:\n \"A Simple Agreement for Future Equity whose valuation cap is calculated after the round's investment is added.\",\n matchSensitive: false,\n },\n {\n id: \"Pre-money SAFE\",\n label: \"Pre-money SAFE\",\n aliases: [\"pre-money SAFE\"],\n question: \"What is a pre-money SAFE?\",\n explanation:\n \"A Simple Agreement for Future Equity whose valuation cap is calculated before the round's investment is added.\",\n matchSensitive: false,\n },\n {\n id: \"Valuation cap\",\n label: \"Valuation cap\",\n aliases: [\"valuation cap\"],\n question: \"What is a valuation cap?\",\n explanation:\n \"The maximum company valuation at which an investment instrument will convert into equity.\",\n matchSensitive: false,\n },\n {\n id: \"Pro-rata rights\",\n label: \"Pro-rata rights\",\n aliases: [\"pro-rata rights\", \"pro rata rights\", \"pro-rata\", \"pro rata\"],\n question: \"What are pro-rata rights?\",\n explanation:\n \"The contractual right of an investor to participate in future financing rounds to maintain their ownership percentage.\",\n matchSensitive: false,\n },\n {\n id: \"MFN\",\n label: \"MFN\",\n aliases: [\"most favored nation\", \"MFN\"],\n question: \"What is an MFN clause?\",\n explanation:\n \"Most Favored Nation: a clause entitling an investor to receive any more favorable terms offered to subsequent investors.\",\n matchSensitive: false,\n },\n {\n id: \"Token warrant\",\n label: \"Token warrant\",\n aliases: [\"token warrant\", \"token warrants\"],\n question: \"What is a token warrant?\",\n explanation:\n \"A contractual right granting the holder the option to purchase future digital tokens at a predetermined price.\",\n matchSensitive: false,\n },\n {\n id: \"Convertible note\",\n label: \"Convertible note\",\n aliases: [\"convertible note\", \"convertible notes\"],\n question: \"What is a convertible note?\",\n explanation:\n \"A debt instrument that converts into equity at a future financing event rather than being repaid in cash.\",\n matchSensitive: false,\n },\n {\n id: \"Master fund\",\n label: \"Master fund\",\n aliases: [\"master fund\"],\n question: \"What is a master fund?\",\n explanation:\n \"A parent fund structure that holds and manages multiple underlying series or sub-funds under unified governance.\",\n matchSensitive: false,\n },\n {\n id: \"LPA\",\n label: \"LPA\",\n aliases: [\"limited partnership agreement\", \"LPA\"],\n question: \"What is an LPA?\",\n explanation:\n \"Limited Partnership Agreement: the core legal agreement governing the rights, obligations, and terms of a fund partnership.\",\n matchSensitive: false,\n },\n {\n id: \"Accredited investor\",\n label: \"Accredited investor\",\n aliases: [\"accredited investor\", \"accredited investors\"],\n question: \"Who is an accredited investor?\",\n explanation:\n \"An individual or entity meeting specific SEC income or net worth thresholds, permitted to invest in unregistered securities.\",\n matchSensitive: false,\n },\n {\n id: \"409A\",\n label: \"409A\",\n aliases: [\"409A\", \"409a\"],\n question: \"What is a 409A valuation?\",\n explanation:\n \"An independent appraisal of a private company's common stock fair market value, required to set compliant option exercise prices.\",\n matchSensitive: false,\n },\n {\n id: \"ISO\",\n label: \"ISO\",\n aliases: [\"ISO\", \"ISOs\"],\n question: \"What is an ISO?\",\n explanation:\n \"Incentive Stock Option: a statutory stock option available to employees with potential tax advantages upon exercise.\",\n matchSensitive: true,\n },\n {\n id: \"NSO\",\n label: \"NSO\",\n aliases: [\"NSO\", \"NSOs\"],\n question: \"What is an NSO?\",\n explanation:\n \"Non-Qualified Stock Option: a stock option that does not qualify for special IRS tax treatment and is taxed at ordinary income rates on exercise.\",\n matchSensitive: true,\n },\n {\n id: \"RSU\",\n label: \"RSU\",\n aliases: [\"RSU\", \"RSUs\"],\n question: \"What is an RSU?\",\n explanation:\n \"Restricted Stock Unit: a grant of company shares that are delivered upon meeting vesting conditions, with no purchase price required.\",\n matchSensitive: true,\n },\n {\n id: \"Vesting\",\n label: \"Vesting\",\n aliases: [\"vesting\", \"vesting schedule\", \"cliff\"],\n question: \"What is vesting?\",\n explanation:\n \"The process or schedule by which an individual earns full ownership of equity over time. A cliff is the initial waiting period before any equity vests.\",\n matchSensitive: false,\n },\n {\n id: \"Exercise price\",\n label: \"Exercise price\",\n aliases: [\"exercise price\", \"strike price\"],\n question: \"What is an exercise price?\",\n explanation:\n \"The fixed price per share at which an option holder can purchase underlying company stock.\",\n matchSensitive: false,\n },\n {\n id: \"Option pool\",\n label: \"Option pool\",\n aliases: [\"option pool\", \"option pools\"],\n question: \"What is an option pool?\",\n explanation:\n \"A block of company shares set aside to grant to future employees, contractors, and advisors as equity compensation.\",\n matchSensitive: false,\n },\n {\n id: \"Fully diluted\",\n label: \"Fully diluted\",\n aliases: [\"fully diluted\"],\n question: \"What does fully diluted mean?\",\n explanation:\n \"A calculation of total ownership that assumes all convertibles, options, warrants, and unissued pool shares are converted into common shares.\",\n matchSensitive: false,\n },\n {\n id: \"Form D\",\n label: \"Form D\",\n aliases: [\"Form D\"],\n question: \"What is Form D?\",\n explanation:\n \"A brief notice filed with the SEC within 15 days of the first sale of securities in an exempt Regulation D offering.\",\n matchSensitive: true,\n },\n {\n id: \"KYC\",\n label: \"KYC\",\n aliases: [\"know your customer\", \"KYC\"],\n question: \"What is KYC?\",\n explanation:\n \"Know Your Customer: regulatory requirements to verify the identity of investors before accepting capital.\",\n matchSensitive: false,\n },\n {\n id: \"AML\",\n label: \"AML\",\n aliases: [\"anti-money laundering\", \"AML\"],\n question: \"What is AML?\",\n explanation:\n \"Anti-Money Laundering: screening procedures and legal requirements to detect and prevent financial crimes.\",\n matchSensitive: false,\n },\n {\n id: \"Transfer agent\",\n label: \"Transfer agent\",\n aliases: [\"transfer agent\", \"transfer agents\"],\n question: \"What is a transfer agent?\",\n explanation:\n \"An SEC-registered entity responsible for maintaining the official ledger of security holders and processing equity transactions.\",\n matchSensitive: false,\n },\n];\n\nexport function getGlossaryTerm(id: string): GlossaryTerm | undefined {\n return FINANCIAL_GLOSSARY.find((term) => term.id === id);\n}\n"],"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A,IACV,aACE;AAAA,IACF,gBAAgB;AAAA,EAAA;AAEpB;AAEO,SAAS,gBAAgB,IAAsC;AACpE,SAAO,mBAAmB,KAAK,CAAC,SAAS,KAAK,OAAO,EAAE;AACzD;"}
|
package/dist/fairmint-ui.cjs
CHANGED
|
@@ -98,6 +98,7 @@ const InvestmentCard = require("./components/specific/InvestmentCard/InvestmentC
|
|
|
98
98
|
const InvestorProfileCard = require("./components/specific/InvestorProfileCard/InvestorProfileCard.cjs");
|
|
99
99
|
const WalletList = require("./components/specific/WalletList/WalletList.cjs");
|
|
100
100
|
const WalletListItem = require("./components/specific/WalletListItem/WalletListItem.cjs");
|
|
101
|
+
const glossary = require("./constants/glossary.cjs");
|
|
101
102
|
const useDebouncedCallback = require("./hooks/useDebouncedCallback.cjs");
|
|
102
103
|
const useForm = require("./hooks/useForm.cjs");
|
|
103
104
|
const useIsMobile = require("./hooks/useIsMobile.cjs");
|
|
@@ -109,6 +110,7 @@ const address = require("./utils/address.cjs");
|
|
|
109
110
|
const avatar = require("./utils/avatar.cjs");
|
|
110
111
|
const color = require("./utils/color.cjs");
|
|
111
112
|
const format = require("./utils/format.cjs");
|
|
113
|
+
const glossaryMatcher = require("./utils/glossaryMatcher.cjs");
|
|
112
114
|
const wallets = require("./utils/wallets.cjs");
|
|
113
115
|
;/* empty css */
|
|
114
116
|
;/* empty css */
|
|
@@ -122,6 +124,8 @@ const ribbonTheme = require("./components/specific/EquityRibbonChart/ribbonTheme
|
|
|
122
124
|
const EquityRibbonChart = require("./components/specific/EquityRibbonChart/EquityRibbonChart.cjs");
|
|
123
125
|
const FairmintRibbonMark = require("./components/specific/EquityRibbonChart/FairmintRibbonMark.cjs");
|
|
124
126
|
const Flex = require("./node_modules/@mantine/core/esm/components/Flex/Flex.cjs");
|
|
127
|
+
const GlossaryContext = require("./components/primitives/Glossary/GlossaryContext.cjs");
|
|
128
|
+
const GlossaryTerm = require("./components/primitives/Glossary/GlossaryTerm.cjs");
|
|
125
129
|
const Group = require("./node_modules/@mantine/core/esm/components/Group/Group.cjs");
|
|
126
130
|
const NavLink = require("./node_modules/@mantine/core/esm/components/NavLink/NavLink.cjs");
|
|
127
131
|
const Notification = require("./node_modules/@mantine/core/esm/components/Notification/Notification.cjs");
|
|
@@ -135,7 +139,7 @@ const SimpleGrid = require("./node_modules/@mantine/core/esm/components/SimpleGr
|
|
|
135
139
|
const Slider = require("./components/primitives/Slider/Slider.cjs");
|
|
136
140
|
const Space = require("./node_modules/@mantine/core/esm/components/Space/Space.cjs");
|
|
137
141
|
const Stepper = require("./node_modules/@mantine/core/esm/components/Stepper/Stepper.cjs");
|
|
138
|
-
const Text = require("./
|
|
142
|
+
const Text = require("./components/primitives/Text/Text.cjs");
|
|
139
143
|
const ThemeIcon = require("./node_modules/@mantine/core/esm/components/ThemeIcon/ThemeIcon.cjs");
|
|
140
144
|
const Title = require("./node_modules/@mantine/core/esm/components/Title/Title.cjs");
|
|
141
145
|
const UnstyledButton = require("./node_modules/@mantine/core/esm/components/UnstyledButton/UnstyledButton.cjs");
|
|
@@ -496,6 +500,8 @@ exports.InvestmentCard = InvestmentCard.InvestmentCard;
|
|
|
496
500
|
exports.InvestorProfileCard = InvestorProfileCard.InvestorProfileCard;
|
|
497
501
|
exports.WalletList = WalletList.WalletList;
|
|
498
502
|
exports.WalletListItem = WalletListItem.WalletListItem;
|
|
503
|
+
exports.FINANCIAL_GLOSSARY = glossary.FINANCIAL_GLOSSARY;
|
|
504
|
+
exports.getGlossaryTerm = glossary.getGlossaryTerm;
|
|
499
505
|
exports.useDebouncedCallback = useDebouncedCallback.useDebouncedCallback;
|
|
500
506
|
exports.useForm = useForm.useForm;
|
|
501
507
|
exports.MOBILE_BREAKPOINT = useIsMobile.MOBILE_BREAKPOINT;
|
|
@@ -536,6 +542,7 @@ exports.formatNumber = format.formatNumber;
|
|
|
536
542
|
exports.formatPercent = format.formatPercent;
|
|
537
543
|
exports.formatPreciseWithCurrency = format.formatPreciseWithCurrency;
|
|
538
544
|
exports.localeForCountry = format.localeForCountry;
|
|
545
|
+
exports.matchGlossaryTerms = glossaryMatcher.matchGlossaryTerms;
|
|
539
546
|
exports.getWalletDisplayName = wallets.getWalletDisplayName;
|
|
540
547
|
exports.getWalletIconColor = wallets.getWalletIconColor;
|
|
541
548
|
exports.getWalletKindPill = wallets.getWalletKindPill;
|
|
@@ -560,6 +567,11 @@ exports.RIBBON_BAND_GRADIENTS = ribbonTheme.RIBBON_BAND_GRADIENTS;
|
|
|
560
567
|
exports.EquityRibbonChart = EquityRibbonChart.EquityRibbonChart;
|
|
561
568
|
exports.FairmintRibbonMark = FairmintRibbonMark.FairmintRibbonMark;
|
|
562
569
|
exports.Flex = Flex.Flex;
|
|
570
|
+
exports.GlossaryProvider = GlossaryContext.GlossaryProvider;
|
|
571
|
+
exports.GlossaryScope = GlossaryContext.GlossaryScope;
|
|
572
|
+
exports.useGlossaryContext = GlossaryContext.useGlossaryContext;
|
|
573
|
+
exports.useGlossaryScope = GlossaryContext.useGlossaryScope;
|
|
574
|
+
exports.GlossaryTerm = GlossaryTerm.GlossaryTerm;
|
|
563
575
|
exports.Group = Group.Group;
|
|
564
576
|
exports.NavLink = NavLink.NavLink;
|
|
565
577
|
exports.Notification = Notification.Notification;
|
package/dist/fairmint-ui.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fairmint-ui.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fairmint-ui.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/fairmint-ui.js
CHANGED
|
@@ -96,6 +96,7 @@ import { InvestmentCard } from "./components/specific/InvestmentCard/InvestmentC
|
|
|
96
96
|
import { InvestorProfileCard } from "./components/specific/InvestorProfileCard/InvestorProfileCard.js";
|
|
97
97
|
import { WalletList } from "./components/specific/WalletList/WalletList.js";
|
|
98
98
|
import { WalletListItem } from "./components/specific/WalletListItem/WalletListItem.js";
|
|
99
|
+
import { FINANCIAL_GLOSSARY, getGlossaryTerm } from "./constants/glossary.js";
|
|
99
100
|
import { useDebouncedCallback } from "./hooks/useDebouncedCallback.js";
|
|
100
101
|
import { useForm } from "./hooks/useForm.js";
|
|
101
102
|
import { MOBILE_BREAKPOINT, useIsMobile } from "./hooks/useIsMobile.js";
|
|
@@ -107,6 +108,7 @@ import { ETHEREUM_ADDRESS_REGEX, ZERO_ETHEREUM_ADDRESS, isEthereumAddress, trunc
|
|
|
107
108
|
import { getAvatarColor, getInitials } from "./utils/avatar.js";
|
|
108
109
|
import { getLogoFilter, isLightColor } from "./utils/color.js";
|
|
109
110
|
import { formatCurrency, formatCurrencyPrecise, formatDate, formatMonetary, formatNumber, formatPercent, formatPreciseWithCurrency, localeForCountry } from "./utils/format.js";
|
|
111
|
+
import { matchGlossaryTerms } from "./utils/glossaryMatcher.js";
|
|
110
112
|
import { getWalletDisplayName, getWalletIconColor, getWalletKindPill, getWalletLabel, isRemovableWalletType, isSystemWalletType, normalizeWalletType, walletKey } from "./utils/wallets.js";
|
|
111
113
|
/* empty css */
|
|
112
114
|
/* empty css */
|
|
@@ -120,6 +122,8 @@ import { DEFAULT_RIBBON_LABELS, RIBBON_BACKGROUND_CLASS, RIBBON_BAND_GRADIENTS }
|
|
|
120
122
|
import { EquityRibbonChart } from "./components/specific/EquityRibbonChart/EquityRibbonChart.js";
|
|
121
123
|
import { FairmintRibbonMark } from "./components/specific/EquityRibbonChart/FairmintRibbonMark.js";
|
|
122
124
|
import { Flex } from "./node_modules/@mantine/core/esm/components/Flex/Flex.js";
|
|
125
|
+
import { GlossaryProvider, GlossaryScope, useGlossaryContext, useGlossaryScope } from "./components/primitives/Glossary/GlossaryContext.js";
|
|
126
|
+
import { GlossaryTerm } from "./components/primitives/Glossary/GlossaryTerm.js";
|
|
123
127
|
import { Group } from "./node_modules/@mantine/core/esm/components/Group/Group.js";
|
|
124
128
|
import { NavLink } from "./node_modules/@mantine/core/esm/components/NavLink/NavLink.js";
|
|
125
129
|
import { Notification } from "./node_modules/@mantine/core/esm/components/Notification/Notification.js";
|
|
@@ -133,7 +137,7 @@ import { SimpleGrid } from "./node_modules/@mantine/core/esm/components/SimpleGr
|
|
|
133
137
|
import { Slider } from "./components/primitives/Slider/Slider.js";
|
|
134
138
|
import { Space } from "./node_modules/@mantine/core/esm/components/Space/Space.js";
|
|
135
139
|
import { Stepper } from "./node_modules/@mantine/core/esm/components/Stepper/Stepper.js";
|
|
136
|
-
import { Text } from "./
|
|
140
|
+
import { Text } from "./components/primitives/Text/Text.js";
|
|
137
141
|
import { ThemeIcon } from "./node_modules/@mantine/core/esm/components/ThemeIcon/ThemeIcon.js";
|
|
138
142
|
import { Title } from "./node_modules/@mantine/core/esm/components/Title/Title.js";
|
|
139
143
|
import { UnstyledButton } from "./node_modules/@mantine/core/esm/components/UnstyledButton/UnstyledButton.js";
|
|
@@ -289,6 +293,7 @@ export {
|
|
|
289
293
|
Eyebrow,
|
|
290
294
|
FILE_DROPZONE_DEFAULT_MAX_FILES,
|
|
291
295
|
FILE_DROPZONE_DEFAULT_SUPPORTED_TYPES,
|
|
296
|
+
FINANCIAL_GLOSSARY,
|
|
292
297
|
FacebookLogo,
|
|
293
298
|
FairmintLogo,
|
|
294
299
|
FairmintLogoMark,
|
|
@@ -307,6 +312,9 @@ export {
|
|
|
307
312
|
FormControlLabel,
|
|
308
313
|
FormField,
|
|
309
314
|
FormHelperText,
|
|
315
|
+
GlossaryProvider,
|
|
316
|
+
GlossaryScope,
|
|
317
|
+
GlossaryTerm,
|
|
310
318
|
Grid,
|
|
311
319
|
Group,
|
|
312
320
|
GroupAddIcon,
|
|
@@ -534,6 +542,7 @@ export {
|
|
|
534
542
|
formatPhoneDisplay,
|
|
535
543
|
formatPreciseWithCurrency,
|
|
536
544
|
getAvatarColor,
|
|
545
|
+
getGlossaryTerm,
|
|
537
546
|
getInitials,
|
|
538
547
|
getLogoFilter,
|
|
539
548
|
getStepProgressStatus,
|
|
@@ -550,6 +559,7 @@ export {
|
|
|
550
559
|
keyframes,
|
|
551
560
|
lighten,
|
|
552
561
|
localeForCountry,
|
|
562
|
+
matchGlossaryTerms,
|
|
553
563
|
neutralColors,
|
|
554
564
|
normalizePhone,
|
|
555
565
|
normalizeWalletType,
|
|
@@ -575,6 +585,8 @@ export {
|
|
|
575
585
|
useDebouncedValue,
|
|
576
586
|
useDisclosure,
|
|
577
587
|
useForm,
|
|
588
|
+
useGlossaryContext,
|
|
589
|
+
useGlossaryScope,
|
|
578
590
|
useHotkeys,
|
|
579
591
|
useId,
|
|
580
592
|
useIntersection,
|
package/dist/fairmint-ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fairmint-ui.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fairmint-ui.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ export { Button, type ButtonProps } from './components/primitives/Button/Button'
|
|
|
136
136
|
export { Card } from './components/primitives/Card/Card';
|
|
137
137
|
export { Checkbox } from './components/primitives/Checkbox/Checkbox';
|
|
138
138
|
export { Drawer } from './components/primitives/Drawer/Drawer';
|
|
139
|
+
export { type GlossaryContextValue, GlossaryProvider, type GlossaryProviderProps, GlossaryScope, type GlossaryScopeContextValue, type GlossaryScopeProps, GlossaryTerm, type GlossaryTermProps, useGlossaryContext, useGlossaryScope, } from './components/primitives/Glossary';
|
|
139
140
|
export { Loader, type LoaderProps } from './components/primitives/Loader/Loader';
|
|
140
141
|
export { Anchor, AppShell, type AppShellProps, Box, type BoxProps, Burger, Center, Collapse, Container, type ContainerProps, Divider, Flex, Grid, Group, type GroupProps, List, NavLink, Notification, NumberInput, type NumberInputProps, Pagination, Paper, PinInput, ScrollArea, SegmentedControl, SimpleGrid, Space, Stack, type StackProps, Stepper, Text, type TextProps, ThemeIcon, type ThemeIconProps, Title, type TitleProps, UnstyledButton, useClickOutside, useClipboard, useDebouncedValue, useDisclosure, useHotkeys, useId, useIntersection, useMantineTheme, useMediaQuery, useScrollIntoView, useViewportSize, } from './components/primitives/layout';
|
|
141
142
|
export { Menu, type MenuProps } from './components/primitives/Menu/Menu';
|
|
@@ -171,6 +172,7 @@ export type { WalletListProps } from './components/specific/WalletList/WalletLis
|
|
|
171
172
|
export { WalletList } from './components/specific/WalletList/WalletList';
|
|
172
173
|
export type { WalletListItemProps } from './components/specific/WalletListItem/WalletListItem';
|
|
173
174
|
export { WalletListItem } from './components/specific/WalletListItem/WalletListItem';
|
|
175
|
+
export { FINANCIAL_GLOSSARY, type GlossaryTermData, type GlossaryTermDefinition, getGlossaryTerm, } from './constants/glossary';
|
|
174
176
|
export { useDebouncedCallback } from './hooks/useDebouncedCallback';
|
|
175
177
|
export { useForm } from './hooks/useForm';
|
|
176
178
|
export { MOBILE_BREAKPOINT, useIsMobile } from './hooks/useIsMobile';
|
|
@@ -184,6 +186,7 @@ export { getAvatarColor, getInitials } from './utils/avatar';
|
|
|
184
186
|
export { getLogoFilter, isLightColor } from './utils/color';
|
|
185
187
|
export type { FormatMonetaryOptions, MonetaryLike } from './utils/format';
|
|
186
188
|
export { formatCurrency, formatCurrencyPrecise, formatDate, formatMonetary, formatNumber, formatPercent, formatPreciseWithCurrency, localeForCountry, } from './utils/format';
|
|
189
|
+
export { type GlossaryMatch, matchGlossaryTerms, } from './utils/glossaryMatcher';
|
|
187
190
|
export type { Wallet } from './utils/wallets';
|
|
188
191
|
export { getWalletDisplayName, getWalletIconColor, getWalletKindPill, getWalletLabel, isRemovableWalletType, isSystemWalletType, normalizeWalletType, walletKey, } from './utils/wallets';
|
|
189
192
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,YAAY,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC;AACxG,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,YAAY,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,YAAY,EACV,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,wCAAwC,CAA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,aAAa,EACb,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,aAAa,EAClB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,GACV,MAAM,iBAAiB,CAAC;AAEzB,OAAO,cAAc,CAAC;AACtB,OAAO,+DAA+D,CAAC"}
|
package/dist/styles.css
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
border: 1px solid transparent;
|
|
72
72
|
border-radius: 999px;
|
|
73
73
|
background: transparent;
|
|
74
|
-
color: var(--fairmint-step-progress-text-secondary, #
|
|
74
|
+
color: var(--fairmint-step-progress-text-secondary, #111927);
|
|
75
75
|
font: inherit;
|
|
76
76
|
text-align: left;
|
|
77
77
|
text-decoration: none;
|
|
@@ -118,16 +118,11 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.fairmint-step-progress__pill[data-state="active"] {
|
|
121
|
-
border-color: var(--fairmint-step-progress-active-border, #
|
|
122
|
-
background: var(--fairmint-step-progress-surface-selected, #
|
|
121
|
+
border-color: var(--fairmint-step-progress-active-border, #a5b4fc);
|
|
122
|
+
background: var(--fairmint-step-progress-surface-selected, #e0e7ff);
|
|
123
123
|
color: var(--fairmint-step-progress-text-primary, #111927);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
.fairmint-step-progress[data-orientation="vertical"]
|
|
127
|
-
.fairmint-step-progress__pill[data-state="active"] {
|
|
128
|
-
border-color: transparent;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
126
|
.fairmint-step-progress__indicator {
|
|
132
127
|
display: inline-flex;
|
|
133
128
|
flex: 0 0 1.125rem;
|
|
@@ -135,7 +130,7 @@
|
|
|
135
130
|
justify-content: center;
|
|
136
131
|
width: 1.125rem;
|
|
137
132
|
height: 1.125rem;
|
|
138
|
-
border: 1px solid var(--fairmint-step-progress-border, #
|
|
133
|
+
border: 1px solid var(--fairmint-step-progress-border, #6c737f);
|
|
139
134
|
border-radius: 50%;
|
|
140
135
|
color: var(--fairmint-step-progress-text-primary, #111927);
|
|
141
136
|
font-size: 0.625rem;
|
|
@@ -151,7 +146,7 @@
|
|
|
151
146
|
|
|
152
147
|
.fairmint-step-progress__pill[data-state="complete"] .fairmint-step-progress__indicator {
|
|
153
148
|
border-color: var(--fairmint-step-progress-complete-border, #a5b4fc);
|
|
154
|
-
background: var(--fairmint-step-progress-surface-selected, #
|
|
149
|
+
background: var(--fairmint-step-progress-surface-selected, #e0e7ff);
|
|
155
150
|
color: var(--fairmint-step-progress-complete-text, #4f46e5);
|
|
156
151
|
}
|
|
157
152
|
|
|
@@ -190,7 +185,7 @@
|
|
|
190
185
|
width: 1px;
|
|
191
186
|
height: 0.875rem;
|
|
192
187
|
margin-left: 1.3125rem;
|
|
193
|
-
background: var(--fairmint-step-progress-
|
|
188
|
+
background: var(--fairmint-step-progress-connector, #e5e7eb);
|
|
194
189
|
}
|
|
195
190
|
|
|
196
191
|
.fairmint-step-progress[data-orientation="vertical"]
|
|
@@ -230,7 +225,7 @@
|
|
|
230
225
|
|
|
231
226
|
.fairmint-step-progress[data-orientation="vertical"]
|
|
232
227
|
.fairmint-step-progress__pill[data-state="active"] {
|
|
233
|
-
border-color: var(--fairmint-step-progress-active-border, #
|
|
228
|
+
border-color: var(--fairmint-step-progress-active-border, #a5b4fc);
|
|
234
229
|
}
|
|
235
230
|
|
|
236
231
|
.fairmint-step-progress[data-orientation="vertical"] .fairmint-step-progress__indicator {
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function escapeRegex(str) {
|
|
4
|
+
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
5
|
+
}
|
|
6
|
+
function findAliasOccurrences(text, alias, sensitive) {
|
|
7
|
+
const flags = sensitive ? "gu" : "gui";
|
|
8
|
+
const pattern = `(^|[^\\p{L}\\p{Nd}])(${escapeRegex(alias)})([^\\p{L}\\p{Nd}]|$)`;
|
|
9
|
+
const regex = new RegExp(pattern, flags);
|
|
10
|
+
const results = [];
|
|
11
|
+
let match = regex.exec(text);
|
|
12
|
+
while (match !== null) {
|
|
13
|
+
const prefixOffset = match[1]?.length ?? 0;
|
|
14
|
+
const start = match.index + prefixOffset;
|
|
15
|
+
const matchedText = match[2] ?? alias;
|
|
16
|
+
const end = start + matchedText.length;
|
|
17
|
+
results.push({ start, end, text: matchedText });
|
|
18
|
+
regex.lastIndex = match.index + prefixOffset + (matchedText.length || 1);
|
|
19
|
+
match = regex.exec(text);
|
|
20
|
+
}
|
|
21
|
+
return results;
|
|
22
|
+
}
|
|
23
|
+
function matchGlossaryTerms(text, terms, taken = /* @__PURE__ */ new Set()) {
|
|
24
|
+
if (!text) return [];
|
|
25
|
+
const occurrencesByTerm = /* @__PURE__ */ new Map();
|
|
26
|
+
for (const term of terms) {
|
|
27
|
+
if (taken.has(term.id)) continue;
|
|
28
|
+
const occurrences = [];
|
|
29
|
+
for (const alias of term.aliases) {
|
|
30
|
+
const found = findAliasOccurrences(text, alias, term.matchSensitive);
|
|
31
|
+
for (const occ of found) {
|
|
32
|
+
occurrences.push({
|
|
33
|
+
start: occ.start,
|
|
34
|
+
end: occ.end,
|
|
35
|
+
text: occ.text,
|
|
36
|
+
termId: term.id
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (occurrences.length === 0) continue;
|
|
41
|
+
occurrences.sort((a, b) => {
|
|
42
|
+
if (a.start !== b.start) return a.start - b.start;
|
|
43
|
+
return b.end - b.start - (a.end - a.start);
|
|
44
|
+
});
|
|
45
|
+
occurrencesByTerm.set(term.id, occurrences);
|
|
46
|
+
}
|
|
47
|
+
if (occurrencesByTerm.size === 0) return [];
|
|
48
|
+
const accepted = [];
|
|
49
|
+
const acceptedTermIds = new Set(taken);
|
|
50
|
+
const nextIndex = /* @__PURE__ */ new Map();
|
|
51
|
+
for (const termId of occurrencesByTerm.keys()) {
|
|
52
|
+
nextIndex.set(termId, 0);
|
|
53
|
+
}
|
|
54
|
+
const pendingCandidates = [];
|
|
55
|
+
for (const [termId, occurrences] of occurrencesByTerm) {
|
|
56
|
+
if (occurrences.length > 0) {
|
|
57
|
+
pendingCandidates.push(occurrences[0]);
|
|
58
|
+
nextIndex.set(termId, 1);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const sortByLengthDesc = (a, b) => {
|
|
62
|
+
const lengthDifference = b.end - b.start - (a.end - a.start);
|
|
63
|
+
return lengthDifference !== 0 ? lengthDifference : a.start - b.start;
|
|
64
|
+
};
|
|
65
|
+
pendingCandidates.sort(sortByLengthDesc);
|
|
66
|
+
while (pendingCandidates.length > 0) {
|
|
67
|
+
const candidate = pendingCandidates.shift();
|
|
68
|
+
if (candidate === void 0) break;
|
|
69
|
+
if (acceptedTermIds.has(candidate.termId)) continue;
|
|
70
|
+
const overlapsAccepted = accepted.some(
|
|
71
|
+
(match) => candidate.start < match.end && candidate.end > match.start
|
|
72
|
+
);
|
|
73
|
+
if (!overlapsAccepted) {
|
|
74
|
+
accepted.push(candidate);
|
|
75
|
+
acceptedTermIds.add(candidate.termId);
|
|
76
|
+
} else {
|
|
77
|
+
const occurrences = occurrencesByTerm.get(candidate.termId);
|
|
78
|
+
const idx = nextIndex.get(candidate.termId) ?? 0;
|
|
79
|
+
if (occurrences && idx < occurrences.length) {
|
|
80
|
+
pendingCandidates.push(occurrences[idx]);
|
|
81
|
+
nextIndex.set(candidate.termId, idx + 1);
|
|
82
|
+
pendingCandidates.sort(sortByLengthDesc);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return accepted.sort((a, b) => a.start - b.start);
|
|
87
|
+
}
|
|
88
|
+
exports.matchGlossaryTerms = matchGlossaryTerms;
|
|
89
|
+
//# sourceMappingURL=glossaryMatcher.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glossaryMatcher.cjs","sources":["../../src/utils/glossaryMatcher.ts"],"sourcesContent":["import type { GlossaryTerm } from \"../constants/glossary\";\n\nexport interface GlossaryMatch {\n /** Index of the first character in `text` covered by the match. */\n start: number;\n /** Index one past the last character covered by the match. */\n end: number;\n /** Exact substring matched — preserves original source casing. */\n text: string;\n /** Glossary term identifier. */\n termId: string;\n}\n\nfunction escapeRegex(str: string): string {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n}\n\nfunction findAliasOccurrences(\n text: string,\n alias: string,\n sensitive: boolean,\n): Array<{ start: number; end: number; text: string }> {\n const flags = sensitive ? \"gu\" : \"gui\";\n const pattern = `(^|[^\\\\p{L}\\\\p{Nd}])(${escapeRegex(alias)})([^\\\\p{L}\\\\p{Nd}]|$)`;\n const regex = new RegExp(pattern, flags);\n const results: Array<{ start: number; end: number; text: string }> = [];\n\n let match: RegExpExecArray | null = regex.exec(text);\n while (match !== null) {\n const prefixOffset = match[1]?.length ?? 0;\n const start = match.index + prefixOffset;\n const matchedText = match[2] ?? alias;\n const end = start + matchedText.length;\n results.push({ start, end, text: matchedText });\n\n regex.lastIndex = match.index + prefixOffset + (matchedText.length || 1);\n match = regex.exec(text);\n }\n\n return results;\n}\n\n/**\n * Searches a plain text string for occurrences of glossary terms.\n *\n * Rules:\n * 1. One match per term: the first non-overlapping occurrence in document order wins.\n * 2. Overlapping matches between different terms: Longest alias wins\n * (e.g. \"Reg D 506(b)\" beats \"Reg D\").\n * 3. Strict unicode word boundaries on both ends (`\\p{L}\\p{Nd}`).\n * 4. Terms marked `matchSensitive` require exact casing.\n */\nexport function matchGlossaryTerms(\n text: string,\n terms: readonly GlossaryTerm[],\n taken: ReadonlySet<string> = new Set(),\n): GlossaryMatch[] {\n if (!text) return [];\n\n // Collect all occurrences for all eligible terms, grouped by term ID.\n const occurrencesByTerm = new Map<string, GlossaryMatch[]>();\n\n for (const term of terms) {\n if (taken.has(term.id)) continue;\n\n const occurrences: GlossaryMatch[] = [];\n for (const alias of term.aliases) {\n const found = findAliasOccurrences(text, alias, term.matchSensitive);\n for (const occ of found) {\n occurrences.push({\n start: occ.start,\n end: occ.end,\n text: occ.text,\n termId: term.id,\n });\n }\n }\n\n if (occurrences.length === 0) continue;\n\n // Sort each term's occurrences by document order, then by length descending\n // so the first entry is the longest match at the earliest position.\n occurrences.sort((a, b) => {\n if (a.start !== b.start) return a.start - b.start;\n return b.end - b.start - (a.end - a.start);\n });\n occurrencesByTerm.set(term.id, occurrences);\n }\n\n if (occurrencesByTerm.size === 0) return [];\n\n // Build a flat candidate list sorted by length descending so longer\n // overlaps are resolved first. Each candidate is the first available\n // (non-yet-rejected) occurrence for its term.\n const accepted: GlossaryMatch[] = [];\n const acceptedTermIds = new Set<string>(taken);\n\n // Keep an index per term tracking which occurrence to try next.\n const nextIndex = new Map<string, number>();\n for (const termId of occurrencesByTerm.keys()) {\n nextIndex.set(termId, 0);\n }\n\n // Process candidates longest-first. When a candidate is rejected (overlaps\n // an accepted match), advance to the next occurrence of that term and\n // re-queue it. This ensures we find the first non-overlapping occurrence\n // for each term, preserving both longest-overlap-wins and first-occurrence.\n const pendingCandidates: GlossaryMatch[] = [];\n for (const [termId, occurrences] of occurrencesByTerm) {\n if (occurrences.length > 0) {\n pendingCandidates.push(occurrences[0]);\n nextIndex.set(termId, 1);\n }\n }\n\n const sortByLengthDesc = (a: GlossaryMatch, b: GlossaryMatch) => {\n const lengthDifference = b.end - b.start - (a.end - a.start);\n return lengthDifference !== 0 ? lengthDifference : a.start - b.start;\n };\n pendingCandidates.sort(sortByLengthDesc);\n\n while (pendingCandidates.length > 0) {\n const candidate = pendingCandidates.shift();\n if (candidate === undefined) break;\n if (acceptedTermIds.has(candidate.termId)) continue;\n\n const overlapsAccepted = accepted.some(\n (match) => candidate.start < match.end && candidate.end > match.start,\n );\n if (!overlapsAccepted) {\n accepted.push(candidate);\n acceptedTermIds.add(candidate.termId);\n } else {\n // This occurrence is blocked — try the next occurrence of the same term.\n const occurrences = occurrencesByTerm.get(candidate.termId);\n const idx = nextIndex.get(candidate.termId) ?? 0;\n if (occurrences && idx < occurrences.length) {\n pendingCandidates.push(occurrences[idx]);\n nextIndex.set(candidate.termId, idx + 1);\n pendingCandidates.sort(sortByLengthDesc);\n }\n }\n }\n\n return accepted.sort((a, b) => a.start - b.start);\n}\n"],"names":[],"mappings":";;AAaA,SAAS,YAAY,KAAqB;AACxC,SAAO,IAAI,QAAQ,uBAAuB,MAAM;AAClD;AAEA,SAAS,qBACP,MACA,OACA,WACqD;AACrD,QAAM,QAAQ,YAAY,OAAO;AACjC,QAAM,UAAU,wBAAwB,YAAY,KAAK,CAAC;AAC1D,QAAM,QAAQ,IAAI,OAAO,SAAS,KAAK;AACvC,QAAM,UAA+D,CAAA;AAErE,MAAI,QAAgC,MAAM,KAAK,IAAI;AACnD,SAAO,UAAU,MAAM;AACrB,UAAM,eAAe,MAAM,CAAC,GAAG,UAAU;AACzC,UAAM,QAAQ,MAAM,QAAQ;AAC5B,UAAM,cAAc,MAAM,CAAC,KAAK;AAChC,UAAM,MAAM,QAAQ,YAAY;AAChC,YAAQ,KAAK,EAAE,OAAO,KAAK,MAAM,aAAa;AAE9C,UAAM,YAAY,MAAM,QAAQ,gBAAgB,YAAY,UAAU;AACtE,YAAQ,MAAM,KAAK,IAAI;AAAA,EACzB;AAEA,SAAO;AACT;AAYO,SAAS,mBACd,MACA,OACA,QAA6B,oBAAI,OAChB;AACjB,MAAI,CAAC,KAAM,QAAO,CAAA;AAGlB,QAAM,wCAAwB,IAAA;AAE9B,aAAW,QAAQ,OAAO;AACxB,QAAI,MAAM,IAAI,KAAK,EAAE,EAAG;AAExB,UAAM,cAA+B,CAAA;AACrC,eAAW,SAAS,KAAK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