@payloadcms/next 3.20.0-canary.0e01b65 → 3.20.0-canary.260f830
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/Version/Default/index.d.ts.map +1 -1
- package/dist/views/Version/Default/index.js +159 -89
- 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/fields/Collapsible/index.d.ts +2 -2
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js +31 -54
- package/dist/views/Version/RenderFieldsToDiff/fields/Collapsible/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts +3 -3
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js +35 -59
- package/dist/views/Version/RenderFieldsToDiff/fields/Group/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts +2 -2
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js +65 -97
- package/dist/views/Version/RenderFieldsToDiff/fields/Iterable/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts +2 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js +15 -17
- package/dist/views/Version/RenderFieldsToDiff/fields/Relationship/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts +2 -2
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js +24 -7
- package/dist/views/Version/RenderFieldsToDiff/fields/Row/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts +2 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js +27 -56
- package/dist/views/Version/RenderFieldsToDiff/fields/Select/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts +2 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js +80 -137
- package/dist/views/Version/RenderFieldsToDiff/fields/Tabs/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts +2 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js +36 -71
- package/dist/views/Version/RenderFieldsToDiff/fields/Text/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts +22 -2
- package/dist/views/Version/RenderFieldsToDiff/fields/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js +0 -2
- package/dist/views/Version/RenderFieldsToDiff/fields/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts +21 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/types.d.ts.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/types.js +2 -0
- package/dist/views/Version/RenderFieldsToDiff/fields/types.js.map +1 -0
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts +4 -2
- package/dist/views/Version/RenderFieldsToDiff/index.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/index.js +111 -8
- package/dist/views/Version/RenderFieldsToDiff/index.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/types.d.ts +20 -2
- package/dist/views/Version/RenderFieldsToDiff/types.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/types.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js +1 -7
- package/dist/views/Version/RenderFieldsToDiff/utilities/countChangedFields.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts +3 -8
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.d.ts.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js +3 -12
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.js.map +1 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js +9 -27
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldsForRowComparison.spec.js.map +1 -1
- package/dist/views/Version/SelectComparison/index.d.ts.map +1 -1
- package/dist/views/Version/SelectComparison/index.js +3 -7
- 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 +15 -117
- package/dist/views/Version/index.js.map +1 -1
- package/dist/views/Versions/getLatestVersion.d.ts +1 -4
- package/dist/views/Versions/getLatestVersion.d.ts.map +1 -1
- package/dist/views/Versions/getLatestVersion.js +0 -6
- package/dist/views/Versions/getLatestVersion.js.map +1 -1
- package/package.json +8 -8
- package/dist/views/Version/Default/SelectedLocalesContext.d.ts +0 -8
- package/dist/views/Version/Default/SelectedLocalesContext.d.ts.map +0 -1
- package/dist/views/Version/Default/SelectedLocalesContext.js +0 -10
- package/dist/views/Version/Default/SelectedLocalesContext.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts +0 -6
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js +0 -36
- package/dist/views/Version/RenderFieldsToDiff/RenderVersionFieldsToDiff.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts +0 -30
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js +0 -300
- package/dist/views/Version/RenderFieldsToDiff/buildVersionFields.js.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldPathsModified.d.ts +0 -27
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldPathsModified.d.ts.map +0 -1
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldPathsModified.js +0 -30
- package/dist/views/Version/RenderFieldsToDiff/utilities/getFieldPathsModified.js.map +0 -1
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { c as _c } from "react/compiler-runtime";
|
|
4
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { getTranslation } from '@payloadcms/translations';
|
|
6
|
-
import { useTranslation } from '@payloadcms/ui';
|
|
7
5
|
import React from 'react';
|
|
8
6
|
import Label from '../../Label/index.js';
|
|
9
7
|
import { diffStyles } from '../styles.js';
|
|
@@ -21,62 +19,35 @@ const getTranslatedOptions = (options, i18n) => {
|
|
|
21
19
|
}
|
|
22
20
|
return typeof options === 'string' ? options : getTranslation(options.label, i18n);
|
|
23
21
|
};
|
|
24
|
-
export const Select =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
i18n
|
|
35
|
-
} = useTranslation();
|
|
36
|
-
let placeholder = "";
|
|
37
|
-
if (versionValue == comparisonValue) {
|
|
38
|
-
placeholder = `[${i18n.t("general:noValue")}]`;
|
|
22
|
+
export const Select = ({
|
|
23
|
+
comparison,
|
|
24
|
+
diffMethod,
|
|
25
|
+
field,
|
|
26
|
+
i18n,
|
|
27
|
+
locale,
|
|
28
|
+
version
|
|
29
|
+
}) => {
|
|
30
|
+
let placeholder = '';
|
|
31
|
+
if (version === comparison) {
|
|
32
|
+
placeholder = `[${i18n.t('general:noValue')}]`;
|
|
39
33
|
}
|
|
40
|
-
const options =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
t2 = locale && _jsx("span", {
|
|
34
|
+
const options = 'options' in field && field.options;
|
|
35
|
+
const comparisonToRender = typeof comparison !== 'undefined' ? getTranslatedOptions(getOptionsToRender(comparison, options, field.hasMany), i18n) : placeholder;
|
|
36
|
+
const versionToRender = typeof version !== 'undefined' ? getTranslatedOptions(getOptionsToRender(version, options, field.hasMany), i18n) : placeholder;
|
|
37
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
38
|
+
className: baseClass,
|
|
39
|
+
children: [/*#__PURE__*/_jsxs(Label, {
|
|
40
|
+
children: [locale && /*#__PURE__*/_jsx("span", {
|
|
48
41
|
className: `${baseClass}__locale-label`,
|
|
49
42
|
children: locale
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
children: [t2, "label" in field && getTranslation(field.label || "", i18n)]
|
|
60
|
-
}), _jsx(DiffViewer, {
|
|
61
|
-
comparisonToRender,
|
|
62
|
-
diffMethod,
|
|
63
|
-
diffStyles,
|
|
64
|
-
placeholder,
|
|
65
|
-
versionToRender
|
|
66
|
-
})]
|
|
67
|
-
});
|
|
68
|
-
$[0] = comparisonValue;
|
|
69
|
-
$[1] = diffMethod;
|
|
70
|
-
$[2] = field;
|
|
71
|
-
$[3] = i18n;
|
|
72
|
-
$[4] = locale;
|
|
73
|
-
$[5] = options;
|
|
74
|
-
$[6] = placeholder;
|
|
75
|
-
$[7] = versionValue;
|
|
76
|
-
$[8] = t1;
|
|
77
|
-
} else {
|
|
78
|
-
t1 = $[8];
|
|
79
|
-
}
|
|
80
|
-
return t1;
|
|
43
|
+
}), 'label' in field && getTranslation(field.label || '', i18n)]
|
|
44
|
+
}), /*#__PURE__*/_jsx(DiffViewer, {
|
|
45
|
+
comparisonToRender: comparisonToRender,
|
|
46
|
+
diffMethod: diffMethod,
|
|
47
|
+
diffStyles: diffStyles,
|
|
48
|
+
placeholder: placeholder,
|
|
49
|
+
versionToRender: versionToRender
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
81
52
|
};
|
|
82
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["getTranslation","React","Label","diffStyles","DiffViewer","baseClass","getOptionsToRender","value","options","hasMany","Array","isArray","map","val","find","option","String","getTranslatedOptions","i18n","label","join","Select","comparison","diffMethod","field","locale","version","placeholder","t","comparisonToRender","versionToRender","_jsxs","className","_jsx"],"sources":["../../../../../../src/views/Version/RenderFieldsToDiff/fields/Select/index.tsx"],"sourcesContent":["'use client'\nimport type { I18nClient } from '@payloadcms/translations'\nimport type { OptionObject, SelectField, SelectFieldClient } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport type { DiffComponentProps } from '../types.js'\n\nimport Label from '../../Label/index.js'\nimport { diffStyles } from '../styles.js'\nimport { DiffViewer } from './DiffViewer/index.js'\nimport './index.scss'\n\nconst baseClass = 'select-diff'\n\nconst getOptionsToRender = (\n value: string,\n options: SelectField['options'],\n hasMany: boolean,\n): (OptionObject | string)[] | OptionObject | string => {\n if (hasMany && Array.isArray(value)) {\n return value.map(\n (val) =>\n options.find((option) => (typeof option === 'string' ? option : option.value) === val) ||\n String(val),\n )\n }\n return (\n options.find((option) => (typeof option === 'string' ? option : option.value) === value) ||\n String(value)\n )\n}\n\nconst getTranslatedOptions = (\n options: (OptionObject | string)[] | OptionObject | string,\n i18n: I18nClient,\n): string => {\n if (Array.isArray(options)) {\n return options\n .map((option) => (typeof option === 'string' ? option : getTranslation(option.label, i18n)))\n .join(', ')\n }\n\n return typeof options === 'string' ? options : getTranslation(options.label, i18n)\n}\n\nexport const Select: React.FC<DiffComponentProps<SelectFieldClient>> = ({\n comparison,\n diffMethod,\n field,\n i18n,\n locale,\n version,\n}) => {\n let placeholder = ''\n\n if (version === comparison) {\n placeholder = `[${i18n.t('general:noValue')}]`\n }\n\n const options = 'options' in field && field.options\n\n const comparisonToRender =\n typeof comparison !== 'undefined'\n ? getTranslatedOptions(getOptionsToRender(comparison, options, field.hasMany), i18n)\n : placeholder\n\n const versionToRender =\n typeof version !== 'undefined'\n ? getTranslatedOptions(getOptionsToRender(version, options, field.hasMany), i18n)\n : placeholder\n\n return (\n <div className={baseClass}>\n <Label>\n {locale && <span className={`${baseClass}__locale-label`}>{locale}</span>}\n {'label' in field && 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"],"mappings":"AAAA;;;AAIA,SAASA,cAAc,QAAQ;AAC/B,OAAOC,KAAA,MAAW;AAIlB,OAAOC,KAAA,MAAW;AAClB,SAASC,UAAU,QAAQ;AAC3B,SAASC,UAAU,QAAQ;AAG3B,MAAMC,SAAA,GAAY;AAElB,MAAMC,kBAAA,GAAqBA,CACzBC,KAAA,EACAC,OAAA,EACAC,OAAA;EAEA,IAAIA,OAAA,IAAWC,KAAA,CAAMC,OAAO,CAACJ,KAAA,GAAQ;IACnC,OAAOA,KAAA,CAAMK,GAAG,CACbC,GAAA,IACCL,OAAA,CAAQM,IAAI,CAAEC,MAAA,IAAW,CAAC,OAAOA,MAAA,KAAW,WAAWA,MAAA,GAASA,MAAA,CAAOR,KAAK,MAAMM,GAAA,KAClFG,MAAA,CAAOH,GAAA;EAEb;EACA,OACEL,OAAA,CAAQM,IAAI,CAAEC,MAAA,IAAW,CAAC,OAAOA,MAAA,KAAW,WAAWA,MAAA,GAASA,MAAA,CAAOR,KAAK,MAAMA,KAAA,KAClFS,MAAA,CAAOT,KAAA;AAEX;AAEA,MAAMU,oBAAA,GAAuBA,CAC3BT,OAAA,EACAU,IAAA;EAEA,IAAIR,KAAA,CAAMC,OAAO,CAACH,OAAA,GAAU;IAC1B,OAAOA,OAAA,CACJI,GAAG,CAAEG,MAAA,IAAY,OAAOA,MAAA,KAAW,WAAWA,MAAA,GAASf,cAAA,CAAee,MAAA,CAAOI,KAAK,EAAED,IAAA,GACpFE,IAAI,CAAC;EACV;EAEA,OAAO,OAAOZ,OAAA,KAAY,WAAWA,OAAA,GAAUR,cAAA,CAAeQ,OAAA,CAAQW,KAAK,EAAED,IAAA;AAC/E;AAEA,OAAO,MAAMG,MAAA,GAA0DA,CAAC;EACtEC,UAAU;EACVC,UAAU;EACVC,KAAK;EACLN,IAAI;EACJO,MAAM;EACNC;AAAO,CACR;EACC,IAAIC,WAAA,GAAc;EAElB,IAAID,OAAA,KAAYJ,UAAA,EAAY;IAC1BK,WAAA,GAAc,IAAIT,IAAA,CAAKU,CAAC,CAAC,qBAAqB;EAChD;EAEA,MAAMpB,OAAA,GAAU,aAAagB,KAAA,IAASA,KAAA,CAAMhB,OAAO;EAEnD,MAAMqB,kBAAA,GACJ,OAAOP,UAAA,KAAe,cAClBL,oBAAA,CAAqBX,kBAAA,CAAmBgB,UAAA,EAAYd,OAAA,EAASgB,KAAA,CAAMf,OAAO,GAAGS,IAAA,IAC7ES,WAAA;EAEN,MAAMG,eAAA,GACJ,OAAOJ,OAAA,KAAY,cACfT,oBAAA,CAAqBX,kBAAA,CAAmBoB,OAAA,EAASlB,OAAA,EAASgB,KAAA,CAAMf,OAAO,GAAGS,IAAA,IAC1ES,WAAA;EAEN,oBACEI,KAAA,CAAC;IAAIC,SAAA,EAAW3B,SAAA;4BACd0B,KAAA,CAAC7B,KAAA;iBACEuB,MAAA,iBAAUQ,IAAA,CAAC;QAAKD,SAAA,EAAW,GAAG3B,SAAA,gBAAyB;kBAAGoB;UAC1D,WAAWD,KAAA,IAASxB,cAAA,CAAewB,KAAA,CAAML,KAAK,IAAI,IAAID,IAAA;qBAEzDe,IAAA,CAAC7B,UAAA;MACCyB,kBAAA,EAAoBA,kBAAA;MACpBN,UAAA,EAAYA,UAAA;MACZpB,UAAA,EAAYA,UAAA;MACZwB,WAAA,EAAaA,WAAA;MACbG,eAAA,EAAiBA;;;AAIzB","ignoreList":[]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TabsFieldClient } from 'payload';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import type { DiffComponentProps } from '../types.js';
|
|
3
4
|
import './index.scss';
|
|
4
5
|
export declare const Tabs: React.FC<DiffComponentProps<TabsFieldClient>>;
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/Version/RenderFieldsToDiff/fields/Tabs/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/views/Version/RenderFieldsToDiff/fields/Tabs/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAa,eAAe,EAAE,MAAM,SAAS,CAAA;AAGzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAIrD,OAAO,cAAc,CAAA;AAIrB,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,eAAe,CAAC,CA0C9D,CAAA"}
|
|
@@ -1,154 +1,97 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { c as _c } from "react/compiler-runtime";
|
|
4
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { getTranslation } from '@payloadcms/translations';
|
|
6
|
-
import { useTranslation } from '@payloadcms/ui';
|
|
7
5
|
import React from 'react';
|
|
8
|
-
import { useSelectedLocales } from '../../../Default/SelectedLocalesContext.js';
|
|
9
6
|
import { DiffCollapser } from '../../DiffCollapser/index.js';
|
|
10
|
-
import {
|
|
7
|
+
import { RenderFieldsToDiff } from '../../index.js';
|
|
11
8
|
const baseClass = 'tabs-diff';
|
|
12
9
|
export const Tabs = props => {
|
|
13
|
-
const $ = _c(13);
|
|
14
10
|
const {
|
|
15
|
-
|
|
16
|
-
comparisonValue,
|
|
11
|
+
comparison,
|
|
17
12
|
field,
|
|
18
|
-
|
|
13
|
+
locales,
|
|
14
|
+
version
|
|
19
15
|
} = props;
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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;
|
|
16
|
+
return /*#__PURE__*/_jsx("div", {
|
|
17
|
+
className: baseClass,
|
|
18
|
+
children: field.tabs.map((tab, i) => {
|
|
19
|
+
return /*#__PURE__*/_jsx("div", {
|
|
20
|
+
className: `${baseClass}__tab`,
|
|
21
|
+
children: (() => {
|
|
22
|
+
if ('name' in tab && locales && tab.localized) {
|
|
23
|
+
// Named localized tab
|
|
24
|
+
return locales.map((locale, index) => {
|
|
25
|
+
const localizedTabProps = {
|
|
26
|
+
...props,
|
|
27
|
+
comparison: comparison?.[tab.name]?.[locale],
|
|
28
|
+
version: version?.[tab.name]?.[locale]
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/_jsx("div", {
|
|
31
|
+
className: `${baseClass}__tab-locale`,
|
|
32
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
33
|
+
className: `${baseClass}__tab-locale-value`,
|
|
34
|
+
children: /*#__PURE__*/_jsx(Tab, {
|
|
35
|
+
...localizedTabProps,
|
|
36
|
+
locale: locale,
|
|
37
|
+
tab: tab
|
|
38
|
+
}, locale)
|
|
39
|
+
})
|
|
40
|
+
}, [locale, index].join('-'));
|
|
41
|
+
});
|
|
42
|
+
} else if ('name' in tab && tab.name) {
|
|
43
|
+
// Named tab
|
|
44
|
+
const namedTabProps = {
|
|
45
|
+
...props,
|
|
46
|
+
comparison: comparison?.[tab.name],
|
|
47
|
+
version: version?.[tab.name]
|
|
48
|
+
};
|
|
49
|
+
return /*#__PURE__*/_jsx(Tab, {
|
|
50
|
+
...namedTabProps,
|
|
51
|
+
tab: tab
|
|
52
|
+
}, i);
|
|
53
|
+
} else {
|
|
54
|
+
// Unnamed tab
|
|
55
|
+
return /*#__PURE__*/_jsx(Tab, {
|
|
56
|
+
...props,
|
|
57
|
+
tab: tab
|
|
58
|
+
}, i);
|
|
59
|
+
}
|
|
60
|
+
})()
|
|
61
|
+
}, i);
|
|
62
|
+
})
|
|
63
|
+
});
|
|
99
64
|
};
|
|
100
|
-
const Tab =
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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", {
|
|
65
|
+
const Tab = ({
|
|
66
|
+
comparison,
|
|
67
|
+
diffComponents,
|
|
68
|
+
fieldPermissions,
|
|
69
|
+
i18n,
|
|
70
|
+
locale,
|
|
71
|
+
locales,
|
|
72
|
+
tab,
|
|
73
|
+
version
|
|
74
|
+
}) => {
|
|
75
|
+
return /*#__PURE__*/_jsx(DiffCollapser, {
|
|
76
|
+
comparison: comparison,
|
|
77
|
+
fields: tab.fields,
|
|
78
|
+
label: 'label' in tab && tab.label && typeof tab.label !== 'function' && /*#__PURE__*/_jsxs("span", {
|
|
79
|
+
children: [locale && /*#__PURE__*/_jsx("span", {
|
|
119
80
|
className: `${baseClass}__locale-label`,
|
|
120
81
|
children: locale
|
|
121
82
|
}), getTranslation(tab.label, i18n)]
|
|
122
|
-
})
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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;
|
|
83
|
+
}),
|
|
84
|
+
locales: locales,
|
|
85
|
+
version: version,
|
|
86
|
+
children: /*#__PURE__*/_jsx(RenderFieldsToDiff, {
|
|
87
|
+
comparison: comparison,
|
|
88
|
+
diffComponents: diffComponents,
|
|
89
|
+
fieldPermissions: fieldPermissions,
|
|
90
|
+
fields: tab.fields,
|
|
91
|
+
i18n: i18n,
|
|
92
|
+
locales: locales,
|
|
93
|
+
version: version
|
|
94
|
+
})
|
|
95
|
+
});
|
|
153
96
|
};
|
|
154
97
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["getTranslation","React","DiffCollapser","RenderFieldsToDiff","baseClass","Tabs","props","comparison","field","locales","version","_jsx","className","tabs","map","tab","i","localized","locale","index","localizedTabProps","name","Tab","join","namedTabProps","diffComponents","fieldPermissions","i18n","fields","label","_jsxs"],"sources":["../../../../../../src/views/Version/RenderFieldsToDiff/fields/Tabs/index.tsx"],"sourcesContent":["'use client'\nimport type { ClientTab, TabsFieldClient } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport type { DiffComponentProps } from '../types.js'\n\nimport { DiffCollapser } from '../../DiffCollapser/index.js'\nimport { RenderFieldsToDiff } from '../../index.js'\nimport './index.scss'\n\nconst baseClass = 'tabs-diff'\n\nexport const Tabs: React.FC<DiffComponentProps<TabsFieldClient>> = (props) => {\n const { comparison, field, locales, version } = props\n return (\n <div className={baseClass}>\n {field.tabs.map((tab, i) => {\n return (\n <div className={`${baseClass}__tab`} key={i}>\n {(() => {\n if ('name' in tab && locales && tab.localized) {\n // Named localized tab\n return locales.map((locale, index) => {\n const localizedTabProps = {\n ...props,\n comparison: comparison?.[tab.name]?.[locale],\n version: version?.[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 key={locale} {...localizedTabProps} locale={locale} tab={tab} />\n </div>\n </div>\n )\n })\n } else if ('name' in tab && tab.name) {\n // Named tab\n const namedTabProps = {\n ...props,\n comparison: comparison?.[tab.name],\n version: version?.[tab.name],\n }\n return <Tab key={i} {...namedTabProps} tab={tab} />\n } else {\n // Unnamed tab\n return <Tab key={i} {...props} tab={tab} />\n }\n })()}\n </div>\n )\n })}\n </div>\n )\n}\n\ntype TabProps = {\n tab: ClientTab\n} & DiffComponentProps<TabsFieldClient>\n\nconst Tab: React.FC<TabProps> = ({\n comparison,\n diffComponents,\n fieldPermissions,\n i18n,\n locale,\n locales,\n tab,\n version,\n}) => {\n return (\n <DiffCollapser\n comparison={comparison}\n fields={tab.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={locales}\n version={version}\n >\n <RenderFieldsToDiff\n comparison={comparison}\n diffComponents={diffComponents}\n fieldPermissions={fieldPermissions}\n fields={tab.fields}\n i18n={i18n}\n locales={locales}\n version={version}\n />\n </DiffCollapser>\n )\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TextFieldClient } from 'payload';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import type { DiffComponentProps } from '../types.js';
|
|
3
4
|
import './index.scss';
|
|
4
5
|
export declare const Text: React.FC<DiffComponentProps<TextFieldClient>>;
|
|
5
6
|
//# 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,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAKrD,OAAO,cAAc,CAAA;AAIrB,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAAC,eAAe,CAAC,CA4C9D,CAAA"}
|
|
@@ -1,84 +1,49 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { c as _c } from "react/compiler-runtime";
|
|
4
3
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { getTranslation } from '@payloadcms/translations';
|
|
6
|
-
import { useTranslation } from '@payloadcms/ui';
|
|
7
5
|
import React from 'react';
|
|
8
6
|
import Label from '../../Label/index.js';
|
|
9
7
|
import { diffStyles } from '../styles.js';
|
|
10
8
|
import { DiffViewer } from './DiffViewer/index.js';
|
|
11
9
|
const baseClass = 'text-diff';
|
|
12
|
-
export const Text =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
let placeholder = "";
|
|
25
|
-
if (versionValue == comparisonValue) {
|
|
26
|
-
placeholder = `[${i18n.t("general:noValue")}]`;
|
|
10
|
+
export const Text = ({
|
|
11
|
+
comparison,
|
|
12
|
+
diffMethod,
|
|
13
|
+
field,
|
|
14
|
+
i18n,
|
|
15
|
+
isRichText = false,
|
|
16
|
+
locale,
|
|
17
|
+
version
|
|
18
|
+
}) => {
|
|
19
|
+
let placeholder = '';
|
|
20
|
+
if (version === comparison) {
|
|
21
|
+
placeholder = `[${i18n.t('general:noValue')}]`;
|
|
27
22
|
}
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
let versionToRender = version;
|
|
24
|
+
let comparisonToRender = comparison;
|
|
25
|
+
if (isRichText) {
|
|
26
|
+
if (typeof version === 'object') {
|
|
27
|
+
versionToRender = JSON.stringify(version, null, 2);
|
|
28
|
+
}
|
|
29
|
+
if (typeof comparison === 'object') {
|
|
30
|
+
comparisonToRender = JSON.stringify(comparison, null, 2);
|
|
31
|
+
}
|
|
35
32
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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;
|
|
33
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
34
|
+
className: baseClass,
|
|
35
|
+
children: [/*#__PURE__*/_jsxs(Label, {
|
|
36
|
+
children: [locale && /*#__PURE__*/_jsx("span", {
|
|
37
|
+
className: `${baseClass}__locale-label`,
|
|
38
|
+
children: locale
|
|
39
|
+
}), 'label' in field && typeof field.label !== 'function' && getTranslation(field.label || '', i18n)]
|
|
40
|
+
}), /*#__PURE__*/_jsx(DiffViewer, {
|
|
41
|
+
comparisonToRender: comparisonToRender,
|
|
42
|
+
diffMethod: diffMethod,
|
|
43
|
+
diffStyles: diffStyles,
|
|
44
|
+
placeholder: placeholder,
|
|
45
|
+
versionToRender: versionToRender
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
83
48
|
};
|
|
84
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["getTranslation","React","Label","diffStyles","DiffViewer","baseClass","Text","comparison","diffMethod","field","i18n","isRichText","locale","version","placeholder","t","versionToRender","comparisonToRender","JSON","stringify","_jsxs","className","_jsx","label"],"sources":["../../../../../../src/views/Version/RenderFieldsToDiff/fields/Text/index.tsx"],"sourcesContent":["'use client'\nimport type { TextFieldClient } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport type { DiffComponentProps } from '../types.js'\n\nimport Label from '../../Label/index.js'\nimport { diffStyles } from '../styles.js'\nimport { DiffViewer } from './DiffViewer/index.js'\nimport './index.scss'\n\nconst baseClass = 'text-diff'\n\nexport const Text: React.FC<DiffComponentProps<TextFieldClient>> = ({\n comparison,\n diffMethod,\n field,\n i18n,\n isRichText = false,\n locale,\n version,\n}) => {\n let placeholder = ''\n\n if (version === comparison) {\n placeholder = `[${i18n.t('general:noValue')}]`\n }\n\n let versionToRender = version\n let comparisonToRender = comparison\n\n if (isRichText) {\n if (typeof version === 'object') {\n versionToRender = JSON.stringify(version, null, 2)\n }\n if (typeof comparison === 'object') {\n comparisonToRender = JSON.stringify(comparison, null, 2)\n }\n }\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"],"mappings":"AAAA;;;AAGA,SAASA,cAAc,QAAQ;AAC/B,OAAOC,KAAA,MAAW;AAIlB,OAAOC,KAAA,MAAW;AAClB,SAASC,UAAU,QAAQ;AAC3B,SAASC,UAAU,QAAQ;AAG3B,MAAMC,SAAA,GAAY;AAElB,OAAO,MAAMC,IAAA,GAAsDA,CAAC;EAClEC,UAAU;EACVC,UAAU;EACVC,KAAK;EACLC,IAAI;EACJC,UAAA,GAAa,KAAK;EAClBC,MAAM;EACNC;AAAO,CACR;EACC,IAAIC,WAAA,GAAc;EAElB,IAAID,OAAA,KAAYN,UAAA,EAAY;IAC1BO,WAAA,GAAc,IAAIJ,IAAA,CAAKK,CAAC,CAAC,qBAAqB;EAChD;EAEA,IAAIC,eAAA,GAAkBH,OAAA;EACtB,IAAII,kBAAA,GAAqBV,UAAA;EAEzB,IAAII,UAAA,EAAY;IACd,IAAI,OAAOE,OAAA,KAAY,UAAU;MAC/BG,eAAA,GAAkBE,IAAA,CAAKC,SAAS,CAACN,OAAA,EAAS,MAAM;IAClD;IACA,IAAI,OAAON,UAAA,KAAe,UAAU;MAClCU,kBAAA,GAAqBC,IAAA,CAAKC,SAAS,CAACZ,UAAA,EAAY,MAAM;IACxD;EACF;EAEA,oBACEa,KAAA,CAAC;IAAIC,SAAA,EAAWhB,SAAA;4BACde,KAAA,CAAClB,KAAA;iBACEU,MAAA,iBAAUU,IAAA,CAAC;QAAKD,SAAA,EAAW,GAAGhB,SAAA,gBAAyB;kBAAGO;UAC1D,WAAWH,KAAA,IACV,OAAOA,KAAA,CAAMc,KAAK,KAAK,cACvBvB,cAAA,CAAeS,KAAA,CAAMc,KAAK,IAAI,IAAIb,IAAA;qBAEtCY,IAAA,CAAClB,UAAA;MACCa,kBAAA,EAAoBA,kBAAA;MACpBT,UAAA,EAAYA,UAAA;MACZL,UAAA,EAAYA,UAAA;MACZW,WAAA,EAAaA,WAAA;MACbE,eAAA,EAAiBA;;;AAIzB","ignoreList":[]}
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const diffComponents: {
|
|
2
|
+
array: import("react").FC<import("./types.js").DiffComponentProps>;
|
|
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
|
+
};
|
|
3
23
|
//# sourceMappingURL=index.d.ts.map
|