@payloadcms/ui 4.0.0-canary.7 → 4.0.0-canary.8
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/AddNewRelation/index.css +28 -28
- package/dist/elements/AppHeader/index.d.ts +2 -1
- package/dist/elements/AppHeader/index.d.ts.map +1 -1
- package/dist/elements/AppHeader/index.js +2 -0
- package/dist/elements/AppHeader/index.js.map +1 -1
- package/dist/elements/BulkUpload/FormsManager/index.d.ts.map +1 -1
- package/dist/elements/BulkUpload/FormsManager/index.js +13 -0
- package/dist/elements/BulkUpload/FormsManager/index.js.map +1 -1
- package/dist/elements/DocumentFields/index.css +8 -0
- package/dist/elements/Hierarchy/Tree/TreeNode/index.css +38 -13
- package/dist/elements/Hierarchy/Tree/TreeNode/index.d.ts.map +1 -1
- package/dist/elements/Hierarchy/Tree/TreeNode/index.js +37 -31
- package/dist/elements/Hierarchy/Tree/TreeNode/index.js.map +1 -1
- package/dist/elements/Hierarchy/Tree/index.css +1 -1
- package/dist/elements/Hierarchy/Tree/index.d.ts.map +1 -1
- package/dist/elements/Hierarchy/Tree/index.js +18 -5
- package/dist/elements/Hierarchy/Tree/index.js.map +1 -1
- package/dist/elements/RenderServerComponent/clientOnly.d.ts +8 -0
- package/dist/elements/RenderServerComponent/clientOnly.d.ts.map +1 -0
- package/dist/elements/RenderServerComponent/clientOnly.js +56 -0
- package/dist/elements/RenderServerComponent/clientOnly.js.map +1 -0
- package/dist/elements/SidebarRow/index.css +0 -2
- package/dist/elements/UserMenu/index.d.ts +1 -0
- package/dist/elements/UserMenu/index.d.ts.map +1 -1
- package/dist/elements/UserMenu/index.js +2 -1
- package/dist/elements/UserMenu/index.js.map +1 -1
- package/dist/exports/client/index.js +1 -86
- package/dist/exports/client/index.js.map +4 -4
- package/dist/exports/server.d.ts +3 -0
- package/dist/exports/server.d.ts.map +1 -0
- package/dist/exports/server.js +2 -0
- package/dist/exports/server.js.map +1 -0
- package/dist/exports/shared/index.js.map +2 -2
- package/dist/fields/Group/index.css +1 -7
- package/dist/forms/Form/types.d.ts +2 -2
- package/dist/forms/Form/types.d.ts.map +1 -1
- package/dist/forms/Form/types.js.map +1 -1
- package/dist/forms/RenderFields/index.css +4 -4
- package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/index.d.ts +2 -2
- package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/index.d.ts.map +1 -1
- package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/index.js.map +1 -1
- package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/iterateFields.d.ts +2 -2
- package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/iterateFields.d.ts.map +1 -1
- package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/iterateFields.js.map +1 -1
- package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/promise.d.ts +2 -2
- package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/promise.d.ts.map +1 -1
- package/dist/forms/fieldSchemasToFormState/calculateDefaultValues/promise.js.map +1 -1
- package/dist/providers/Auth/index.d.ts +2 -2
- package/dist/providers/Auth/index.d.ts.map +1 -1
- package/dist/providers/Auth/index.js.map +1 -1
- package/dist/providers/DocumentInfo/types.d.ts +2 -2
- package/dist/providers/DocumentInfo/types.d.ts.map +1 -1
- package/dist/providers/DocumentInfo/types.js.map +1 -1
- package/dist/providers/Root/index.d.ts +2 -2
- package/dist/providers/Root/index.d.ts.map +1 -1
- package/dist/providers/Root/index.js.map +1 -1
- package/dist/styles.css +1369 -1
- package/dist/templates/Default/index.d.ts.map +1 -1
- package/dist/templates/Default/index.js +6 -0
- package/dist/templates/Default/index.js.map +1 -1
- package/dist/utilities/getDocPreferences.d.ts +2 -2
- package/dist/utilities/getDocPreferences.d.ts.map +1 -1
- package/dist/utilities/getDocPreferences.js.map +1 -1
- package/dist/utilities/getDocumentData.d.ts +2 -2
- package/dist/utilities/getDocumentData.d.ts.map +1 -1
- package/dist/utilities/getDocumentData.js.map +1 -1
- package/dist/utilities/getGlobalData.d.ts.map +1 -1
- package/dist/utilities/getGlobalData.js.map +1 -1
- package/dist/utilities/getHasScheduledPublish.d.ts +2 -2
- package/dist/utilities/getHasScheduledPublish.d.ts.map +1 -1
- package/dist/utilities/getHasScheduledPublish.js.map +1 -1
- package/dist/utilities/getIsLocked.d.ts +2 -2
- package/dist/utilities/getIsLocked.d.ts.map +1 -1
- package/dist/utilities/getIsLocked.js.map +1 -1
- package/dist/utilities/getVersions.d.ts +2 -2
- package/dist/utilities/getVersions.d.ts.map +1 -1
- package/dist/utilities/getVersions.js.map +1 -1
- package/dist/utilities/handleAuthRedirect.d.ts +2 -2
- package/dist/utilities/handleAuthRedirect.d.ts.map +1 -1
- package/dist/utilities/handleAuthRedirect.js.map +1 -1
- package/dist/utilities/handleFormStateLocking.d.ts +2 -2
- package/dist/utilities/handleFormStateLocking.d.ts.map +1 -1
- package/dist/utilities/handleFormStateLocking.js.map +1 -1
- package/dist/utilities/handleLivePreview.d.ts.map +1 -1
- package/dist/utilities/serverFunctionRegistry.d.ts +13 -0
- package/dist/utilities/serverFunctionRegistry.d.ts.map +1 -0
- package/dist/utilities/serverFunctionRegistry.js +25 -0
- package/dist/utilities/serverFunctionRegistry.js.map +1 -0
- package/dist/views/Account/ResetPreferences/index.d.ts +2 -2
- package/dist/views/Account/ResetPreferences/index.d.ts.map +1 -1
- package/dist/views/Account/ResetPreferences/index.js.map +1 -1
- package/dist/views/Account/Settings/index.d.ts +2 -2
- package/dist/views/Account/Settings/index.d.ts.map +1 -1
- package/dist/views/Account/Settings/index.js.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts +2 -2
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.d.ts.map +1 -1
- package/dist/views/Dashboard/Default/ModularDashboard/utils/getItemsFromPreferences.js.map +1 -1
- package/dist/views/Document/index.d.ts.map +1 -1
- package/dist/views/Document/index.js +7 -0
- package/dist/views/Document/index.js.map +1 -1
- package/dist/views/Logout/LogoutClient.d.ts +14 -0
- package/dist/views/Logout/LogoutClient.d.ts.map +1 -1
- package/dist/views/Logout/LogoutClient.js +6 -4
- package/dist/views/Logout/LogoutClient.js.map +1 -1
- package/dist/views/Logout/index.d.ts.map +1 -1
- package/dist/views/Logout/index.js +7 -2
- package/dist/views/Logout/index.js.map +1 -1
- package/dist/views/Versions/fetchVersions.d.ts +4 -4
- package/dist/views/Versions/fetchVersions.d.ts.map +1 -1
- package/dist/views/Versions/fetchVersions.js.map +1 -1
- package/dist/views/Versions/types.d.ts +2 -2
- package/dist/views/Versions/types.d.ts.map +1 -1
- package/dist/views/Versions/types.js.map +1 -1
- package/dist/widgets/CollectionCards/getCollectionCardsData.d.ts +20 -0
- package/dist/widgets/CollectionCards/getCollectionCardsData.d.ts.map +1 -0
- package/dist/widgets/CollectionCards/getCollectionCardsData.js +29 -0
- package/dist/widgets/CollectionCards/getCollectionCardsData.js.map +1 -0
- package/dist/widgets/CollectionCards/index.client.d.ts +5 -0
- package/dist/widgets/CollectionCards/index.client.d.ts.map +1 -0
- package/dist/widgets/CollectionCards/index.client.js +139 -0
- package/dist/widgets/CollectionCards/index.client.js.map +1 -0
- package/package.json +58 -8
- package/dist/exports/client/CodeEditor-T3624SG3.js +0 -14
- package/dist/exports/client/CodeEditor-T3624SG3.js.map +0 -7
- package/dist/exports/client/DatePicker-6KF52Z3G.js +0 -14
- package/dist/exports/client/DatePicker-6KF52Z3G.js.map +0 -7
- package/dist/exports/client/chunk-5LKBKI4T.js +0 -14
- package/dist/exports/client/chunk-5LKBKI4T.js.map +0 -7
- package/dist/exports/client/chunk-7T64ULOM.js +0 -29
- package/dist/exports/client/chunk-7T64ULOM.js.map +0 -7
- package/dist/exports/client/chunk-DMFYTMX6.js +0 -27
- package/dist/exports/client/chunk-DMFYTMX6.js.map +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../../../src/widgets/CollectionCards/index.client.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEtE,OAAO,aAAa,CAAA;AAQpB,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkH/D,CAAA"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { getTranslation } from '@payloadcms/translations';
|
|
6
|
+
import { EntityType, formatAdminURL } from 'payload/shared';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import './index.css';
|
|
9
|
+
import { Button } from '../../elements/Button/index.js';
|
|
10
|
+
import { Card } from '../../elements/Card/index.js';
|
|
11
|
+
import { Locked } from '../../elements/Locked/index.js';
|
|
12
|
+
import { useTranslation } from '../../providers/Translation/index.js';
|
|
13
|
+
const baseClass = 'collections';
|
|
14
|
+
export const CollectionCardsClient = t0 => {
|
|
15
|
+
const $ = _c(8);
|
|
16
|
+
const {
|
|
17
|
+
adminRoute,
|
|
18
|
+
globalData,
|
|
19
|
+
navGroups,
|
|
20
|
+
permissions,
|
|
21
|
+
userId
|
|
22
|
+
} = t0;
|
|
23
|
+
const {
|
|
24
|
+
i18n,
|
|
25
|
+
t
|
|
26
|
+
} = useTranslation();
|
|
27
|
+
let t1;
|
|
28
|
+
if ($[0] !== adminRoute || $[1] !== globalData || $[2] !== i18n || $[3] !== navGroups || $[4] !== permissions?.collections || $[5] !== t || $[6] !== userId) {
|
|
29
|
+
t1 = _jsx("div", {
|
|
30
|
+
className: baseClass,
|
|
31
|
+
children: _jsx("div", {
|
|
32
|
+
className: `${baseClass}__wrap`,
|
|
33
|
+
children: !navGroups || navGroups?.length === 0 ? _jsx("p", {
|
|
34
|
+
children: "no nav groups...."
|
|
35
|
+
}) : navGroups.map((t2, groupIndex) => {
|
|
36
|
+
const {
|
|
37
|
+
entities,
|
|
38
|
+
label
|
|
39
|
+
} = t2;
|
|
40
|
+
return _jsxs("div", {
|
|
41
|
+
className: `${baseClass}__group`,
|
|
42
|
+
children: [_jsx("h2", {
|
|
43
|
+
className: `${baseClass}__label`,
|
|
44
|
+
children: label
|
|
45
|
+
}), _jsx("ul", {
|
|
46
|
+
className: `${baseClass}__card-list`,
|
|
47
|
+
children: entities.map((t3, entityIndex) => {
|
|
48
|
+
const {
|
|
49
|
+
slug,
|
|
50
|
+
type,
|
|
51
|
+
label: label_0
|
|
52
|
+
} = t3;
|
|
53
|
+
let title;
|
|
54
|
+
let buttonAriaLabel;
|
|
55
|
+
let createHREF;
|
|
56
|
+
let href;
|
|
57
|
+
let hasCreatePermission;
|
|
58
|
+
let isLocked = null;
|
|
59
|
+
let userEditing = null;
|
|
60
|
+
if (type === EntityType.collection) {
|
|
61
|
+
title = getTranslation(label_0, i18n);
|
|
62
|
+
buttonAriaLabel = t("general:showAllLabel", {
|
|
63
|
+
label: title
|
|
64
|
+
});
|
|
65
|
+
href = formatAdminURL({
|
|
66
|
+
adminRoute,
|
|
67
|
+
path: `/collections/${slug}`
|
|
68
|
+
});
|
|
69
|
+
createHREF = formatAdminURL({
|
|
70
|
+
adminRoute,
|
|
71
|
+
path: `/collections/${slug}/create`
|
|
72
|
+
});
|
|
73
|
+
hasCreatePermission = permissions?.collections?.[slug]?.create;
|
|
74
|
+
}
|
|
75
|
+
if (type === EntityType.global) {
|
|
76
|
+
getTranslation(label_0, i18n);
|
|
77
|
+
buttonAriaLabel = t("general:editLabel", {
|
|
78
|
+
label: getTranslation(label_0, i18n)
|
|
79
|
+
});
|
|
80
|
+
href = formatAdminURL({
|
|
81
|
+
adminRoute,
|
|
82
|
+
path: `/globals/${slug}`
|
|
83
|
+
});
|
|
84
|
+
const globalLockData = globalData.find(global => global.slug === slug);
|
|
85
|
+
if (globalLockData) {
|
|
86
|
+
isLocked = globalLockData.data._isLocked;
|
|
87
|
+
userEditing = globalLockData.data._userEditing;
|
|
88
|
+
const lockDuration = globalLockData?.lockDuration;
|
|
89
|
+
const lastEditedAt = new Date(globalLockData.data?._lastEditedAt).getTime();
|
|
90
|
+
const lockDurationInMilliseconds = lockDuration * 1000;
|
|
91
|
+
const lockExpirationTime = lastEditedAt + lockDurationInMilliseconds;
|
|
92
|
+
if (new Date().getTime() > lockExpirationTime) {
|
|
93
|
+
isLocked = false;
|
|
94
|
+
userEditing = null;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return _jsx("li", {
|
|
99
|
+
children: _jsx(Card, {
|
|
100
|
+
actions: isLocked && userId !== userEditing?.id ? _jsx(Locked, {
|
|
101
|
+
className: `${baseClass}__locked`,
|
|
102
|
+
user: userEditing
|
|
103
|
+
}) : hasCreatePermission && type === EntityType.collection ? _jsx(Button, {
|
|
104
|
+
"aria-label": t("general:createNewLabel", {
|
|
105
|
+
label: label_0
|
|
106
|
+
}),
|
|
107
|
+
buttonStyle: "ghost",
|
|
108
|
+
el: "link",
|
|
109
|
+
icon: "plus",
|
|
110
|
+
round: true,
|
|
111
|
+
to: createHREF
|
|
112
|
+
}) : undefined,
|
|
113
|
+
buttonAriaLabel,
|
|
114
|
+
href,
|
|
115
|
+
id: `card-${slug}`,
|
|
116
|
+
title: getTranslation(label_0, i18n),
|
|
117
|
+
titleAs: "h3"
|
|
118
|
+
})
|
|
119
|
+
}, entityIndex);
|
|
120
|
+
})
|
|
121
|
+
})]
|
|
122
|
+
}, groupIndex);
|
|
123
|
+
})
|
|
124
|
+
})
|
|
125
|
+
});
|
|
126
|
+
$[0] = adminRoute;
|
|
127
|
+
$[1] = globalData;
|
|
128
|
+
$[2] = i18n;
|
|
129
|
+
$[3] = navGroups;
|
|
130
|
+
$[4] = permissions?.collections;
|
|
131
|
+
$[5] = t;
|
|
132
|
+
$[6] = userId;
|
|
133
|
+
$[7] = t1;
|
|
134
|
+
} else {
|
|
135
|
+
t1 = $[7];
|
|
136
|
+
}
|
|
137
|
+
return t1;
|
|
138
|
+
};
|
|
139
|
+
//# sourceMappingURL=index.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.client.js","names":["c","_c","getTranslation","EntityType","formatAdminURL","React","Button","Card","Locked","useTranslation","baseClass","CollectionCardsClient","t0","$","adminRoute","globalData","navGroups","permissions","userId","i18n","t","t1","collections","_jsx","className","children","length","map","t2","groupIndex","entities","label","_jsxs","t3","entityIndex","slug","type","label_0","title","buttonAriaLabel","createHREF","href","hasCreatePermission","isLocked","userEditing","collection","create","global","globalLockData","find","data","_isLocked","_userEditing","lockDuration","lastEditedAt","Date","_lastEditedAt","getTime","lockDurationInMilliseconds","lockExpirationTime","actions","id","user","buttonStyle","el","icon","round","to","titleAs"],"sources":["../../../src/widgets/CollectionCards/index.client.tsx"],"sourcesContent":["'use client'\nimport type { ClientUser } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { EntityType, formatAdminURL } from 'payload/shared'\nimport React from 'react'\n\nimport type { CollectionCardsData } from './getCollectionCardsData.js'\n\nimport './index.css'\nimport { Button } from '../../elements/Button/index.js'\nimport { Card } from '../../elements/Card/index.js'\nimport { Locked } from '../../elements/Locked/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\n\nconst baseClass = 'collections'\n\nexport const CollectionCardsClient: React.FC<CollectionCardsData> = ({\n adminRoute,\n globalData,\n navGroups,\n permissions,\n userId,\n}) => {\n const { i18n, t } = useTranslation()\n\n return (\n <div className={baseClass}>\n <div className={`${baseClass}__wrap`}>\n {!navGroups || navGroups?.length === 0 ? (\n <p>no nav groups....</p>\n ) : (\n navGroups.map(({ entities, label }, groupIndex) => {\n return (\n <div className={`${baseClass}__group`} key={groupIndex}>\n <h2 className={`${baseClass}__label`}>{label}</h2>\n <ul className={`${baseClass}__card-list`}>\n {entities.map(({ slug, type, label }, entityIndex) => {\n let title: string\n let buttonAriaLabel: string\n let createHREF: string\n let href: string\n let hasCreatePermission: boolean\n let isLocked = null\n let userEditing: ClientUser | null = null\n\n if (type === EntityType.collection) {\n title = getTranslation(label, i18n)\n\n buttonAriaLabel = t('general:showAllLabel', { label: title })\n\n href = formatAdminURL({\n adminRoute,\n path: `/collections/${slug}`,\n })\n\n createHREF = formatAdminURL({\n adminRoute,\n path: `/collections/${slug}/create`,\n })\n\n hasCreatePermission = permissions?.collections?.[slug]?.create\n }\n\n if (type === EntityType.global) {\n title = getTranslation(label, i18n)\n\n buttonAriaLabel = t('general:editLabel', {\n label: getTranslation(label, i18n),\n })\n\n href = formatAdminURL({\n adminRoute,\n path: `/globals/${slug}`,\n })\n\n const globalLockData = globalData.find((global) => global.slug === slug)\n\n if (globalLockData) {\n isLocked = globalLockData.data._isLocked\n userEditing = globalLockData.data._userEditing as ClientUser | null\n\n const lockDuration = globalLockData?.lockDuration\n const lastEditedAt = new Date(globalLockData.data?._lastEditedAt).getTime()\n\n const lockDurationInMilliseconds = lockDuration * 1000\n const lockExpirationTime = lastEditedAt + lockDurationInMilliseconds\n\n if (new Date().getTime() > lockExpirationTime) {\n isLocked = false\n userEditing = null\n }\n }\n }\n\n return (\n <li key={entityIndex}>\n <Card\n actions={\n isLocked && userId !== userEditing?.id ? (\n <Locked className={`${baseClass}__locked`} user={userEditing} />\n ) : hasCreatePermission && type === EntityType.collection ? (\n <Button\n aria-label={t('general:createNewLabel', {\n label,\n })}\n buttonStyle=\"ghost\"\n el=\"link\"\n icon=\"plus\"\n round\n to={createHREF}\n />\n ) : undefined\n }\n buttonAriaLabel={buttonAriaLabel}\n href={href}\n id={`card-${slug}`}\n title={getTranslation(label, i18n)}\n titleAs=\"h3\"\n />\n </li>\n )\n })}\n </ul>\n </div>\n )\n })\n )}\n </div>\n </div>\n )\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AAGA,SAASC,cAAc,QAAQ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A,C;aAxFwCL,UAAA;QAAA,CA4FhD;MAAA,C;;;;;;;;;;;;;SAnGNR,E;CAwGJ","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/ui",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.8",
|
|
4
4
|
"homepage": "https://payloadcms.com",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -211,6 +211,56 @@
|
|
|
211
211
|
"import": "./dist/utilities/*.js",
|
|
212
212
|
"types": "./dist/utilities/*.d.ts",
|
|
213
213
|
"default": "./dist/utilities/*.js"
|
|
214
|
+
},
|
|
215
|
+
"./server": {
|
|
216
|
+
"import": "./dist/exports/server.js",
|
|
217
|
+
"types": "./dist/exports/server.d.ts",
|
|
218
|
+
"default": "./dist/exports/server.js"
|
|
219
|
+
},
|
|
220
|
+
"./views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn": {
|
|
221
|
+
"import": "./dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js",
|
|
222
|
+
"types": "./dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.d.ts",
|
|
223
|
+
"default": "./dist/views/Dashboard/Default/ModularDashboard/renderWidget/renderWidgetServerFn.js"
|
|
224
|
+
},
|
|
225
|
+
"./views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn": {
|
|
226
|
+
"import": "./dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js",
|
|
227
|
+
"types": "./dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.d.ts",
|
|
228
|
+
"default": "./dist/views/Dashboard/Default/ModularDashboard/renderWidget/getDefaultLayoutServerFn.js"
|
|
229
|
+
},
|
|
230
|
+
"./elements/Nav/SidebarTabs/renderTabServerFn": {
|
|
231
|
+
"import": "./dist/elements/Nav/SidebarTabs/renderTabServerFn.js",
|
|
232
|
+
"types": "./dist/elements/Nav/SidebarTabs/renderTabServerFn.d.ts",
|
|
233
|
+
"default": "./dist/elements/Nav/SidebarTabs/renderTabServerFn.js"
|
|
234
|
+
},
|
|
235
|
+
"./elements/RenderServerComponent/clientOnly": {
|
|
236
|
+
"import": "./dist/elements/RenderServerComponent/clientOnly.js",
|
|
237
|
+
"types": "./dist/elements/RenderServerComponent/clientOnly.d.ts",
|
|
238
|
+
"default": "./dist/elements/RenderServerComponent/clientOnly.js"
|
|
239
|
+
},
|
|
240
|
+
"./elements/Nav/getNavPrefs": {
|
|
241
|
+
"import": "./dist/elements/Nav/getNavPrefs.js",
|
|
242
|
+
"types": "./dist/elements/Nav/getNavPrefs.d.ts",
|
|
243
|
+
"default": "./dist/elements/Nav/getNavPrefs.js"
|
|
244
|
+
},
|
|
245
|
+
"./elements/DocumentHeader/Tabs/Tab/TabLink": {
|
|
246
|
+
"import": "./dist/elements/DocumentHeader/Tabs/Tab/TabLink.js",
|
|
247
|
+
"types": "./dist/elements/DocumentHeader/Tabs/Tab/TabLink.d.ts",
|
|
248
|
+
"default": "./dist/elements/DocumentHeader/Tabs/Tab/TabLink.js"
|
|
249
|
+
},
|
|
250
|
+
"./elements/DocumentHeader/Tabs/ShouldRenderTabs": {
|
|
251
|
+
"import": "./dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.js",
|
|
252
|
+
"types": "./dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.d.ts",
|
|
253
|
+
"default": "./dist/elements/DocumentHeader/Tabs/ShouldRenderTabs.js"
|
|
254
|
+
},
|
|
255
|
+
"./widgets/CollectionCards/index.client": {
|
|
256
|
+
"import": "./dist/widgets/CollectionCards/index.client.js",
|
|
257
|
+
"types": "./dist/widgets/CollectionCards/index.client.d.ts",
|
|
258
|
+
"default": "./dist/widgets/CollectionCards/index.client.js"
|
|
259
|
+
},
|
|
260
|
+
"./utilities/serverFunctionRegistry": {
|
|
261
|
+
"import": "./dist/utilities/serverFunctionRegistry.js",
|
|
262
|
+
"types": "./dist/utilities/serverFunctionRegistry.d.ts",
|
|
263
|
+
"default": "./dist/utilities/serverFunctionRegistry.js"
|
|
214
264
|
}
|
|
215
265
|
},
|
|
216
266
|
"main": "./dist/exports/client/index.js",
|
|
@@ -243,7 +293,7 @@
|
|
|
243
293
|
"ts-essentials": "10.0.3",
|
|
244
294
|
"use-context-selector": "2.0.0",
|
|
245
295
|
"uuid": "14.0.0",
|
|
246
|
-
"@payloadcms/translations": "4.0.0-canary.
|
|
296
|
+
"@payloadcms/translations": "4.0.0-canary.8"
|
|
247
297
|
},
|
|
248
298
|
"devDependencies": {
|
|
249
299
|
"@babel/cli": "7.27.2",
|
|
@@ -257,13 +307,13 @@
|
|
|
257
307
|
"babel-plugin-react-compiler": "19.1.0-rc.3",
|
|
258
308
|
"esbuild": "0.27.1",
|
|
259
309
|
"esbuild-sass-plugin": "3.3.1",
|
|
260
|
-
"
|
|
261
|
-
"
|
|
310
|
+
"payload": "4.0.0-canary.8",
|
|
311
|
+
"@payloadcms/eslint-config": "3.28.0"
|
|
262
312
|
},
|
|
263
313
|
"peerDependencies": {
|
|
264
314
|
"react": "^19.0.1 || ^19.1.2 || ^19.2.1",
|
|
265
315
|
"react-dom": "^19.0.1 || ^19.1.2 || ^19.2.1",
|
|
266
|
-
"payload": "4.0.0-canary.
|
|
316
|
+
"payload": "4.0.0-canary.8"
|
|
267
317
|
},
|
|
268
318
|
"engines": {
|
|
269
319
|
"node": ">=24.15.0"
|
|
@@ -279,11 +329,11 @@
|
|
|
279
329
|
"build:remove-artifact": "rm dist/prod/index.js",
|
|
280
330
|
"build:swc": "swc ./src -d dist --config-file .swcrc --strip-leading-paths",
|
|
281
331
|
"build:swc:debug": "swc ./src -d ./dist --config-file .swcrc-debug --strip-leading-paths",
|
|
282
|
-
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
332
|
+
"build:types": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" tsc --emitDeclarationOnly --outDir dist",
|
|
283
333
|
"build:without_reactcompiler": "rm -rf dist && rm -rf tsconfig.tsbuildinfo && pnpm copyfiles && pnpm build:types && pnpm build:swc",
|
|
284
334
|
"clean": "rimraf -g {dist,*.tsbuildinfo,esbuild}",
|
|
285
335
|
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist/",
|
|
286
|
-
"lint": "eslint .",
|
|
287
|
-
"lint:fix": "eslint . --fix"
|
|
336
|
+
"lint": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint .",
|
|
337
|
+
"lint:fix": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" eslint . --fix"
|
|
288
338
|
}
|
|
289
339
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
// Workaround for react-datepicker and other cjs dependencies potentially inserting require("react") statements
|
|
3
|
-
import * as requireReact from 'react';
|
|
4
|
-
import * as requireReactDom from 'react-dom';
|
|
5
|
-
|
|
6
|
-
function require(m) {
|
|
7
|
-
if (m === 'react') return requireReact;
|
|
8
|
-
if (m === 'react-dom') return requireReactDom;
|
|
9
|
-
throw new Error(`Unknown module ${m}`);
|
|
10
|
-
}
|
|
11
|
-
// Workaround end
|
|
12
|
-
|
|
13
|
-
import{l as a}from"./chunk-DMFYTMX6.js";import"./chunk-5LKBKI4T.js";export{a as default};
|
|
14
|
-
//# sourceMappingURL=CodeEditor-T3624SG3.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
// Workaround for react-datepicker and other cjs dependencies potentially inserting require("react") statements
|
|
3
|
-
import * as requireReact from 'react';
|
|
4
|
-
import * as requireReactDom from 'react-dom';
|
|
5
|
-
|
|
6
|
-
function require(m) {
|
|
7
|
-
if (m === 'react') return requireReact;
|
|
8
|
-
if (m === 'react-dom') return requireReactDom;
|
|
9
|
-
throw new Error(`Unknown module ${m}`);
|
|
10
|
-
}
|
|
11
|
-
// Workaround end
|
|
12
|
-
|
|
13
|
-
import{w as a}from"./chunk-7T64ULOM.js";import"./chunk-5LKBKI4T.js";export{a as default};
|
|
14
|
-
//# sourceMappingURL=DatePicker-6KF52Z3G.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
// Workaround for react-datepicker and other cjs dependencies potentially inserting require("react") statements
|
|
3
|
-
import * as requireReact from 'react';
|
|
4
|
-
import * as requireReactDom from 'react-dom';
|
|
5
|
-
|
|
6
|
-
function require(m) {
|
|
7
|
-
if (m === 'react') return requireReact;
|
|
8
|
-
if (m === 'react-dom') return requireReactDom;
|
|
9
|
-
throw new Error(`Unknown module ${m}`);
|
|
10
|
-
}
|
|
11
|
-
// Workaround end
|
|
12
|
-
|
|
13
|
-
var h=Object.create;var e=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(a&&(b=a(a=0)),b);var o=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),p=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},g=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of j(b))!l.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=i(b,d))||f.enumerable});return a};var q=(a,b,c)=>(c=a!=null?h(k(a)):{},g(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a)),r=a=>g(e({},"__esModule",{value:!0}),a);export{m as a,n as b,o as c,p as d,q as e,r as f};
|
|
14
|
-
//# sourceMappingURL=chunk-5LKBKI4T.js.map
|