@sphereon/ui-components.core 0.2.1-next.3 → 0.2.1-unstable.11

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.
@@ -1,2 +1,4 @@
1
1
  export declare const emailAddressValidationRegex: RegExp;
2
2
  export declare const base64UriValidationRegex: RegExp;
3
+ export declare const IS_IMAGE_URI_REGEX: RegExp;
4
+ export declare const IS_IMAGE_URL_REGEX: RegExp;
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.base64UriValidationRegex = exports.emailAddressValidationRegex = void 0;
3
+ exports.IS_IMAGE_URL_REGEX = exports.IS_IMAGE_URI_REGEX = exports.base64UriValidationRegex = exports.emailAddressValidationRegex = void 0;
4
4
  exports.emailAddressValidationRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
5
5
  exports.base64UriValidationRegex = /^data:image\/[a-zA-Z]+;base64,[A-Za-z0-9+\/_-]*(={0,2})?$/;
6
+ exports.IS_IMAGE_URI_REGEX = /^data:image\/(png|jpg|jpeg|bmp|gif|webp);base64,/;
7
+ exports.IS_IMAGE_URL_REGEX = /\.(jpg|jpeg|png|gif|bmp|webp)$/i;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.core",
3
3
  "private": false,
4
- "version": "0.2.1-next.3+454474d",
4
+ "version": "0.2.1-unstable.11+1d1c7d5",
5
5
  "description": "SSI UI components Core",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -43,5 +43,5 @@
43
43
  "peerDependencies": {
44
44
  "react": ">= 18"
45
45
  },
46
- "gitHead": "454474d8f5680c25bcc7bda99e7a2f08337273e5"
46
+ "gitHead": "1d1c7d59c8ef9e2a0cf374ee81220742071c2917"
47
47
  }