@uniformdev/design-system 19.20.1-alpha.32 → 19.22.0

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/esm/index.js CHANGED
@@ -12105,6 +12105,7 @@ var ChipContainer = css35`
12105
12105
  var ChipText = css35`
12106
12106
  align-self: center;
12107
12107
  line-height: 1;
12108
+ text-wrap: nowrap;
12108
12109
  `;
12109
12110
  var ChipIcon = css35`
12110
12111
  align-self: center;
@@ -15482,14 +15483,13 @@ var ParameterImageInner = forwardRef10(
15482
15483
  const errorText = "The text you provided is not a valid URL";
15483
15484
  const updateImageSrc = useCallback3(() => {
15484
15485
  const validUrl = new RegExp(
15485
- "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$",
15486
- "i"
15486
+ /^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_.+~#?&/=]*)$/
15487
15487
  );
15488
15488
  let message = void 0;
15489
15489
  try {
15490
15490
  if (value !== "") {
15491
15491
  const url = String(value).startsWith("//") ? `${location.protocol}${value}` : String(value);
15492
- if (!url.match(validUrl) || !url.startsWith("https")) {
15492
+ if (!validUrl.test(url) || !url.startsWith("https")) {
15493
15493
  throw Error(errorText);
15494
15494
  }
15495
15495
  }
package/dist/index.js CHANGED
@@ -12330,6 +12330,7 @@ var ChipContainer = import_react43.css`
12330
12330
  var ChipText = import_react43.css`
12331
12331
  align-self: center;
12332
12332
  line-height: 1;
12333
+ text-wrap: nowrap;
12333
12334
  `;
12334
12335
  var ChipIcon = import_react43.css`
12335
12336
  align-self: center;
@@ -15702,14 +15703,13 @@ var ParameterImageInner = (0, import_react92.forwardRef)(
15702
15703
  const errorText = "The text you provided is not a valid URL";
15703
15704
  const updateImageSrc = (0, import_react92.useCallback)(() => {
15704
15705
  const validUrl = new RegExp(
15705
- "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$",
15706
- "i"
15706
+ /^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_.+~#?&/=]*)$/
15707
15707
  );
15708
15708
  let message = void 0;
15709
15709
  try {
15710
15710
  if (value !== "") {
15711
15711
  const url = String(value).startsWith("//") ? `${location.protocol}${value}` : String(value);
15712
- if (!url.match(validUrl) || !url.startsWith("https")) {
15712
+ if (!validUrl.test(url) || !url.startsWith("https")) {
15713
15713
  throw Error(errorText);
15714
15714
  }
15715
15715
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "19.20.1-alpha.32+9ad53dedb",
3
+ "version": "19.22.0",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "@storybook/client-api": "6.5.16",
24
24
  "@storybook/react": "6.5.16",
25
25
  "@types/react": "18.2.7",
26
- "@uniformdev/canvas": "^19.20.1-alpha.32+9ad53dedb",
26
+ "@uniformdev/canvas": "^19.22.0",
27
27
  "autoprefixer": "10.4.14",
28
28
  "hygen": "6.2.11",
29
29
  "postcss": "8.4.24",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "9ad53dedb0a0c580abc314fe1422f48a09efd0aa"
69
+ "gitHead": "f3b826c15f64a8abc5bd7ca08c0539bd85684cf9"
70
70
  }