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