@bigbinary/neeto-molecules 4.0.74 → 4.0.75
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/ShareViaLink.js
CHANGED
|
@@ -23,6 +23,7 @@ var Pane = require('@bigbinary/neetoui/Pane');
|
|
|
23
23
|
var Input = require('@bigbinary/neetoui/formik/Input');
|
|
24
24
|
var ActionBlock = require('@bigbinary/neetoui/formik/ActionBlock');
|
|
25
25
|
var i18next = require('i18next');
|
|
26
|
+
var constants = require('@bigbinary/neeto-commons-frontend/constants');
|
|
26
27
|
var Facebook = require('@bigbinary/neeto-icons/Facebook');
|
|
27
28
|
var Linkedin = require('@bigbinary/neeto-icons/Linkedin');
|
|
28
29
|
var Twitter = require('@bigbinary/neeto-icons/Twitter');
|
|
@@ -224,7 +225,9 @@ var SOCIAL_MEDIA_OPTIONS = {
|
|
|
224
225
|
}
|
|
225
226
|
};
|
|
226
227
|
var PATH_VALIDATION_SCHEMA = yup__namespace.object().shape({
|
|
227
|
-
path: yup__namespace.string().required(i18next.t("neetoMolecules.shareViaLink.editUrl.validationError")).matches(/^[A-Za-z0-9]([\w/-])*$/, i18next.t("neetoMolecules.shareViaLink.editUrl.validationError"))
|
|
228
|
+
path: yup__namespace.string().required(i18next.t("neetoMolecules.shareViaLink.editUrl.validationError")).matches(/^[A-Za-z0-9]([\w/-])*$/, i18next.t("neetoMolecules.shareViaLink.editUrl.validationError")).test("reserved-path", i18next.t("neetoMolecules.shareViaLink.editUrl.reservedPathError"), function (value) {
|
|
229
|
+
return !constants.RESERVED_PATHS.includes(value === null || value === void 0 ? void 0 : value.toLowerCase());
|
|
230
|
+
})
|
|
228
231
|
});
|
|
229
232
|
|
|
230
233
|
var css$1 = ".no-padding .neeto-ui-input.neeto-ui-input--medium input{padding:0}.no-padding .neeto-ui-input__prefix{color:rgb(var(--neeto-ui-gray-600))!important}";
|