@payloadcms/plugin-nested-docs 3.71.0-internal.e36f916 → 3.71.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/dist/types.d.ts +3 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utilities/formatBreadcrumb.d.ts +3 -2
- package/dist/utilities/formatBreadcrumb.d.ts.map +1 -1
- package/dist/utilities/formatBreadcrumb.js +3 -3
- package/dist/utilities/formatBreadcrumb.js.map +1 -1
- package/dist/utilities/populateBreadcrumbs.d.ts.map +1 -1
- package/dist/utilities/populateBreadcrumbs.js +2 -1
- package/dist/utilities/populateBreadcrumbs.js.map +1 -1
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { CollectionSlug, SanitizedCollectionConfig } from 'payload';
|
|
1
|
+
import type { CollectionSlug, PayloadRequest, SanitizedCollectionConfig } from 'payload';
|
|
2
2
|
export type Breadcrumb = {
|
|
3
3
|
doc: string;
|
|
4
4
|
label: string;
|
|
5
5
|
url?: string;
|
|
6
6
|
};
|
|
7
|
-
export type GenerateURL = (docs: Array<Record<string, unknown>>, currentDoc: Record<string, unknown>, collection: SanitizedCollectionConfig) => string;
|
|
8
|
-
export type GenerateLabel = (docs: Array<Record<string, unknown>>, currentDoc: Record<string, unknown>, collection: SanitizedCollectionConfig) => string;
|
|
7
|
+
export type GenerateURL = (docs: Array<Record<string, unknown>>, currentDoc: Record<string, unknown>, collection: SanitizedCollectionConfig, req: PayloadRequest) => string;
|
|
8
|
+
export type GenerateLabel = (docs: Array<Record<string, unknown>>, currentDoc: Record<string, unknown>, collection: SanitizedCollectionConfig, req: PayloadRequest) => string;
|
|
9
9
|
export type NestedDocsPluginConfig = {
|
|
10
10
|
/**
|
|
11
11
|
* Should be supplied if using an alternative field name for the 'breadcrumbs' field in collections
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAExF,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,CACxB,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACpC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,UAAU,EAAE,yBAAyB,EACrC,GAAG,EAAE,cAAc,KAChB,MAAM,CAAA;AAEX,MAAM,MAAM,aAAa,GAAG,CAC1B,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACpC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,UAAU,EAAE,yBAAyB,EACrC,GAAG,EAAE,cAAc,KAChB,MAAM,CAAA;AAEX,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;OAEG;IACH,WAAW,EAAE,cAAc,EAAE,CAAA;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA"}
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["import type { CollectionSlug, SanitizedCollectionConfig } from 'payload'\n\nexport type Breadcrumb = {\n doc: string\n label: string\n url?: string\n}\n\nexport type GenerateURL = (\n docs: Array<Record<string, unknown>>,\n currentDoc: Record<string, unknown>,\n collection: SanitizedCollectionConfig,\n) => string\n\nexport type GenerateLabel = (\n docs: Array<Record<string, unknown>>,\n currentDoc: Record<string, unknown>,\n collection: SanitizedCollectionConfig,\n) => string\n\nexport type NestedDocsPluginConfig = {\n /**\n * Should be supplied if using an alternative field name for the 'breadcrumbs' field in collections\n */\n breadcrumbsFieldSlug?: string\n /**\n * The slugs of the collections this plugin should extend. If you need different configs for different collections, this plugin can be added to your config more than once having different collections.\n */\n collections: CollectionSlug[]\n generateLabel?: GenerateLabel\n generateURL?: GenerateURL\n /**\n * Should be supplied if using an alternative field name for the 'parent' field in collections\n */\n parentFieldSlug?: string\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/types.ts"],"sourcesContent":["import type { CollectionSlug, PayloadRequest, SanitizedCollectionConfig } from 'payload'\n\nexport type Breadcrumb = {\n doc: string\n label: string\n url?: string\n}\n\nexport type GenerateURL = (\n docs: Array<Record<string, unknown>>,\n currentDoc: Record<string, unknown>,\n collection: SanitizedCollectionConfig,\n req: PayloadRequest,\n) => string\n\nexport type GenerateLabel = (\n docs: Array<Record<string, unknown>>,\n currentDoc: Record<string, unknown>,\n collection: SanitizedCollectionConfig,\n req: PayloadRequest,\n) => string\n\nexport type NestedDocsPluginConfig = {\n /**\n * Should be supplied if using an alternative field name for the 'breadcrumbs' field in collections\n */\n breadcrumbsFieldSlug?: string\n /**\n * The slugs of the collections this plugin should extend. If you need different configs for different collections, this plugin can be added to your config more than once having different collections.\n */\n collections: CollectionSlug[]\n generateLabel?: GenerateLabel\n generateURL?: GenerateURL\n /**\n * Should be supplied if using an alternative field name for the 'parent' field in collections\n */\n parentFieldSlug?: string\n}\n"],"names":[],"mappings":"AAsBA,WAeC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SanitizedCollectionConfig } from 'payload';
|
|
1
|
+
import type { PayloadRequest, SanitizedCollectionConfig } from 'payload';
|
|
2
2
|
import type { Breadcrumb, GenerateLabel, GenerateURL } from '../types.js';
|
|
3
3
|
type Args = {
|
|
4
4
|
/**
|
|
@@ -10,7 +10,8 @@ type Args = {
|
|
|
10
10
|
docs: Record<string, unknown>[];
|
|
11
11
|
generateLabel?: GenerateLabel;
|
|
12
12
|
generateURL?: GenerateURL;
|
|
13
|
+
req: PayloadRequest;
|
|
13
14
|
};
|
|
14
|
-
export declare const formatBreadcrumb: ({ breadcrumb, collection, docs, generateLabel, generateURL, }: Args) => Breadcrumb;
|
|
15
|
+
export declare const formatBreadcrumb: ({ breadcrumb, collection, docs, generateLabel, generateURL, req, }: Args) => Breadcrumb;
|
|
15
16
|
export {};
|
|
16
17
|
//# sourceMappingURL=formatBreadcrumb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatBreadcrumb.d.ts","sourceRoot":"","sources":["../../src/utilities/formatBreadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"formatBreadcrumb.d.ts","sourceRoot":"","sources":["../../src/utilities/formatBreadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzE,KAAK,IAAI,GAAG;IACV;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,UAAU,EAAE,yBAAyB,CAAA;IACrC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;IAC/B,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,gBAAgB,uEAO1B,IAAI,KAAG,UAwBT,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export const formatBreadcrumb = ({ breadcrumb, collection, docs, generateLabel, generateURL })=>{
|
|
1
|
+
export const formatBreadcrumb = ({ breadcrumb, collection, docs, generateLabel, generateURL, req })=>{
|
|
2
2
|
let url = undefined;
|
|
3
3
|
let label;
|
|
4
4
|
const lastDoc = docs[docs.length - 1];
|
|
5
5
|
if (typeof generateURL === 'function') {
|
|
6
|
-
url = generateURL(docs, lastDoc, collection);
|
|
6
|
+
url = generateURL(docs, lastDoc, collection, req);
|
|
7
7
|
}
|
|
8
8
|
if (typeof generateLabel === 'function') {
|
|
9
|
-
label = generateLabel(docs, lastDoc, collection);
|
|
9
|
+
label = generateLabel(docs, lastDoc, collection, req);
|
|
10
10
|
} else {
|
|
11
11
|
const title = collection.admin?.useAsTitle ? lastDoc[collection.admin.useAsTitle] : '';
|
|
12
12
|
label = typeof title === 'string' || typeof title === 'number' ? String(title) : '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utilities/formatBreadcrumb.ts"],"sourcesContent":["import type { SanitizedCollectionConfig } from 'payload'\n\nimport type { Breadcrumb, GenerateLabel, GenerateURL } from '../types.js'\n\ntype Args = {\n /**\n * Existing breadcrumb, if any, to base the new breadcrumb on.\n * This ensures that row IDs are maintained across updates, etc.\n */\n breadcrumb?: Breadcrumb\n collection: SanitizedCollectionConfig\n docs: Record<string, unknown>[]\n generateLabel?: GenerateLabel\n generateURL?: GenerateURL\n}\n\nexport const formatBreadcrumb = ({\n breadcrumb,\n collection,\n docs,\n generateLabel,\n generateURL,\n}: Args): Breadcrumb => {\n let url: string | undefined = undefined\n let label: string\n\n const lastDoc = docs[docs.length - 1]!\n\n if (typeof generateURL === 'function') {\n url = generateURL(docs, lastDoc, collection)\n }\n\n if (typeof generateLabel === 'function') {\n label = generateLabel(docs, lastDoc, collection)\n } else {\n const title = collection.admin?.useAsTitle ? lastDoc[collection.admin.useAsTitle] : ''\n\n label = typeof title === 'string' || typeof title === 'number' ? String(title) : ''\n }\n\n return {\n ...(breadcrumb || {}),\n doc: lastDoc.id as string,\n label,\n url,\n }\n}\n"],"names":["formatBreadcrumb","breadcrumb","collection","docs","generateLabel","generateURL","url","undefined","label","lastDoc","length","title","admin","useAsTitle","String","doc","id"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/utilities/formatBreadcrumb.ts"],"sourcesContent":["import type { PayloadRequest, SanitizedCollectionConfig } from 'payload'\n\nimport type { Breadcrumb, GenerateLabel, GenerateURL } from '../types.js'\n\ntype Args = {\n /**\n * Existing breadcrumb, if any, to base the new breadcrumb on.\n * This ensures that row IDs are maintained across updates, etc.\n */\n breadcrumb?: Breadcrumb\n collection: SanitizedCollectionConfig\n docs: Record<string, unknown>[]\n generateLabel?: GenerateLabel\n generateURL?: GenerateURL\n req: PayloadRequest\n}\n\nexport const formatBreadcrumb = ({\n breadcrumb,\n collection,\n docs,\n generateLabel,\n generateURL,\n req,\n}: Args): Breadcrumb => {\n let url: string | undefined = undefined\n let label: string\n\n const lastDoc = docs[docs.length - 1]!\n\n if (typeof generateURL === 'function') {\n url = generateURL(docs, lastDoc, collection, req)\n }\n\n if (typeof generateLabel === 'function') {\n label = generateLabel(docs, lastDoc, collection, req)\n } else {\n const title = collection.admin?.useAsTitle ? lastDoc[collection.admin.useAsTitle] : ''\n\n label = typeof title === 'string' || typeof title === 'number' ? String(title) : ''\n }\n\n return {\n ...(breadcrumb || {}),\n doc: lastDoc.id as string,\n label,\n url,\n }\n}\n"],"names":["formatBreadcrumb","breadcrumb","collection","docs","generateLabel","generateURL","req","url","undefined","label","lastDoc","length","title","admin","useAsTitle","String","doc","id"],"mappings":"AAiBA,OAAO,MAAMA,mBAAmB,CAAC,EAC/BC,UAAU,EACVC,UAAU,EACVC,IAAI,EACJC,aAAa,EACbC,WAAW,EACXC,GAAG,EACE;IACL,IAAIC,MAA0BC;IAC9B,IAAIC;IAEJ,MAAMC,UAAUP,IAAI,CAACA,KAAKQ,MAAM,GAAG,EAAE;IAErC,IAAI,OAAON,gBAAgB,YAAY;QACrCE,MAAMF,YAAYF,MAAMO,SAASR,YAAYI;IAC/C;IAEA,IAAI,OAAOF,kBAAkB,YAAY;QACvCK,QAAQL,cAAcD,MAAMO,SAASR,YAAYI;IACnD,OAAO;QACL,MAAMM,QAAQV,WAAWW,KAAK,EAAEC,aAAaJ,OAAO,CAACR,WAAWW,KAAK,CAACC,UAAU,CAAC,GAAG;QAEpFL,QAAQ,OAAOG,UAAU,YAAY,OAAOA,UAAU,WAAWG,OAAOH,SAAS;IACnF;IAEA,OAAO;QACL,GAAIX,cAAc,CAAC,CAAC;QACpBe,KAAKN,QAAQO,EAAE;QACfR;QACAF;IACF;AACF,EAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"populateBreadcrumbs.d.ts","sourceRoot":"","sources":["../../src/utilities/populateBreadcrumbs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAExF,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAK7D,KAAK,IAAI,GAAG;IACV,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,UAAU,EAAE,yBAAyB,CAAA;IACrC,IAAI,EAAE,IAAI,CAAA;IACV,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AACD,eAAO,MAAM,mBAAmB,+GAS7B,IAAI,KAAG,OAAO,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"populateBreadcrumbs.d.ts","sourceRoot":"","sources":["../../src/utilities/populateBreadcrumbs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAExF,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAK7D,KAAK,IAAI,GAAG;IACV,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,UAAU,EAAE,yBAAyB,CAAA;IACrC,IAAI,EAAE,IAAI,CAAA;IACV,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,GAAG,EAAE,cAAc,CAAA;CACpB,CAAA;AACD,eAAO,MAAM,mBAAmB,+GAS7B,IAAI,KAAG,OAAO,CAAC,IAAI,CAoCrB,CAAA"}
|
|
@@ -18,7 +18,8 @@ export const populateBreadcrumbs = async ({ breadcrumbsFieldName = 'breadcrumbs'
|
|
|
18
18
|
collection,
|
|
19
19
|
docs: allParentDocuments.slice(0, i + 1),
|
|
20
20
|
generateLabel,
|
|
21
|
-
generateURL
|
|
21
|
+
generateURL,
|
|
22
|
+
req
|
|
22
23
|
}));
|
|
23
24
|
newData[breadcrumbsFieldName] = breadcrumbs;
|
|
24
25
|
return newData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utilities/populateBreadcrumbs.ts"],"sourcesContent":["import type { Data, Document, PayloadRequest, SanitizedCollectionConfig } from 'payload'\n\nimport type { GenerateLabel, GenerateURL } from '../types.js'\n\nimport { formatBreadcrumb } from './formatBreadcrumb.js'\nimport { getParents as getAllParentDocuments } from './getParents.js'\n\ntype Args = {\n breadcrumbsFieldName?: string\n collection: SanitizedCollectionConfig\n data: Data\n generateLabel?: GenerateLabel\n generateURL?: GenerateURL\n originalDoc?: Document\n parentFieldName?: string\n req: PayloadRequest\n}\nexport const populateBreadcrumbs = async ({\n breadcrumbsFieldName = 'breadcrumbs',\n collection,\n data,\n generateLabel,\n generateURL,\n originalDoc,\n parentFieldName,\n req,\n}: Args): Promise<Data> => {\n const newData = data\n\n const currentDocument = {\n ...originalDoc,\n ...data,\n id: originalDoc?.id ?? data?.id,\n }\n\n const allParentDocuments: Document[] = await getAllParentDocuments(\n req,\n {\n generateLabel,\n generateURL,\n parentFieldSlug: parentFieldName,\n },\n collection,\n currentDocument,\n )\n\n allParentDocuments.push(currentDocument)\n\n const breadcrumbs = allParentDocuments.map((_, i) =>\n formatBreadcrumb({\n breadcrumb: currentDocument[breadcrumbsFieldName]?.[i],\n collection,\n docs: allParentDocuments.slice(0, i + 1),\n generateLabel,\n generateURL,\n }),\n )\n\n newData[breadcrumbsFieldName] = breadcrumbs\n\n return newData\n}\n"],"names":["formatBreadcrumb","getParents","getAllParentDocuments","populateBreadcrumbs","breadcrumbsFieldName","collection","data","generateLabel","generateURL","originalDoc","parentFieldName","req","newData","currentDocument","id","allParentDocuments","parentFieldSlug","push","breadcrumbs","map","_","i","breadcrumb","docs","slice"],"mappings":"AAIA,SAASA,gBAAgB,QAAQ,wBAAuB;AACxD,SAASC,cAAcC,qBAAqB,QAAQ,kBAAiB;AAYrE,OAAO,MAAMC,sBAAsB,OAAO,EACxCC,uBAAuB,aAAa,EACpCC,UAAU,EACVC,IAAI,EACJC,aAAa,EACbC,WAAW,EACXC,WAAW,EACXC,eAAe,EACfC,GAAG,EACE;IACL,MAAMC,UAAUN;IAEhB,MAAMO,kBAAkB;QACtB,GAAGJ,WAAW;QACd,GAAGH,IAAI;QACPQ,IAAIL,aAAaK,MAAMR,MAAMQ;IAC/B;IAEA,MAAMC,qBAAiC,MAAMb,sBAC3CS,KACA;QACEJ;QACAC;QACAQ,iBAAiBN;IACnB,GACAL,YACAQ;IAGFE,mBAAmBE,IAAI,CAACJ;IAExB,MAAMK,cAAcH,mBAAmBI,GAAG,CAAC,CAACC,GAAGC,IAC7CrB,iBAAiB;YACfsB,YAAYT,eAAe,CAACT,qBAAqB,EAAE,CAACiB,EAAE;YACtDhB;YACAkB,MAAMR,mBAAmBS,KAAK,CAAC,GAAGH,IAAI;YACtCd;YACAC;QACF;
|
|
1
|
+
{"version":3,"sources":["../../src/utilities/populateBreadcrumbs.ts"],"sourcesContent":["import type { Data, Document, PayloadRequest, SanitizedCollectionConfig } from 'payload'\n\nimport type { GenerateLabel, GenerateURL } from '../types.js'\n\nimport { formatBreadcrumb } from './formatBreadcrumb.js'\nimport { getParents as getAllParentDocuments } from './getParents.js'\n\ntype Args = {\n breadcrumbsFieldName?: string\n collection: SanitizedCollectionConfig\n data: Data\n generateLabel?: GenerateLabel\n generateURL?: GenerateURL\n originalDoc?: Document\n parentFieldName?: string\n req: PayloadRequest\n}\nexport const populateBreadcrumbs = async ({\n breadcrumbsFieldName = 'breadcrumbs',\n collection,\n data,\n generateLabel,\n generateURL,\n originalDoc,\n parentFieldName,\n req,\n}: Args): Promise<Data> => {\n const newData = data\n\n const currentDocument = {\n ...originalDoc,\n ...data,\n id: originalDoc?.id ?? data?.id,\n }\n\n const allParentDocuments: Document[] = await getAllParentDocuments(\n req,\n {\n generateLabel,\n generateURL,\n parentFieldSlug: parentFieldName,\n },\n collection,\n currentDocument,\n )\n\n allParentDocuments.push(currentDocument)\n\n const breadcrumbs = allParentDocuments.map((_, i) =>\n formatBreadcrumb({\n breadcrumb: currentDocument[breadcrumbsFieldName]?.[i],\n collection,\n docs: allParentDocuments.slice(0, i + 1),\n generateLabel,\n generateURL,\n req,\n }),\n )\n\n newData[breadcrumbsFieldName] = breadcrumbs\n\n return newData\n}\n"],"names":["formatBreadcrumb","getParents","getAllParentDocuments","populateBreadcrumbs","breadcrumbsFieldName","collection","data","generateLabel","generateURL","originalDoc","parentFieldName","req","newData","currentDocument","id","allParentDocuments","parentFieldSlug","push","breadcrumbs","map","_","i","breadcrumb","docs","slice"],"mappings":"AAIA,SAASA,gBAAgB,QAAQ,wBAAuB;AACxD,SAASC,cAAcC,qBAAqB,QAAQ,kBAAiB;AAYrE,OAAO,MAAMC,sBAAsB,OAAO,EACxCC,uBAAuB,aAAa,EACpCC,UAAU,EACVC,IAAI,EACJC,aAAa,EACbC,WAAW,EACXC,WAAW,EACXC,eAAe,EACfC,GAAG,EACE;IACL,MAAMC,UAAUN;IAEhB,MAAMO,kBAAkB;QACtB,GAAGJ,WAAW;QACd,GAAGH,IAAI;QACPQ,IAAIL,aAAaK,MAAMR,MAAMQ;IAC/B;IAEA,MAAMC,qBAAiC,MAAMb,sBAC3CS,KACA;QACEJ;QACAC;QACAQ,iBAAiBN;IACnB,GACAL,YACAQ;IAGFE,mBAAmBE,IAAI,CAACJ;IAExB,MAAMK,cAAcH,mBAAmBI,GAAG,CAAC,CAACC,GAAGC,IAC7CrB,iBAAiB;YACfsB,YAAYT,eAAe,CAACT,qBAAqB,EAAE,CAACiB,EAAE;YACtDhB;YACAkB,MAAMR,mBAAmBS,KAAK,CAAC,GAAGH,IAAI;YACtCd;YACAC;YACAG;QACF;IAGFC,OAAO,CAACR,qBAAqB,GAAGc;IAEhC,OAAON;AACT,EAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/plugin-nested-docs",
|
|
3
|
-
"version": "3.71.0
|
|
3
|
+
"version": "3.71.0",
|
|
4
4
|
"description": "The official Nested Docs plugin for Payload",
|
|
5
5
|
"homepage": "https://payloadcms.com",
|
|
6
6
|
"repository": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
],
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@payloadcms/eslint-config": "3.28.0",
|
|
41
|
-
"payload": "3.71.0
|
|
41
|
+
"payload": "3.71.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"payload": "3.71.0
|
|
44
|
+
"payload": "3.71.0"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|