mozrest-sdk-react-dev 0.3.47 → 0.3.48

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.
Files changed (2) hide show
  1. package/mozrest-sdk.es.js +31 -37
  2. package/package.json +1 -1
package/mozrest-sdk.es.js CHANGED
@@ -8396,7 +8396,8 @@ const en = {
8396
8396
  "dd/mm/yyyy": "dd/mm/yyyy",
8397
8397
  NO_AVAILABLE_CHANNELS: NO_AVAILABLE_CHANNELS$4,
8398
8398
  select: select$4,
8399
- AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$4
8399
+ AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$4,
8400
+ "AI automatically replies to your customer reviews.": "AI automatically replies to your customer reviews."
8400
8401
  };
8401
8402
  const errors$3 = { "required": "Este campo es requerido", "email": "Este correo electrónico no es válido", "phone": "Número de teléfono no válido", "url": "URL no válida" };
8402
8403
  const SPECIALCLOSINGDATES$3 = "Fechas de cierre especiales u horarios de apertura diferentes (días especiales, festivos, eventos privados…)";
@@ -9457,7 +9458,8 @@ const es$2 = {
9457
9458
  "dd/mm/yyyy": "dd/mm/yyyy",
9458
9459
  NO_AVAILABLE_CHANNELS: NO_AVAILABLE_CHANNELS$3,
9459
9460
  select: select$3,
9460
- AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$3
9461
+ AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$3,
9462
+ "AI automatically replies to your customer reviews.": "La IA automáticamente responde a las reseñas de tus clientes."
9461
9463
  };
9462
9464
  const errors$2 = { "required": "Ce champ est requis", "email": "Cet email n'est pas valide", "phone": "Numéro de téléphone non valide", "url": "Cette URL n'est pas valide" };
9463
9465
  const SPECIALCLOSINGDATES$2 = "Fermetures exceptionnelles et horaires d’ouverture modifiés (jours fériés, événements, etc.) ";
@@ -10517,7 +10519,8 @@ const fr$1 = {
10517
10519
  "dd/mm/yyyy": "JJ/MM/AAAA",
10518
10520
  NO_AVAILABLE_CHANNELS: NO_AVAILABLE_CHANNELS$2,
10519
10521
  select: select$2,
10520
- AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$2
10522
+ AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$2,
10523
+ "AI automatically replies to your customer reviews.": "L'IA répond automatiquement aux avis de vos clients."
10521
10524
  };
10522
10525
  const errors$1 = { "required": "Dieses Feld ist erforderlich", "email": "Diese E-Mail ist nicht gültig", "phone": "Diese Telefonnummer ist nicht gültig", "url": "Diese URL ist nicht gültig" };
10523
10526
  const SPECIALCLOSINGDATES$1 = "Besondere Schließungstage oder abweichende Öffnungszeiten (besondere Tage, Feiertage, private Veranstaltungen…)";
@@ -11578,7 +11581,8 @@ const de$1 = {
11578
11581
  "dd/mm/yyyy": "dd/mm/yyyy",
11579
11582
  NO_AVAILABLE_CHANNELS: NO_AVAILABLE_CHANNELS$1,
11580
11583
  select: select$1,
11581
- AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$1
11584
+ AUTOREPLYREVIEWS: AUTOREPLYREVIEWS$1,
11585
+ "AI automatically replies to your customer reviews.": "Die KI antwortet automatisch auf Ihre Kundenbewertungen."
11582
11586
  };
11583
11587
  const errors = { "required": "Dit veld is verplicht", "email": "Dit e-mailadres is ongeldig", "phone": "Ongeldig telefoonnummer", "url": "Deze URL is ongeldig" };
11584
11588
  const SPECIALCLOSINGDATES = "Speciale sluitingsdagen of afwijkende openingstijden (feestdagen, evenementen, enz.)";
@@ -12639,7 +12643,8 @@ const nl$1 = {
12639
12643
  Covers,
12640
12644
  "dd/mm/yyyy": "dd/mm/yyyy",
12641
12645
  select,
12642
- AUTOREPLYREVIEWS
12646
+ AUTOREPLYREVIEWS,
12647
+ "AI automatically replies to your customer reviews.": "De AI-assistent zal nu automatisch reageren op onbeantwoorde beoordelingen van de laatste 30 dagen. U ontvangt een rapport om de resultaten te controleren."
12643
12648
  };
12644
12649
  instance.use(initReactI18next).init({
12645
12650
  // the translations
@@ -48592,7 +48597,7 @@ const TextArea$1 = React__default.forwardRef(({
48592
48597
  onChange2 && onChange2(ev);
48593
48598
  }
48594
48599
  return /* @__PURE__ */ jsxs("div", {
48595
- children: [/* @__PURE__ */ jsx$1(Label$1, {
48600
+ children: [label2 && /* @__PURE__ */ jsx$1(Label$1, {
48596
48601
  isHidden: hideLabel,
48597
48602
  htmlFor: id2,
48598
48603
  tooltip: tooltip2,
@@ -92072,7 +92077,7 @@ const ConfirmationModal = ({
92072
92077
  gap: 20,
92073
92078
  marginTop: 20
92074
92079
  },
92075
- children: [/* @__PURE__ */ jsx$1(Button$1, {
92080
+ children: [cancelButtonText && /* @__PURE__ */ jsx$1(Button$1, {
92076
92081
  size: "small",
92077
92082
  mode: "tertiary",
92078
92083
  onClick: props.onClose,
@@ -92099,7 +92104,6 @@ const AiPromptCard = ({
92099
92104
  const [showAiPromptModal, setShowAiPromptModal] = useState(false);
92100
92105
  const [showAutoReplyModal, setShowAutoReplyModal] = useState(false);
92101
92106
  const closeAiPromptModal = () => setShowAiPromptModal(false);
92102
- const openAiPromptModal = () => setShowAiPromptModal(true);
92103
92107
  const closeAutoReplyModal = () => setShowAutoReplyModal(false);
92104
92108
  const openAutoReplyModal = () => setShowAutoReplyModal(true);
92105
92109
  const {
@@ -92145,34 +92149,24 @@ const AiPromptCard = ({
92145
92149
  enableReinitialize: true,
92146
92150
  children: ({
92147
92151
  values
92148
- }) => {
92149
- var _a3;
92150
- return /* @__PURE__ */ jsxs(Card$1, {
92151
- header: {
92152
- title: t2("AIPROMPT"),
92153
- icon: "edit",
92154
- onClickIcon: openAiPromptModal
92155
- },
92156
- children: [/* @__PURE__ */ jsx$1("p", {
92157
- children: t2("Ai prompt for generate reviews.")
92158
- }), /* @__PURE__ */ jsx$1("br", {}), /* @__PURE__ */ jsx$1(UIList$1, {
92159
- mode: "vertical",
92160
- children: /* @__PURE__ */ jsx$1(Item$1, {
92161
- isLoading: isExecuting,
92162
- id: "autoReplyReviews",
92163
- name: t2("AUTOREPLYREVIEWS"),
92164
- onChange: () => handleSubmit("autoReplyReviews", values)
92165
- })
92166
- }), /* @__PURE__ */ jsxs("div", {
92167
- className: styles$1l.item,
92168
- children: [/* @__PURE__ */ jsx$1("div", {
92169
- children: /* @__PURE__ */ jsx$1(Icon, {
92170
- icon: "robot"
92171
- })
92172
- }), ((_a3 = userData2 == null ? void 0 : userData2.data) == null ? void 0 : _a3.company.aiPrompt) || t2("NOTDEFINED")]
92173
- })]
92174
- });
92175
- }
92152
+ }) => /* @__PURE__ */ jsxs(Card$1, {
92153
+ header: {
92154
+ title: t2("AUTOREPLYREVIEWS")
92155
+ // icon: "edit",
92156
+ // onClickIcon: openAiPromptModal,
92157
+ },
92158
+ children: [/* @__PURE__ */ jsx$1("p", {
92159
+ children: t2("AI automatically replies to your customer reviews.")
92160
+ }), /* @__PURE__ */ jsx$1("br", {}), /* @__PURE__ */ jsx$1(UIList$1, {
92161
+ mode: "vertical",
92162
+ children: /* @__PURE__ */ jsx$1(Item$1, {
92163
+ isLoading: isExecuting,
92164
+ id: "autoReplyReviews",
92165
+ name: t2("AUTOREPLYREVIEWS"),
92166
+ onChange: () => handleSubmit("autoReplyReviews", values)
92167
+ })
92168
+ })]
92169
+ })
92176
92170
  }), /* @__PURE__ */ jsx$1(AiPromptForm, {
92177
92171
  open: showAiPromptModal,
92178
92172
  onCloseForm: closeAiPromptModal,
@@ -92188,7 +92182,7 @@ const AiPromptCard = ({
92188
92182
  text: "AUTOREPLYDESCRIPTION",
92189
92183
  icon: "robot",
92190
92184
  submitButtonText: "UNDERSTOOD",
92191
- cancelButtonText: "CLOSE"
92185
+ cancelButtonText: ""
92192
92186
  })]
92193
92187
  });
92194
92188
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.3.47",
3
+ "version": "0.3.48",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": [
6
6
  "mozrest"