@rubixstudios/payload-typesense 1.6.13 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/README.md +109 -114
  2. package/dist/components/ThemeProvider.d.ts +4 -3
  3. package/dist/components/ThemeProvider.d.ts.map +1 -1
  4. package/dist/components/ThemeProvider.js +15 -5
  5. package/dist/components/icons/clockIcon.d.ts +2 -0
  6. package/dist/components/icons/clockIcon.d.ts.map +1 -0
  7. package/dist/components/icons/clockIcon.js +16 -0
  8. package/dist/components/icons/collectionIcon.d.ts +2 -0
  9. package/dist/components/icons/collectionIcon.d.ts.map +1 -0
  10. package/dist/components/icons/collectionIcon.js +16 -0
  11. package/dist/components/icons/errorIcon.d.ts +2 -0
  12. package/dist/components/icons/errorIcon.d.ts.map +1 -0
  13. package/dist/components/icons/errorIcon.js +16 -0
  14. package/dist/components/icons/index.d.ts +7 -0
  15. package/dist/components/icons/index.d.ts.map +1 -0
  16. package/dist/components/icons/index.js +6 -0
  17. package/dist/components/icons/noResultsIcon.d.ts +4 -0
  18. package/dist/components/icons/noResultsIcon.d.ts.map +1 -0
  19. package/dist/components/icons/noResultsIcon.js +19 -0
  20. package/dist/components/icons/searchIcon.d.ts +4 -0
  21. package/dist/components/icons/searchIcon.d.ts.map +1 -0
  22. package/dist/components/icons/searchIcon.js +16 -0
  23. package/dist/components/icons/xIcon.d.ts +2 -0
  24. package/dist/components/icons/xIcon.d.ts.map +1 -0
  25. package/dist/components/icons/xIcon.js +17 -0
  26. package/dist/components/index.d.ts +10 -5
  27. package/dist/components/index.d.ts.map +1 -1
  28. package/dist/components/index.js +6 -3
  29. package/dist/components/render/Content.d.ts +26 -0
  30. package/dist/components/render/Content.d.ts.map +1 -0
  31. package/dist/components/render/Content.js +144 -0
  32. package/dist/components/render/Dialog.d.ts +20 -0
  33. package/dist/components/render/Dialog.d.ts.map +1 -0
  34. package/dist/components/render/Dialog.js +43 -0
  35. package/dist/components/render/Header.d.ts +4 -4
  36. package/dist/components/render/Header.d.ts.map +1 -1
  37. package/dist/components/render/Header.js +20 -39
  38. package/dist/components/render/Highlight.d.ts +3 -0
  39. package/dist/components/render/Highlight.d.ts.map +1 -0
  40. package/dist/components/render/Highlight.js +22 -0
  41. package/dist/components/render/NoResults.d.ts +4 -4
  42. package/dist/components/render/NoResults.d.ts.map +1 -1
  43. package/dist/components/render/NoResults.js +21 -45
  44. package/dist/components/render/ResultError.d.ts +4 -4
  45. package/dist/components/render/ResultError.d.ts.map +1 -1
  46. package/dist/components/render/ResultError.js +14 -38
  47. package/dist/components/render/Results.d.ts +7 -6
  48. package/dist/components/render/Results.d.ts.map +1 -1
  49. package/dist/components/render/Results.js +70 -141
  50. package/dist/components/render/index.d.ts +7 -4
  51. package/dist/components/render/index.d.ts.map +1 -1
  52. package/dist/components/render/index.js +7 -4
  53. package/dist/components/search/HeadlessDialog.d.ts +5 -0
  54. package/dist/components/search/HeadlessDialog.d.ts.map +1 -0
  55. package/dist/components/search/HeadlessDialog.js +254 -0
  56. package/dist/components/search/HeadlessInput.d.ts +5 -0
  57. package/dist/components/search/HeadlessInput.d.ts.map +1 -0
  58. package/dist/components/search/HeadlessInput.js +193 -0
  59. package/dist/components/search/SearchStyles.d.ts +8 -0
  60. package/dist/components/search/SearchStyles.d.ts.map +1 -0
  61. package/dist/components/search/SearchStyles.js +9 -0
  62. package/dist/components/themes/constant.d.ts +3 -0
  63. package/dist/components/themes/constant.d.ts.map +1 -0
  64. package/dist/components/themes/constant.js +75 -0
  65. package/dist/components/themes/hooks.d.ts +4 -42
  66. package/dist/components/themes/hooks.d.ts.map +1 -1
  67. package/dist/components/themes/hooks.js +35 -95
  68. package/dist/components/themes/index.d.ts +1 -0
  69. package/dist/components/themes/index.d.ts.map +1 -1
  70. package/dist/components/themes/index.js +1 -0
  71. package/dist/components/themes/themes.d.ts.map +1 -1
  72. package/dist/components/themes/themes.js +66 -27
  73. package/dist/components/themes/types.d.ts +62 -2
  74. package/dist/components/themes/types.d.ts.map +1 -1
  75. package/dist/components/themes/utils.d.ts +13 -18
  76. package/dist/components/themes/utils.d.ts.map +1 -1
  77. package/dist/components/themes/utils.js +466 -344
  78. package/dist/components/utils/decodeEntities.d.ts +2 -0
  79. package/dist/components/utils/decodeEntities.d.ts.map +1 -0
  80. package/dist/components/utils/decodeEntities.js +23 -0
  81. package/dist/components/utils/index.d.ts +4 -0
  82. package/dist/components/utils/index.d.ts.map +1 -0
  83. package/dist/components/utils/index.js +3 -0
  84. package/dist/components/utils/toKebab.d.ts +2 -0
  85. package/dist/components/utils/toKebab.d.ts.map +1 -0
  86. package/dist/components/utils/toKebab.js +3 -0
  87. package/dist/components/utils/toText.d.ts +2 -0
  88. package/dist/components/utils/toText.d.ts.map +1 -0
  89. package/dist/components/utils/toText.js +3 -0
  90. package/dist/endpoints/handler/createAdvancedSearch.d.ts +1 -1
  91. package/dist/endpoints/handler/createAdvancedSearch.d.ts.map +1 -1
  92. package/dist/endpoints/handler/createAdvancedSearch.js +133 -11
  93. package/dist/endpoints/handler/createCollections.d.ts +1 -1
  94. package/dist/endpoints/handler/createCollections.d.ts.map +1 -1
  95. package/dist/endpoints/handler/createCollections.js +8 -8
  96. package/dist/endpoints/handler/createSearch.d.ts +1 -1
  97. package/dist/endpoints/handler/createSearch.d.ts.map +1 -1
  98. package/dist/endpoints/handler/createSearch.js +85 -110
  99. package/dist/endpoints/handler/createSuggest.d.ts +1 -1
  100. package/dist/endpoints/handler/createSuggest.d.ts.map +1 -1
  101. package/dist/endpoints/handler/createSuggest.js +39 -22
  102. package/dist/endpoints/health.d.ts +2 -2
  103. package/dist/endpoints/health.d.ts.map +1 -1
  104. package/dist/endpoints/health.js +58 -52
  105. package/dist/endpoints/search.d.ts +2 -9
  106. package/dist/endpoints/search.d.ts.map +1 -1
  107. package/dist/endpoints/search.js +17 -16
  108. package/dist/{utils → hooks}/useDebounce.d.ts.map +1 -1
  109. package/dist/{utils → hooks}/useDebounce.js +2 -2
  110. package/dist/hooks/useSearch.d.ts +21 -0
  111. package/dist/hooks/useSearch.d.ts.map +1 -0
  112. package/dist/hooks/useSearch.js +126 -0
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +45 -34
  115. package/dist/lib/cache.d.ts.map +1 -1
  116. package/dist/lib/cache.js +54 -25
  117. package/dist/lib/client.d.ts +1 -1
  118. package/dist/lib/client.d.ts.map +1 -1
  119. package/dist/lib/client.js +35 -31
  120. package/dist/lib/hooks.d.ts +3 -11
  121. package/dist/lib/hooks.d.ts.map +1 -1
  122. package/dist/lib/hooks.js +15 -45
  123. package/dist/lib/initialization.d.ts +1 -1
  124. package/dist/lib/initialization.d.ts.map +1 -1
  125. package/dist/lib/initialization.js +54 -52
  126. package/dist/lib/schema-mapper.d.ts +3 -6
  127. package/dist/lib/schema-mapper.d.ts.map +1 -1
  128. package/dist/lib/schema-mapper.js +90 -84
  129. package/dist/lib/search-dialog.d.ts +169 -0
  130. package/dist/lib/search-dialog.d.ts.map +1 -0
  131. package/dist/lib/search-dialog.js +4 -0
  132. package/dist/lib/search-input.d.ts +93 -0
  133. package/dist/lib/search-input.d.ts.map +1 -0
  134. package/dist/lib/search-pagination.d.ts +38 -0
  135. package/dist/lib/search-pagination.d.ts.map +1 -0
  136. package/dist/lib/search-pagination.js +4 -0
  137. package/dist/lib/search.d.ts +25 -0
  138. package/dist/lib/search.d.ts.map +1 -0
  139. package/dist/lib/search.js +59 -0
  140. package/dist/lib/validation.d.ts +57 -39
  141. package/dist/lib/validation.d.ts.map +1 -1
  142. package/dist/lib/validation.js +92 -66
  143. package/dist/types.d.ts +193 -127
  144. package/dist/types.d.ts.map +1 -1
  145. package/dist/types.js +1 -1
  146. package/dist/utils/buildError.d.ts +1 -1
  147. package/dist/utils/buildError.d.ts.map +1 -1
  148. package/dist/utils/buildError.js +2 -2
  149. package/dist/utils/ensureCollection.d.ts +2 -2
  150. package/dist/utils/ensureCollection.d.ts.map +1 -1
  151. package/dist/utils/ensureCollection.js +138 -22
  152. package/dist/utils/extractText.d.ts.map +1 -1
  153. package/dist/utils/extractText.js +11 -8
  154. package/dist/utils/getCacheStats.d.ts.map +1 -1
  155. package/dist/utils/getCacheStats.js +1 -8
  156. package/dist/utils/getCollectionInfo.d.ts.map +1 -1
  157. package/dist/utils/getCollectionInfo.js +1 -1
  158. package/dist/utils/getCollections.d.ts +11 -0
  159. package/dist/utils/getCollections.d.ts.map +1 -0
  160. package/dist/utils/getCollections.js +152 -0
  161. package/dist/utils/keyboard.d.ts +4 -4
  162. package/dist/utils/keyboard.d.ts.map +1 -1
  163. package/dist/utils/keyboard.js +21 -23
  164. package/dist/utils/sortResults.d.ts +3 -0
  165. package/dist/utils/sortResults.d.ts.map +1 -0
  166. package/dist/utils/sortResults.js +103 -0
  167. package/dist/utils/testConnection.d.ts +1 -1
  168. package/dist/utils/testConnection.d.ts.map +1 -1
  169. package/dist/utils/testConnection.js +2 -2
  170. package/dist/utils/vectorSearch.d.ts +2 -5
  171. package/dist/utils/vectorSearch.d.ts.map +1 -1
  172. package/dist/utils/vectorSearch.js +24 -12
  173. package/package.json +16 -15
  174. package/dist/components/HeadlessSearchInput.d.ts +0 -5
  175. package/dist/components/HeadlessSearchInput.d.ts.map +0 -1
  176. package/dist/components/HeadlessSearchInput.js +0 -204
  177. package/dist/lib/headlessSearch.d.ts +0 -86
  178. package/dist/lib/headlessSearch.d.ts.map +0 -1
  179. package/dist/utils/getAllCollections.d.ts +0 -11
  180. package/dist/utils/getAllCollections.d.ts.map +0 -1
  181. package/dist/utils/getAllCollections.js +0 -103
  182. package/dist/utils/useSearch.d.ts +0 -18
  183. package/dist/utils/useSearch.d.ts.map +0 -1
  184. package/dist/utils/useSearch.js +0 -66
  185. /package/dist/{utils → hooks}/useDebounce.d.ts +0 -0
  186. /package/dist/lib/{headlessSearch.js → search-input.js} +0 -0
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # PayloadCMS + Typesense Plugin
1
+ # Payload CMS + Typesense
2
2
 
3
- Rubix Studios' Typesense integration for Payload CMS is built for production search workflows, with a lightweight, modular structure and optional support for advanced capabilities such as vector querying.
4
-
5
- The plugin is actively maintained by Rubix Studios.
3
+ A Typesense search plugin for Payload CMS, maintained by [Rubix Studios](https://rubixstudios.com.au). It provides automatic document synchronisation, configurable search endpoints, optional vector search, and a React search component with customisable themes.
6
4
 
7
5
  [![npm version](https://img.shields.io/npm/v/@rubixstudios/payload-typesense.svg)](https://www.npmjs.com/package/@rubixstudios/payload-typesense)
8
- ![Release](https://github.com/rubix-studios-pty-ltd/payload-typesense/actions/workflows/release.yml/badge.svg)
6
+ [![Release](https://github.com/rubix-studios-pty-ltd/payload-typesense/actions/workflows/release.yml/badge.svg)](https://github.com/rubix-studios-pty-ltd/payload-typesense/actions/workflows/release.yml)
7
+
8
+ ![Search interface](https://github.com/user-attachments/assets/f97d0f07-0efb-4509-b144-837695bd677d)
9
9
 
10
10
  ## Installation
11
11
 
@@ -13,16 +13,18 @@ The plugin is actively maintained by Rubix Studios.
13
13
  pnpm add @rubixstudios/payload-typesense
14
14
  ```
15
15
 
16
+ Add the plugin to your Payload configuration and specify the collections you want indexed.
17
+
16
18
  ```typescript
17
19
  // payload.config.ts
18
- import { buildConfig } from 'payload/config'
20
+ import { buildConfig } from 'payload'
19
21
  import { typesenseSearch } from '@rubixstudios/payload-typesense'
20
22
 
21
23
  export default buildConfig({
22
24
  plugins: [
23
25
  typesenseSearch({
24
26
  typesense: {
25
- apiKey: 'xyz',
27
+ apiKey: process.env.TYPESENSE_API_KEY!,
26
28
  nodes: [
27
29
  {
28
30
  host: 'localhost',
@@ -38,31 +40,34 @@ export default buildConfig({
38
40
  facetFields: ['category', 'status'],
39
41
  displayName: 'Blog Posts',
40
42
  icon: '📝',
41
- syncLimit: 500, // Overrides the default sync limit of 1000
43
+ syncLimit: 500,
42
44
  },
43
45
  },
44
- // This feature is experimental
45
- vectorSearch: {
46
- enabled: true, // Enables vector-based semantic search
47
- embedFrom: ['title', 'content'], // Omit to fall back to collection searchFields
48
- embeddingModel: 'azure/text-embedding-ada-002',
49
- modelConfig: {
50
- api_key: 'your-api-key',
51
- url: 'https://modelendpoint.com/openai',
52
- },
53
46
  }),
54
47
  ],
55
48
  })
56
49
  ```
57
50
 
58
- ```tsx
51
+ The plugin initialises enabled collections in Typesense and synchronises existing documents during startup. Subsequent document changes and deletions are handled through Payload collection hooks when automatic synchronisation is enabled.
52
+
53
+ ### React search components
54
+
55
+ `HeadlessSearchInput` and `HeadlessSearchDialog` provide configurable search interfaces with keyboard navigation, loading states, result callbacks, and custom rendering support.
56
+
57
+ Both components support the same configuration options. Use `HeadlessSearchInput` for an inline search interface or `HeadlessSearchDialog` for a dialog-based search experience.
58
+
59
+ #### Search input
60
+
61
+ ```typescript
62
+ 'use client'
63
+
59
64
  import { HeadlessSearchInput } from '@rubixstudios/payload-typesense'
60
65
 
61
- export function GlobalSearchPage() {
66
+ export function GlobalSearch() {
62
67
  return (
63
68
  <HeadlessSearchInput
64
69
  baseUrl="http://localhost:3000"
65
- theme="modern" // Available themes: "modern" | "dark"
70
+ theme="modern"
66
71
  placeholder="Search everything..."
67
72
  onResultClick={(result) => {
68
73
  console.log('Selected document:', result.document)
@@ -70,27 +75,21 @@ export function GlobalSearchPage() {
70
75
  />
71
76
  )
72
77
  }
78
+ ```
73
79
 
74
- export function CollectionSearch() {
75
- return (
76
- <HeadlessSearchInput
77
- baseUrl="http://localhost:3000"
78
- collections={['posts', 'products']}
79
- placeholder="Search posts and products..."
80
- onResultClick={(result) => {
81
- console.log('Selected document:', result.document)
82
- }}
83
- />
84
- )
85
- }
80
+ #### Search dialog
81
+
82
+ ```typescript
83
+ 'use client'
84
+
85
+ import { HeadlessSearchDialog } from '@rubixstudios/payload-typesense'
86
86
 
87
- export function VectorSearch() {
87
+ export function GlobalSearch() {
88
88
  return (
89
- <HeadlessSearchInput
89
+ <HeadlessSearchDialog
90
90
  baseUrl="http://localhost:3000"
91
- vector={true} // Vector search enabled
92
- collections={['posts', 'products']}
93
- placeholder="Search posts and products..."
91
+ theme="modern"
92
+ placeholder="Search everything..."
94
93
  onResultClick={(result) => {
95
94
  console.log('Selected document:', result.document)
96
95
  }}
@@ -99,58 +98,79 @@ export function VectorSearch() {
99
98
  }
100
99
  ```
101
100
 
101
+ #### Collection filtering
102
+
103
+ Both components search all enabled collections by default. Use the `collections` prop to restrict results to specific collections.
104
+
105
+ ```typescript
106
+ <HeadlessSearchInput
107
+ baseUrl="http://localhost:3000"
108
+ collections={['posts', 'products']}
109
+ placeholder="Search posts and products..."
110
+ />
111
+ ```
112
+
113
+ The same configuration applies to `HeadlessSearchDialog`.
114
+
115
+ ```typescript
116
+ <HeadlessSearchDialog
117
+ baseUrl="http://localhost:3000"
118
+ collections={['posts', 'products']}
119
+ placeholder="Search posts and products..."
120
+ />
121
+ ```
122
+
123
+ Vector search can also be requested using the `vector` prop on either component when embedding support is configured.
124
+
102
125
  ## Features
103
126
 
104
- - **Performance**
105
- Sub-millisecond search responses with optimized request handling.
106
- - **Flexible Search**
107
- Single-collection, multi-collection, or universal search using one component.
108
- - **Vector Search**
109
- Optional semantic search using embeddings, with graceful fallback to keyword search.
110
- - **Modern UI**
111
- Headless, responsive implementation compatible with Tailwind CSS.
112
- - **Real-Time Synchronisation**
113
- Continuous indexing and sync with Payload CMS.
114
- - **Efficient Caching**
115
- In-memory caching with configurable TTL and race-condition safeguards.
116
- - **Production Ready**
117
- Robust error handling, deployment-safe defaults, and platform compatibility.
118
- - **Tree-Shakable Architecture**
119
- Modular design enabling smaller bundles and selective feature usage.
120
-
121
- ## Endpoints
122
-
123
- - `GET /api/search` - Universal search across all collections
124
- - `GET /api/search/{collection}` - Search specific collection
125
- - `POST /api/search/{collection}` - Advanced search with filters
126
- - `GET /api/search/{collection}/suggest` - Search suggestions
127
- - `GET /api/search/collections` - Collection metadata
128
- - `GET /api/search/health` - Health check
129
-
130
- ## Components
131
-
132
- - **HeadlessSearchInput**: Single component supporting all search patterns:
133
- - **Collections**: `collections={['posts', 'products']}` - Smart filtering with universal search
134
- - **Universal Search**: No collection props - Search across all collections
135
- - **Complete UI Control**: Customizable rendering with comprehensive theme system
127
+ The plugin supports keyword search across individual or multiple collections, with configurable searchable fields, filtering, sorting, faceting, and highlighting through Typesense. Search endpoints include in-memory caching to reduce repeated requests.
136
128
 
137
- ## Themes
129
+ Document synchronisation is handled through Payload hooks, while existing documents are indexed during initialisation. Optional vector search enables embedding-based queries through supported models and Typesense configuration.
138
130
 
139
- The plugin includes a powerful theme system with 2 pre-built themes and unlimited customization:
131
+ The included React component provides modern and dark themes, responsive styling, and custom rendering options without requiring a separate search UI library.
140
132
 
141
- ### Pre-built
133
+ ## API endpoints
142
134
 
143
- ```tsx
144
- // Modern theme (default)
145
- <HeadlessSearchInput theme="modern" />
135
+ Search endpoints are registered under Payload's `/api` path by default.
146
136
 
147
- // Dark theme
148
- <HeadlessSearchInput theme="dark" />
137
+ | Method | Endpoint | Purpose |
138
+ | ------ | ---------------------------------- | --------------------------- |
139
+ | GET | `/api/search` | Search across collections |
140
+ | GET | `/api/search/{collection}` | Search a collection |
141
+ | POST | `/api/search/{collection}` | Advanced search |
142
+ | GET | `/api/search/{collection}/suggest` | Search suggestions |
143
+ | GET | `/api/search/collections` | Available collections |
144
+ | GET | `/api/search/health` | Health status |
145
+ | GET | `/api/search/health/detailed` | Detailed health information |
146
+
147
+ Requests support pagination and the relevant Typesense search parameters. Vector search is available through the `vector=true` query parameter when enabled.
148
+
149
+ ## Vector search
150
+
151
+ Vector search is optional and experimental. Configure an embedding model and the fields used to generate embeddings.
152
+
153
+ ```typescript
154
+ vectorSearch: {
155
+ enabled: true,
156
+ embedFrom: ['title', 'content'],
157
+ embeddingModel: 'azure/text-embedding-ada-002',
158
+ modelConfig: {
159
+ api_key: process.env.EMBEDDING_API_KEY!,
160
+ url: 'https://modelendpoint.com/openai',
161
+ },
162
+ },
149
163
  ```
150
164
 
151
- ### Custom
165
+ When `embedFrom` is omitted, the plugin uses the collection's configured search fields. Embedding model credentials and endpoint settings depend on the selected provider.
166
+
167
+ To request vector search from the React component, pass `vector={true}`.
152
168
 
153
- ```tsx
169
+ ## Themes
170
+
171
+ Two themes are included, `modern` (default) and `dark`. Both can be customised using theme configuration options for colours, spacing, typography, shadows, and animations.
172
+
173
+ ```typescript
154
174
  const customTheme = {
155
175
  theme: 'modern',
156
176
  colors: {
@@ -166,47 +186,22 @@ const customTheme = {
166
186
  enableShadows: true,
167
187
  }
168
188
 
169
- <HeadlessSearchInput theme={customTheme} />
189
+ <HeadlessSearchInput
190
+ baseUrl="http://localhost:3000"
191
+ theme={customTheme}
192
+ />
170
193
  ```
171
194
 
172
- ### Theme Features
173
-
174
- - **2 Pre-built Themes**: Modern, Dark
175
- - **Unlimited Customization**: Override any color, spacing, typography, or animation
176
- - **Performance Options**: Disable animations/shadows for better performance
177
- - **Responsive Design**: Automatic mobile optimization
178
- - **CSS Variables**: Advanced styling with CSS custom properties
179
- - **TypeScript Support**: Full type safety for all theme configurations
180
-
181
- ## Production
182
-
183
- - **Race Condition Protection**: `ensureCollection` prevents startup crashes
184
- - **Type Safety**: Proper Payload CMS types prevent runtime errors
185
- - **Document Validation**: Filters malformed data before sync
186
- - **Graceful Degradation**: Silent failures don't break Payload operations
187
-
188
- ## Developer
189
-
190
- - **Smaller Components**: Easier to understand and maintain
191
- - **Maintainable**: Single Responsibility Principle enforced
192
- - **Well-Documented**: Clear separation of concerns
193
-
194
- ## License
195
-
196
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
195
+ The component also supports custom class names and rendering callbacks for more control over the search interface.
197
196
 
198
197
  ## Support
199
198
 
200
- For support or inquiries:
201
-
202
- - LinkedIn: [rubixvi](https://www.linkedin.com/in/rubixvi/)
203
- - Website: [Rubix Studios](https://rubixstudios.com.au)
199
+ For issues, questions, or feature requests, visit [GitHub Issues](https://github.com/rubix-studios-pty-ltd/payload-typesense/issues) or contact [Rubix Studios](https://rubixstudios.com.au).
204
200
 
205
- ## Author
201
+ ## License
206
202
 
207
- Rubix Studios
208
- [https://rubixstudios.com.au](https://rubixstudios.com.au)
203
+ Licensed under the MIT License. See [LICENSE](LICENSE) for details.
209
204
 
210
- ## Acknowledgments
205
+ ## Credits
211
206
 
212
- - [FrontTribe](https://github.com/FrontTribe/typesense-search)
207
+ Developed and maintained by [Rubix Studios](https://rubixstudios.com.au). Based on the original [FrontTribe Typesense Search](https://github.com/FrontTribe/typesense-search) project.
@@ -1,10 +1,11 @@
1
- import React, { type ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  import { type ThemeConfig, type ThemeContextValue } from './themes/types.js';
3
- interface ThemeProviderProps {
3
+ interface ProviderProps {
4
4
  children: ReactNode;
5
5
  config: ThemeConfig;
6
6
  }
7
- export declare function ThemeProvider({ children, config }: ThemeProviderProps): React.JSX.Element;
7
+ export declare function ThemeProvider({ children, config }: ProviderProps): import("react").JSX.Element;
8
8
  export declare function useTheme(): ThemeContextValue;
9
+ export declare function useComponentTheme(theme?: string | ThemeConfig): ThemeContextValue;
9
10
  export {};
10
11
  //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/components/ThemeProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAiB,KAAK,SAAS,EAAO,MAAM,OAAO,CAAA;AAGjE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAE5E,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,WAAW,CAAA;CACpB;AAID,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,kBAAkB,qBAIrE;AAED,wBAAgB,QAAQ,IAAI,iBAAiB,CAM5C"}
1
+ {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/components/ThemeProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,SAAS,EAAO,MAAM,OAAO,CAAA;AAG1D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAE5E,UAAU,aAAa;IACrB,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,WAAW,CAAA;CACpB;AAID,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,aAAa,+BAIhE;AAED,wBAAgB,QAAQ,IAAI,iBAAiB,CAQ5C;AAED,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,iBAAiB,CAKjF"}
@@ -1,12 +1,14 @@
1
1
  'use client';
2
- import React, { createContext, use } from 'react';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { createContext, use } from 'react';
3
4
  import { useThemeConfig } from './themes/hooks.js';
4
5
  const ThemeContext = /*#__PURE__*/ createContext(null);
5
6
  export function ThemeProvider({ children, config }) {
6
- const themeContext = useThemeConfig(config);
7
- return /*#__PURE__*/ React.createElement(ThemeContext, {
8
- value: themeContext
9
- }, children);
7
+ const value = useThemeConfig(config);
8
+ return /*#__PURE__*/ _jsx(ThemeContext, {
9
+ value: value,
10
+ children: children
11
+ });
10
12
  }
11
13
  export function useTheme() {
12
14
  const context = use(ThemeContext);
@@ -15,3 +17,11 @@ export function useTheme() {
15
17
  }
16
18
  return context;
17
19
  }
20
+ export function useComponentTheme(theme) {
21
+ const context = use(ThemeContext);
22
+ return useThemeConfig(typeof theme === 'string' ? {
23
+ theme
24
+ } : theme ?? context?.config ?? {
25
+ theme: 'modern'
26
+ });
27
+ }
@@ -0,0 +1,2 @@
1
+ export declare const ClockIcon: () => import("react").JSX.Element;
2
+ //# sourceMappingURL=clockIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clockIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/clockIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,mCAarB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const ClockIcon = ()=>/*#__PURE__*/ _jsx("svg", {
3
+ "aria-hidden": "true",
4
+ fill: "currentColor",
5
+ style: {
6
+ height: '12px',
7
+ marginRight: '4px',
8
+ width: '12px'
9
+ },
10
+ viewBox: "0 0 20 20",
11
+ children: /*#__PURE__*/ _jsx("path", {
12
+ clipRule: "evenodd",
13
+ d: "M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z",
14
+ fillRule: "evenodd"
15
+ })
16
+ });
@@ -0,0 +1,2 @@
1
+ export declare const CollectionIcon: () => import("react").JSX.Element;
2
+ //# sourceMappingURL=collectionIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collectionIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/collectionIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mCAa1B,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const CollectionIcon = ()=>/*#__PURE__*/ _jsx("svg", {
3
+ "aria-hidden": "true",
4
+ fill: "currentColor",
5
+ style: {
6
+ height: '12px',
7
+ marginRight: '4px',
8
+ width: '12px'
9
+ },
10
+ viewBox: "0 0 20 20",
11
+ children: /*#__PURE__*/ _jsx("path", {
12
+ clipRule: "evenodd",
13
+ d: "M3 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm0 4a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",
14
+ fillRule: "evenodd"
15
+ })
16
+ });
@@ -0,0 +1,2 @@
1
+ export declare const ErrorIcon: () => import("react").JSX.Element;
2
+ //# sourceMappingURL=errorIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/errorIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,mCAarB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const ErrorIcon = ()=>/*#__PURE__*/ _jsx("svg", {
3
+ "aria-hidden": "true",
4
+ fill: "currentColor",
5
+ style: {
6
+ flexShrink: 0,
7
+ height: '20px',
8
+ width: '20px'
9
+ },
10
+ viewBox: "0 0 20 20",
11
+ children: /*#__PURE__*/ _jsx("path", {
12
+ clipRule: "evenodd",
13
+ d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",
14
+ fillRule: "evenodd"
15
+ })
16
+ });
@@ -0,0 +1,7 @@
1
+ export { ClockIcon } from './clockIcon.js';
2
+ export { CollectionIcon } from './collectionIcon.js';
3
+ export { ErrorIcon } from './errorIcon.js';
4
+ export { NoResultsIcon } from './noResultsIcon.js';
5
+ export { SearchIcon } from './searchIcon.js';
6
+ export { XIcon } from './xIcon.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,6 @@
1
+ export { ClockIcon } from './clockIcon.js';
2
+ export { CollectionIcon } from './collectionIcon.js';
3
+ export { ErrorIcon } from './errorIcon.js';
4
+ export { NoResultsIcon } from './noResultsIcon.js';
5
+ export { SearchIcon } from './searchIcon.js';
6
+ export { XIcon } from './xIcon.js';
@@ -0,0 +1,4 @@
1
+ export declare const NoResultsIcon: ({ color }: {
2
+ color?: string;
3
+ }) => import("react").JSX.Element;
4
+ //# sourceMappingURL=noResultsIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noResultsIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/noResultsIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,cAAgC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,gCAoB3E,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const NoResultsIcon = ({ color = 'currentColor' })=>/*#__PURE__*/ _jsx("svg", {
3
+ "aria-hidden": "true",
4
+ fill: "none",
5
+ stroke: "currentColor",
6
+ style: {
7
+ color,
8
+ height: '48px',
9
+ marginBottom: '12px',
10
+ width: '48px'
11
+ },
12
+ viewBox: "0 0 24 24",
13
+ children: /*#__PURE__*/ _jsx("path", {
14
+ d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",
15
+ strokeLinecap: "round",
16
+ strokeLinejoin: "round",
17
+ strokeWidth: 1
18
+ })
19
+ });
@@ -0,0 +1,4 @@
1
+ export declare const SearchIcon: ({ color }: {
2
+ color?: string;
3
+ }) => import("react").JSX.Element;
4
+ //# sourceMappingURL=searchIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/searchIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,cAAgC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,gCAaxE,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const SearchIcon = ({ color = 'currentColor' })=>/*#__PURE__*/ _jsx("svg", {
3
+ "aria-hidden": "true",
4
+ fill: "currentColor",
5
+ style: {
6
+ color,
7
+ height: '16px',
8
+ width: '16px'
9
+ },
10
+ viewBox: "0 0 20 20",
11
+ children: /*#__PURE__*/ _jsx("path", {
12
+ clipRule: "evenodd",
13
+ d: "M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",
14
+ fillRule: "evenodd"
15
+ })
16
+ });
@@ -0,0 +1,2 @@
1
+ export declare const XIcon: () => import("react").JSX.Element;
2
+ //# sourceMappingURL=xIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/xIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,mCAajB,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const XIcon = ()=>/*#__PURE__*/ _jsx("svg", {
3
+ "aria-hidden": "true",
4
+ fill: "none",
5
+ stroke: "currentColor",
6
+ strokeLinecap: "round",
7
+ strokeLinejoin: "round",
8
+ strokeWidth: "2",
9
+ style: {
10
+ height: '16px',
11
+ width: '16px'
12
+ },
13
+ viewBox: "0 0 24 24",
14
+ children: /*#__PURE__*/ _jsx("path", {
15
+ d: "M18 6 6 18M6 6l12 12"
16
+ })
17
+ });
@@ -1,7 +1,12 @@
1
- export type { HeadlessSearchInputProps } from '../lib/headlessSearch.js';
2
- export type { BaseSearchInputProps, HealthCheckResponse, SearchResponse, SearchResult, SearchResultProps, TypesenseSearchConfig, } from '../types.js';
3
- export { default as HeadlessSearchInput } from './HeadlessSearchInput.js';
4
- export { RenderedHeader, RenderedNoResults, RenderedResult, RenderedResultError, } from './render/index.js';
5
- export { ThemeProvider } from './ThemeProvider.js';
1
+ export type { SearchDialogContentProps, SearchDialogProps, } from '../lib/search-dialog.js';
2
+ export type { SearchInputProps } from '../lib/search-input.js';
3
+ export type { SearchPaginationProps } from '../lib/search-pagination.js';
4
+ export type { BaseSearchInputProps, HealthCheckResponse, SearchMode, SearchResponse, SearchResult, SearchResultProps, TypesenseSearchConfig, TypoTolerance, } from '../types.js';
5
+ export { ClockIcon, CollectionIcon, ErrorIcon, NoResultsIcon, SearchIcon, XIcon, } from './icons/index.js';
6
+ export { Highlight, RenderedContent, RenderedDialog, RenderedHeader, RenderedNoResults, RenderedResult, RenderedResultError, } from './render/index.js';
7
+ export { default as HeadlessSearchDialog } from './search/HeadlessDialog.js';
8
+ export { default as HeadlessSearchInput } from './search/HeadlessInput.js';
9
+ export { SearchStyles } from './search/SearchStyles.js';
10
+ export { ThemeProvider, useTheme } from './ThemeProvider.js';
6
11
  export * from './themes/index.js';
7
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AACxE,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACzE,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,mBAAmB,GACpB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,yBAAyB,CAAA;AAChC,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,aAAa,GACd,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,SAAS,EACT,cAAc,EACd,SAAS,EACT,aAAa,EACb,UAAU,EACV,KAAK,GACN,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,SAAS,EACT,eAAe,EACf,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,mBAAmB,GACpB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAC5E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC5D,cAAc,mBAAmB,CAAA"}
@@ -1,4 +1,7 @@
1
- export { default as HeadlessSearchInput } from './HeadlessSearchInput.js';
2
- export { RenderedHeader, RenderedNoResults, RenderedResult, RenderedResultError } from './render/index.js';
3
- export { ThemeProvider } from './ThemeProvider.js';
1
+ export { ClockIcon, CollectionIcon, ErrorIcon, NoResultsIcon, SearchIcon, XIcon } from './icons/index.js';
2
+ export { Highlight, RenderedContent, RenderedDialog, RenderedHeader, RenderedNoResults, RenderedResult, RenderedResultError } from './render/index.js';
3
+ export { default as HeadlessSearchDialog } from './search/HeadlessDialog.js';
4
+ export { default as HeadlessSearchInput } from './search/HeadlessInput.js';
5
+ export { SearchStyles } from './search/SearchStyles.js';
6
+ export { ThemeProvider, useTheme } from './ThemeProvider.js';
4
7
  export * from './themes/index.js';
@@ -0,0 +1,26 @@
1
+ import React, { type RefObject } from 'react';
2
+ import { type useSearch } from '../../hooks/useSearch.js';
3
+ import { type SearchDialogProps } from '../../lib/search-dialog.js';
4
+ import { type SearchPaginationProps } from '../../lib/search-pagination.js';
5
+ import { type SearchResult } from '../../types.js';
6
+ import { type ThemeContextValue } from '../themes/index.js';
7
+ type Props<T> = Pick<SearchDialogProps<T>, 'renderInput' | 'showLoading' | 'renderLoading' | 'loadingClassName' | 'inputWrapperClassName' | 'resultsContainerClassName' | 'resultsClassName' | 'renderError' | 'errorClassName' | 'showResultCount' | 'renderResultsHeader' | 'resultsHeaderClassName' | 'resultsListClassName' | 'renderResult' | 'onResultHover' | 'renderDate' | 'resultItemClassName' | 'renderNoResults' | 'noResultsClassName' | 'renderEmpty' | 'showPagination' | 'renderPagination' | 'paginationClassName' | 'paginationButtonClassName' | 'previousPageLabel' | 'nextPageLabel'> & {
8
+ query: string;
9
+ page: number;
10
+ results: ReturnType<typeof useSearch<T>>['results'];
11
+ error: ReturnType<typeof useSearch<T>>['error'];
12
+ isLoading: boolean;
13
+ isOpen: boolean;
14
+ resultsId: string;
15
+ inputProps: Parameters<NonNullable<SearchDialogProps<T>['renderInput']>>[0];
16
+ inputRef: RefObject<HTMLInputElement | null>;
17
+ resultsRef: RefObject<HTMLDivElement | null>;
18
+ pagination: SearchPaginationProps;
19
+ totalPages: number;
20
+ changePage: (page: number) => void;
21
+ clickResult: (result: SearchResult<T>) => void;
22
+ themeConfig: ThemeContextValue;
23
+ };
24
+ export declare function RenderedContent<T = Record<string, unknown>>({ renderInput, showLoading, renderLoading, loadingClassName, inputWrapperClassName, resultsContainerClassName, resultsClassName, renderError, errorClassName, showResultCount, renderResultsHeader, resultsHeaderClassName, resultsListClassName, renderResult, onResultHover, renderDate, resultItemClassName, renderNoResults, noResultsClassName, renderEmpty, showPagination, renderPagination, paginationClassName, paginationButtonClassName, previousPageLabel, nextPageLabel, query, page, results, error, isLoading, isOpen, resultsId, inputProps, inputRef, resultsRef, pagination, totalPages, changePage, clickResult, themeConfig, }: Props<T>): React.JSX.Element;
25
+ export {};
26
+ //# sourceMappingURL=Content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../src/components/render/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAA;AAE1E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AACnE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAA;AAC3E,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAM3D,KAAK,KAAK,CAAC,CAAC,IAAI,IAAI,CAClB,iBAAiB,CAAC,CAAC,CAAC,EAClB,aAAa,GACb,aAAa,GACb,eAAe,GACf,kBAAkB,GAClB,uBAAuB,GACvB,2BAA2B,GAC3B,kBAAkB,GAClB,aAAa,GACb,gBAAgB,GAChB,iBAAiB,GACjB,qBAAqB,GACrB,wBAAwB,GACxB,sBAAsB,GACtB,cAAc,GACd,eAAe,GACf,YAAY,GACZ,qBAAqB,GACrB,iBAAiB,GACjB,oBAAoB,GACpB,aAAa,GACb,gBAAgB,GAChB,kBAAkB,GAClB,qBAAqB,GACrB,2BAA2B,GAC3B,mBAAmB,GACnB,eAAe,CAClB,GAAG;IACF,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAC/C,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,UAAU,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3E,QAAQ,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;IAC5C,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC5C,UAAU,EAAE,qBAAqB,CAAA;IACjC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,WAAW,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAA;IAC9C,WAAW,EAAE,iBAAiB,CAAA;CAC/B,CAAA;AAED,wBAAgB,eAAe,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAC3D,WAAW,EACX,WAAkB,EAClB,aAAa,EACb,gBAAqB,EACrB,qBAA0B,EAC1B,yBAA8B,EAC9B,gBAAqB,EACrB,WAAW,EACX,cAAmB,EACnB,eAAsB,EACtB,mBAAmB,EACnB,sBAA2B,EAC3B,oBAAyB,EACzB,YAAY,EACZ,aAAa,EACb,UAAiB,EACjB,mBAAwB,EACxB,eAAe,EACf,kBAAuB,EACvB,WAAW,EACX,cAAqB,EACrB,gBAAgB,EAChB,mBAAwB,EACxB,yBAA8B,EAC9B,iBAA8B,EAC9B,aAAsB,EACtB,KAAK,EACL,IAAI,EACJ,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,EACN,SAAS,EACT,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,WAAW,GACZ,EAAE,KAAK,CAAC,CAAC,CAAC,qBA6JV"}