mozrest-sdk-react-dev 0.1.96 → 0.1.97
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/mozrest-sdk.es.js +40 -4
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -6347,6 +6347,9 @@ const EXPORTDATA = "Export data";
|
|
|
6347
6347
|
const SELECTYOURRESTAURANTS = "Select your restaurants";
|
|
6348
6348
|
const SelectXResturant = "Select {{value}} restaurant";
|
|
6349
6349
|
const ComparedPeriod = "Compared period";
|
|
6350
|
+
const CLOSE = "Close";
|
|
6351
|
+
const NoChannelsConnected = "No channels connected";
|
|
6352
|
+
const NoChannelsConnectedDesc = "You do not have channels connected, as soon as you connect them the changes will be reflected in the channels.";
|
|
6350
6353
|
var en = {
|
|
6351
6354
|
errors,
|
|
6352
6355
|
SPECIALCLOSINGDATES,
|
|
@@ -6651,7 +6654,10 @@ var en = {
|
|
|
6651
6654
|
EXPORTDATA,
|
|
6652
6655
|
SELECTYOURRESTAURANTS,
|
|
6653
6656
|
SelectXResturant,
|
|
6654
|
-
ComparedPeriod
|
|
6657
|
+
ComparedPeriod,
|
|
6658
|
+
CLOSE,
|
|
6659
|
+
NoChannelsConnected,
|
|
6660
|
+
NoChannelsConnectedDesc
|
|
6655
6661
|
};
|
|
6656
6662
|
instance.use(initReactI18next).init({
|
|
6657
6663
|
resources: {
|
|
@@ -7612,6 +7618,17 @@ const roundTable = () => /* @__PURE__ */ React__default.createElement("svg", {
|
|
|
7612
7618
|
fill: "currentColor",
|
|
7613
7619
|
transform: "translate(27,0)"
|
|
7614
7620
|
}));
|
|
7621
|
+
const link$1 = () => /* @__PURE__ */ React__default.createElement("svg", {
|
|
7622
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7623
|
+
width: "16",
|
|
7624
|
+
height: "16",
|
|
7625
|
+
fill: "currentColor",
|
|
7626
|
+
viewBox: "0 0 16 16"
|
|
7627
|
+
}, /* @__PURE__ */ React__default.createElement("path", {
|
|
7628
|
+
d: "M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.002 1.002 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z"
|
|
7629
|
+
}), /* @__PURE__ */ React__default.createElement("path", {
|
|
7630
|
+
d: "M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243L6.586 4.672z"
|
|
7631
|
+
}));
|
|
7615
7632
|
const linkedin = () => /* @__PURE__ */ React__default.createElement("svg", {
|
|
7616
7633
|
viewBox: "0 0 24 24",
|
|
7617
7634
|
fill: "none",
|
|
@@ -8802,6 +8819,7 @@ const clock = () => {
|
|
|
8802
8819
|
var icons$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8803
8820
|
__proto__: null,
|
|
8804
8821
|
roundTable,
|
|
8822
|
+
link: link$1,
|
|
8805
8823
|
linkedin,
|
|
8806
8824
|
menu,
|
|
8807
8825
|
close: close$4,
|
|
@@ -53328,6 +53346,9 @@ const ModalConfirmation = ({
|
|
|
53328
53346
|
message: message2,
|
|
53329
53347
|
title: title2,
|
|
53330
53348
|
icon: icon2,
|
|
53349
|
+
showSubmitButton = true,
|
|
53350
|
+
submitButtonText = "ACCEPT",
|
|
53351
|
+
cancelButtonText = "CANCEL",
|
|
53331
53352
|
...props
|
|
53332
53353
|
}) => {
|
|
53333
53354
|
const { t: t2 } = useTranslation();
|
|
@@ -53348,11 +53369,11 @@ const ModalConfirmation = ({
|
|
|
53348
53369
|
mode: "tertiary",
|
|
53349
53370
|
onClick: props.onClose,
|
|
53350
53371
|
disabled: isLoading
|
|
53351
|
-
}, t2(
|
|
53372
|
+
}, t2(cancelButtonText)), showSubmitButton && /* @__PURE__ */ React__default.createElement(Button$3, {
|
|
53352
53373
|
size: "small",
|
|
53353
53374
|
onClick: onAccept,
|
|
53354
53375
|
isLoading
|
|
53355
|
-
}, t2(
|
|
53376
|
+
}, t2(submitButtonText))));
|
|
53356
53377
|
};
|
|
53357
53378
|
const ReplyTemplates = ({
|
|
53358
53379
|
venueId,
|
|
@@ -95069,6 +95090,9 @@ const VenueListingDetail = ({
|
|
|
95069
95090
|
const clearModuleToDisconnect = () => setModuleToDisconnect(void 0);
|
|
95070
95091
|
const clearModuleToConnect = () => setModuleToConnect(void 0);
|
|
95071
95092
|
const [showAppleConnectModal, setShowAppleConnectModal] = useState(false);
|
|
95093
|
+
const [showNotConnectedChannelsModal, setShowNotConnectedChannelsModal] = useState(false);
|
|
95094
|
+
const onOpenNotConnectedChannelsModal = () => setShowNotConnectedChannelsModal(true);
|
|
95095
|
+
const onCloseNotConnectedChannelsModal = () => setShowNotConnectedChannelsModal(false);
|
|
95072
95096
|
const [googlePublishing, setGooglePublishing] = useState();
|
|
95073
95097
|
const [facebookPublishing, setFacebookPublishing] = useState();
|
|
95074
95098
|
const [googleErrors, setGoogleErrors] = useState();
|
|
@@ -95079,7 +95103,7 @@ const VenueListingDetail = ({
|
|
|
95079
95103
|
venueListingId
|
|
95080
95104
|
});
|
|
95081
95105
|
const venueId = data2 == null ? void 0 : data2.venueId;
|
|
95082
|
-
const { reload: _reloadConnect } = useConnect({ venueId });
|
|
95106
|
+
const { FacebookConnected, GoogleConnected, BingConnected, AppleConnected, reload: _reloadConnect } = useConnect({ venueId });
|
|
95083
95107
|
const { execute: publishGoogle, isExecuting: isPublishingGoogle, error: errorGoogle, data: rGoogle } = useService(PublishVenueListing);
|
|
95084
95108
|
const { execute: publishFacebook, isExecuting: isPublishingFacebook, error: errorFacebook, data: responseFacebook } = useService(PublishVenueListing);
|
|
95085
95109
|
const reloadConnect = () => {
|
|
@@ -95151,6 +95175,9 @@ const VenueListingDetail = ({
|
|
|
95151
95175
|
} else {
|
|
95152
95176
|
setFacebookPublishing("success");
|
|
95153
95177
|
}
|
|
95178
|
+
if (!FacebookConnected && !GoogleConnected && !BingConnected && !AppleConnected) {
|
|
95179
|
+
onOpenNotConnectedChannelsModal();
|
|
95180
|
+
}
|
|
95154
95181
|
await reload();
|
|
95155
95182
|
};
|
|
95156
95183
|
if (isLoading) {
|
|
@@ -95249,6 +95276,15 @@ const VenueListingDetail = ({
|
|
|
95249
95276
|
onClose: clearTemporaryClosed,
|
|
95250
95277
|
isLoading: isUpdating,
|
|
95251
95278
|
width: 500
|
|
95279
|
+
}), /* @__PURE__ */ React__default.createElement(ModalConfirmation, {
|
|
95280
|
+
title: t$3("NoChannelsConnected"),
|
|
95281
|
+
message: t$3("NoChannelsConnectedDesc"),
|
|
95282
|
+
showSubmitButton: false,
|
|
95283
|
+
open: showNotConnectedChannelsModal,
|
|
95284
|
+
onClose: onCloseNotConnectedChannelsModal,
|
|
95285
|
+
cancelButtonText: "CLOSE",
|
|
95286
|
+
icon: "link",
|
|
95287
|
+
width: 500
|
|
95252
95288
|
}), /* @__PURE__ */ React__default.createElement(ModalOnboarding, {
|
|
95253
95289
|
onClose: () => setOpenOnboarding(false),
|
|
95254
95290
|
venue: data2 && (data2 == null ? void 0 : data2.businessName),
|