sanity-plugin-seofields 1.5.5 → 1.6.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 +4 -4
- package/dist/SeoHealthDashboard-7XMPVJRX.cjs +10 -0
- package/dist/{SeoHealthDashboard-KPBNXSL4.cjs.map → SeoHealthDashboard-7XMPVJRX.cjs.map} +1 -1
- package/dist/SeoHealthDashboard-UWPLB5DM.js +4 -0
- package/dist/{SeoHealthDashboard-QKVB5HK3.js.map → SeoHealthDashboard-UWPLB5DM.js.map} +1 -1
- package/dist/{SeoHealthTool-ON3SRXCF.cjs → SeoHealthTool-2H4XZR4I.cjs} +4 -4
- package/dist/{SeoHealthTool-ON3SRXCF.cjs.map → SeoHealthTool-2H4XZR4I.cjs.map} +1 -1
- package/dist/{SeoHealthTool-EPPOEDTW.js → SeoHealthTool-XCXINAQI.js} +3 -3
- package/dist/{SeoHealthTool-EPPOEDTW.js.map → SeoHealthTool-XCXINAQI.js.map} +1 -1
- package/dist/{SeoPreview-G3LPA7GV.js → SeoPreview-F6GGPZWI.js} +2 -2
- package/dist/SeoPreview-F6GGPZWI.js.map +1 -0
- package/dist/{SeoPreview-Y3CFDVBR.cjs → SeoPreview-JDROKZLP.cjs} +2 -2
- package/dist/SeoPreview-JDROKZLP.cjs.map +1 -0
- package/dist/chunk-6NIHHOVS.js +3918 -0
- package/dist/chunk-6NIHHOVS.js.map +1 -0
- package/dist/chunk-7HCP5O62.cjs +4027 -0
- package/dist/chunk-7HCP5O62.cjs.map +1 -0
- package/dist/{chunk-527WXITP.js → chunk-KWUITSHS.js} +218 -54
- package/dist/chunk-KWUITSHS.js.map +1 -0
- package/dist/{chunk-UCVSMPEJ.js → chunk-NHJBEV3A.js} +2 -2
- package/dist/{chunk-UCVSMPEJ.js.map → chunk-NHJBEV3A.js.map} +1 -1
- package/dist/chunk-WCLEWFAJ.cjs +669 -0
- package/dist/chunk-WCLEWFAJ.cjs.map +1 -0
- package/dist/{chunk-G2SVI2SP.cjs → chunk-Z74QPO75.cjs} +2 -2
- package/dist/{chunk-G2SVI2SP.cjs.map → chunk-Z74QPO75.cjs.map} +1 -1
- package/dist/cli.js +25 -25
- package/dist/component-7rqDvuy2.d.ts +534 -0
- package/dist/component-J2nEQkOw.d.cts +534 -0
- package/dist/index.cjs +21 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -49
- package/dist/index.d.ts +2 -49
- package/dist/index.js +21 -91
- package/dist/index.js.map +1 -1
- package/dist/next.cjs +155 -51
- package/dist/next.d.cts +3 -3
- package/dist/next.d.ts +3 -3
- package/dist/next.js +2 -2
- package/dist/schema/next.cjs +171 -52
- package/dist/schema/next.cjs.map +1 -1
- package/dist/schema/next.d.cts +12 -428
- package/dist/schema/next.d.ts +12 -428
- package/dist/schema/next.js +20 -2
- package/dist/schema/next.js.map +1 -1
- package/dist/schema.cjs +831 -156
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.cts +318 -41
- package/dist/schema.d.ts +318 -41
- package/dist/schema.js +567 -86
- package/dist/schema.js.map +1 -1
- package/dist/types-BRn3hfQb.d.ts +24 -0
- package/dist/types-BSgolLj3.d.cts +24 -0
- package/dist/{types-R3n9Fu4w.d.cts → types-BtSRRG6C.d.cts} +1 -1
- package/dist/{types-R3n9Fu4w.d.ts → types-BtSRRG6C.d.ts} +1 -1
- package/dist/types-DnVvOp3o.d.ts +1215 -0
- package/dist/types-DoUYMRVf.d.cts +1215 -0
- package/package.json +2 -1
- package/dist/SeoHealthDashboard-KPBNXSL4.cjs +0 -10
- package/dist/SeoHealthDashboard-QKVB5HK3.js +0 -4
- package/dist/SeoPreview-G3LPA7GV.js.map +0 -1
- package/dist/SeoPreview-Y3CFDVBR.cjs.map +0 -1
- package/dist/chunk-527WXITP.js.map +0 -1
- package/dist/chunk-6CYMVS3O.js +0 -1245
- package/dist/chunk-6CYMVS3O.js.map +0 -1
- package/dist/chunk-D2GWRRK5.cjs +0 -1293
- package/dist/chunk-D2GWRRK5.cjs.map +0 -1
- package/dist/chunk-L3L3FSPJ.cjs +0 -478
- package/dist/chunk-L3L3FSPJ.cjs.map +0 -1
- package/dist/types-CVaAX7uy.d.cts +0 -589
- package/dist/types-Ci-ZZT7A.d.ts +0 -589
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as sanity from 'sanity';
|
|
2
2
|
import { SchemaTypeDefinition } from 'sanity';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { D as DocumentWithSeoHealth,
|
|
5
|
-
export {
|
|
4
|
+
import { D as DocumentWithSeoHealth, a as DeprecationWarning } from './types-BtSRRG6C.cjs';
|
|
5
|
+
export { S as SeoHealthMetrics, b as SeoHealthStatus } from './types-BtSRRG6C.cjs';
|
|
6
6
|
import { StructureBuilder, ComponentBuilder } from 'sanity/structure';
|
|
7
7
|
|
|
8
8
|
interface SeoFieldConfig {
|
|
@@ -140,25 +140,13 @@ interface SeoFieldsPluginConfig {
|
|
|
140
140
|
/** Text shown when the query returns zero results. Defaults to "No documents found" */
|
|
141
141
|
noDocuments?: string;
|
|
142
142
|
};
|
|
143
|
-
/**
|
|
144
|
-
* @deprecated Use `showTypeColumn` instead. Will be removed in a future major version.
|
|
145
|
-
* @see https://github.com/hardik-143/sanity-plugin-seofields/blob/main/CHANGELOG.md#132--2026-03-23
|
|
146
|
-
*/
|
|
147
|
-
display?: {
|
|
148
|
-
/** @deprecated Use top-level `showTypeColumn` instead. */
|
|
149
|
-
typeColumn?: boolean;
|
|
150
|
-
/** @deprecated Use top-level `showDocumentId` instead. */
|
|
151
|
-
documentId?: boolean;
|
|
152
|
-
};
|
|
153
143
|
/**
|
|
154
144
|
* Show or hide the document type column in the results table.
|
|
155
|
-
* Replaces the deprecated `display.typeColumn`.
|
|
156
145
|
* Defaults to `true`.
|
|
157
146
|
*/
|
|
158
147
|
showTypeColumn?: boolean;
|
|
159
148
|
/**
|
|
160
149
|
* Show or hide the Sanity document `_id` under each title.
|
|
161
|
-
* Replaces the deprecated `display.documentId`.
|
|
162
150
|
* Defaults to `true`.
|
|
163
151
|
*/
|
|
164
152
|
showDocumentId?: boolean;
|
|
@@ -195,19 +183,6 @@ interface SeoFieldsPluginConfig {
|
|
|
195
183
|
* Used in both the Type column and the Type filter dropdown.
|
|
196
184
|
* Any type without an entry falls back to the raw `_type` string.
|
|
197
185
|
*
|
|
198
|
-
* @deprecated Use `typeDisplayLabels` instead. Will be removed in a future major version.
|
|
199
|
-
* @see https://github.com/hardik-143/sanity-plugin-seofields/blob/main/CHANGELOG.md#132--2026-03-23
|
|
200
|
-
*
|
|
201
|
-
* @example
|
|
202
|
-
* typeLabels: { productDrug: 'Products', singleCondition: 'Condition' }
|
|
203
|
-
*/
|
|
204
|
-
typeLabels?: Record<string, string>;
|
|
205
|
-
/**
|
|
206
|
-
* Map raw `_type` values to human-readable display labels.
|
|
207
|
-
* Replaces the deprecated `typeLabels`.
|
|
208
|
-
* Used in both the Type column and the Type filter dropdown.
|
|
209
|
-
* Any type without an entry falls back to the raw `_type` string.
|
|
210
|
-
*
|
|
211
186
|
* @example
|
|
212
187
|
* typeDisplayLabels: { productDrug: 'Products', singleCondition: 'Condition' }
|
|
213
188
|
*/
|
|
@@ -235,26 +210,6 @@ interface SeoFieldsPluginConfig {
|
|
|
235
210
|
* Callback function to render a custom badge next to the document title.
|
|
236
211
|
* Receives the full document and should return badge data or undefined.
|
|
237
212
|
*
|
|
238
|
-
* @deprecated Use `getDocumentBadge` instead. Will be removed in a future major version.
|
|
239
|
-
* @see https://github.com/hardik-143/sanity-plugin-seofields/blob/main/CHANGELOG.md#132--2026-03-23
|
|
240
|
-
*
|
|
241
|
-
* @example
|
|
242
|
-
* docBadge: (doc) => {
|
|
243
|
-
* if (doc.services === 'NHS')
|
|
244
|
-
* return { label: 'NHS', bgColor: '#e0f2fe', textColor: '#0369a1' }
|
|
245
|
-
* }
|
|
246
|
-
*/
|
|
247
|
-
docBadge?: (doc: DocumentWithSeoHealth & Record<string, unknown>) => {
|
|
248
|
-
label: string;
|
|
249
|
-
bgColor?: string;
|
|
250
|
-
textColor?: string;
|
|
251
|
-
fontSize?: string;
|
|
252
|
-
} | undefined;
|
|
253
|
-
/**
|
|
254
|
-
* Callback function to render a custom badge next to the document title.
|
|
255
|
-
* Replaces the deprecated `docBadge`.
|
|
256
|
-
* Receives the full document and should return badge data or undefined.
|
|
257
|
-
*
|
|
258
213
|
* @example
|
|
259
214
|
* getDocumentBadge: (doc) => {
|
|
260
215
|
* if (doc.services === 'NHS')
|
|
@@ -379,7 +334,6 @@ interface SeoHealthDashboardProps {
|
|
|
379
334
|
/**
|
|
380
335
|
* Map raw `_type` values to human-readable display labels used in the
|
|
381
336
|
* Type column and the Type filter dropdown.
|
|
382
|
-
* Replaces the deprecated `typeLabels`.
|
|
383
337
|
* Any type without an entry falls back to the raw `_type` string.
|
|
384
338
|
*
|
|
385
339
|
* @example
|
|
@@ -409,7 +363,6 @@ interface SeoHealthDashboardProps {
|
|
|
409
363
|
titleField?: string | Record<string, string>;
|
|
410
364
|
/**
|
|
411
365
|
* Callback function to render a custom badge next to the document title.
|
|
412
|
-
* Replaces the deprecated `docBadge`.
|
|
413
366
|
* Receives the full document and should return badge data or undefined.
|
|
414
367
|
*
|
|
415
368
|
* @example
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as sanity from 'sanity';
|
|
2
2
|
import { SchemaTypeDefinition } from 'sanity';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { D as DocumentWithSeoHealth,
|
|
5
|
-
export {
|
|
4
|
+
import { D as DocumentWithSeoHealth, a as DeprecationWarning } from './types-BtSRRG6C.js';
|
|
5
|
+
export { S as SeoHealthMetrics, b as SeoHealthStatus } from './types-BtSRRG6C.js';
|
|
6
6
|
import { StructureBuilder, ComponentBuilder } from 'sanity/structure';
|
|
7
7
|
|
|
8
8
|
interface SeoFieldConfig {
|
|
@@ -140,25 +140,13 @@ interface SeoFieldsPluginConfig {
|
|
|
140
140
|
/** Text shown when the query returns zero results. Defaults to "No documents found" */
|
|
141
141
|
noDocuments?: string;
|
|
142
142
|
};
|
|
143
|
-
/**
|
|
144
|
-
* @deprecated Use `showTypeColumn` instead. Will be removed in a future major version.
|
|
145
|
-
* @see https://github.com/hardik-143/sanity-plugin-seofields/blob/main/CHANGELOG.md#132--2026-03-23
|
|
146
|
-
*/
|
|
147
|
-
display?: {
|
|
148
|
-
/** @deprecated Use top-level `showTypeColumn` instead. */
|
|
149
|
-
typeColumn?: boolean;
|
|
150
|
-
/** @deprecated Use top-level `showDocumentId` instead. */
|
|
151
|
-
documentId?: boolean;
|
|
152
|
-
};
|
|
153
143
|
/**
|
|
154
144
|
* Show or hide the document type column in the results table.
|
|
155
|
-
* Replaces the deprecated `display.typeColumn`.
|
|
156
145
|
* Defaults to `true`.
|
|
157
146
|
*/
|
|
158
147
|
showTypeColumn?: boolean;
|
|
159
148
|
/**
|
|
160
149
|
* Show or hide the Sanity document `_id` under each title.
|
|
161
|
-
* Replaces the deprecated `display.documentId`.
|
|
162
150
|
* Defaults to `true`.
|
|
163
151
|
*/
|
|
164
152
|
showDocumentId?: boolean;
|
|
@@ -195,19 +183,6 @@ interface SeoFieldsPluginConfig {
|
|
|
195
183
|
* Used in both the Type column and the Type filter dropdown.
|
|
196
184
|
* Any type without an entry falls back to the raw `_type` string.
|
|
197
185
|
*
|
|
198
|
-
* @deprecated Use `typeDisplayLabels` instead. Will be removed in a future major version.
|
|
199
|
-
* @see https://github.com/hardik-143/sanity-plugin-seofields/blob/main/CHANGELOG.md#132--2026-03-23
|
|
200
|
-
*
|
|
201
|
-
* @example
|
|
202
|
-
* typeLabels: { productDrug: 'Products', singleCondition: 'Condition' }
|
|
203
|
-
*/
|
|
204
|
-
typeLabels?: Record<string, string>;
|
|
205
|
-
/**
|
|
206
|
-
* Map raw `_type` values to human-readable display labels.
|
|
207
|
-
* Replaces the deprecated `typeLabels`.
|
|
208
|
-
* Used in both the Type column and the Type filter dropdown.
|
|
209
|
-
* Any type without an entry falls back to the raw `_type` string.
|
|
210
|
-
*
|
|
211
186
|
* @example
|
|
212
187
|
* typeDisplayLabels: { productDrug: 'Products', singleCondition: 'Condition' }
|
|
213
188
|
*/
|
|
@@ -235,26 +210,6 @@ interface SeoFieldsPluginConfig {
|
|
|
235
210
|
* Callback function to render a custom badge next to the document title.
|
|
236
211
|
* Receives the full document and should return badge data or undefined.
|
|
237
212
|
*
|
|
238
|
-
* @deprecated Use `getDocumentBadge` instead. Will be removed in a future major version.
|
|
239
|
-
* @see https://github.com/hardik-143/sanity-plugin-seofields/blob/main/CHANGELOG.md#132--2026-03-23
|
|
240
|
-
*
|
|
241
|
-
* @example
|
|
242
|
-
* docBadge: (doc) => {
|
|
243
|
-
* if (doc.services === 'NHS')
|
|
244
|
-
* return { label: 'NHS', bgColor: '#e0f2fe', textColor: '#0369a1' }
|
|
245
|
-
* }
|
|
246
|
-
*/
|
|
247
|
-
docBadge?: (doc: DocumentWithSeoHealth & Record<string, unknown>) => {
|
|
248
|
-
label: string;
|
|
249
|
-
bgColor?: string;
|
|
250
|
-
textColor?: string;
|
|
251
|
-
fontSize?: string;
|
|
252
|
-
} | undefined;
|
|
253
|
-
/**
|
|
254
|
-
* Callback function to render a custom badge next to the document title.
|
|
255
|
-
* Replaces the deprecated `docBadge`.
|
|
256
|
-
* Receives the full document and should return badge data or undefined.
|
|
257
|
-
*
|
|
258
213
|
* @example
|
|
259
214
|
* getDocumentBadge: (doc) => {
|
|
260
215
|
* if (doc.services === 'NHS')
|
|
@@ -379,7 +334,6 @@ interface SeoHealthDashboardProps {
|
|
|
379
334
|
/**
|
|
380
335
|
* Map raw `_type` values to human-readable display labels used in the
|
|
381
336
|
* Type column and the Type filter dropdown.
|
|
382
|
-
* Replaces the deprecated `typeLabels`.
|
|
383
337
|
* Any type without an entry falls back to the raw `_type` string.
|
|
384
338
|
*
|
|
385
339
|
* @example
|
|
@@ -409,7 +363,6 @@ interface SeoHealthDashboardProps {
|
|
|
409
363
|
titleField?: string | Record<string, string>;
|
|
410
364
|
/**
|
|
411
365
|
* Callback function to render a custom badge next to the document title.
|
|
412
|
-
* Replaces the deprecated `docBadge`.
|
|
413
366
|
* Receives the full document and should return badge data or undefined.
|
|
414
367
|
*
|
|
415
368
|
* @example
|
package/dist/index.js
CHANGED
|
@@ -653,7 +653,7 @@ function twitter(config = {}) {
|
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
// src/schemas/index.ts
|
|
656
|
-
var LazySeoPreview = React12.lazy(() => import('./SeoPreview-
|
|
656
|
+
var LazySeoPreview = React12.lazy(() => import('./SeoPreview-F6GGPZWI.js'));
|
|
657
657
|
var SeoPreviewWrapper = (props) => React12.createElement(React12.Suspense, { fallback: null }, React12.createElement(LazySeoPreview, props));
|
|
658
658
|
function buildFieldGroupMap(groups) {
|
|
659
659
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -979,100 +979,30 @@ function types(config = {}) {
|
|
|
979
979
|
}
|
|
980
980
|
|
|
981
981
|
// src/plugin.ts
|
|
982
|
-
var V132 = "v1.3.2";
|
|
983
|
-
var CHANGELOG_V132 = `https://github.com/hardik-143/sanity-plugin-seofields/blob/main/CHANGELOG.md#132--2026-03-23`;
|
|
984
982
|
var resolveDashboardConfig = (healthDashboard) => {
|
|
985
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n
|
|
983
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
986
984
|
const cfg = typeof healthDashboard === "object" ? healthDashboard : void 0;
|
|
987
|
-
const deprecationWarnings = [];
|
|
988
|
-
if (((_a = cfg == null ? void 0 : cfg.display) == null ? void 0 : _a.typeColumn) !== void 0) {
|
|
989
|
-
deprecationWarnings.push({
|
|
990
|
-
key: "display.typeColumn \u2192 showTypeColumn",
|
|
991
|
-
version: V132,
|
|
992
|
-
changelogUrl: CHANGELOG_V132
|
|
993
|
-
});
|
|
994
|
-
if (cfg.showTypeColumn) {
|
|
995
|
-
console.warn(
|
|
996
|
-
`[sanity-plugin-seofields] Both "healthDashboard.display.typeColumn" and "healthDashboard.showTypeColumn" are set. "showTypeColumn" will take precedence. Please remove "healthDashboard.display.typeColumn". See ${CHANGELOG_V132}`
|
|
997
|
-
);
|
|
998
|
-
} else {
|
|
999
|
-
console.warn(
|
|
1000
|
-
`[sanity-plugin-seofields] "healthDashboard.display.typeColumn" is deprecated. Use "healthDashboard.showTypeColumn" instead. See ${CHANGELOG_V132}`
|
|
1001
|
-
);
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
if (((_b = cfg == null ? void 0 : cfg.display) == null ? void 0 : _b.documentId) !== void 0) {
|
|
1005
|
-
deprecationWarnings.push({
|
|
1006
|
-
key: "display.documentId \u2192 showDocumentId",
|
|
1007
|
-
version: V132,
|
|
1008
|
-
changelogUrl: CHANGELOG_V132
|
|
1009
|
-
});
|
|
1010
|
-
if (cfg.showDocumentId) {
|
|
1011
|
-
console.warn(
|
|
1012
|
-
`[sanity-plugin-seofields] Both "healthDashboard.display.documentId" and "healthDashboard.showDocumentId" are set. "showDocumentId" will take precedence. Please remove "healthDashboard.display.documentId". See ${CHANGELOG_V132}`
|
|
1013
|
-
);
|
|
1014
|
-
} else {
|
|
1015
|
-
console.warn(
|
|
1016
|
-
`[sanity-plugin-seofields] "healthDashboard.display.documentId" is deprecated. Use "healthDashboard.showDocumentId" instead. See ${CHANGELOG_V132}`
|
|
1017
|
-
);
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
if (cfg == null ? void 0 : cfg.typeLabels) {
|
|
1021
|
-
deprecationWarnings.push({
|
|
1022
|
-
key: "typeLabels \u2192 typeDisplayLabels",
|
|
1023
|
-
version: V132,
|
|
1024
|
-
changelogUrl: CHANGELOG_V132
|
|
1025
|
-
});
|
|
1026
|
-
if (cfg.typeDisplayLabels) {
|
|
1027
|
-
console.warn(
|
|
1028
|
-
`[sanity-plugin-seofields] Both "healthDashboard.typeLabels" and "healthDashboard.typeDisplayLabels" are set. "typeDisplayLabels" will take precedence. Please remove "typeLabels". See ${CHANGELOG_V132}`
|
|
1029
|
-
);
|
|
1030
|
-
} else {
|
|
1031
|
-
console.warn(
|
|
1032
|
-
`[sanity-plugin-seofields] "healthDashboard.typeLabels" is deprecated. Use "healthDashboard.typeDisplayLabels" instead. See ${CHANGELOG_V132}`
|
|
1033
|
-
);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
if (cfg == null ? void 0 : cfg.docBadge) {
|
|
1037
|
-
deprecationWarnings.push({
|
|
1038
|
-
key: "docBadge \u2192 getDocumentBadge",
|
|
1039
|
-
version: V132,
|
|
1040
|
-
changelogUrl: CHANGELOG_V132
|
|
1041
|
-
});
|
|
1042
|
-
if (cfg == null ? void 0 : cfg.getDocumentBadge) {
|
|
1043
|
-
console.warn(
|
|
1044
|
-
`[sanity-plugin-seofields] Both "healthDashboard.docBadge" and "healthDashboard.getDocumentBadge" are set. "getDocumentBadge" will take precedence. Please remove "docBadge". See ${CHANGELOG_V132}`
|
|
1045
|
-
);
|
|
1046
|
-
} else {
|
|
1047
|
-
console.warn(
|
|
1048
|
-
`[sanity-plugin-seofields] "healthDashboard.docBadge" is deprecated. Use "healthDashboard.getDocumentBadge" instead. See ${CHANGELOG_V132}`
|
|
1049
|
-
);
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
985
|
return {
|
|
1053
986
|
enabled: healthDashboard !== false,
|
|
1054
|
-
toolTitle: (
|
|
1055
|
-
toolName: (
|
|
1056
|
-
icon: (
|
|
1057
|
-
title: (
|
|
1058
|
-
description: (
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
queryGroq: (_p = cfg == null ? void 0 : cfg.query) == null ? void 0 : _p.groq,
|
|
987
|
+
toolTitle: (_b = (_a = cfg == null ? void 0 : cfg.tool) == null ? void 0 : _a.title) != null ? _b : "SEO Health",
|
|
988
|
+
toolName: (_d = (_c = cfg == null ? void 0 : cfg.tool) == null ? void 0 : _c.name) != null ? _d : "seo-health-dashboard",
|
|
989
|
+
icon: (_e = cfg == null ? void 0 : cfg.content) == null ? void 0 : _e.icon,
|
|
990
|
+
title: (_f = cfg == null ? void 0 : cfg.content) == null ? void 0 : _f.title,
|
|
991
|
+
description: (_g = cfg == null ? void 0 : cfg.content) == null ? void 0 : _g.description,
|
|
992
|
+
showTypeColumn: cfg == null ? void 0 : cfg.showTypeColumn,
|
|
993
|
+
showDocumentId: cfg == null ? void 0 : cfg.showDocumentId,
|
|
994
|
+
queryTypes: (_h = cfg == null ? void 0 : cfg.query) == null ? void 0 : _h.types,
|
|
995
|
+
queryRequireSeo: (_i = cfg == null ? void 0 : cfg.query) == null ? void 0 : _i.requireSeo,
|
|
996
|
+
queryGroq: (_j = cfg == null ? void 0 : cfg.query) == null ? void 0 : _j.groq,
|
|
1065
997
|
apiVersion: cfg == null ? void 0 : cfg.apiVersion,
|
|
1066
998
|
licenseKey: cfg == null ? void 0 : cfg.licenseKey,
|
|
1067
|
-
|
|
1068
|
-
typeDisplayLabels: (_q = cfg == null ? void 0 : cfg.typeDisplayLabels) != null ? _q : cfg == null ? void 0 : cfg.typeLabels,
|
|
999
|
+
typeDisplayLabels: cfg == null ? void 0 : cfg.typeDisplayLabels,
|
|
1069
1000
|
typeColumnMode: cfg == null ? void 0 : cfg.typeColumnMode,
|
|
1070
1001
|
titleField: cfg == null ? void 0 : cfg.titleField,
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
noDocuments: (_u = cfg == null ? void 0 : cfg.content) == null ? void 0 : _u.noDocuments,
|
|
1002
|
+
getDocumentBadge: cfg == null ? void 0 : cfg.getDocumentBadge,
|
|
1003
|
+
loadingLicense: (_k = cfg == null ? void 0 : cfg.content) == null ? void 0 : _k.loadingLicense,
|
|
1004
|
+
loadingDocuments: (_l = cfg == null ? void 0 : cfg.content) == null ? void 0 : _l.loadingDocuments,
|
|
1005
|
+
noDocuments: (_m = cfg == null ? void 0 : cfg.content) == null ? void 0 : _m.noDocuments,
|
|
1076
1006
|
previewMode: cfg == null ? void 0 : cfg.previewMode,
|
|
1077
1007
|
structureTool: cfg == null ? void 0 : cfg.structureTool,
|
|
1078
1008
|
exportEnabled: (() => {
|
|
@@ -1087,14 +1017,14 @@ var resolveDashboardConfig = (healthDashboard) => {
|
|
|
1087
1017
|
if (typeof exportCfg === "object" && exportCfg.formats) return exportCfg.formats;
|
|
1088
1018
|
return ["csv", "json"];
|
|
1089
1019
|
})(),
|
|
1090
|
-
compactStats: (
|
|
1091
|
-
deprecationWarnings
|
|
1020
|
+
compactStats: (_n = cfg == null ? void 0 : cfg.compactStats) != null ? _n : false,
|
|
1021
|
+
deprecationWarnings: []
|
|
1092
1022
|
};
|
|
1093
1023
|
};
|
|
1094
1024
|
var seofields = definePlugin((config = {}) => {
|
|
1095
1025
|
const { healthDashboard = true } = config;
|
|
1096
1026
|
const dash = resolveDashboardConfig(healthDashboard);
|
|
1097
|
-
const LazySeoHealthTool = React12.lazy(() => import('./SeoHealthTool-
|
|
1027
|
+
const LazySeoHealthTool = React12.lazy(() => import('./SeoHealthTool-XCXINAQI.js'));
|
|
1098
1028
|
const BoundSeoHealthTool = () => React12.createElement(
|
|
1099
1029
|
React12.Suspense,
|
|
1100
1030
|
{ fallback: null },
|
|
@@ -1141,7 +1071,7 @@ var seofields = definePlugin((config = {}) => {
|
|
|
1141
1071
|
});
|
|
1142
1072
|
});
|
|
1143
1073
|
var plugin_default = seofields;
|
|
1144
|
-
var LazySeoHealthDashboard = React12.lazy(() => import('./SeoHealthDashboard-
|
|
1074
|
+
var LazySeoHealthDashboard = React12.lazy(() => import('./SeoHealthDashboard-UWPLB5DM.js'));
|
|
1145
1075
|
function createSeoHealthPane(optionsOrS, optionsWhenS) {
|
|
1146
1076
|
const S = optionsOrS;
|
|
1147
1077
|
const _a = optionsWhenS != null ? optionsWhenS : {}, { query, openInPane = true, title: paneTitle } = _a, rest = __objRest(_a, ["query", "openInPane", "title"]);
|