@payloadcms/next 3.55.0-internal.d44d1d3 → 3.55.0-internal.df60e35
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/elements/DocumentHeader/Tabs/Tab/TabLink.js +41 -19
- package/dist/elements/DocumentHeader/Tabs/Tab/TabLink.js.map +1 -1
- package/dist/elements/Nav/index.client.js +48 -28
- package/dist/elements/Nav/index.client.js.map +1 -1
- package/dist/prod/styles.css +1 -1
- package/dist/utilities/handleServerFunctions.d.ts.map +1 -1
- package/dist/utilities/handleServerFunctions.js +2 -7
- package/dist/utilities/handleServerFunctions.js.map +1 -1
- package/dist/views/CreateFirstUser/index.d.ts.map +1 -1
- package/dist/views/CreateFirstUser/index.js +16 -11
- package/dist/views/CreateFirstUser/index.js.map +1 -1
- package/dist/views/Logout/LogoutClient.js +31 -29
- package/dist/views/Logout/LogoutClient.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js +28 -12
- package/dist/views/Version/RenderFieldsToDiff/DiffCollapser/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js +27 -17
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js +31 -21
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +33 -23
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +30 -21
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +1 -1
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js +50 -16
- package/dist/views/Version/SelectComparison/VersionDrawer/CreatedAtCell.js.map +1 -1
- package/dist/views/Version/SelectComparison/VersionDrawer/index.js +12 -8
- package/dist/views/Version/SelectComparison/VersionDrawer/index.js.map +1 -1
- package/dist/views/Versions/cells/AutosaveCell/index.d.ts +1 -0
- package/dist/views/Versions/cells/AutosaveCell/index.d.ts.map +1 -1
- package/dist/views/Versions/cells/AutosaveCell/index.js +23 -14
- package/dist/views/Versions/cells/AutosaveCell/index.js.map +1 -1
- package/dist/views/Versions/cells/CreatedAt/index.js +53 -27
- package/dist/views/Versions/cells/CreatedAt/index.js.map +1 -1
- package/package.json +9 -9
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
5
|
import { Link, useConfig, useTranslation } from '@payloadcms/ui';
|
|
5
6
|
import { formatDate } from '@payloadcms/ui/shared';
|
|
6
7
|
import { formatAdminURL } from 'payload/shared';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
export const CreatedAtCell = t0 => {
|
|
10
|
+
const $ = _c(12);
|
|
9
11
|
const {
|
|
10
12
|
collectionSlug,
|
|
11
13
|
docID,
|
|
@@ -13,48 +15,72 @@ export const CreatedAtCell = t0 => {
|
|
|
13
15
|
isTrashed,
|
|
14
16
|
rowData: t1
|
|
15
17
|
} = t0;
|
|
18
|
+
let t2;
|
|
19
|
+
if ($[0] !== t1) {
|
|
20
|
+
t2 = t1 === undefined ? {} : t1;
|
|
21
|
+
$[0] = t1;
|
|
22
|
+
$[1] = t2;
|
|
23
|
+
} else {
|
|
24
|
+
t2 = $[1];
|
|
25
|
+
}
|
|
16
26
|
const {
|
|
17
27
|
id,
|
|
18
28
|
updatedAt
|
|
19
|
-
} =
|
|
29
|
+
} = t2;
|
|
20
30
|
const {
|
|
21
|
-
config:
|
|
31
|
+
config: t3
|
|
22
32
|
} = useConfig();
|
|
23
33
|
const {
|
|
24
|
-
admin:
|
|
25
|
-
routes:
|
|
26
|
-
} =
|
|
34
|
+
admin: t4,
|
|
35
|
+
routes: t5
|
|
36
|
+
} = t3;
|
|
27
37
|
const {
|
|
28
38
|
dateFormat
|
|
29
|
-
} =
|
|
39
|
+
} = t4;
|
|
30
40
|
const {
|
|
31
41
|
admin: adminRoute
|
|
32
|
-
} =
|
|
42
|
+
} = t5;
|
|
33
43
|
const {
|
|
34
44
|
i18n
|
|
35
45
|
} = useTranslation();
|
|
36
46
|
const trashedDocPrefix = isTrashed ? "trash/" : "";
|
|
37
|
-
let
|
|
38
|
-
if (collectionSlug) {
|
|
39
|
-
to
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
let t6;
|
|
48
|
+
if ($[2] !== adminRoute || $[3] !== collectionSlug || $[4] !== dateFormat || $[5] !== docID || $[6] !== globalSlug || $[7] !== i18n || $[8] !== id || $[9] !== trashedDocPrefix || $[10] !== updatedAt) {
|
|
49
|
+
let to;
|
|
50
|
+
if (collectionSlug) {
|
|
51
|
+
to = formatAdminURL({
|
|
52
|
+
adminRoute,
|
|
53
|
+
path: `/collections/${collectionSlug}/${trashedDocPrefix}${docID}/versions/${id}`
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
if (globalSlug) {
|
|
57
|
+
to = formatAdminURL({
|
|
58
|
+
adminRoute,
|
|
59
|
+
path: `/globals/${globalSlug}/versions/${id}`
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
t6 = _jsx(Link, {
|
|
63
|
+
href: to,
|
|
64
|
+
prefetch: false,
|
|
65
|
+
children: formatDate({
|
|
66
|
+
date: updatedAt,
|
|
67
|
+
i18n,
|
|
68
|
+
pattern: dateFormat
|
|
69
|
+
})
|
|
48
70
|
});
|
|
71
|
+
$[2] = adminRoute;
|
|
72
|
+
$[3] = collectionSlug;
|
|
73
|
+
$[4] = dateFormat;
|
|
74
|
+
$[5] = docID;
|
|
75
|
+
$[6] = globalSlug;
|
|
76
|
+
$[7] = i18n;
|
|
77
|
+
$[8] = id;
|
|
78
|
+
$[9] = trashedDocPrefix;
|
|
79
|
+
$[10] = updatedAt;
|
|
80
|
+
$[11] = t6;
|
|
81
|
+
} else {
|
|
82
|
+
t6 = $[11];
|
|
49
83
|
}
|
|
50
|
-
return
|
|
51
|
-
href: to,
|
|
52
|
-
prefetch: false,
|
|
53
|
-
children: formatDate({
|
|
54
|
-
date: updatedAt,
|
|
55
|
-
i18n,
|
|
56
|
-
pattern: dateFormat
|
|
57
|
-
})
|
|
58
|
-
});
|
|
84
|
+
return t6;
|
|
59
85
|
};
|
|
60
86
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Link","useConfig","useTranslation","formatDate","formatAdminURL","React","CreatedAtCell","t0","collectionSlug","docID","globalSlug","isTrashed","rowData","t1","
|
|
1
|
+
{"version":3,"file":"index.js","names":["c","_c","Link","useConfig","useTranslation","formatDate","formatAdminURL","React","CreatedAtCell","t0","$","collectionSlug","docID","globalSlug","isTrashed","rowData","t1","t2","undefined","id","updatedAt","config","t3","admin","t4","routes","t5","dateFormat","adminRoute","i18n","trashedDocPrefix","t6","to","_jsx","href","prefetch","children","date","pattern"],"sources":["../../../../../src/views/Versions/cells/CreatedAt/index.tsx"],"sourcesContent":["'use client'\nimport { Link, useConfig, useTranslation } from '@payloadcms/ui'\nimport { formatDate } from '@payloadcms/ui/shared'\nimport { formatAdminURL } from 'payload/shared'\nimport React from 'react'\n\nexport type CreatedAtCellProps = {\n collectionSlug?: string\n docID?: number | string\n globalSlug?: string\n isTrashed?: boolean\n rowData?: {\n id: number | string\n updatedAt: Date | number | string\n }\n}\n\nexport const CreatedAtCell: React.FC<CreatedAtCellProps> = ({\n collectionSlug,\n docID,\n globalSlug,\n isTrashed,\n rowData: { id, updatedAt } = {},\n}) => {\n const {\n config: {\n admin: { dateFormat },\n routes: { admin: adminRoute },\n },\n } = useConfig()\n\n const { i18n } = useTranslation()\n\n const trashedDocPrefix = isTrashed ? 'trash/' : ''\n\n let to: string\n\n if (collectionSlug) {\n to = formatAdminURL({\n adminRoute,\n path: `/collections/${collectionSlug}/${trashedDocPrefix}${docID}/versions/${id}`,\n })\n }\n\n if (globalSlug) {\n to = formatAdminURL({\n adminRoute,\n path: `/globals/${globalSlug}/versions/${id}`,\n })\n }\n\n return (\n <Link href={to} prefetch={false}>\n {formatDate({ date: updatedAt, i18n, pattern: dateFormat })}\n </Link>\n )\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AACA,SAASC,IAAI,EAAEC,SAAS,EAAEC,cAAc,QAAQ;AAChD,SAASC,UAAU,QAAQ;AAC3B,SAASC,cAAc,QAAQ;AAC/B,OAAOC,KAAA,MAAW;AAalB,OAAO,MAAMC,aAAA,GAA8CC,EAAA;EAAA,MAAAC,CAAA,GAAAT,EAAA;EAAC;IAAAU,cAAA;IAAAC,KAAA;IAAAC,UAAA;IAAAC,SAAA;IAAAC,OAAA,EAAAC;EAAA,IAAAP,EAM3D;EAAA,IAAAQ,EAAA;EAAA,IAAAP,CAAA,QAAAM,EAAA;IADUC,EAAA,GAAAD,EAAsB,KAAAE,SAAA,QAAtBF,EAAsB;IAAAN,CAAA,MAAAM,EAAA;IAAAN,CAAA,MAAAO,EAAA;EAAA;IAAAA,EAAA,GAAAP,CAAA;EAAA;EAAtB;IAAAS,EAAA;IAAAC;EAAA,IAAAH,EAAsB;EAE/B;IAAAI,MAAA,EAAAC;EAAA,IAKInB,SAAA;EAJM;IAAAoB,KAAA,EAAAC,EAAA;IAAAC,MAAA,EAAAC;EAAA,IAAAJ,EAGP;EAFQ;IAAAK;EAAA,IAAAH,EAAc;EACb;IAAAD,KAAA,EAAAK;EAAA,IAAAF,EAAqB;EAIjC;IAAAG;EAAA,IAAiBzB,cAAA;EAEjB,MAAA0B,gBAAA,GAAyBhB,SAAA,GAAY,WAAW;EAAA,IAAAiB,EAAA;EAAA,IAAArB,CAAA,QAAAkB,UAAA,IAAAlB,CAAA,QAAAC,cAAA,IAAAD,CAAA,QAAAiB,UAAA,IAAAjB,CAAA,QAAAE,KAAA,IAAAF,CAAA,QAAAG,UAAA,IAAAH,CAAA,QAAAmB,IAAA,IAAAnB,CAAA,QAAAS,EAAA,IAAAT,CAAA,QAAAoB,gBAAA,IAAApB,CAAA,SAAAU,SAAA;IAE5CY,GAAA,CAAAA,EAAA;IAAA,IAEArB,cAAA;MACFqB,EAAA,CAAAA,CAAA,CAAKA;QAAAA;QAAAA,KAAA,CAEGA,gBAAgBrB,cAAA,IAAkBmB,gBAAA,GAAmBlB,KAAA,aAAkBO,EAAA;MAAI,CACnF;IAHA;IAAA,IAMEN,UAAA;MACFmB,EAAA,CAAAA,CAAA,CAAKA;QAAAA;QAAAA,KAAA,CAEGA,YAAYnB,UAAA,aAAuBM,EAAA;MAAI,CAC/C;IAHA;IAOAY,EAAA,GAAAE,IAAA,CAAA/B,IAAA;MAAAgC,IAAA,EAAYF,EAAA;MAAAG,QAAA;MAAAC,QAAA,EACT/B,UAAA;QAAAgC,IAAA,EAAmBjB,SAAA;QAAAS,IAAA;QAAAS,OAAA,EAA0BX;MAAA,CAAW;IAAA,C;;;;;;;;;;;;;;SAD3DI,E;CAIJ","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/next",
|
|
3
|
-
"version": "3.55.0-internal.
|
|
3
|
+
"version": "3.55.0-internal.df60e35",
|
|
4
4
|
"homepage": "https://payloadcms.com",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"qs-esm": "7.0.2",
|
|
88
88
|
"sass": "1.77.4",
|
|
89
89
|
"uuid": "10.0.0",
|
|
90
|
-
"@payloadcms/
|
|
91
|
-
"@payloadcms/
|
|
92
|
-
"@payloadcms/
|
|
90
|
+
"@payloadcms/graphql": "3.55.0-internal.df60e35",
|
|
91
|
+
"@payloadcms/translations": "3.55.0-internal.df60e35",
|
|
92
|
+
"@payloadcms/ui": "3.55.0-internal.df60e35"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@babel/cli": "7.27.2",
|
|
@@ -99,20 +99,20 @@
|
|
|
99
99
|
"@babel/preset-typescript": "7.27.1",
|
|
100
100
|
"@next/eslint-plugin-next": "15.4.4",
|
|
101
101
|
"@types/busboy": "1.5.4",
|
|
102
|
-
"@types/react": "19.1.
|
|
103
|
-
"@types/react-dom": "19.1.
|
|
102
|
+
"@types/react": "19.1.8",
|
|
103
|
+
"@types/react-dom": "19.1.6",
|
|
104
104
|
"@types/uuid": "10.0.0",
|
|
105
|
-
"babel-plugin-react-compiler": "19.1.0-rc.
|
|
105
|
+
"babel-plugin-react-compiler": "19.1.0-rc.2",
|
|
106
106
|
"esbuild": "0.25.5",
|
|
107
107
|
"esbuild-sass-plugin": "3.3.1",
|
|
108
108
|
"swc-plugin-transform-remove-imports": "4.0.4",
|
|
109
109
|
"@payloadcms/eslint-config": "3.28.0",
|
|
110
|
-
"payload": "3.55.0-internal.
|
|
110
|
+
"payload": "3.55.0-internal.df60e35"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"graphql": "^16.8.1",
|
|
114
114
|
"next": "^15.2.3",
|
|
115
|
-
"payload": "3.55.0-internal.
|
|
115
|
+
"payload": "3.55.0-internal.df60e35"
|
|
116
116
|
},
|
|
117
117
|
"engines": {
|
|
118
118
|
"node": "^18.20.2 || >=20.9.0"
|