@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/ShareViaLink.js
CHANGED
|
@@ -21,6 +21,7 @@ import Pane from '@bigbinary/neetoui/Pane';
|
|
|
21
21
|
import Input from '@bigbinary/neetoui/formik/Input';
|
|
22
22
|
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
23
23
|
import { t } from 'i18next';
|
|
24
|
+
import { RESERVED_PATHS } from '@bigbinary/neeto-commons-frontend/constants';
|
|
24
25
|
import Facebook from '@bigbinary/neeto-icons/Facebook';
|
|
25
26
|
import Linkedin from '@bigbinary/neeto-icons/Linkedin';
|
|
26
27
|
import Twitter from '@bigbinary/neeto-icons/Twitter';
|
|
@@ -203,7 +204,9 @@ var SOCIAL_MEDIA_OPTIONS = {
|
|
|
203
204
|
}
|
|
204
205
|
};
|
|
205
206
|
var PATH_VALIDATION_SCHEMA = yup.object().shape({
|
|
206
|
-
path: yup.string().required(t("neetoMolecules.shareViaLink.editUrl.validationError")).matches(/^[A-Za-z0-9]([\w/-])*$/, t("neetoMolecules.shareViaLink.editUrl.validationError"))
|
|
207
|
+
path: yup.string().required(t("neetoMolecules.shareViaLink.editUrl.validationError")).matches(/^[A-Za-z0-9]([\w/-])*$/, t("neetoMolecules.shareViaLink.editUrl.validationError")).test("reserved-path", t("neetoMolecules.shareViaLink.editUrl.reservedPathError"), function (value) {
|
|
208
|
+
return !RESERVED_PATHS.includes(value === null || value === void 0 ? void 0 : value.toLowerCase());
|
|
209
|
+
})
|
|
207
210
|
});
|
|
208
211
|
|
|
209
212
|
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}";
|