@redsift/ds-mcp-server 12.6.1 → 12.6.3
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/data/docs/components/products/SignalCardBimi.json +12 -0
- package/data/docs/components/products/SignalCardList.json +12 -0
- package/data/docs/components/table/StatefulDataGrid.json +1 -1
- package/data/docs/components/table-pro/StatefulDataGrid.json +1 -1
- package/data/docs/components-index.json +4 -4
- package/data/docs/components.json +28 -4
- package/data/docs/llms-full.txt +25 -9
- package/data/docs/llms.txt +4 -4
- package/data/metadata.json +2 -2
- package/data/patterns/stateful-single-datagrid-client-side.mdx +18 -0
- package/data/patterns/stateful-single-datagrid-server-side.mdx +18 -0
- package/dist/index.js +0 -0
- package/package.json +2 -2
|
@@ -12,6 +12,18 @@
|
|
|
12
12
|
"defaultValue": null,
|
|
13
13
|
"category": "props"
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
"name": "bimiMakerPromo",
|
|
17
|
+
"description": "Promote BIMI Maker when the result is eligible (`getBimiMakerEligibility` from\n`@redsift/signal-logic` returns `'missing'` or `'incomplete'`). Off by default.\nRendered after the card sections and before `renderFooter`, and independent of\n`renderHeader` and the `promo*` props.",
|
|
18
|
+
"type": [
|
|
19
|
+
"false",
|
|
20
|
+
"true",
|
|
21
|
+
"BimiMakerPromoOptions"
|
|
22
|
+
],
|
|
23
|
+
"required": false,
|
|
24
|
+
"defaultValue": null,
|
|
25
|
+
"category": "props"
|
|
26
|
+
},
|
|
15
27
|
{
|
|
16
28
|
"name": "onComponentMount",
|
|
17
29
|
"description": "Optional callback invoked when the component mounts.",
|
|
@@ -106,6 +106,18 @@
|
|
|
106
106
|
"defaultValue": null,
|
|
107
107
|
"category": "props"
|
|
108
108
|
},
|
|
109
|
+
{
|
|
110
|
+
"name": "bimiMakerPromo",
|
|
111
|
+
"description": "Promote BIMI Maker on the BIMI card when `getBimiMakerEligibility` (from `@redsift/signal-logic`)\nreturns `'missing'` or `'incomplete'`. Opt-in: `undefined`/`false` → off, `true` → on with the\ndefault href (`https://redsift.com/tools/bimi-maker`), `{ href?, onClick?(reason) }` → on with\noverrides. Rendered after the BIMI card's sections and before `renderCardFooter`; unaffected by\n`renderCardHeader` and the `cardPromo*` props, and not gated on `recommendations`.",
|
|
112
|
+
"type": [
|
|
113
|
+
"false",
|
|
114
|
+
"true",
|
|
115
|
+
"BimiMakerPromoOptions"
|
|
116
|
+
],
|
|
117
|
+
"required": false,
|
|
118
|
+
"defaultValue": null,
|
|
119
|
+
"category": "props"
|
|
120
|
+
},
|
|
109
121
|
{
|
|
110
122
|
"name": "prioritySectionHeading",
|
|
111
123
|
"description": "Heading text for the priority signals section.\nDefaults to \"Required for the selected compliance profile\"",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "StatefulDataGrid",
|
|
3
|
-
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to localStorage.\
|
|
3
|
+
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to the URL and localStorage.\nFilters, sorting, pagination, column visibility, column order, pinned\ncolumns, density, row grouping, aggregation and pivot are written to the URL\nquery string and to localStorage; column widths are kept in localStorage\nonly. On load the URL wins, then localStorage, then `initialState`, so state\nsurvives page refreshes and a copied URL reopens the same view.\n\nUse when users need persistent table preferences or shareable filtered views.\nRequires a `useRouter` hook returning `{ pathname, search, historyReplace }`\n(`createReactRouterV5Adapter` builds one from a React Router v5 `history`).\nState is stored in localStorage under the `pathname` it returns, and\nversioned by `localStorageVersion` (a number, default `1`).",
|
|
4
4
|
"package": "@redsift/table",
|
|
5
5
|
"filePath": "packages/table/src/components/StatefulDataGrid/StatefulDataGrid.tsx",
|
|
6
6
|
"props": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "StatefulDataGrid",
|
|
3
|
-
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to localStorage.\
|
|
3
|
+
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to the URL and localStorage.\nFilters, sorting, pagination, column visibility, column order, pinned\ncolumns and density are written to the URL query string and to localStorage;\ncolumn widths are kept in localStorage only. On load the URL wins, then\nlocalStorage, then `initialState`, so state survives page refreshes and a\ncopied URL reopens the same view.\n\nUse when users need persistent table preferences or shareable filtered views.\nRequires a `useRouter` hook returning `{ pathname, search, historyReplace }`\n(`createReactRouterV5Adapter` builds one from a React Router v5 `history`).\nState is stored in localStorage under the `pathname` it returns, and\nversioned by `localStorageVersion` (a number, default `1`).",
|
|
4
4
|
"package": "@redsift/table-pro",
|
|
5
5
|
"filePath": "packages/table-pro/src/components/StatefulDataGrid/StatefulDataGrid.tsx",
|
|
6
6
|
"props": [
|
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
{
|
|
1086
1086
|
"name": "StatefulDataGrid",
|
|
1087
1087
|
"package": "@redsift/table",
|
|
1088
|
-
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to localStorage.",
|
|
1088
|
+
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to the URL and localStorage.",
|
|
1089
1089
|
"propsCount": 13,
|
|
1090
1090
|
"hasExamples": false,
|
|
1091
1091
|
"keywords": [
|
|
@@ -1154,7 +1154,7 @@
|
|
|
1154
1154
|
{
|
|
1155
1155
|
"name": "StatefulDataGrid",
|
|
1156
1156
|
"package": "@redsift/table-pro",
|
|
1157
|
-
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to localStorage.",
|
|
1157
|
+
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to the URL and localStorage.",
|
|
1158
1158
|
"propsCount": 13,
|
|
1159
1159
|
"hasExamples": false,
|
|
1160
1160
|
"keywords": [
|
|
@@ -1335,7 +1335,7 @@
|
|
|
1335
1335
|
"name": "SignalCardBimi",
|
|
1336
1336
|
"package": "@redsift/products",
|
|
1337
1337
|
"description": "SignalCardBimi displays BIMI validation results including DMARC compliance,",
|
|
1338
|
-
"propsCount":
|
|
1338
|
+
"propsCount": 15,
|
|
1339
1339
|
"hasExamples": false
|
|
1340
1340
|
},
|
|
1341
1341
|
{
|
|
@@ -1391,7 +1391,7 @@
|
|
|
1391
1391
|
"name": "SignalCardList",
|
|
1392
1392
|
"package": "@redsift/products",
|
|
1393
1393
|
"description": "",
|
|
1394
|
-
"propsCount":
|
|
1394
|
+
"propsCount": 27,
|
|
1395
1395
|
"hasExamples": false
|
|
1396
1396
|
},
|
|
1397
1397
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"name": "Red Sift Design System",
|
|
4
|
-
"version": "12.6.
|
|
5
|
-
"generated": "2026-
|
|
4
|
+
"version": "12.6.2",
|
|
5
|
+
"generated": "2026-10-02T12:21:38.120Z",
|
|
6
6
|
"repository": "https://github.com/redsift/design-system",
|
|
7
7
|
"documentation": "https://design-system.redsift.io",
|
|
8
8
|
"packages": [
|
|
@@ -41750,7 +41750,7 @@
|
|
|
41750
41750
|
},
|
|
41751
41751
|
{
|
|
41752
41752
|
"name": "StatefulDataGrid",
|
|
41753
|
-
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to localStorage.\
|
|
41753
|
+
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to the URL and localStorage.\nFilters, sorting, pagination, column visibility, column order, pinned\ncolumns, density, row grouping, aggregation and pivot are written to the URL\nquery string and to localStorage; column widths are kept in localStorage\nonly. On load the URL wins, then localStorage, then `initialState`, so state\nsurvives page refreshes and a copied URL reopens the same view.\n\nUse when users need persistent table preferences or shareable filtered views.\nRequires a `useRouter` hook returning `{ pathname, search, historyReplace }`\n(`createReactRouterV5Adapter` builds one from a React Router v5 `history`).\nState is stored in localStorage under the `pathname` it returns, and\nversioned by `localStorageVersion` (a number, default `1`).",
|
|
41754
41754
|
"filePath": "packages/table/src/components/StatefulDataGrid/StatefulDataGrid.tsx",
|
|
41755
41755
|
"props": [
|
|
41756
41756
|
{
|
|
@@ -42348,7 +42348,7 @@
|
|
|
42348
42348
|
},
|
|
42349
42349
|
{
|
|
42350
42350
|
"name": "StatefulDataGrid",
|
|
42351
|
-
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to localStorage.\
|
|
42351
|
+
"description": "StatefulDataGrid extends DataGrid with automatic state persistence to the URL and localStorage.\nFilters, sorting, pagination, column visibility, column order, pinned\ncolumns and density are written to the URL query string and to localStorage;\ncolumn widths are kept in localStorage only. On load the URL wins, then\nlocalStorage, then `initialState`, so state survives page refreshes and a\ncopied URL reopens the same view.\n\nUse when users need persistent table preferences or shareable filtered views.\nRequires a `useRouter` hook returning `{ pathname, search, historyReplace }`\n(`createReactRouterV5Adapter` builds one from a React Router v5 `history`).\nState is stored in localStorage under the `pathname` it returns, and\nversioned by `localStorageVersion` (a number, default `1`).",
|
|
42352
42352
|
"filePath": "packages/table-pro/src/components/StatefulDataGrid/StatefulDataGrid.tsx",
|
|
42353
42353
|
"props": [
|
|
42354
42354
|
{
|
|
@@ -46833,6 +46833,18 @@
|
|
|
46833
46833
|
"defaultValue": null,
|
|
46834
46834
|
"category": "props"
|
|
46835
46835
|
},
|
|
46836
|
+
{
|
|
46837
|
+
"name": "bimiMakerPromo",
|
|
46838
|
+
"description": "Promote BIMI Maker when the result is eligible (`getBimiMakerEligibility` from\n`@redsift/signal-logic` returns `'missing'` or `'incomplete'`). Off by default.\nRendered after the card sections and before `renderFooter`, and independent of\n`renderHeader` and the `promo*` props.",
|
|
46839
|
+
"type": [
|
|
46840
|
+
"false",
|
|
46841
|
+
"true",
|
|
46842
|
+
"BimiMakerPromoOptions"
|
|
46843
|
+
],
|
|
46844
|
+
"required": false,
|
|
46845
|
+
"defaultValue": null,
|
|
46846
|
+
"category": "props"
|
|
46847
|
+
},
|
|
46836
46848
|
{
|
|
46837
46849
|
"name": "onComponentMount",
|
|
46838
46850
|
"description": "Optional callback invoked when the component mounts.",
|
|
@@ -48022,6 +48034,18 @@
|
|
|
48022
48034
|
"defaultValue": null,
|
|
48023
48035
|
"category": "props"
|
|
48024
48036
|
},
|
|
48037
|
+
{
|
|
48038
|
+
"name": "bimiMakerPromo",
|
|
48039
|
+
"description": "Promote BIMI Maker on the BIMI card when `getBimiMakerEligibility` (from `@redsift/signal-logic`)\nreturns `'missing'` or `'incomplete'`. Opt-in: `undefined`/`false` → off, `true` → on with the\ndefault href (`https://redsift.com/tools/bimi-maker`), `{ href?, onClick?(reason) }` → on with\noverrides. Rendered after the BIMI card's sections and before `renderCardFooter`; unaffected by\n`renderCardHeader` and the `cardPromo*` props, and not gated on `recommendations`.",
|
|
48040
|
+
"type": [
|
|
48041
|
+
"false",
|
|
48042
|
+
"true",
|
|
48043
|
+
"BimiMakerPromoOptions"
|
|
48044
|
+
],
|
|
48045
|
+
"required": false,
|
|
48046
|
+
"defaultValue": null,
|
|
48047
|
+
"category": "props"
|
|
48048
|
+
},
|
|
48025
48049
|
{
|
|
48026
48050
|
"name": "prioritySectionHeading",
|
|
48027
48051
|
"description": "Heading text for the priority signals section.\nDefaults to \"Required for the selected compliance profile\"",
|
package/data/docs/llms-full.txt
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
This file contains comprehensive documentation for all components in the Red Sift Design System.
|
|
4
4
|
It is optimized for LLM consumption and includes props, types, defaults, and usage examples.
|
|
5
5
|
|
|
6
|
-
Generated: 2026-
|
|
6
|
+
Generated: 2026-10-02T12:21:38.107Z
|
|
7
7
|
Total Components: 164
|
|
8
8
|
|
|
9
9
|
---
|
|
@@ -4989,11 +4989,18 @@ The GridToolbarFilterSemanticField component.
|
|
|
4989
4989
|
|
|
4990
4990
|
### StatefulDataGrid
|
|
4991
4991
|
|
|
4992
|
-
StatefulDataGrid extends DataGrid with automatic state persistence to localStorage.
|
|
4993
|
-
|
|
4994
|
-
|
|
4992
|
+
StatefulDataGrid extends DataGrid with automatic state persistence to the URL and localStorage.
|
|
4993
|
+
Filters, sorting, pagination, column visibility, column order, pinned
|
|
4994
|
+
columns, density, row grouping, aggregation and pivot are written to the URL
|
|
4995
|
+
query string and to localStorage; column widths are kept in localStorage
|
|
4996
|
+
only. On load the URL wins, then localStorage, then `initialState`, so state
|
|
4997
|
+
survives page refreshes and a copied URL reopens the same view.
|
|
4995
4998
|
|
|
4996
|
-
Use when users need persistent table preferences
|
|
4999
|
+
Use when users need persistent table preferences or shareable filtered views.
|
|
5000
|
+
Requires a `useRouter` hook returning `{ pathname, search, historyReplace }`
|
|
5001
|
+
(`createReactRouterV5Adapter` builds one from a React Router v5 `history`).
|
|
5002
|
+
State is stored in localStorage under the `pathname` it returns, and
|
|
5003
|
+
versioned by `localStorageVersion` (a number, default `1`).
|
|
4997
5004
|
|
|
4998
5005
|
**Package:** @redsift/table
|
|
4999
5006
|
**File:** packages/table/src/components/StatefulDataGrid/StatefulDataGrid.tsx
|
|
@@ -5151,11 +5158,18 @@ The GridToolbarFilterSemanticField component.
|
|
|
5151
5158
|
|
|
5152
5159
|
### StatefulDataGrid
|
|
5153
5160
|
|
|
5154
|
-
StatefulDataGrid extends DataGrid with automatic state persistence to localStorage.
|
|
5155
|
-
|
|
5156
|
-
|
|
5161
|
+
StatefulDataGrid extends DataGrid with automatic state persistence to the URL and localStorage.
|
|
5162
|
+
Filters, sorting, pagination, column visibility, column order, pinned
|
|
5163
|
+
columns and density are written to the URL query string and to localStorage;
|
|
5164
|
+
column widths are kept in localStorage only. On load the URL wins, then
|
|
5165
|
+
localStorage, then `initialState`, so state survives page refreshes and a
|
|
5166
|
+
copied URL reopens the same view.
|
|
5157
5167
|
|
|
5158
|
-
Use when users need persistent table preferences
|
|
5168
|
+
Use when users need persistent table preferences or shareable filtered views.
|
|
5169
|
+
Requires a `useRouter` hook returning `{ pathname, search, historyReplace }`
|
|
5170
|
+
(`createReactRouterV5Adapter` builds one from a React Router v5 `history`).
|
|
5171
|
+
State is stored in localStorage under the `pathname` it returns, and
|
|
5172
|
+
versioned by `localStorageVersion` (a number, default `1`).
|
|
5159
5173
|
|
|
5160
5174
|
**Package:** @redsift/table-pro
|
|
5161
5175
|
**File:** packages/table-pro/src/components/StatefulDataGrid/StatefulDataGrid.tsx
|
|
@@ -5761,6 +5775,7 @@ BIMI record validation, VMC certificate details, and SVG logo validation.
|
|
|
5761
5775
|
| Prop | Type | Required | Default | Description |
|
|
5762
5776
|
|------|------|----------|---------|-------------|
|
|
5763
5777
|
| jmap | { extsecrep: { bimi?: any; dmarc?: any; }; } | Yes | - | JMAP data containing BIMI and DMARC information from the email security report. |
|
|
5778
|
+
| bimiMakerPromo | false \| true \| BimiMakerPromoOptions | No | - | Promote BIMI Maker when the result is eligible (`getBimiMakerEligibility` from `@redsift/signal-logic` returns `'missing'` or `'incomplete'`). Off by default. Rendered after the card sections and before `renderFooter`, and independent of `renderHeader` and the `promo*` props. |
|
|
5764
5779
|
| onComponentMount | () => void | No | - | Optional callback invoked when the component mounts. |
|
|
5765
5780
|
| onHeightChange | () => void | No | - | Callback fired whenever the card reports a height change. |
|
|
5766
5781
|
| renderHeader | null \| () => ReactNode | No | - | Custom header renderer inserted after the card title, before sections. Pass `null` to suppress the default header. |
|
|
@@ -6018,6 +6033,7 @@ Shows authentication (SPF, DKIM, DMARC), alignment, FCrDNS, TLS, and one-click u
|
|
|
6018
6033
|
| cardPromoText | string | No | - | Override the promo banner text on all cards. Only used when renderCardHeader is not provided. Defaults to the translated OnDMARC trial copy. |
|
|
6019
6034
|
| cardPromoButtonLabel | string | No | - | Override the promo banner button label on all cards. Defaults to the translated 'Protect your domain'. |
|
|
6020
6035
|
| renderCardFooter | (signal: SignalData) => ReactNode | No | - | Custom footer renderer for adding content at the bottom of each card |
|
|
6036
|
+
| bimiMakerPromo | false \| true \| BimiMakerPromoOptions | No | - | Promote BIMI Maker on the BIMI card when `getBimiMakerEligibility` (from `@redsift/signal-logic`) returns `'missing'` or `'incomplete'`. Opt-in: `undefined`/`false` → off, `true` → on with the default href (`https://redsift.com/tools/bimi-maker`), `{ href?, onClick?(reason) }` → on with overrides. Rendered after the BIMI card's sections and before `renderCardFooter`; unaffected by `renderCardHeader` and the `cardPromo*` props, and not gated on `recommendations`. |
|
|
6021
6037
|
| prioritySectionHeading | string | No | - | Heading text for the priority signals section. Defaults to "Required for the selected compliance profile" |
|
|
6022
6038
|
| remainingSectionHeading | string | No | - | Heading text for the remaining signals section. Defaults to "Not required for the selected compliance profile" |
|
|
6023
6039
|
| useInvestigateColors | false \| true | No | - | Use Investigate handbook colors instead of Design System CSS variables |
|
package/data/docs/llms.txt
CHANGED
|
@@ -178,7 +178,7 @@ The Red Sift Design System provides reusable UI components including forms, navi
|
|
|
178
178
|
- **DataGrid** (10 props): DataGrid displays tabular data with sorting, filtering, pagination, and row selection.
|
|
179
179
|
- **GridToolbarFilterSemanticField** (7 props): The GridToolbarFilterSemanticField component.
|
|
180
180
|
- **ServerSideControlledPagination** (0 props)
|
|
181
|
-
- **StatefulDataGrid** (13 props): StatefulDataGrid extends DataGrid with automatic state persistence to localStorage.
|
|
181
|
+
- **StatefulDataGrid** (13 props): StatefulDataGrid extends DataGrid with automatic state persistence to the URL and localStorage.
|
|
182
182
|
- **TextCell** (6 props): The Cell component.
|
|
183
183
|
- **Toolbar** (15 props): ------
|
|
184
184
|
- **ToolbarWrapper** (0 props): Renders a toolbar followed by a row that can contain the selection banner (left)
|
|
@@ -189,7 +189,7 @@ The Red Sift Design System provides reusable UI components including forms, navi
|
|
|
189
189
|
- **DataGrid** (10 props): DataGrid displays tabular data with sorting, filtering, pagination, and row selection.
|
|
190
190
|
- **GridToolbarFilterSemanticField** (7 props): The GridToolbarFilterSemanticField component.
|
|
191
191
|
- **ServerSideControlledPagination** (0 props)
|
|
192
|
-
- **StatefulDataGrid** (13 props): StatefulDataGrid extends DataGrid with automatic state persistence to localStorage.
|
|
192
|
+
- **StatefulDataGrid** (13 props): StatefulDataGrid extends DataGrid with automatic state persistence to the URL and localStorage.
|
|
193
193
|
- **TextCell** (6 props): The Cell component.
|
|
194
194
|
- **Toolbar** (15 props): ------
|
|
195
195
|
- **ToolbarWrapper** (0 props): Renders a toolbar followed by a row that can contain the selection banner (left)
|
|
@@ -212,7 +212,7 @@ The Red Sift Design System provides reusable UI components including forms, navi
|
|
|
212
212
|
- **RadarButton** (12 props): RadarButton is a pre-styled button for Radar AI features.
|
|
213
213
|
- **RadarItem** (23 props): The RadarItem component.
|
|
214
214
|
- **SignalCardAmp** (13 props): SignalCardAmp Component
|
|
215
|
-
- **SignalCardBimi** (
|
|
215
|
+
- **SignalCardBimi** (15 props): SignalCardBimi displays BIMI validation results including DMARC compliance,
|
|
216
216
|
- **SignalCardDkim** (13 props)
|
|
217
217
|
- **SignalCardDkimDomainAnalyzer** (13 props): SignalCardDkimDomainAnalyzer Component
|
|
218
218
|
- **SignalCardDmarc** (14 props): SignalCardDmarc displays DMARC (Domain-based Message Authentication, Reporting & Conformance)
|
|
@@ -220,7 +220,7 @@ The Red Sift Design System provides reusable UI components including forms, navi
|
|
|
220
220
|
- **SignalCardDnssec** (14 props): SignalCardDnssec Component
|
|
221
221
|
- **SignalCardFcrdns** (14 props): SignalCardFcrdns Component
|
|
222
222
|
- **SignalCardGoogleYahooCompliance** (15 props): SignalCardGoogleYahooCompliance Component
|
|
223
|
-
- **SignalCardList** (
|
|
223
|
+
- **SignalCardList** (27 props)
|
|
224
224
|
- **SignalCardMtaSts** (14 props): SignalCardMtaSts displays MTA-STS validation results including TLS-RPT records,
|
|
225
225
|
- **SignalCardSpf** (13 props)
|
|
226
226
|
- **SignalCardSpfDomain** (13 props): SignalCardSpfDomain Component
|
package/data/metadata.json
CHANGED
|
@@ -218,6 +218,24 @@ export const useRouter = () => {
|
|
|
218
218
|
`}
|
|
219
219
|
/>
|
|
220
220
|
|
|
221
|
+
### Memory history adapter (sifts in an iframe)
|
|
222
|
+
|
|
223
|
+
A sift rendered in an iframe routes with `createMemoryHistory` (or `MemoryRouter`), so the router's URL lives in `history.location` and `window.location` is the iframe document's own URL. Build the adapter from that history with `createReactRouterV5Adapter`, and pass the `getSearch` it returns when you reset the grid. Without it, `resetStatefulDataGridState` and `resetColumnVisibility` read `window.location.search`, which is the right URL under a browser router but the document's URL here, so the reset would drop the router's non-grid params (such as a period) and add the document's.
|
|
224
|
+
|
|
225
|
+
<CodeBlock
|
|
226
|
+
codeString={`import { createReactRouterV5Adapter, resetStatefulDataGridState } from '@redsift/table';
|
|
227
|
+
// history = createMemoryHistory(...) — the app's router history
|
|
228
|
+
const useRouter = createReactRouterV5Adapter(history);
|
|
229
|
+
// <StatefulDataGrid useRouter={useRouter} ... />
|
|
230
|
+
const { pathname, getSearch, historyReplace } = useRouter();
|
|
231
|
+
const handleReset = () => {
|
|
232
|
+
resetStatefulDataGridState({ id: pathname, versions: [0, 1], getSearch, historyReplace });
|
|
233
|
+
};
|
|
234
|
+
`}
|
|
235
|
+
/>
|
|
236
|
+
|
|
237
|
+
With your own adapter, pass `getSearch: () => history.location.search`.
|
|
238
|
+
|
|
221
239
|
## URL State Format
|
|
222
240
|
|
|
223
241
|
`StatefulDataGrid` writes grid state to URL query params in a human-readable display format.
|
|
@@ -250,6 +250,24 @@ export const useRouter = () => {
|
|
|
250
250
|
`}
|
|
251
251
|
/>
|
|
252
252
|
|
|
253
|
+
### Memory history adapter (sifts in an iframe)
|
|
254
|
+
|
|
255
|
+
A sift rendered in an iframe routes with `createMemoryHistory` (or `MemoryRouter`), so the router's URL lives in `history.location` and `window.location` is the iframe document's own URL. Build the adapter from that history with `createReactRouterV5Adapter`, and pass the `getSearch` it returns when you reset the grid. Without it, `resetStatefulDataGridState` and `resetColumnVisibility` read `window.location.search`, which is the right URL under a browser router but the document's URL here, so the reset would drop the router's non-grid params (such as a period) and add the document's.
|
|
256
|
+
|
|
257
|
+
<CodeBlock
|
|
258
|
+
codeString={`import { createReactRouterV5Adapter, resetStatefulDataGridState } from '@redsift/table';
|
|
259
|
+
// history = createMemoryHistory(...) — the app's router history
|
|
260
|
+
const useRouter = createReactRouterV5Adapter(history);
|
|
261
|
+
// <StatefulDataGrid useRouter={useRouter} ... />
|
|
262
|
+
const { pathname, getSearch, historyReplace } = useRouter();
|
|
263
|
+
const handleReset = () => {
|
|
264
|
+
resetStatefulDataGridState({ id: pathname, versions: [0, 1], getSearch, historyReplace });
|
|
265
|
+
};
|
|
266
|
+
`}
|
|
267
|
+
/>
|
|
268
|
+
|
|
269
|
+
With your own adapter, pass `getSearch: () => history.location.search`.
|
|
270
|
+
|
|
253
271
|
## URL State Format
|
|
254
272
|
|
|
255
273
|
`StatefulDataGrid` writes grid state to URL query params in a human-readable display format. The format is identical for both client-side and server-side grids.
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redsift/ds-mcp-server",
|
|
3
|
-
"version": "12.6.
|
|
3
|
+
"version": "12.6.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "MCP server for the Red Sift Design System — provides component lookup, prop documentation, and code generation tools for AI assistants.",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "9f9e9bf1cac1a2b1861a68c432b01100b91a2dcb"
|
|
41
41
|
}
|