@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.
- package/README.md +109 -114
- package/dist/components/ThemeProvider.d.ts +4 -3
- package/dist/components/ThemeProvider.d.ts.map +1 -1
- package/dist/components/ThemeProvider.js +15 -5
- package/dist/components/icons/clockIcon.d.ts +2 -0
- package/dist/components/icons/clockIcon.d.ts.map +1 -0
- package/dist/components/icons/clockIcon.js +16 -0
- package/dist/components/icons/collectionIcon.d.ts +2 -0
- package/dist/components/icons/collectionIcon.d.ts.map +1 -0
- package/dist/components/icons/collectionIcon.js +16 -0
- package/dist/components/icons/errorIcon.d.ts +2 -0
- package/dist/components/icons/errorIcon.d.ts.map +1 -0
- package/dist/components/icons/errorIcon.js +16 -0
- package/dist/components/icons/index.d.ts +7 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/icons/index.js +6 -0
- package/dist/components/icons/noResultsIcon.d.ts +4 -0
- package/dist/components/icons/noResultsIcon.d.ts.map +1 -0
- package/dist/components/icons/noResultsIcon.js +19 -0
- package/dist/components/icons/searchIcon.d.ts +4 -0
- package/dist/components/icons/searchIcon.d.ts.map +1 -0
- package/dist/components/icons/searchIcon.js +16 -0
- package/dist/components/icons/xIcon.d.ts +2 -0
- package/dist/components/icons/xIcon.d.ts.map +1 -0
- package/dist/components/icons/xIcon.js +17 -0
- package/dist/components/index.d.ts +10 -5
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +6 -3
- package/dist/components/render/Content.d.ts +26 -0
- package/dist/components/render/Content.d.ts.map +1 -0
- package/dist/components/render/Content.js +144 -0
- package/dist/components/render/Dialog.d.ts +20 -0
- package/dist/components/render/Dialog.d.ts.map +1 -0
- package/dist/components/render/Dialog.js +43 -0
- package/dist/components/render/Header.d.ts +4 -4
- package/dist/components/render/Header.d.ts.map +1 -1
- package/dist/components/render/Header.js +20 -39
- package/dist/components/render/Highlight.d.ts +3 -0
- package/dist/components/render/Highlight.d.ts.map +1 -0
- package/dist/components/render/Highlight.js +22 -0
- package/dist/components/render/NoResults.d.ts +4 -4
- package/dist/components/render/NoResults.d.ts.map +1 -1
- package/dist/components/render/NoResults.js +21 -45
- package/dist/components/render/ResultError.d.ts +4 -4
- package/dist/components/render/ResultError.d.ts.map +1 -1
- package/dist/components/render/ResultError.js +14 -38
- package/dist/components/render/Results.d.ts +7 -6
- package/dist/components/render/Results.d.ts.map +1 -1
- package/dist/components/render/Results.js +70 -141
- package/dist/components/render/index.d.ts +7 -4
- package/dist/components/render/index.d.ts.map +1 -1
- package/dist/components/render/index.js +7 -4
- package/dist/components/search/HeadlessDialog.d.ts +5 -0
- package/dist/components/search/HeadlessDialog.d.ts.map +1 -0
- package/dist/components/search/HeadlessDialog.js +254 -0
- package/dist/components/search/HeadlessInput.d.ts +5 -0
- package/dist/components/search/HeadlessInput.d.ts.map +1 -0
- package/dist/components/search/HeadlessInput.js +193 -0
- package/dist/components/search/SearchStyles.d.ts +8 -0
- package/dist/components/search/SearchStyles.d.ts.map +1 -0
- package/dist/components/search/SearchStyles.js +9 -0
- package/dist/components/themes/constant.d.ts +3 -0
- package/dist/components/themes/constant.d.ts.map +1 -0
- package/dist/components/themes/constant.js +75 -0
- package/dist/components/themes/hooks.d.ts +4 -42
- package/dist/components/themes/hooks.d.ts.map +1 -1
- package/dist/components/themes/hooks.js +35 -95
- package/dist/components/themes/index.d.ts +1 -0
- package/dist/components/themes/index.d.ts.map +1 -1
- package/dist/components/themes/index.js +1 -0
- package/dist/components/themes/themes.d.ts.map +1 -1
- package/dist/components/themes/themes.js +66 -27
- package/dist/components/themes/types.d.ts +62 -2
- package/dist/components/themes/types.d.ts.map +1 -1
- package/dist/components/themes/utils.d.ts +13 -18
- package/dist/components/themes/utils.d.ts.map +1 -1
- package/dist/components/themes/utils.js +466 -344
- package/dist/components/utils/decodeEntities.d.ts +2 -0
- package/dist/components/utils/decodeEntities.d.ts.map +1 -0
- package/dist/components/utils/decodeEntities.js +23 -0
- package/dist/components/utils/index.d.ts +4 -0
- package/dist/components/utils/index.d.ts.map +1 -0
- package/dist/components/utils/index.js +3 -0
- package/dist/components/utils/toKebab.d.ts +2 -0
- package/dist/components/utils/toKebab.d.ts.map +1 -0
- package/dist/components/utils/toKebab.js +3 -0
- package/dist/components/utils/toText.d.ts +2 -0
- package/dist/components/utils/toText.d.ts.map +1 -0
- package/dist/components/utils/toText.js +3 -0
- package/dist/endpoints/handler/createAdvancedSearch.d.ts +1 -1
- package/dist/endpoints/handler/createAdvancedSearch.d.ts.map +1 -1
- package/dist/endpoints/handler/createAdvancedSearch.js +133 -11
- package/dist/endpoints/handler/createCollections.d.ts +1 -1
- package/dist/endpoints/handler/createCollections.d.ts.map +1 -1
- package/dist/endpoints/handler/createCollections.js +8 -8
- package/dist/endpoints/handler/createSearch.d.ts +1 -1
- package/dist/endpoints/handler/createSearch.d.ts.map +1 -1
- package/dist/endpoints/handler/createSearch.js +85 -110
- package/dist/endpoints/handler/createSuggest.d.ts +1 -1
- package/dist/endpoints/handler/createSuggest.d.ts.map +1 -1
- package/dist/endpoints/handler/createSuggest.js +39 -22
- package/dist/endpoints/health.d.ts +2 -2
- package/dist/endpoints/health.d.ts.map +1 -1
- package/dist/endpoints/health.js +58 -52
- package/dist/endpoints/search.d.ts +2 -9
- package/dist/endpoints/search.d.ts.map +1 -1
- package/dist/endpoints/search.js +17 -16
- package/dist/{utils → hooks}/useDebounce.d.ts.map +1 -1
- package/dist/{utils → hooks}/useDebounce.js +2 -2
- package/dist/hooks/useSearch.d.ts +21 -0
- package/dist/hooks/useSearch.d.ts.map +1 -0
- package/dist/hooks/useSearch.js +126 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -34
- package/dist/lib/cache.d.ts.map +1 -1
- package/dist/lib/cache.js +54 -25
- package/dist/lib/client.d.ts +1 -1
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +35 -31
- package/dist/lib/hooks.d.ts +3 -11
- package/dist/lib/hooks.d.ts.map +1 -1
- package/dist/lib/hooks.js +15 -45
- package/dist/lib/initialization.d.ts +1 -1
- package/dist/lib/initialization.d.ts.map +1 -1
- package/dist/lib/initialization.js +54 -52
- package/dist/lib/schema-mapper.d.ts +3 -6
- package/dist/lib/schema-mapper.d.ts.map +1 -1
- package/dist/lib/schema-mapper.js +90 -84
- package/dist/lib/search-dialog.d.ts +169 -0
- package/dist/lib/search-dialog.d.ts.map +1 -0
- package/dist/lib/search-dialog.js +4 -0
- package/dist/lib/search-input.d.ts +93 -0
- package/dist/lib/search-input.d.ts.map +1 -0
- package/dist/lib/search-pagination.d.ts +38 -0
- package/dist/lib/search-pagination.d.ts.map +1 -0
- package/dist/lib/search-pagination.js +4 -0
- package/dist/lib/search.d.ts +25 -0
- package/dist/lib/search.d.ts.map +1 -0
- package/dist/lib/search.js +59 -0
- package/dist/lib/validation.d.ts +57 -39
- package/dist/lib/validation.d.ts.map +1 -1
- package/dist/lib/validation.js +92 -66
- package/dist/types.d.ts +193 -127
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/utils/buildError.d.ts +1 -1
- package/dist/utils/buildError.d.ts.map +1 -1
- package/dist/utils/buildError.js +2 -2
- package/dist/utils/ensureCollection.d.ts +2 -2
- package/dist/utils/ensureCollection.d.ts.map +1 -1
- package/dist/utils/ensureCollection.js +138 -22
- package/dist/utils/extractText.d.ts.map +1 -1
- package/dist/utils/extractText.js +11 -8
- package/dist/utils/getCacheStats.d.ts.map +1 -1
- package/dist/utils/getCacheStats.js +1 -8
- package/dist/utils/getCollectionInfo.d.ts.map +1 -1
- package/dist/utils/getCollectionInfo.js +1 -1
- package/dist/utils/getCollections.d.ts +11 -0
- package/dist/utils/getCollections.d.ts.map +1 -0
- package/dist/utils/getCollections.js +152 -0
- package/dist/utils/keyboard.d.ts +4 -4
- package/dist/utils/keyboard.d.ts.map +1 -1
- package/dist/utils/keyboard.js +21 -23
- package/dist/utils/sortResults.d.ts +3 -0
- package/dist/utils/sortResults.d.ts.map +1 -0
- package/dist/utils/sortResults.js +103 -0
- package/dist/utils/testConnection.d.ts +1 -1
- package/dist/utils/testConnection.d.ts.map +1 -1
- package/dist/utils/testConnection.js +2 -2
- package/dist/utils/vectorSearch.d.ts +2 -5
- package/dist/utils/vectorSearch.d.ts.map +1 -1
- package/dist/utils/vectorSearch.js +24 -12
- package/package.json +16 -15
- package/dist/components/HeadlessSearchInput.d.ts +0 -5
- package/dist/components/HeadlessSearchInput.d.ts.map +0 -1
- package/dist/components/HeadlessSearchInput.js +0 -204
- package/dist/lib/headlessSearch.d.ts +0 -86
- package/dist/lib/headlessSearch.d.ts.map +0 -1
- package/dist/utils/getAllCollections.d.ts +0 -11
- package/dist/utils/getAllCollections.d.ts.map +0 -1
- package/dist/utils/getAllCollections.js +0 -103
- package/dist/utils/useSearch.d.ts +0 -18
- package/dist/utils/useSearch.d.ts.map +0 -1
- package/dist/utils/useSearch.js +0 -66
- /package/dist/{utils → hooks}/useDebounce.d.ts +0 -0
- /package/dist/lib/{headlessSearch.js → search-input.js} +0 -0
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Payload CMS + Typesense
|
|
2
2
|
|
|
3
|
-
|
|
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
|
[](https://www.npmjs.com/package/@rubixstudios/payload-typesense)
|
|
8
|
-

|
|
6
|
+
[](https://github.com/rubix-studios-pty-ltd/payload-typesense/actions/workflows/release.yml)
|
|
7
|
+
|
|
8
|
+

|
|
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
|
|
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:
|
|
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,
|
|
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
|
-
|
|
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
|
|
66
|
+
export function GlobalSearch() {
|
|
62
67
|
return (
|
|
63
68
|
<HeadlessSearchInput
|
|
64
69
|
baseUrl="http://localhost:3000"
|
|
65
|
-
theme="modern"
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
|
87
|
+
export function GlobalSearch() {
|
|
88
88
|
return (
|
|
89
|
-
<
|
|
89
|
+
<HeadlessSearchDialog
|
|
90
90
|
baseUrl="http://localhost:3000"
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
133
|
+
## API endpoints
|
|
142
134
|
|
|
143
|
-
|
|
144
|
-
// Modern theme (default)
|
|
145
|
-
<HeadlessSearchInput theme="modern" />
|
|
135
|
+
Search endpoints are registered under Payload's `/api` path by default.
|
|
146
136
|
|
|
147
|
-
|
|
148
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
189
|
+
<HeadlessSearchInput
|
|
190
|
+
baseUrl="http://localhost:3000"
|
|
191
|
+
theme={customTheme}
|
|
192
|
+
/>
|
|
170
193
|
```
|
|
171
194
|
|
|
172
|
-
|
|
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
|
|
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
|
-
##
|
|
201
|
+
## License
|
|
206
202
|
|
|
207
|
-
|
|
208
|
-
[https://rubixstudios.com.au](https://rubixstudios.com.au)
|
|
203
|
+
Licensed under the MIT License. See [LICENSE](LICENSE) for details.
|
|
209
204
|
|
|
210
|
-
##
|
|
205
|
+
## Credits
|
|
211
206
|
|
|
212
|
-
|
|
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
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
import { type ThemeConfig, type ThemeContextValue } from './themes/types.js';
|
|
3
|
-
interface
|
|
3
|
+
interface ProviderProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
config: ThemeConfig;
|
|
6
6
|
}
|
|
7
|
-
export declare function ThemeProvider({ children, config }:
|
|
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,
|
|
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
|
|
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
|
|
7
|
-
return /*#__PURE__*/
|
|
8
|
-
value:
|
|
9
|
-
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 {
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
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,
|
|
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"}
|
package/dist/components/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { RenderedHeader, RenderedNoResults, RenderedResult, RenderedResultError } from './render/index.js';
|
|
3
|
-
export {
|
|
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"}
|