@payloadcms/plugin-import-export 3.69.0-internal.2883df2 → 3.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ExportSaveButton/index.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EA0GpC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ExportSaveButton/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EA+GpC,CAAA"}
@@ -1,10 +1,11 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Button, SaveButton, toast, Translation, useConfig, useForm, useFormModified, useTranslation } from '@payloadcms/ui';
4
+ import { formatAdminURL } from 'payload/shared';
4
5
  import React from 'react';
5
6
  export const ExportSaveButton = ()=>{
6
7
  const { t } = useTranslation();
7
- const { config: { routes: { api }, serverURL }, getEntityConfig } = useConfig();
8
+ const { config: { routes: { api } }, getEntityConfig } = useConfig();
8
9
  const { getData, setModified } = useForm();
9
10
  const modified = useFormModified();
10
11
  const exportsCollectionConfig = getEntityConfig({
@@ -23,7 +24,10 @@ export const ExportSaveButton = ()=>{
23
24
  timeoutID = setTimeout(()=>{
24
25
  toastID = toast.success('Your export is being processed...');
25
26
  }, 200);
26
- const response = await fetch(`${serverURL}${api}/exports/download`, {
27
+ const response = await fetch(formatAdminURL({
28
+ apiRoute: api,
29
+ path: '/exports/download'
30
+ }), {
27
31
  body: JSON.stringify({
28
32
  data
29
33
  }),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/ExportSaveButton/index.tsx"],"sourcesContent":["'use client'\n\nimport {\n Button,\n SaveButton,\n toast,\n Translation,\n useConfig,\n useForm,\n useFormModified,\n useTranslation,\n} from '@payloadcms/ui'\nimport React from 'react'\n\nimport type {\n PluginImportExportTranslationKeys,\n PluginImportExportTranslations,\n} from '../../translations/index.js'\n\nexport const ExportSaveButton: React.FC = () => {\n const { t } = useTranslation<PluginImportExportTranslations, PluginImportExportTranslationKeys>()\n const {\n config: {\n routes: { api },\n serverURL,\n },\n getEntityConfig,\n } = useConfig()\n\n const { getData, setModified } = useForm()\n const modified = useFormModified()\n\n const exportsCollectionConfig = getEntityConfig({ collectionSlug: 'exports' })\n\n const disableSave = exportsCollectionConfig?.admin?.custom?.disableSave === true\n\n const disableDownload = exportsCollectionConfig?.admin?.custom?.disableDownload === true\n\n const label = t('general:save')\n\n const handleDownload = async () => {\n let timeoutID: null | ReturnType<typeof setTimeout> = null\n let toastID: null | number | string = null\n\n try {\n setModified(false) // Reset modified state\n const data = getData()\n\n // Set a timeout to show toast if the request takes longer than 200ms\n timeoutID = setTimeout(() => {\n toastID = toast.success('Your export is being processed...')\n }, 200)\n\n const response = await fetch(`${serverURL}${api}/exports/download`, {\n body: JSON.stringify({\n data,\n }),\n credentials: 'include',\n headers: {\n 'Content-Type': 'application/json',\n },\n method: 'POST',\n })\n\n // Clear the timeout if fetch completes quickly\n if (timeoutID) {\n clearTimeout(timeoutID)\n }\n\n // Dismiss the toast if it was shown\n if (toastID) {\n toast.dismiss(toastID)\n }\n\n if (!response.ok) {\n // Try to parse the error message from the JSON response\n let errorMsg = 'Failed to download file'\n try {\n const errorJson = await response.json()\n if (errorJson?.errors?.[0]?.message) {\n errorMsg = errorJson.errors[0].message\n }\n } catch {\n // Ignore JSON parse errors, fallback to generic message\n }\n throw new Error(errorMsg)\n }\n\n const fileStream = response.body\n const reader = fileStream?.getReader()\n const decoder = new TextDecoder()\n let result = ''\n\n while (reader) {\n const { done, value } = await reader.read()\n if (done) {\n break\n }\n result += decoder.decode(value, { stream: true })\n }\n\n const blob = new Blob([result], { type: 'text/plain' })\n const url = URL.createObjectURL(blob)\n const a = document.createElement('a')\n a.href = url\n a.download = `${data.name}.${data.format}`\n document.body.appendChild(a)\n a.click()\n document.body.removeChild(a)\n URL.revokeObjectURL(url)\n } catch (error: any) {\n toast.error(error.message || 'Error downloading file')\n }\n }\n\n return (\n <React.Fragment>\n {!disableSave && <SaveButton label={label} />}\n {!disableDownload && (\n <Button disabled={!modified} onClick={handleDownload} size=\"medium\" type=\"button\">\n <Translation i18nKey=\"upload:download\" t={t} />\n </Button>\n )}\n </React.Fragment>\n )\n}\n"],"names":["Button","SaveButton","toast","Translation","useConfig","useForm","useFormModified","useTranslation","React","ExportSaveButton","t","config","routes","api","serverURL","getEntityConfig","getData","setModified","modified","exportsCollectionConfig","collectionSlug","disableSave","admin","custom","disableDownload","label","handleDownload","timeoutID","toastID","data","setTimeout","success","response","fetch","body","JSON","stringify","credentials","headers","method","clearTimeout","dismiss","ok","errorMsg","errorJson","json","errors","message","Error","fileStream","reader","getReader","decoder","TextDecoder","result","done","value","read","decode","stream","blob","Blob","type","url","URL","createObjectURL","a","document","createElement","href","download","name","format","appendChild","click","removeChild","revokeObjectURL","error","Fragment","disabled","onClick","size","i18nKey"],"mappings":"AAAA;;AAEA,SACEA,MAAM,EACNC,UAAU,EACVC,KAAK,EACLC,WAAW,EACXC,SAAS,EACTC,OAAO,EACPC,eAAe,EACfC,cAAc,QACT,iBAAgB;AACvB,OAAOC,WAAW,QAAO;AAOzB,OAAO,MAAMC,mBAA6B;IACxC,MAAM,EAAEC,CAAC,EAAE,GAAGH;IACd,MAAM,EACJI,QAAQ,EACNC,QAAQ,EAAEC,GAAG,EAAE,EACfC,SAAS,EACV,EACDC,eAAe,EAChB,GAAGX;IAEJ,MAAM,EAAEY,OAAO,EAAEC,WAAW,EAAE,GAAGZ;IACjC,MAAMa,WAAWZ;IAEjB,MAAMa,0BAA0BJ,gBAAgB;QAAEK,gBAAgB;IAAU;IAE5E,MAAMC,cAAcF,yBAAyBG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;gBAAK;YACjD;YAEA,MAAMC,OAAO,IAAIC,KAAK;gBAACP;aAAO,EAAE;gBAAEQ,MAAM;YAAa;YACrD,MAAMC,MAAMC,IAAIC,eAAe,CAACL;YAChC,MAAMM,IAAIC,SAASC,aAAa,CAAC;YACjCF,EAAEG,IAAI,GAAGN;YACTG,EAAEI,QAAQ,GAAG,GAAGzC,KAAK0C,IAAI,CAAC,CAAC,EAAE1C,KAAK2C,MAAM,EAAE;YAC1CL,SAASjC,IAAI,CAACuC,WAAW,CAACP;YAC1BA,EAAEQ,KAAK;YACPP,SAASjC,IAAI,CAACyC,WAAW,CAACT;YAC1BF,IAAIY,eAAe,CAACb;QACtB,EAAE,OAAOc,OAAY;YACnB3E,MAAM2E,KAAK,CAACA,MAAM9B,OAAO,IAAI;QAC/B;IACF;IAEA,qBACE,MAACvC,MAAMsE,QAAQ;;YACZ,CAACzD,6BAAe,KAACpB;gBAAWwB,OAAOA;;YACnC,CAACD,iCACA,KAACxB;gBAAO+E,UAAU,CAAC7D;gBAAU8D,SAAStD;gBAAgBuD,MAAK;gBAASnB,MAAK;0BACvE,cAAA,KAAC3D;oBAAY+E,SAAQ;oBAAkBxE,GAAGA;;;;;AAKpD,EAAC"}
1
+ {"version":3,"sources":["../../../src/components/ExportSaveButton/index.tsx"],"sourcesContent":["'use client'\n\nimport {\n Button,\n SaveButton,\n toast,\n Translation,\n useConfig,\n useForm,\n useFormModified,\n useTranslation,\n} from '@payloadcms/ui'\nimport { formatAdminURL } from 'payload/shared'\nimport React from 'react'\n\nimport type {\n PluginImportExportTranslationKeys,\n PluginImportExportTranslations,\n} from '../../translations/index.js'\n\nexport const ExportSaveButton: React.FC = () => {\n const { t } = useTranslation<PluginImportExportTranslations, PluginImportExportTranslationKeys>()\n const {\n config: {\n routes: { api },\n },\n getEntityConfig,\n } = useConfig()\n\n const { getData, setModified } = useForm()\n const modified = useFormModified()\n\n const exportsCollectionConfig = getEntityConfig({ collectionSlug: 'exports' })\n\n const disableSave = exportsCollectionConfig?.admin?.custom?.disableSave === true\n\n const disableDownload = exportsCollectionConfig?.admin?.custom?.disableDownload === true\n\n const label = t('general:save')\n\n const handleDownload = async () => {\n let timeoutID: null | ReturnType<typeof setTimeout> = null\n let toastID: null | number | string = null\n\n try {\n setModified(false) // Reset modified state\n const data = getData()\n\n // Set a timeout to show toast if the request takes longer than 200ms\n timeoutID = setTimeout(() => {\n toastID = toast.success('Your export is being processed...')\n }, 200)\n\n const response = await fetch(\n formatAdminURL({\n apiRoute: api,\n path: '/exports/download',\n }),\n {\n body: JSON.stringify({\n data,\n }),\n credentials: 'include',\n headers: {\n 'Content-Type': 'application/json',\n },\n method: 'POST',\n },\n )\n\n // Clear the timeout if fetch completes quickly\n if (timeoutID) {\n clearTimeout(timeoutID)\n }\n\n // Dismiss the toast if it was shown\n if (toastID) {\n toast.dismiss(toastID)\n }\n\n if (!response.ok) {\n // Try to parse the error message from the JSON response\n let errorMsg = 'Failed to download file'\n try {\n const errorJson = await response.json()\n if (errorJson?.errors?.[0]?.message) {\n errorMsg = errorJson.errors[0].message\n }\n } catch {\n // Ignore JSON parse errors, fallback to generic message\n }\n throw new Error(errorMsg)\n }\n\n const fileStream = response.body\n const reader = fileStream?.getReader()\n const decoder = new TextDecoder()\n let result = ''\n\n while (reader) {\n const { done, value } = await reader.read()\n if (done) {\n break\n }\n result += decoder.decode(value, { stream: true })\n }\n\n const blob = new Blob([result], { type: 'text/plain' })\n const url = URL.createObjectURL(blob)\n const a = document.createElement('a')\n a.href = url\n a.download = `${data.name}.${data.format}`\n document.body.appendChild(a)\n a.click()\n document.body.removeChild(a)\n URL.revokeObjectURL(url)\n } catch (error: any) {\n toast.error(error.message || 'Error downloading file')\n }\n }\n\n return (\n <React.Fragment>\n {!disableSave && <SaveButton label={label} />}\n {!disableDownload && (\n <Button disabled={!modified} onClick={handleDownload} size=\"medium\" type=\"button\">\n <Translation i18nKey=\"upload:download\" t={t} />\n </Button>\n )}\n </React.Fragment>\n )\n}\n"],"names":["Button","SaveButton","toast","Translation","useConfig","useForm","useFormModified","useTranslation","formatAdminURL","React","ExportSaveButton","t","config","routes","api","getEntityConfig","getData","setModified","modified","exportsCollectionConfig","collectionSlug","disableSave","admin","custom","disableDownload","label","handleDownload","timeoutID","toastID","data","setTimeout","success","response","fetch","apiRoute","path","body","JSON","stringify","credentials","headers","method","clearTimeout","dismiss","ok","errorMsg","errorJson","json","errors","message","Error","fileStream","reader","getReader","decoder","TextDecoder","result","done","value","read","decode","stream","blob","Blob","type","url","URL","createObjectURL","a","document","createElement","href","download","name","format","appendChild","click","removeChild","revokeObjectURL","error","Fragment","disabled","onClick","size","i18nKey"],"mappings":"AAAA;;AAEA,SACEA,MAAM,EACNC,UAAU,EACVC,KAAK,EACLC,WAAW,EACXC,SAAS,EACTC,OAAO,EACPC,eAAe,EACfC,cAAc,QACT,iBAAgB;AACvB,SAASC,cAAc,QAAQ,iBAAgB;AAC/C,OAAOC,WAAW,QAAO;AAOzB,OAAO,MAAMC,mBAA6B;IACxC,MAAM,EAAEC,CAAC,EAAE,GAAGJ;IACd,MAAM,EACJK,QAAQ,EACNC,QAAQ,EAAEC,GAAG,EAAE,EAChB,EACDC,eAAe,EAChB,GAAGX;IAEJ,MAAM,EAAEY,OAAO,EAAEC,WAAW,EAAE,GAAGZ;IACjC,MAAMa,WAAWZ;IAEjB,MAAMa,0BAA0BJ,gBAAgB;QAAEK,gBAAgB;IAAU;IAE5E,MAAMC,cAAcF,yBAAyBG,OAAOC,QAAQF,gBAAgB;IAE5E,MAAMG,kBAAkBL,yBAAyBG,OAAOC,QAAQC,oBAAoB;IAEpF,MAAMC,QAAQd,EAAE;IAEhB,MAAMe,iBAAiB;QACrB,IAAIC,YAAkD;QACtD,IAAIC,UAAkC;QAEtC,IAAI;YACFX,YAAY,QAAO,uBAAuB;YAC1C,MAAMY,OAAOb;YAEb,qEAAqE;YACrEW,YAAYG,WAAW;gBACrBF,UAAU1B,MAAM6B,OAAO,CAAC;YAC1B,GAAG;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,CAACP;YAC1BA,EAAEQ,KAAK;YACPP,SAASjC,IAAI,CAACyC,WAAW,CAACT;YAC1BF,IAAIY,eAAe,CAACb;QACtB,EAAE,OAAOc,OAAY;YACnB7E,MAAM6E,KAAK,CAACA,MAAM9B,OAAO,IAAI;QAC/B;IACF;IAEA,qBACE,MAACxC,MAAMuE,QAAQ;;YACZ,CAAC3D,6BAAe,KAACpB;gBAAWwB,OAAOA;;YACnC,CAACD,iCACA,KAACxB;gBAAOiF,UAAU,CAAC/D;gBAAUgE,SAASxD;gBAAgByD,MAAK;gBAASnB,MAAK;0BACvE,cAAA,KAAC7D;oBAAYiF,SAAQ;oBAAkBzE,GAAGA;;;;;AAKpD,EAAC"}
@@ -1,23 +1,23 @@
1
1
  export const viTranslations = {
2
2
  'plugin-import-export': {
3
- allLocales: 'Tất cả địa điểm',
3
+ allLocales: 'Tất cả ngôn ngữ',
4
4
  exportDocumentLabel: 'Xuất {{label}}',
5
5
  exportOptions: 'Tùy chọn xuất',
6
6
  'field-depth-label': 'Độ sâu',
7
7
  'field-drafts-label': 'Bao gồm bản thảo',
8
- 'field-fields-label': 'Cánh đồng',
9
- 'field-format-label': 'Định dạng Xuất khẩu',
8
+ 'field-fields-label': 'Trường',
9
+ 'field-format-label': 'Định dạng xuất',
10
10
  'field-limit-label': 'Giới hạn',
11
- 'field-locale-label': 'Địa phương',
11
+ 'field-locale-label': 'Ngôn ngữ',
12
12
  'field-name-label': 'Tên tệp',
13
13
  'field-page-label': 'Trang',
14
- 'field-selectionToUse-label': 'Lựa chọn để sử dụng',
14
+ 'field-selectionToUse-label': 'Chọn để sử dụng',
15
15
  'field-sort-label': 'Sắp xếp theo',
16
16
  'field-sort-order-label': 'Sắp xếp theo thứ tự',
17
- 'selectionToUse-allDocuments': 'Sử dụng tất cả các tài liệu',
18
- 'selectionToUse-currentFilters': 'Sử dụng bộ lọc hiện tại',
19
- 'selectionToUse-currentSelection': 'Sử dụng lựa chọn hiện tại',
20
- totalDocumentsCount: '{{count}} tổng số tài liệu'
17
+ 'selectionToUse-allDocuments': 'Dùng tất cả',
18
+ 'selectionToUse-currentFilters': 'Dùng bộ lọc hiện tại',
19
+ 'selectionToUse-currentSelection': 'Dùng đang chọn',
20
+ totalDocumentsCount: 'Tổng cộng {{count}} tài liệu'
21
21
  }
22
22
  };
23
23
  export const vi = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/translations/languages/vi.ts"],"sourcesContent":["import type { PluginDefaultTranslationsObject, PluginLanguage } from '../types.js'\n\nexport const viTranslations: PluginDefaultTranslationsObject = {\n 'plugin-import-export': {\n allLocales: 'Tất cả địa điểm',\n exportDocumentLabel: 'Xuất {{label}}',\n exportOptions: 'Tùy chọn xuất',\n 'field-depth-label': 'Độ sâu',\n 'field-drafts-label': 'Bao gồm bản thảo',\n 'field-fields-label': 'Cánh đồng',\n 'field-format-label': 'Định dạng Xuất khẩu',\n 'field-limit-label': 'Giới hạn',\n 'field-locale-label': 'Địa phương',\n 'field-name-label': 'Tên tệp',\n 'field-page-label': 'Trang',\n 'field-selectionToUse-label': 'Lựa chọn để sử dụng',\n 'field-sort-label': 'Sắp xếp theo',\n 'field-sort-order-label': 'Sắp xếp theo thứ tự',\n 'selectionToUse-allDocuments': 'Sử dụng tất cả các tài liệu',\n 'selectionToUse-currentFilters': 'Sử dụng bộ lọc hiện tại',\n 'selectionToUse-currentSelection': 'Sử dụng lựa chọn hiện tại',\n totalDocumentsCount: '{{count}} tổng số tài liệu',\n },\n}\n\nexport const vi: PluginLanguage = {\n dateFNSKey: 'vi',\n translations: viTranslations,\n}\n"],"names":["viTranslations","allLocales","exportDocumentLabel","exportOptions","totalDocumentsCount","vi","dateFNSKey","translations"],"mappings":"AAEA,OAAO,MAAMA,iBAAkD;IAC7D,wBAAwB;QACtBC,YAAY;QACZC,qBAAqB;QACrBC,eAAe;QACf,qBAAqB;QACrB,sBAAsB;QACtB,sBAAsB;QACtB,sBAAsB;QACtB,qBAAqB;QACrB,sBAAsB;QACtB,oBAAoB;QACpB,oBAAoB;QACpB,8BAA8B;QAC9B,oBAAoB;QACpB,0BAA0B;QAC1B,+BAA+B;QAC/B,iCAAiC;QACjC,mCAAmC;QACnCC,qBAAqB;IACvB;AACF,EAAC;AAED,OAAO,MAAMC,KAAqB;IAChCC,YAAY;IACZC,cAAcP;AAChB,EAAC"}
1
+ {"version":3,"sources":["../../../src/translations/languages/vi.ts"],"sourcesContent":["import type { PluginDefaultTranslationsObject, PluginLanguage } from '../types.js'\n\nexport const viTranslations: PluginDefaultTranslationsObject = {\n 'plugin-import-export': {\n allLocales: 'Tất cả ngôn ngữ',\n exportDocumentLabel: 'Xuất {{label}}',\n exportOptions: 'Tùy chọn xuất',\n 'field-depth-label': 'Độ sâu',\n 'field-drafts-label': 'Bao gồm bản thảo',\n 'field-fields-label': 'Trường',\n 'field-format-label': 'Định dạng xuất',\n 'field-limit-label': 'Giới hạn',\n 'field-locale-label': 'Ngôn ngữ',\n 'field-name-label': 'Tên tệp',\n 'field-page-label': 'Trang',\n 'field-selectionToUse-label': 'Chọn để sử dụng',\n 'field-sort-label': 'Sắp xếp theo',\n 'field-sort-order-label': 'Sắp xếp theo thứ tự',\n 'selectionToUse-allDocuments': 'Dùng tất cả',\n 'selectionToUse-currentFilters': 'Dùng bộ lọc hiện tại',\n 'selectionToUse-currentSelection': 'Dùng đang chọn',\n totalDocumentsCount: 'Tổng cộng {{count}} tài liệu',\n },\n}\n\nexport const vi: PluginLanguage = {\n dateFNSKey: 'vi',\n translations: viTranslations,\n}\n"],"names":["viTranslations","allLocales","exportDocumentLabel","exportOptions","totalDocumentsCount","vi","dateFNSKey","translations"],"mappings":"AAEA,OAAO,MAAMA,iBAAkD;IAC7D,wBAAwB;QACtBC,YAAY;QACZC,qBAAqB;QACrBC,eAAe;QACf,qBAAqB;QACrB,sBAAsB;QACtB,sBAAsB;QACtB,sBAAsB;QACtB,qBAAqB;QACrB,sBAAsB;QACtB,oBAAoB;QACpB,oBAAoB;QACpB,8BAA8B;QAC9B,oBAAoB;QACpB,0BAA0B;QAC1B,+BAA+B;QAC/B,iCAAiC;QACjC,mCAAmC;QACnCC,qBAAqB;IACvB;AACF,EAAC;AAED,OAAO,MAAMC,KAAqB;IAChCC,YAAY;IACZC,cAAcP;AAChB,EAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/plugin-import-export",
3
- "version": "3.69.0-internal.2883df2",
3
+ "version": "3.69.0",
4
4
  "description": "Import-Export plugin for Payload",
5
5
  "keywords": [
6
6
  "payload",
@@ -64,17 +64,17 @@
64
64
  "csv-parse": "^5.6.0",
65
65
  "csv-stringify": "^6.5.2",
66
66
  "qs-esm": "7.0.2",
67
- "@payloadcms/translations": "3.69.0-internal.2883df2",
68
- "@payloadcms/ui": "3.69.0-internal.2883df2"
67
+ "@payloadcms/translations": "3.69.0",
68
+ "@payloadcms/ui": "3.69.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@payloadcms/eslint-config": "3.28.0",
72
- "@payloadcms/ui": "3.69.0-internal.2883df2",
73
- "payload": "3.69.0-internal.2883df2"
72
+ "@payloadcms/ui": "3.69.0",
73
+ "payload": "3.69.0"
74
74
  },
75
75
  "peerDependencies": {
76
- "@payloadcms/ui": "3.69.0-internal.2883df2",
77
- "payload": "3.69.0-internal.2883df2"
76
+ "@payloadcms/ui": "3.69.0",
77
+ "payload": "3.69.0"
78
78
  },
79
79
  "homepage:": "https://payloadcms.com",
80
80
  "scripts": {