@bigbinary/neeto-molecules 3.16.77 → 3.16.78
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/cjs/ProductEmbed.js
CHANGED
|
@@ -76,7 +76,10 @@ var useProductEmbedStore = zustand.create(reactUtils.withImmutableActions(functi
|
|
|
76
76
|
queryParams: [INITIAL_QUERY_PARAM],
|
|
77
77
|
queryParamsProps: {
|
|
78
78
|
helpPopoverProps: {},
|
|
79
|
-
label: ""
|
|
79
|
+
label: "",
|
|
80
|
+
keyPlaceholder: "",
|
|
81
|
+
valuePlaceholder: "",
|
|
82
|
+
addButtonLabel: ""
|
|
80
83
|
},
|
|
81
84
|
setProductEmbedState: set,
|
|
82
85
|
setQueryParams: function setQueryParams(queryParams) {
|
|
@@ -350,7 +353,7 @@ var DynamicQueryParams = function DynamicQueryParams(_ref) {
|
|
|
350
353
|
"data-testid": "dynamic-query-key-name-input",
|
|
351
354
|
name: "queryParams.".concat(index, ".name"),
|
|
352
355
|
value: param.name,
|
|
353
|
-
placeholder: t("neetoMolecules.productEmbed.queryParam.keyNamePlaceholder"),
|
|
356
|
+
placeholder: queryParamsProps.keyPlaceholder || t("neetoMolecules.productEmbed.queryParam.keyNamePlaceholder"),
|
|
354
357
|
onChange: function onChange(e) {
|
|
355
358
|
return handleInputChange(index, "name", e.target.value);
|
|
356
359
|
}
|
|
@@ -359,7 +362,7 @@ var DynamicQueryParams = function DynamicQueryParams(_ref) {
|
|
|
359
362
|
"data-testid": "dynamic-query-key-value-input",
|
|
360
363
|
name: "queryParams.".concat(index, ".value"),
|
|
361
364
|
value: param.value,
|
|
362
|
-
placeholder: t("neetoMolecules.productEmbed.queryParam.keyValuePlaceholder"),
|
|
365
|
+
placeholder: queryParamsProps.valuePlaceholder || t("neetoMolecules.productEmbed.queryParam.keyValuePlaceholder"),
|
|
363
366
|
onChange: function onChange(e) {
|
|
364
367
|
return handleInputChange(index, "value", e.target.value);
|
|
365
368
|
}
|
|
@@ -375,10 +378,11 @@ var DynamicQueryParams = function DynamicQueryParams(_ref) {
|
|
|
375
378
|
}), /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
376
379
|
className: "my-2",
|
|
377
380
|
"data-cy": "dynamic-query-add-new-button",
|
|
381
|
+
"data-testid": "dynamic-query-add-new-button",
|
|
378
382
|
icon: Plus,
|
|
379
383
|
iconPosition: "left",
|
|
380
|
-
label: t("neetoMolecules.productEmbed.queryParam.addQueryParam"),
|
|
381
384
|
style: "link",
|
|
385
|
+
label: queryParamsProps.addButtonLabel || t("neetoMolecules.productEmbed.queryParam.addQueryParam"),
|
|
382
386
|
onClick: handleAddQueryParam
|
|
383
387
|
})]
|
|
384
388
|
});
|
|
@@ -1664,10 +1668,7 @@ var ProductEmbed = function ProductEmbed(_ref) {
|
|
|
1664
1668
|
_ref$isQueryParamsEna = _ref.isQueryParamsEnabled,
|
|
1665
1669
|
isQueryParamsEnabled = _ref$isQueryParamsEna === void 0 ? false : _ref$isQueryParamsEna,
|
|
1666
1670
|
_ref$queryParamsProps = _ref.queryParamsProps,
|
|
1667
|
-
queryParamsProps = _ref$queryParamsProps === void 0 ? {
|
|
1668
|
-
helpPopoverProps: {},
|
|
1669
|
-
label: ""
|
|
1670
|
-
} : _ref$queryParamsProps,
|
|
1671
|
+
queryParamsProps = _ref$queryParamsProps === void 0 ? {} : _ref$queryParamsProps,
|
|
1671
1672
|
_ref$options = _ref.options,
|
|
1672
1673
|
options = _ref$options === void 0 ? {} : _ref$options,
|
|
1673
1674
|
_ref$extraArgs = _ref.extraArgs,
|