sanity-plugin-seofields 1.5.4 → 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 +159 -185
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -51
- package/dist/index.d.ts +43 -51
- package/dist/index.js +159 -185
- 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.js
CHANGED
|
@@ -653,110 +653,154 @@ 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
|
+
function buildFieldGroupMap(groups) {
|
|
659
|
+
const map = /* @__PURE__ */ new Map();
|
|
660
|
+
for (const g of groups) {
|
|
661
|
+
for (const fieldName of g.fields) {
|
|
662
|
+
const existing = map.get(fieldName);
|
|
663
|
+
if (existing) {
|
|
664
|
+
existing.push(g.name);
|
|
665
|
+
} else {
|
|
666
|
+
map.set(fieldName, [g.name]);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
return map;
|
|
671
|
+
}
|
|
672
|
+
function toSanityGroups(groups) {
|
|
673
|
+
return groups.map((g) => {
|
|
674
|
+
const def = {
|
|
675
|
+
name: g.name,
|
|
676
|
+
title: g.title,
|
|
677
|
+
default: g.default
|
|
678
|
+
};
|
|
679
|
+
if (g.icon && typeof g.icon !== "string") {
|
|
680
|
+
def.icon = g.icon;
|
|
681
|
+
}
|
|
682
|
+
return def;
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
function withGroup(field, fieldGroupMap) {
|
|
686
|
+
if (!fieldGroupMap) return field;
|
|
687
|
+
const groups = fieldGroupMap.get(field.name);
|
|
688
|
+
if (!groups || groups.length === 0) return field;
|
|
689
|
+
return __spreadProps(__spreadValues({}, field), { group: groups.length === 1 ? groups[0] : groups });
|
|
690
|
+
}
|
|
658
691
|
function seoFieldsSchema(config = {}) {
|
|
659
|
-
|
|
692
|
+
const groupsCfg = config.fieldGroups;
|
|
693
|
+
const fieldGroupMap = (groupsCfg == null ? void 0 : groupsCfg.length) ? buildFieldGroupMap(groupsCfg) : void 0;
|
|
694
|
+
const sanityGroups = (groupsCfg == null ? void 0 : groupsCfg.length) ? toSanityGroups(groupsCfg) : void 0;
|
|
695
|
+
return defineType(__spreadProps(__spreadValues({
|
|
660
696
|
name: "seoFields",
|
|
661
697
|
title: "SEO Fields",
|
|
662
|
-
type: "object"
|
|
698
|
+
type: "object"
|
|
699
|
+
}, sanityGroups ? { groups: sanityGroups } : {}), {
|
|
663
700
|
fields: [
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
701
|
+
withGroup(
|
|
702
|
+
defineField({
|
|
703
|
+
name: "robots",
|
|
704
|
+
title: "Robots Settings",
|
|
705
|
+
type: "robots",
|
|
706
|
+
hidden: getFieldHiddenFunction("robots", config)
|
|
707
|
+
}),
|
|
708
|
+
fieldGroupMap
|
|
709
|
+
),
|
|
671
710
|
// 👇 conditionally spread preview field
|
|
672
711
|
...typeof config.seoPreview === "boolean" && config.seoPreview || typeof config.seoPreview === "object" && !isEmpty(config.seoPreview) ? [
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
712
|
+
withGroup(
|
|
713
|
+
defineField({
|
|
714
|
+
name: "preview",
|
|
715
|
+
title: "SEO Preview",
|
|
716
|
+
type: "string",
|
|
717
|
+
components: { input: SeoPreviewWrapper },
|
|
718
|
+
options: __spreadValues({
|
|
719
|
+
baseUrl: config.baseUrl || "https://www.example.com"
|
|
720
|
+
}, typeof config.seoPreview === "object" && config.seoPreview && config.seoPreview.prefix ? { prefix: config.seoPreview.prefix } : {}),
|
|
721
|
+
initialValue: "",
|
|
722
|
+
readOnly: true
|
|
723
|
+
}),
|
|
724
|
+
fieldGroupMap
|
|
725
|
+
)
|
|
687
726
|
] : [],
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
},
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
727
|
+
withGroup(
|
|
728
|
+
defineField(__spreadProps(__spreadValues({
|
|
729
|
+
name: "title"
|
|
730
|
+
}, getFieldInfo("title", config.fieldOverrides)), {
|
|
731
|
+
type: "string",
|
|
732
|
+
components: {
|
|
733
|
+
input: MetaTitle_default
|
|
734
|
+
},
|
|
735
|
+
hidden: getFieldHiddenFunction("title", config)
|
|
736
|
+
})),
|
|
737
|
+
fieldGroupMap
|
|
738
|
+
),
|
|
739
|
+
withGroup(
|
|
740
|
+
defineField(__spreadProps(__spreadValues({
|
|
741
|
+
name: "description"
|
|
742
|
+
}, getFieldInfo("description", config.fieldOverrides)), {
|
|
743
|
+
type: "text",
|
|
744
|
+
rows: 3,
|
|
745
|
+
components: {
|
|
746
|
+
input: MetaDescription_default
|
|
747
|
+
},
|
|
748
|
+
hidden: getFieldHiddenFunction("description", config)
|
|
749
|
+
})),
|
|
750
|
+
fieldGroupMap
|
|
751
|
+
),
|
|
752
|
+
withGroup(
|
|
753
|
+
defineField(__spreadProps(__spreadValues({
|
|
754
|
+
name: "metaImage"
|
|
755
|
+
}, getFieldInfo("metaImage", config.fieldOverrides)), {
|
|
756
|
+
type: "image",
|
|
757
|
+
options: {
|
|
758
|
+
hotspot: true
|
|
759
|
+
},
|
|
760
|
+
components: {
|
|
761
|
+
input: MetaImage_default
|
|
762
|
+
},
|
|
763
|
+
hidden: getFieldHiddenFunction("metaImage", config)
|
|
764
|
+
})),
|
|
765
|
+
fieldGroupMap
|
|
766
|
+
),
|
|
767
|
+
withGroup(
|
|
768
|
+
defineField(__spreadProps(__spreadValues({
|
|
769
|
+
name: "metaAttributes"
|
|
770
|
+
}, getFieldInfo("metaAttributes", config.fieldOverrides)), {
|
|
771
|
+
type: "array",
|
|
772
|
+
of: [{ type: "metaAttribute" }],
|
|
773
|
+
hidden: getFieldHiddenFunction("metaAttributes", config)
|
|
774
|
+
})),
|
|
775
|
+
fieldGroupMap
|
|
776
|
+
),
|
|
777
|
+
withGroup(
|
|
778
|
+
defineField(__spreadProps(__spreadValues({
|
|
779
|
+
name: "keywords"
|
|
780
|
+
}, getFieldInfo("keywords", config.fieldOverrides)), {
|
|
781
|
+
title: "Keywords",
|
|
782
|
+
type: "array",
|
|
783
|
+
of: [{ type: "string" }],
|
|
784
|
+
description: "Add relevant keywords for this page. These keywords will be used for SEO purposes.",
|
|
785
|
+
hidden: getFieldHiddenFunction("keywords", config)
|
|
786
|
+
})),
|
|
787
|
+
fieldGroupMap
|
|
788
|
+
),
|
|
789
|
+
withGroup(
|
|
790
|
+
defineField(__spreadProps(__spreadValues({
|
|
791
|
+
name: "canonicalUrl"
|
|
792
|
+
}, getFieldInfo("canonicalUrl", config.fieldOverrides)), {
|
|
793
|
+
title: "Canonical URL",
|
|
794
|
+
type: "url",
|
|
795
|
+
description: "Specify the canonical URL for this page. This helps prevent duplicate content issues by indicating the preferred version of a page.",
|
|
796
|
+
hidden: getFieldHiddenFunction("canonicalUrl", config)
|
|
797
|
+
})),
|
|
798
|
+
fieldGroupMap
|
|
799
|
+
),
|
|
800
|
+
withGroup(openGraph(config), fieldGroupMap),
|
|
801
|
+
withGroup(twitter(config), fieldGroupMap)
|
|
758
802
|
]
|
|
759
|
-
});
|
|
803
|
+
}));
|
|
760
804
|
}
|
|
761
805
|
function baseMeta(config = {}) {
|
|
762
806
|
return defineType({
|
|
@@ -935,100 +979,30 @@ function types(config = {}) {
|
|
|
935
979
|
}
|
|
936
980
|
|
|
937
981
|
// src/plugin.ts
|
|
938
|
-
var V132 = "v1.3.2";
|
|
939
|
-
var CHANGELOG_V132 = `https://github.com/hardik-143/sanity-plugin-seofields/blob/main/CHANGELOG.md#132--2026-03-23`;
|
|
940
982
|
var resolveDashboardConfig = (healthDashboard) => {
|
|
941
|
-
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;
|
|
942
984
|
const cfg = typeof healthDashboard === "object" ? healthDashboard : void 0;
|
|
943
|
-
const deprecationWarnings = [];
|
|
944
|
-
if (((_a = cfg == null ? void 0 : cfg.display) == null ? void 0 : _a.typeColumn) !== void 0) {
|
|
945
|
-
deprecationWarnings.push({
|
|
946
|
-
key: "display.typeColumn \u2192 showTypeColumn",
|
|
947
|
-
version: V132,
|
|
948
|
-
changelogUrl: CHANGELOG_V132
|
|
949
|
-
});
|
|
950
|
-
if (cfg.showTypeColumn) {
|
|
951
|
-
console.warn(
|
|
952
|
-
`[sanity-plugin-seofields] Both "healthDashboard.display.typeColumn" and "healthDashboard.showTypeColumn" are set. "showTypeColumn" will take precedence. Please remove "healthDashboard.display.typeColumn". See ${CHANGELOG_V132}`
|
|
953
|
-
);
|
|
954
|
-
} else {
|
|
955
|
-
console.warn(
|
|
956
|
-
`[sanity-plugin-seofields] "healthDashboard.display.typeColumn" is deprecated. Use "healthDashboard.showTypeColumn" instead. See ${CHANGELOG_V132}`
|
|
957
|
-
);
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
if (((_b = cfg == null ? void 0 : cfg.display) == null ? void 0 : _b.documentId) !== void 0) {
|
|
961
|
-
deprecationWarnings.push({
|
|
962
|
-
key: "display.documentId \u2192 showDocumentId",
|
|
963
|
-
version: V132,
|
|
964
|
-
changelogUrl: CHANGELOG_V132
|
|
965
|
-
});
|
|
966
|
-
if (cfg.showDocumentId) {
|
|
967
|
-
console.warn(
|
|
968
|
-
`[sanity-plugin-seofields] Both "healthDashboard.display.documentId" and "healthDashboard.showDocumentId" are set. "showDocumentId" will take precedence. Please remove "healthDashboard.display.documentId". See ${CHANGELOG_V132}`
|
|
969
|
-
);
|
|
970
|
-
} else {
|
|
971
|
-
console.warn(
|
|
972
|
-
`[sanity-plugin-seofields] "healthDashboard.display.documentId" is deprecated. Use "healthDashboard.showDocumentId" instead. See ${CHANGELOG_V132}`
|
|
973
|
-
);
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
if (cfg == null ? void 0 : cfg.typeLabels) {
|
|
977
|
-
deprecationWarnings.push({
|
|
978
|
-
key: "typeLabels \u2192 typeDisplayLabels",
|
|
979
|
-
version: V132,
|
|
980
|
-
changelogUrl: CHANGELOG_V132
|
|
981
|
-
});
|
|
982
|
-
if (cfg.typeDisplayLabels) {
|
|
983
|
-
console.warn(
|
|
984
|
-
`[sanity-plugin-seofields] Both "healthDashboard.typeLabels" and "healthDashboard.typeDisplayLabels" are set. "typeDisplayLabels" will take precedence. Please remove "typeLabels". See ${CHANGELOG_V132}`
|
|
985
|
-
);
|
|
986
|
-
} else {
|
|
987
|
-
console.warn(
|
|
988
|
-
`[sanity-plugin-seofields] "healthDashboard.typeLabels" is deprecated. Use "healthDashboard.typeDisplayLabels" instead. See ${CHANGELOG_V132}`
|
|
989
|
-
);
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
if (cfg == null ? void 0 : cfg.docBadge) {
|
|
993
|
-
deprecationWarnings.push({
|
|
994
|
-
key: "docBadge \u2192 getDocumentBadge",
|
|
995
|
-
version: V132,
|
|
996
|
-
changelogUrl: CHANGELOG_V132
|
|
997
|
-
});
|
|
998
|
-
if (cfg == null ? void 0 : cfg.getDocumentBadge) {
|
|
999
|
-
console.warn(
|
|
1000
|
-
`[sanity-plugin-seofields] Both "healthDashboard.docBadge" and "healthDashboard.getDocumentBadge" are set. "getDocumentBadge" will take precedence. Please remove "docBadge". See ${CHANGELOG_V132}`
|
|
1001
|
-
);
|
|
1002
|
-
} else {
|
|
1003
|
-
console.warn(
|
|
1004
|
-
`[sanity-plugin-seofields] "healthDashboard.docBadge" is deprecated. Use "healthDashboard.getDocumentBadge" instead. See ${CHANGELOG_V132}`
|
|
1005
|
-
);
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
985
|
return {
|
|
1009
986
|
enabled: healthDashboard !== false,
|
|
1010
|
-
toolTitle: (
|
|
1011
|
-
toolName: (
|
|
1012
|
-
icon: (
|
|
1013
|
-
title: (
|
|
1014
|
-
description: (
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
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,
|
|
1021
997
|
apiVersion: cfg == null ? void 0 : cfg.apiVersion,
|
|
1022
998
|
licenseKey: cfg == null ? void 0 : cfg.licenseKey,
|
|
1023
|
-
|
|
1024
|
-
typeDisplayLabels: (_q = cfg == null ? void 0 : cfg.typeDisplayLabels) != null ? _q : cfg == null ? void 0 : cfg.typeLabels,
|
|
999
|
+
typeDisplayLabels: cfg == null ? void 0 : cfg.typeDisplayLabels,
|
|
1025
1000
|
typeColumnMode: cfg == null ? void 0 : cfg.typeColumnMode,
|
|
1026
1001
|
titleField: cfg == null ? void 0 : cfg.titleField,
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
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,
|
|
1032
1006
|
previewMode: cfg == null ? void 0 : cfg.previewMode,
|
|
1033
1007
|
structureTool: cfg == null ? void 0 : cfg.structureTool,
|
|
1034
1008
|
exportEnabled: (() => {
|
|
@@ -1043,14 +1017,14 @@ var resolveDashboardConfig = (healthDashboard) => {
|
|
|
1043
1017
|
if (typeof exportCfg === "object" && exportCfg.formats) return exportCfg.formats;
|
|
1044
1018
|
return ["csv", "json"];
|
|
1045
1019
|
})(),
|
|
1046
|
-
compactStats: (
|
|
1047
|
-
deprecationWarnings
|
|
1020
|
+
compactStats: (_n = cfg == null ? void 0 : cfg.compactStats) != null ? _n : false,
|
|
1021
|
+
deprecationWarnings: []
|
|
1048
1022
|
};
|
|
1049
1023
|
};
|
|
1050
1024
|
var seofields = definePlugin((config = {}) => {
|
|
1051
1025
|
const { healthDashboard = true } = config;
|
|
1052
1026
|
const dash = resolveDashboardConfig(healthDashboard);
|
|
1053
|
-
const LazySeoHealthTool = React12.lazy(() => import('./SeoHealthTool-
|
|
1027
|
+
const LazySeoHealthTool = React12.lazy(() => import('./SeoHealthTool-XCXINAQI.js'));
|
|
1054
1028
|
const BoundSeoHealthTool = () => React12.createElement(
|
|
1055
1029
|
React12.Suspense,
|
|
1056
1030
|
{ fallback: null },
|
|
@@ -1097,7 +1071,7 @@ var seofields = definePlugin((config = {}) => {
|
|
|
1097
1071
|
});
|
|
1098
1072
|
});
|
|
1099
1073
|
var plugin_default = seofields;
|
|
1100
|
-
var LazySeoHealthDashboard = React12.lazy(() => import('./SeoHealthDashboard-
|
|
1074
|
+
var LazySeoHealthDashboard = React12.lazy(() => import('./SeoHealthDashboard-UWPLB5DM.js'));
|
|
1101
1075
|
function createSeoHealthPane(optionsOrS, optionsWhenS) {
|
|
1102
1076
|
const S = optionsOrS;
|
|
1103
1077
|
const _a = optionsWhenS != null ? optionsWhenS : {}, { query, openInPane = true, title: paneTitle } = _a, rest = __objRest(_a, ["query", "openInPane", "title"]);
|