@payloadcms/next 3.20.0-canary.75e9839 → 3.20.0-canary.8eef7db
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/prod/styles.css +1 -1
- package/dist/views/Account/index.d.ts.map +1 -1
- package/dist/views/Account/index.js +2 -1
- package/dist/views/Account/index.js.map +1 -1
- package/dist/views/CreateFirstUser/index.client.d.ts.map +1 -1
- package/dist/views/CreateFirstUser/index.client.js +4 -2
- package/dist/views/CreateFirstUser/index.client.js.map +1 -1
- package/dist/views/CreateFirstUser/index.d.ts.map +1 -1
- package/dist/views/CreateFirstUser/index.js +2 -1
- package/dist/views/CreateFirstUser/index.js.map +1 -1
- package/dist/views/Document/getDocumentPermissions.js +2 -2
- package/dist/views/Document/getDocumentPermissions.js.map +1 -1
- package/dist/views/Document/index.d.ts.map +1 -1
- package/dist/views/Document/index.js +2 -1
- package/dist/views/Document/index.js.map +1 -1
- package/dist/views/LivePreview/index.client.d.ts.map +1 -1
- package/dist/views/LivePreview/index.client.js +5 -2
- package/dist/views/LivePreview/index.client.js.map +1 -1
- package/dist/views/Version/Default/SelectedLocalesContext.d.ts +8 -0
- package/dist/views/Version/Default/SelectedLocalesContext.d.ts.map +1 -0
- package/dist/views/Version/Default/SelectedLocalesContext.js +10 -0
- package/dist/views/Version/Default/SelectedLocalesContext.js.map +1 -0
- package/dist/views/Version/Default/index.d.ts.map +1 -1
- package/dist/views/Version/Default/index.js +89 -159
- package/dist/views/Version/Default/index.js.map +1 -1
- package/dist/views/Version/Default/types.d.ts +4 -4
- package/dist/views/Version/Default/types.d.ts.map +1 -1
- package/dist/views/Version/Default/types.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts +6 -0
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js +36 -0
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts +30 -0
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js +300 -0
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts +2 -3
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js +54 -31
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts +2 -3
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js +59 -35
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +3 -3
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +97 -65
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +2 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +17 -15
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts +2 -3
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js +7 -24
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +2 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +56 -27
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +2 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +137 -80
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +2 -4
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +71 -36
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +2 -22
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js +2 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts +2 -4
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/index.js +8 -111
- package/dist/views/Version/RenderFieldsToDiff/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js +7 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldPathsModified.d.ts +27 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldPathsModified.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldPathsModified.js +30 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldPathsModified.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts +8 -3
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js +12 -3
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js +27 -9
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js.map +1 -1
- package/dist/views/Version/Restore/index.d.ts.map +1 -1
- package/dist/views/Version/Restore/index.js +2 -2
- package/dist/views/Version/Restore/index.js.map +1 -1
- package/dist/views/Version/SelectComparison/index.d.ts.map +1 -1
- package/dist/views/Version/SelectComparison/index.js +7 -3
- package/dist/views/Version/SelectComparison/index.js.map +1 -1
- package/dist/views/Version/index.d.ts.map +1 -1
- package/dist/views/Version/index.js +117 -15
- package/dist/views/Version/index.js.map +1 -1
- package/dist/views/Versions/getLatestVersion.d.ts +4 -1
- package/dist/views/Versions/getLatestVersion.d.ts.map +1 -1
- package/dist/views/Versions/getLatestVersion.js +6 -0
- package/dist/views/Versions/getLatestVersion.js.map +1 -1
- package/package.json +7 -7
- package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts +0 -21
- package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/types.js +0 -2
- package/dist/views/Version/RenderFieldsToDiff/fields/types.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/types.d.ts +0 -21
- package/dist/views/Version/RenderFieldsToDiff/types.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/types.js +0 -2
- package/dist/views/Version/RenderFieldsToDiff/types.js.map +0 -1
|
@@ -1,97 +1,154 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { getTranslation } from '@payloadcms/translations';
|
|
6
|
+
import { useTranslation } from '@payloadcms/ui';
|
|
5
7
|
import React from 'react';
|
|
8
|
+
import { useSelectedLocales } from '../../../Default/SelectedLocalesContext.js';
|
|
6
9
|
import { DiffCollapser } from '../../DiffCollapser/index.js';
|
|
7
|
-
import {
|
|
10
|
+
import { RenderVersionFieldsToDiff } from '../../RenderVersionFieldsToDiff.js';
|
|
8
11
|
const baseClass = 'tabs-diff';
|
|
9
12
|
export const Tabs = props => {
|
|
13
|
+
const $ = _c(13);
|
|
10
14
|
const {
|
|
11
|
-
|
|
15
|
+
baseVersionField,
|
|
16
|
+
comparisonValue,
|
|
12
17
|
field,
|
|
13
|
-
|
|
14
|
-
version
|
|
18
|
+
versionValue
|
|
15
19
|
} = props;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
20
|
+
const {
|
|
21
|
+
selectedLocales
|
|
22
|
+
} = useSelectedLocales();
|
|
23
|
+
let t0;
|
|
24
|
+
if ($[0] !== baseVersionField.tabs || $[1] !== comparisonValue || $[2] !== field.tabs || $[3] !== props || $[4] !== selectedLocales || $[5] !== versionValue) {
|
|
25
|
+
let t1;
|
|
26
|
+
if ($[7] !== comparisonValue || $[8] !== field.tabs || $[9] !== props || $[10] !== selectedLocales || $[11] !== versionValue) {
|
|
27
|
+
t1 = (tab, i) => {
|
|
28
|
+
const fieldTab = field.tabs?.[i];
|
|
29
|
+
return _jsx("div", {
|
|
30
|
+
className: `${baseClass}__tab`,
|
|
31
|
+
children: (() => {
|
|
32
|
+
if ("name" in fieldTab && selectedLocales && fieldTab.localized) {
|
|
33
|
+
return selectedLocales.map((locale, index) => {
|
|
34
|
+
const localizedTabProps = {
|
|
35
|
+
...props,
|
|
36
|
+
comparison: comparisonValue?.[tab.name]?.[locale],
|
|
37
|
+
version: versionValue?.[tab.name]?.[locale]
|
|
38
|
+
};
|
|
39
|
+
return _jsx("div", {
|
|
40
|
+
className: `${baseClass}__tab-locale`,
|
|
41
|
+
children: _jsx("div", {
|
|
42
|
+
className: `${baseClass}__tab-locale-value`,
|
|
43
|
+
children: _jsx(Tab, {
|
|
44
|
+
...localizedTabProps,
|
|
45
|
+
fieldTab,
|
|
46
|
+
locale,
|
|
47
|
+
tab
|
|
48
|
+
}, locale)
|
|
49
|
+
})
|
|
50
|
+
}, [locale, index].join("-"));
|
|
51
|
+
});
|
|
52
|
+
} else {
|
|
53
|
+
if ("name" in tab && tab.name) {
|
|
54
|
+
const namedTabProps = {
|
|
55
|
+
...props,
|
|
56
|
+
comparison: comparisonValue?.[tab.name],
|
|
57
|
+
version: versionValue?.[tab.name]
|
|
58
|
+
};
|
|
59
|
+
return _jsx(Tab, {
|
|
60
|
+
fieldTab,
|
|
61
|
+
...namedTabProps,
|
|
62
|
+
tab
|
|
63
|
+
}, i);
|
|
64
|
+
} else {
|
|
65
|
+
return _jsx(Tab, {
|
|
66
|
+
fieldTab,
|
|
67
|
+
...props,
|
|
68
|
+
tab
|
|
69
|
+
}, i);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
})()
|
|
73
|
+
}, i);
|
|
74
|
+
};
|
|
75
|
+
$[7] = comparisonValue;
|
|
76
|
+
$[8] = field.tabs;
|
|
77
|
+
$[9] = props;
|
|
78
|
+
$[10] = selectedLocales;
|
|
79
|
+
$[11] = versionValue;
|
|
80
|
+
$[12] = t1;
|
|
81
|
+
} else {
|
|
82
|
+
t1 = $[12];
|
|
83
|
+
}
|
|
84
|
+
t0 = _jsx("div", {
|
|
85
|
+
className: baseClass,
|
|
86
|
+
children: baseVersionField.tabs.map(t1)
|
|
87
|
+
});
|
|
88
|
+
$[0] = baseVersionField.tabs;
|
|
89
|
+
$[1] = comparisonValue;
|
|
90
|
+
$[2] = field.tabs;
|
|
91
|
+
$[3] = props;
|
|
92
|
+
$[4] = selectedLocales;
|
|
93
|
+
$[5] = versionValue;
|
|
94
|
+
$[6] = t0;
|
|
95
|
+
} else {
|
|
96
|
+
t0 = $[6];
|
|
97
|
+
}
|
|
98
|
+
return t0;
|
|
64
99
|
};
|
|
65
|
-
const Tab =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
100
|
+
const Tab = t0 => {
|
|
101
|
+
const $ = _c(11);
|
|
102
|
+
const {
|
|
103
|
+
comparisonValue,
|
|
104
|
+
fieldTab,
|
|
105
|
+
locale,
|
|
106
|
+
tab,
|
|
107
|
+
versionValue
|
|
108
|
+
} = t0;
|
|
109
|
+
const {
|
|
110
|
+
i18n
|
|
111
|
+
} = useTranslation();
|
|
112
|
+
const {
|
|
113
|
+
selectedLocales
|
|
114
|
+
} = useSelectedLocales();
|
|
115
|
+
let t1;
|
|
116
|
+
if ($[0] !== i18n || $[1] !== locale || $[2] !== tab) {
|
|
117
|
+
t1 = "label" in tab && tab.label && typeof tab.label !== "function" && _jsxs("span", {
|
|
118
|
+
children: [locale && _jsx("span", {
|
|
80
119
|
className: `${baseClass}__locale-label`,
|
|
81
120
|
children: locale
|
|
82
121
|
}), getTranslation(tab.label, i18n)]
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
122
|
+
});
|
|
123
|
+
$[0] = i18n;
|
|
124
|
+
$[1] = locale;
|
|
125
|
+
$[2] = tab;
|
|
126
|
+
$[3] = t1;
|
|
127
|
+
} else {
|
|
128
|
+
t1 = $[3];
|
|
129
|
+
}
|
|
130
|
+
let t2;
|
|
131
|
+
if ($[4] !== comparisonValue || $[5] !== fieldTab.fields || $[6] !== selectedLocales || $[7] !== t1 || $[8] !== tab.fields || $[9] !== versionValue) {
|
|
132
|
+
t2 = _jsx(DiffCollapser, {
|
|
133
|
+
comparison: comparisonValue,
|
|
134
|
+
fields: fieldTab.fields,
|
|
135
|
+
label: t1,
|
|
136
|
+
locales: selectedLocales,
|
|
137
|
+
version: versionValue,
|
|
138
|
+
children: _jsx(RenderVersionFieldsToDiff, {
|
|
139
|
+
versionFields: tab.fields
|
|
140
|
+
})
|
|
141
|
+
});
|
|
142
|
+
$[4] = comparisonValue;
|
|
143
|
+
$[5] = fieldTab.fields;
|
|
144
|
+
$[6] = selectedLocales;
|
|
145
|
+
$[7] = t1;
|
|
146
|
+
$[8] = tab.fields;
|
|
147
|
+
$[9] = versionValue;
|
|
148
|
+
$[10] = t2;
|
|
149
|
+
} else {
|
|
150
|
+
t2 = $[10];
|
|
151
|
+
}
|
|
152
|
+
return t2;
|
|
96
153
|
};
|
|
97
154
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["getTranslation","React","DiffCollapser","
|
|
1
|
+
{"version":3,"file":"index.js","names":["c","_c","getTranslation","useTranslation","React","useSelectedLocales","DiffCollapser","RenderVersionFieldsToDiff","baseClass","Tabs","props","$","baseVersionField","comparisonValue","field","versionValue","selectedLocales","t0","tabs","t1","tab","i","fieldTab","_jsx","className","children","localized","map","locale","index","localizedTabProps","comparison","name","version","Tab","join","namedTabProps","i18n","label","_jsxs","t2","fields","versionFields"],"sources":["../../../../../../src/views/Version/RenderFieldsToDiff/fields/Tabs/index.tsx"],"sourcesContent":["'use client'\nimport type {\n ClientTab,\n FieldDiffClientProps,\n TabsFieldClient,\n TabsFieldDiffClientComponent,\n VersionTab,\n} from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { useTranslation } from '@payloadcms/ui'\nimport React from 'react'\n\nimport './index.scss'\nimport { useSelectedLocales } from '../../../Default/SelectedLocalesContext.js'\nimport { DiffCollapser } from '../../DiffCollapser/index.js'\nimport { RenderVersionFieldsToDiff } from '../../RenderVersionFieldsToDiff.js'\n\nconst baseClass = 'tabs-diff'\n\nexport const Tabs: TabsFieldDiffClientComponent = (props) => {\n const { baseVersionField, comparisonValue, field, versionValue } = props\n const { selectedLocales } = useSelectedLocales()\n\n return (\n <div className={baseClass}>\n {baseVersionField.tabs.map((tab, i) => {\n const fieldTab = field.tabs?.[i]\n return (\n <div className={`${baseClass}__tab`} key={i}>\n {(() => {\n if ('name' in fieldTab && selectedLocales && fieldTab.localized) {\n // Named localized tab\n return selectedLocales.map((locale, index) => {\n const localizedTabProps = {\n ...props,\n comparison: comparisonValue?.[tab.name]?.[locale],\n version: versionValue?.[tab.name]?.[locale],\n }\n return (\n <div className={`${baseClass}__tab-locale`} key={[locale, index].join('-')}>\n <div className={`${baseClass}__tab-locale-value`}>\n <Tab\n key={locale}\n {...localizedTabProps}\n fieldTab={fieldTab}\n locale={locale}\n tab={tab}\n />\n </div>\n </div>\n )\n })\n } else if ('name' in tab && tab.name) {\n // Named tab\n const namedTabProps = {\n ...props,\n comparison: comparisonValue?.[tab.name],\n version: versionValue?.[tab.name],\n }\n return <Tab fieldTab={fieldTab} key={i} {...namedTabProps} tab={tab} />\n } else {\n // Unnamed tab\n return <Tab fieldTab={fieldTab} key={i} {...props} tab={tab} />\n }\n })()}\n </div>\n )\n })}\n </div>\n )\n}\n\ntype TabProps = {\n fieldTab: ClientTab\n tab: VersionTab\n} & FieldDiffClientProps<TabsFieldClient>\n\nconst Tab: React.FC<TabProps> = ({ comparisonValue, fieldTab, locale, tab, versionValue }) => {\n const { i18n } = useTranslation()\n const { selectedLocales } = useSelectedLocales()\n\n return (\n <DiffCollapser\n comparison={comparisonValue}\n fields={fieldTab.fields}\n label={\n 'label' in tab &&\n tab.label &&\n typeof tab.label !== 'function' && (\n <span>\n {locale && <span className={`${baseClass}__locale-label`}>{locale}</span>}\n {getTranslation(tab.label, i18n)}\n </span>\n )\n }\n locales={selectedLocales}\n version={versionValue}\n >\n <RenderVersionFieldsToDiff versionFields={tab.fields} />\n </DiffCollapser>\n )\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AASA,SAASC,cAAc,QAAQ;AAC/B,SAASC,cAAc,QAAQ;AAC/B,OAAOC,KAAA,MAAW;AAGlB,SAASC,kBAAkB,QAAQ;AACnC,SAASC,aAAa,QAAQ;AAC9B,SAASC,yBAAyB,QAAQ;AAE1C,MAAMC,SAAA,GAAY;AAElB,OAAO,MAAMC,IAAA,GAAqCC,KAAA;EAAA,MAAAC,CAAA,GAAAV,EAAA;EAChD;IAAAW,gBAAA;IAAAC,eAAA;IAAAC,KAAA;IAAAC;EAAA,IAAmEL,KAAA;EACnE;IAAAM;EAAA,IAA4BX,kBAAA;EAAA,IAAAY,EAAA;EAAA,IAAAN,CAAA,QAAAC,gBAAA,CAAAM,IAAA,IAAAP,CAAA,QAAAE,eAAA,IAAAF,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AAA,GACEG,MAAA,IAAUL,IAAA,CAAC;QAAAC,SAAA,EAAgB,GAAAhB,SAAA,gBAA4B;QAAAiB,QAAA,EAAGG;MAAA,C,GAC1D1B,cAAA,CAAekB,GAAA,CAAAkB,KAAA,EAAWD,IAAA;IAAA,C;;;;;;;;;;IATnCG,EAAA,GAAAjB,IAAA,CAAAjB,aAAA;MAAAyB,UAAA,EACclB,eAAA;MAAA4B,MAAA,EACJnB,QAAA,CAAAmB,MAAA;MAAAH,KAAA,EAENnB,E;eASOH,eAAA;MAAAiB,OAAA,EACAlB,YAAA;MAAAU,QAAA,EAETF,IAAA,CAAAhB,yBAAA;QAAAmC,aAAA,EAA0CtB,GAAA,CAAAqB;MAAA,C;;;;;;;;;;;;SAhB5CD,E;CAmBJ","ignoreList":[]}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { DiffComponentProps } from '../types.js';
|
|
1
|
+
import type { TextFieldDiffClientComponent } from 'payload';
|
|
4
2
|
import './index.scss';
|
|
5
|
-
export declare const Text:
|
|
3
|
+
export declare const Text: TextFieldDiffClientComponent;
|
|
6
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/Version/RenderFieldsToDiff/fields/Text/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/Version/RenderFieldsToDiff/fields/Text/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAO3D,OAAO,cAAc,CAAA;AAMrB,eAAO,MAAM,IAAI,EAAE,4BAqClB,CAAA"}
|
|
@@ -1,49 +1,84 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { getTranslation } from '@payloadcms/translations';
|
|
6
|
+
import { useTranslation } from '@payloadcms/ui';
|
|
5
7
|
import React from 'react';
|
|
6
8
|
import Label from '../../Label/index.js';
|
|
7
9
|
import { diffStyles } from '../styles.js';
|
|
8
10
|
import { DiffViewer } from './DiffViewer/index.js';
|
|
9
11
|
const baseClass = 'text-diff';
|
|
10
|
-
export const Text =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
export const Text = t0 => {
|
|
13
|
+
const $ = _c(14);
|
|
14
|
+
const {
|
|
15
|
+
comparisonValue,
|
|
16
|
+
diffMethod,
|
|
17
|
+
field,
|
|
18
|
+
locale,
|
|
19
|
+
versionValue
|
|
20
|
+
} = t0;
|
|
21
|
+
const {
|
|
22
|
+
i18n
|
|
23
|
+
} = useTranslation();
|
|
24
|
+
let placeholder = "";
|
|
25
|
+
if (versionValue == comparisonValue) {
|
|
26
|
+
placeholder = `[${i18n.t("general:noValue")}]`;
|
|
22
27
|
}
|
|
23
|
-
let
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
comparisonToRender = JSON.stringify(comparison, null, 2);
|
|
31
|
-
}
|
|
28
|
+
let t1;
|
|
29
|
+
if ($[0] !== versionValue) {
|
|
30
|
+
t1 = typeof versionValue === "string" ? versionValue : JSON.stringify(versionValue, null, 2);
|
|
31
|
+
$[0] = versionValue;
|
|
32
|
+
$[1] = t1;
|
|
33
|
+
} else {
|
|
34
|
+
t1 = $[1];
|
|
32
35
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
const versionToRender = t1;
|
|
37
|
+
let t2;
|
|
38
|
+
if ($[2] !== comparisonValue) {
|
|
39
|
+
t2 = typeof comparisonValue === "string" ? comparisonValue : JSON.stringify(comparisonValue, null, 2);
|
|
40
|
+
$[2] = comparisonValue;
|
|
41
|
+
$[3] = t2;
|
|
42
|
+
} else {
|
|
43
|
+
t2 = $[3];
|
|
44
|
+
}
|
|
45
|
+
const comparisonToRender = t2;
|
|
46
|
+
let t3;
|
|
47
|
+
if ($[4] !== locale) {
|
|
48
|
+
t3 = locale && _jsx("span", {
|
|
49
|
+
className: `${baseClass}__locale-label`,
|
|
50
|
+
children: locale
|
|
51
|
+
});
|
|
52
|
+
$[4] = locale;
|
|
53
|
+
$[5] = t3;
|
|
54
|
+
} else {
|
|
55
|
+
t3 = $[5];
|
|
56
|
+
}
|
|
57
|
+
let t4;
|
|
58
|
+
if ($[6] !== comparisonToRender || $[7] !== diffMethod || $[8] !== field || $[9] !== i18n || $[10] !== placeholder || $[11] !== t3 || $[12] !== versionToRender) {
|
|
59
|
+
t4 = _jsxs("div", {
|
|
60
|
+
className: baseClass,
|
|
61
|
+
children: [_jsxs(Label, {
|
|
62
|
+
children: [t3, "label" in field && typeof field.label !== "function" && getTranslation(field.label || "", i18n)]
|
|
63
|
+
}), _jsx(DiffViewer, {
|
|
64
|
+
comparisonToRender,
|
|
65
|
+
diffMethod,
|
|
66
|
+
diffStyles,
|
|
67
|
+
placeholder,
|
|
68
|
+
versionToRender
|
|
69
|
+
})]
|
|
70
|
+
});
|
|
71
|
+
$[6] = comparisonToRender;
|
|
72
|
+
$[7] = diffMethod;
|
|
73
|
+
$[8] = field;
|
|
74
|
+
$[9] = i18n;
|
|
75
|
+
$[10] = placeholder;
|
|
76
|
+
$[11] = t3;
|
|
77
|
+
$[12] = versionToRender;
|
|
78
|
+
$[13] = t4;
|
|
79
|
+
} else {
|
|
80
|
+
t4 = $[13];
|
|
81
|
+
}
|
|
82
|
+
return t4;
|
|
48
83
|
};
|
|
49
84
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["getTranslation","React","Label","diffStyles","DiffViewer","baseClass","Text","
|
|
1
|
+
{"version":3,"file":"index.js","names":["c","_c","getTranslation","useTranslation","React","Label","diffStyles","DiffViewer","baseClass","Text","t0","$","comparisonValue","diffMethod","field","locale","versionValue","i18n","placeholder","t","t1","JSON","stringify","versionToRender","t2","comparisonToRender","t3","_jsx","className","children","t4","_jsxs","label"],"sources":["../../../../../../src/views/Version/RenderFieldsToDiff/fields/Text/index.tsx"],"sourcesContent":["'use client'\nimport type { TextFieldDiffClientComponent } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { useTranslation } from '@payloadcms/ui'\nimport React from 'react'\n\nimport Label from '../../Label/index.js'\nimport './index.scss'\nimport { diffStyles } from '../styles.js'\nimport { DiffViewer } from './DiffViewer/index.js'\n\nconst baseClass = 'text-diff'\n\nexport const Text: TextFieldDiffClientComponent = ({\n comparisonValue,\n diffMethod,\n field,\n locale,\n versionValue,\n}) => {\n const { i18n } = useTranslation()\n\n let placeholder = ''\n\n if (versionValue == comparisonValue) {\n placeholder = `[${i18n.t('general:noValue')}]`\n }\n\n const versionToRender: string =\n typeof versionValue === 'string' ? versionValue : JSON.stringify(versionValue, null, 2)\n const comparisonToRender =\n typeof comparisonValue === 'string' ? comparisonValue : JSON.stringify(comparisonValue, null, 2)\n\n return (\n <div className={baseClass}>\n <Label>\n {locale && <span className={`${baseClass}__locale-label`}>{locale}</span>}\n {'label' in field &&\n typeof field.label !== 'function' &&\n getTranslation(field.label || '', i18n)}\n </Label>\n <DiffViewer\n comparisonToRender={comparisonToRender}\n diffMethod={diffMethod}\n diffStyles={diffStyles}\n placeholder={placeholder}\n versionToRender={versionToRender}\n />\n </div>\n )\n}\n"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B,SAAA,gBAA4B;MAAAqB,QAAA,EAAGd;IAAA,C;;;;;;;;IAF/De,EAAA,GAAAC,KAAA,CAAC;MAAAH,SAAA,EAAApB,SAAA;MAAAqB,QAAA,GACCE,KAAA,CAAA1B,KAAA;QAAAwB,QAAA,GACGH,E,EACA,WAAWZ,KAAA,IACV,OAAOA,KAAA,CAAAkB,KAAA,KAAgB,cACvB9B,cAAA,CAAeY,KAAA,CAAAkB,KAAA,IAAe,IAAIf,IAAA;MAAA,C,GAEtCU,IAAA,CAAApB,UAAA;QAAAkB,kBAAA;QAAAZ,UAAA;QAAAP,UAAA;QAAAY,WAAA;QAAAK;MAAA,C;;;;;;;;;;;;;SAPFO,E;CAgBJ","ignoreList":[]}
|
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
blocks: import("react").FC<import("./types.js").DiffComponentProps>;
|
|
4
|
-
checkbox: import("react").FC<import("./types.js").DiffComponentProps<import("payload").TextFieldClient>>;
|
|
5
|
-
code: import("react").FC<import("./types.js").DiffComponentProps<import("payload").TextFieldClient>>;
|
|
6
|
-
collapsible: import("react").FC<import("./types.js").DiffComponentProps>;
|
|
7
|
-
date: import("react").FC<import("./types.js").DiffComponentProps<import("payload").TextFieldClient>>;
|
|
8
|
-
email: import("react").FC<import("./types.js").DiffComponentProps<import("payload").TextFieldClient>>;
|
|
9
|
-
group: import("react").FC<import("./types.js").DiffComponentProps>;
|
|
10
|
-
json: import("react").FC<import("./types.js").DiffComponentProps<import("payload").TextFieldClient>>;
|
|
11
|
-
number: import("react").FC<import("./types.js").DiffComponentProps<import("payload").TextFieldClient>>;
|
|
12
|
-
point: import("react").FC<import("./types.js").DiffComponentProps<import("payload").TextFieldClient>>;
|
|
13
|
-
radio: import("react").FC<import("./types.js").DiffComponentProps<import("payload").SelectFieldClient>>;
|
|
14
|
-
relationship: import("react").FC<import("./types.js").DiffComponentProps<import("payload").RelationshipFieldClient>>;
|
|
15
|
-
richText: import("react").FC<import("./types.js").DiffComponentProps<import("payload").TextFieldClient>>;
|
|
16
|
-
row: import("react").FC<import("./types.js").DiffComponentProps>;
|
|
17
|
-
select: import("react").FC<import("./types.js").DiffComponentProps<import("payload").SelectFieldClient>>;
|
|
18
|
-
tabs: import("react").FC<import("./types.js").DiffComponentProps<import("payload").TabsFieldClient>>;
|
|
19
|
-
text: import("react").FC<import("./types.js").DiffComponentProps<import("payload").TextFieldClient>>;
|
|
20
|
-
textarea: import("react").FC<import("./types.js").DiffComponentProps<import("payload").TextFieldClient>>;
|
|
21
|
-
upload: import("react").FC<import("./types.js").DiffComponentProps<import("payload").RelationshipFieldClient>>;
|
|
22
|
-
};
|
|
1
|
+
import type { FieldDiffClientProps, FieldTypes } from 'payload';
|
|
2
|
+
export declare const diffComponents: Record<FieldTypes, React.ComponentType<FieldDiffClientProps>>;
|
|
23
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/Version/RenderFieldsToDiff/fields/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/views/Version/RenderFieldsToDiff/fields/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAW/D,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAuBxF,CAAA"}
|
|
@@ -15,6 +15,7 @@ export const diffComponents = {
|
|
|
15
15
|
date: Text,
|
|
16
16
|
email: Text,
|
|
17
17
|
group: Group,
|
|
18
|
+
join: null,
|
|
18
19
|
json: Text,
|
|
19
20
|
number: Text,
|
|
20
21
|
point: Text,
|
|
@@ -26,6 +27,7 @@ export const diffComponents = {
|
|
|
26
27
|
tabs: Tabs,
|
|
27
28
|
text: Text,
|
|
28
29
|
textarea: Text,
|
|
30
|
+
ui: null,
|
|
29
31
|
upload: Relationship
|
|
30
32
|
};
|
|
31
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Collapsible","Group","Iterable","Relationship","Row","Select","Tabs","Text","diffComponents","array","blocks","checkbox","code","collapsible","date","email","group","json","number","point","radio","relationship","richText","row","select","tabs","text","textarea","upload"],"sources":["../../../../../src/views/Version/RenderFieldsToDiff/fields/index.tsx"],"sourcesContent":["import { Collapsible } from './Collapsible/index.js'\nimport { Group } from './Group/index.js'\nimport { Iterable } from './Iterable/index.js'\nimport { Relationship } from './Relationship/index.js'\nimport { Row } from './Row/index.js'\nimport { Select } from './Select/index.js'\nimport { Tabs } from './Tabs/index.js'\nimport { Text } from './Text/index.js'\n\nexport const diffComponents = {\n array: Iterable,\n blocks: Iterable,\n checkbox: Text,\n code: Text,\n collapsible: Collapsible,\n date: Text,\n email: Text,\n group: Group,\n json: Text,\n number: Text,\n point: Text,\n radio: Select,\n relationship: Relationship,\n richText: Text,\n row: Row,\n select: Select,\n tabs: Tabs,\n text: Text,\n textarea: Text,\n upload: Relationship,\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["Collapsible","Group","Iterable","Relationship","Row","Select","Tabs","Text","diffComponents","array","blocks","checkbox","code","collapsible","date","email","group","join","json","number","point","radio","relationship","richText","row","select","tabs","text","textarea","ui","upload"],"sources":["../../../../../src/views/Version/RenderFieldsToDiff/fields/index.tsx"],"sourcesContent":["import type { FieldDiffClientProps, FieldTypes } from 'payload'\n\nimport { Collapsible } from './Collapsible/index.js'\nimport { Group } from './Group/index.js'\nimport { Iterable } from './Iterable/index.js'\nimport { Relationship } from './Relationship/index.js'\nimport { Row } from './Row/index.js'\nimport { Select } from './Select/index.js'\nimport { Tabs } from './Tabs/index.js'\nimport { Text } from './Text/index.js'\n\nexport const diffComponents: Record<FieldTypes, React.ComponentType<FieldDiffClientProps>> = {\n array: Iterable,\n blocks: Iterable,\n checkbox: Text,\n code: Text,\n collapsible: Collapsible,\n date: Text,\n email: Text,\n group: Group,\n join: null,\n json: Text,\n number: Text,\n point: Text,\n radio: Select,\n relationship: Relationship,\n richText: Text,\n row: Row,\n select: Select,\n tabs: Tabs,\n text: Text,\n textarea: Text,\n ui: null,\n upload: Relationship,\n}\n"],"mappings":"AAEA,SAASA,WAAW,QAAQ;AAC5B,SAASC,KAAK,QAAQ;AACtB,SAASC,QAAQ,QAAQ;AACzB,SAASC,YAAY,QAAQ;AAC7B,SAASC,GAAG,QAAQ;AACpB,SAASC,MAAM,QAAQ;AACvB,SAASC,IAAI,QAAQ;AACrB,SAASC,IAAI,QAAQ;AAErB,OAAO,MAAMC,cAAA,GAAgF;EAC3FC,KAAA,EAAOP,QAAA;EACPQ,MAAA,EAAQR,QAAA;EACRS,QAAA,EAAUJ,IAAA;EACVK,IAAA,EAAML,IAAA;EACNM,WAAA,EAAab,WAAA;EACbc,IAAA,EAAMP,IAAA;EACNQ,KAAA,EAAOR,IAAA;EACPS,KAAA,EAAOf,KAAA;EACPgB,IAAA,EAAM;EACNC,IAAA,EAAMX,IAAA;EACNY,MAAA,EAAQZ,IAAA;EACRa,KAAA,EAAOb,IAAA;EACPc,KAAA,EAAOhB,MAAA;EACPiB,YAAA,EAAcnB,YAAA;EACdoB,QAAA,EAAUhB,IAAA;EACViB,GAAA,EAAKpB,GAAA;EACLqB,MAAA,EAAQpB,MAAA;EACRqB,IAAA,EAAMpB,IAAA;EACNqB,IAAA,EAAMpB,IAAA;EACNqB,QAAA,EAAUrB,IAAA;EACVsB,EAAA,EAAI;EACJC,MAAA,EAAQ3B;AACV","ignoreList":[]}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import './index.scss';
|
|
4
|
-
export declare const RenderFieldsToDiff: React.FC<Props>;
|
|
1
|
+
import { type BuildVersionFieldsArgs } from './buildVersionFields.js';
|
|
2
|
+
export declare const RenderDiff: (args: BuildVersionFieldsArgs) => React.ReactNode;
|
|
5
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Version/RenderFieldsToDiff/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/Version/RenderFieldsToDiff/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAGzF,eAAO,MAAM,UAAU,SAAU,sBAAsB,KAAG,KAAK,CAAC,SAI/D,CAAA"}
|