@payloadcms/plugin-search 3.24.0-canary.a62d86f → 3.24.0-canary.d22403c
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/Search/ui/ReindexButton/ReindexConfirmModal/index.d.ts +11 -0
- package/dist/Search/ui/ReindexButton/ReindexConfirmModal/index.d.ts.map +1 -0
- package/dist/Search/ui/ReindexButton/ReindexConfirmModal/index.js +45 -0
- package/dist/Search/ui/ReindexButton/ReindexConfirmModal/index.js.map +1 -0
- package/dist/Search/ui/ReindexButton/ReindexConfirmModal/index.scss +39 -0
- package/dist/Search/ui/ReindexButton/index.client.d.ts.map +1 -1
- package/dist/Search/ui/ReindexButton/index.client.js +25 -17
- package/dist/Search/ui/ReindexButton/index.client.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import './index.scss';
|
|
2
|
+
type Props = {
|
|
3
|
+
description: string;
|
|
4
|
+
onCancel: () => void;
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
slug: string;
|
|
7
|
+
title: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const ReindexConfirmModal: ({ slug, description, onCancel, onConfirm, title }: Props) => import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/Search/ui/ReindexButton/ReindexConfirmModal/index.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAErB,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAID,eAAO,MAAM,mBAAmB,sDAAuD,KAAK,gCAsB3F,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Modal, useTranslation } from '@payloadcms/ui';
|
|
3
|
+
import './index.scss';
|
|
4
|
+
const baseClass = 'reindex-confirm-modal';
|
|
5
|
+
export const ReindexConfirmModal = ({ slug, description, onCancel, onConfirm, title })=>{
|
|
6
|
+
const { i18n: { t } } = useTranslation();
|
|
7
|
+
return /*#__PURE__*/ _jsx(Modal, {
|
|
8
|
+
className: baseClass,
|
|
9
|
+
slug: slug,
|
|
10
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
11
|
+
className: `${baseClass}__wrapper`,
|
|
12
|
+
children: [
|
|
13
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
14
|
+
className: `${baseClass}__content`,
|
|
15
|
+
children: [
|
|
16
|
+
/*#__PURE__*/ _jsx("h1", {
|
|
17
|
+
children: title
|
|
18
|
+
}),
|
|
19
|
+
/*#__PURE__*/ _jsx("p", {
|
|
20
|
+
children: description
|
|
21
|
+
})
|
|
22
|
+
]
|
|
23
|
+
}),
|
|
24
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
25
|
+
className: `${baseClass}__controls`,
|
|
26
|
+
children: [
|
|
27
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
28
|
+
buttonStyle: "secondary",
|
|
29
|
+
onClick: onCancel,
|
|
30
|
+
size: "large",
|
|
31
|
+
children: t('general:cancel')
|
|
32
|
+
}),
|
|
33
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
34
|
+
onClick: onConfirm,
|
|
35
|
+
size: "large",
|
|
36
|
+
children: t('general:confirm')
|
|
37
|
+
})
|
|
38
|
+
]
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/Search/ui/ReindexButton/ReindexConfirmModal/index.tsx"],"sourcesContent":["import { Button, Modal, useTranslation } from '@payloadcms/ui'\n\nimport './index.scss'\n\ntype Props = {\n description: string\n onCancel: () => void\n onConfirm: () => void\n slug: string\n title: string\n}\n\nconst baseClass = 'reindex-confirm-modal'\n\nexport const ReindexConfirmModal = ({ slug, description, onCancel, onConfirm, title }: Props) => {\n const {\n i18n: { t },\n } = useTranslation()\n return (\n <Modal className={baseClass} slug={slug}>\n <div className={`${baseClass}__wrapper`}>\n <div className={`${baseClass}__content`}>\n <h1>{title}</h1>\n <p>{description}</p>\n </div>\n <div className={`${baseClass}__controls`}>\n <Button buttonStyle=\"secondary\" onClick={onCancel} size=\"large\">\n {t('general:cancel')}\n </Button>\n <Button onClick={onConfirm} size=\"large\">\n {t('general:confirm')}\n </Button>\n </div>\n </div>\n </Modal>\n )\n}\n"],"names":["Button","Modal","useTranslation","baseClass","ReindexConfirmModal","slug","description","onCancel","onConfirm","title","i18n","t","className","div","h1","p","buttonStyle","onClick","size"],"mappings":";AAAA,SAASA,MAAM,EAAEC,KAAK,EAAEC,cAAc,QAAQ,iBAAgB;AAE9D,OAAO,eAAc;AAUrB,MAAMC,YAAY;AAElB,OAAO,MAAMC,sBAAsB,CAAC,EAAEC,IAAI,EAAEC,WAAW,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,KAAK,EAAS;IAC1F,MAAM,EACJC,MAAM,EAAEC,CAAC,EAAE,EACZ,GAAGT;IACJ,qBACE,KAACD;QAAMW,WAAWT;QAAWE,MAAMA;kBACjC,cAAA,MAACQ;YAAID,WAAW,GAAGT,UAAU,SAAS,CAAC;;8BACrC,MAACU;oBAAID,WAAW,GAAGT,UAAU,SAAS,CAAC;;sCACrC,KAACW;sCAAIL;;sCACL,KAACM;sCAAGT;;;;8BAEN,MAACO;oBAAID,WAAW,GAAGT,UAAU,UAAU,CAAC;;sCACtC,KAACH;4BAAOgB,aAAY;4BAAYC,SAASV;4BAAUW,MAAK;sCACrDP,EAAE;;sCAEL,KAACX;4BAAOiB,SAAST;4BAAWU,MAAK;sCAC9BP,EAAE;;;;;;;AAMf,EAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@import '~@payloadcms/ui/scss';
|
|
2
|
+
|
|
3
|
+
@layer payload-default {
|
|
4
|
+
.reindex-confirm-modal {
|
|
5
|
+
@include blur-bg;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
height: 100%;
|
|
10
|
+
|
|
11
|
+
&__wrapper {
|
|
12
|
+
z-index: 1;
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: base(2);
|
|
17
|
+
padding: base(2);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__content {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: base(1);
|
|
24
|
+
|
|
25
|
+
> * {
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&__controls {
|
|
31
|
+
display: flex;
|
|
32
|
+
gap: base(0.4);
|
|
33
|
+
|
|
34
|
+
.btn {
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../../../../src/Search/ui/ReindexButton/index.client.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../../../../src/Search/ui/ReindexButton/index.client.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAyC,MAAM,OAAO,CAAA;AAE7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAOpD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0I5D,CAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { LoadingOverlay, Popup, PopupList, toast, useConfig, useLocale, useModal, useTranslation } from '@payloadcms/ui';
|
|
4
4
|
import { useRouter } from 'next/navigation.js';
|
|
5
5
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
6
6
|
import { ReindexButtonLabel } from './ReindexButtonLabel/index.js';
|
|
7
|
+
import { ReindexConfirmModal } from './ReindexConfirmModal/index.js';
|
|
7
8
|
const confirmReindexModalSlug = 'confirm-reindex-modal';
|
|
8
9
|
export const ReindexButtonClient = ({ collectionLabels, searchCollections, searchSlug })=>{
|
|
9
10
|
const { closeModal, openModal } = useModal();
|
|
@@ -12,26 +13,28 @@ export const ReindexButtonClient = ({ collectionLabels, searchCollections, searc
|
|
|
12
13
|
const locale = useLocale();
|
|
13
14
|
const router = useRouter();
|
|
14
15
|
const [reindexCollections, setReindexCollections] = useState([]);
|
|
16
|
+
const [isLoading, setLoading] = useState(false);
|
|
15
17
|
const openConfirmModal = useCallback(()=>openModal(confirmReindexModalSlug), [
|
|
16
18
|
openModal
|
|
17
19
|
]);
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const closeConfirmModal = useCallback(()=>closeModal(confirmReindexModalSlug), [
|
|
21
|
+
closeModal
|
|
22
|
+
]);
|
|
23
|
+
const handleReindexSubmit = useCallback(async ()=>{
|
|
24
|
+
if (isLoading || !reindexCollections.length) {
|
|
22
25
|
return;
|
|
23
26
|
}
|
|
27
|
+
closeConfirmModal();
|
|
28
|
+
setLoading(true);
|
|
24
29
|
try {
|
|
25
|
-
const
|
|
30
|
+
const endpointRes = await fetch(`${config.routes.api}/${searchSlug}/reindex?locale=${locale.code}`, {
|
|
26
31
|
body: JSON.stringify({
|
|
27
32
|
collections: reindexCollections
|
|
28
33
|
}),
|
|
29
34
|
method: 'POST'
|
|
30
35
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const { message } = await res.json();
|
|
34
|
-
if (!res.ok) {
|
|
36
|
+
const { message } = await endpointRes.json();
|
|
37
|
+
if (!endpointRes.ok) {
|
|
35
38
|
toast.error(message);
|
|
36
39
|
} else {
|
|
37
40
|
toast.success(message);
|
|
@@ -40,11 +43,12 @@ export const ReindexButtonClient = ({ collectionLabels, searchCollections, searc
|
|
|
40
43
|
} catch (_err) {
|
|
41
44
|
// swallow error, toast shown above
|
|
42
45
|
} finally{
|
|
43
|
-
setConfirming(false);
|
|
44
|
-
closeConfirmationModal();
|
|
45
46
|
setReindexCollections([]);
|
|
47
|
+
setLoading(false);
|
|
46
48
|
}
|
|
47
49
|
}, [
|
|
50
|
+
closeConfirmModal,
|
|
51
|
+
isLoading,
|
|
48
52
|
reindexCollections,
|
|
49
53
|
router,
|
|
50
54
|
searchSlug,
|
|
@@ -119,11 +123,15 @@ export const ReindexButtonClient = ({ collectionLabels, searchCollections, searc
|
|
|
119
123
|
size: "large",
|
|
120
124
|
verticalAlign: "bottom"
|
|
121
125
|
}),
|
|
122
|
-
/*#__PURE__*/ _jsx(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
/*#__PURE__*/ _jsx(ReindexConfirmModal, {
|
|
127
|
+
description: modalDescription,
|
|
128
|
+
onCancel: closeConfirmModal,
|
|
129
|
+
onConfirm: handleReindexSubmit,
|
|
130
|
+
slug: confirmReindexModalSlug,
|
|
131
|
+
title: modalTitle
|
|
132
|
+
}),
|
|
133
|
+
isLoading && /*#__PURE__*/ _jsx(LoadingOverlay, {
|
|
134
|
+
loadingText: loadingText
|
|
127
135
|
})
|
|
128
136
|
]
|
|
129
137
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/Search/ui/ReindexButton/index.client.tsx"],"sourcesContent":["'use client'\n\nimport
|
|
1
|
+
{"version":3,"sources":["../../../../src/Search/ui/ReindexButton/index.client.tsx"],"sourcesContent":["'use client'\n\nimport {\n LoadingOverlay,\n Popup,\n PopupList,\n toast,\n useConfig,\n useLocale,\n useModal,\n useTranslation,\n} from '@payloadcms/ui'\nimport { useRouter } from 'next/navigation.js'\nimport React, { useCallback, useMemo, useState } from 'react'\n\nimport type { ReindexButtonProps } from './types.js'\n\nimport { ReindexButtonLabel } from './ReindexButtonLabel/index.js'\nimport { ReindexConfirmModal } from './ReindexConfirmModal/index.js'\n\nconst confirmReindexModalSlug = 'confirm-reindex-modal'\n\nexport const ReindexButtonClient: React.FC<ReindexButtonProps> = ({\n collectionLabels,\n searchCollections,\n searchSlug,\n}) => {\n const { closeModal, openModal } = useModal()\n\n const { config } = useConfig()\n\n const {\n i18n: { t },\n } = useTranslation()\n\n const locale = useLocale()\n const router = useRouter()\n\n const [reindexCollections, setReindexCollections] = useState<string[]>([])\n const [isLoading, setLoading] = useState<boolean>(false)\n\n const openConfirmModal = useCallback(() => openModal(confirmReindexModalSlug), [openModal])\n const closeConfirmModal = useCallback(() => closeModal(confirmReindexModalSlug), [closeModal])\n\n const handleReindexSubmit = useCallback(async () => {\n if (isLoading || !reindexCollections.length) {\n return\n }\n\n closeConfirmModal()\n setLoading(true)\n\n try {\n const endpointRes = await fetch(\n `${config.routes.api}/${searchSlug}/reindex?locale=${locale.code}`,\n {\n body: JSON.stringify({\n collections: reindexCollections,\n }),\n method: 'POST',\n },\n )\n\n const { message } = (await endpointRes.json()) as { message: string }\n\n if (!endpointRes.ok) {\n toast.error(message)\n } else {\n toast.success(message)\n router.refresh()\n }\n } catch (_err: unknown) {\n // swallow error, toast shown above\n } finally {\n setReindexCollections([])\n setLoading(false)\n }\n }, [closeConfirmModal, isLoading, reindexCollections, router, searchSlug, locale, config])\n\n const handleShowConfirmModal = useCallback(\n (collections: string | string[] = searchCollections) => {\n setReindexCollections(typeof collections === 'string' ? [collections] : collections)\n openConfirmModal()\n },\n [openConfirmModal, searchCollections],\n )\n\n const handlePopupButtonClick = useCallback(\n (closePopup: () => void, slug?: string) => {\n closePopup()\n handleShowConfirmModal(slug)\n },\n [handleShowConfirmModal],\n )\n\n const getPluralizedLabel = useCallback(\n (slug: string) => {\n const label = collectionLabels[slug]\n if (typeof label === 'string') {\n return label\n } else {\n return Object.hasOwn(label, locale.code) ? label[locale.code] : slug\n }\n },\n [collectionLabels, locale.code],\n )\n\n const pluralizedLabels = useMemo(() => {\n return searchCollections.reduce<Record<string, string>>((acc, slug) => {\n acc[slug] = getPluralizedLabel(slug)\n return acc\n }, {})\n }, [searchCollections, getPluralizedLabel])\n\n const selectedAll = reindexCollections.length === searchCollections.length\n const selectedLabels = reindexCollections.map((slug) => pluralizedLabels[slug]).join(', ')\n\n const modalTitle = selectedAll\n ? t('general:confirmReindexAll')\n : t('general:confirmReindex', { collections: selectedLabels })\n const modalDescription = selectedAll\n ? t('general:confirmReindexDescriptionAll')\n : t('general:confirmReindexDescription', { collections: selectedLabels })\n const loadingText = selectedAll\n ? t('general:reindexingAll', { collections: t('general:collections') })\n : t('general:reindexingAll', { collections: selectedLabels })\n\n return (\n <div>\n <Popup\n button={<ReindexButtonLabel />}\n render={({ close }) => (\n <PopupList.ButtonGroup>\n {searchCollections.map((collectionSlug) => (\n <PopupList.Button\n key={collectionSlug}\n onClick={() => handlePopupButtonClick(close, collectionSlug)}\n >\n {pluralizedLabels[collectionSlug]}\n </PopupList.Button>\n ))}\n <PopupList.Button onClick={() => handlePopupButtonClick(close)}>\n {t('general:allCollections')}\n </PopupList.Button>\n </PopupList.ButtonGroup>\n )}\n showScrollbar\n size=\"large\"\n verticalAlign=\"bottom\"\n />\n <ReindexConfirmModal\n description={modalDescription}\n onCancel={closeConfirmModal}\n onConfirm={handleReindexSubmit}\n slug={confirmReindexModalSlug}\n title={modalTitle}\n />\n {isLoading && <LoadingOverlay loadingText={loadingText} />}\n </div>\n )\n}\n"],"names":["LoadingOverlay","Popup","PopupList","toast","useConfig","useLocale","useModal","useTranslation","useRouter","React","useCallback","useMemo","useState","ReindexButtonLabel","ReindexConfirmModal","confirmReindexModalSlug","ReindexButtonClient","collectionLabels","searchCollections","searchSlug","closeModal","openModal","config","i18n","t","locale","router","reindexCollections","setReindexCollections","isLoading","setLoading","openConfirmModal","closeConfirmModal","handleReindexSubmit","length","endpointRes","fetch","routes","api","code","body","JSON","stringify","collections","method","message","json","ok","error","success","refresh","_err","handleShowConfirmModal","handlePopupButtonClick","closePopup","slug","getPluralizedLabel","label","Object","hasOwn","pluralizedLabels","reduce","acc","selectedAll","selectedLabels","map","join","modalTitle","modalDescription","loadingText","div","button","render","close","ButtonGroup","collectionSlug","Button","onClick","showScrollbar","size","verticalAlign","description","onCancel","onConfirm","title"],"mappings":"AAAA;;AAEA,SACEA,cAAc,EACdC,KAAK,EACLC,SAAS,EACTC,KAAK,EACLC,SAAS,EACTC,SAAS,EACTC,QAAQ,EACRC,cAAc,QACT,iBAAgB;AACvB,SAASC,SAAS,QAAQ,qBAAoB;AAC9C,OAAOC,SAASC,WAAW,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,QAAO;AAI7D,SAASC,kBAAkB,QAAQ,gCAA+B;AAClE,SAASC,mBAAmB,QAAQ,iCAAgC;AAEpE,MAAMC,0BAA0B;AAEhC,OAAO,MAAMC,sBAAoD,CAAC,EAChEC,gBAAgB,EAChBC,iBAAiB,EACjBC,UAAU,EACX;IACC,MAAM,EAAEC,UAAU,EAAEC,SAAS,EAAE,GAAGf;IAElC,MAAM,EAAEgB,MAAM,EAAE,GAAGlB;IAEnB,MAAM,EACJmB,MAAM,EAAEC,CAAC,EAAE,EACZ,GAAGjB;IAEJ,MAAMkB,SAASpB;IACf,MAAMqB,SAASlB;IAEf,MAAM,CAACmB,oBAAoBC,sBAAsB,GAAGhB,SAAmB,EAAE;IACzE,MAAM,CAACiB,WAAWC,WAAW,GAAGlB,SAAkB;IAElD,MAAMmB,mBAAmBrB,YAAY,IAA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YAERtC,2BAAa,KAAC7B;gBAAeqE,aAAaA;;;;AAGjD,EAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/plugin-search",
|
|
3
|
-
"version": "3.24.0-canary.
|
|
3
|
+
"version": "3.24.0-canary.d22403c",
|
|
4
4
|
"description": "Search plugin for Payload",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"payload",
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
"dist"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@payloadcms/next": "3.24.0-canary.
|
|
53
|
-
"@payloadcms/ui": "3.24.0-canary.
|
|
52
|
+
"@payloadcms/next": "3.24.0-canary.d22403c",
|
|
53
|
+
"@payloadcms/ui": "3.24.0-canary.d22403c"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/react": "19.0.1",
|
|
57
57
|
"@types/react-dom": "19.0.1",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
58
|
+
"payload": "3.24.0-canary.d22403c",
|
|
59
|
+
"@payloadcms/eslint-config": "3.9.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"react": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
|
|
63
63
|
"react-dom": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
|
|
64
|
-
"payload": "3.24.0-canary.
|
|
64
|
+
"payload": "3.24.0-canary.d22403c"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"registry": "https://registry.npmjs.org/"
|