@epam/ai-dial-builder-form 1.2.0-dev.225 → 1.2.0-dev.229

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/index.js CHANGED
@@ -738,7 +738,7 @@ var z = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
738
738
  })] });
739
739
  }), Q = /* @__PURE__ */ function(e) {
740
740
  return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
741
- }({}), xe = (e, t) => e.length === t.length && e.every((e, n) => e.id === t[n].id && e.language === t[n].language && e.name === t[n].name && e.description === t[n].description), Se = (e, t) => e.name === t.name && e.description === t.description && e.iconUrl === t.iconUrl && e.version === t.version && e.topics.length === t.topics.length && e.topics.every((e, n) => e === t.topics[n]) && xe(e.otherLocales, t.otherLocales), Ce = (e) => Object.values(e).every((e) => e == null), we = /^[a-zA-Z0-9 _.-]+$/, Te = /^[a-zA-Z0-9._-]+$/, Ee = /^\d+(\.\d+)*$/, De = (n, r = {}) => {
741
+ }({}), xe = (e, t) => e.length === t.length && e.every((e, n) => e.id === t[n].id && e.language === t[n].language && e.name === t[n].name && e.description === t[n].description), Se = (e, t) => e.name === t.name && e.description === t.description && e.iconUrl === t.iconUrl && e.version === t.version && e.topics.length === t.topics.length && e.topics.every((e, n) => e === t.topics[n]) && xe(e.otherLocales, t.otherLocales), Ce = (e) => Object.values(e).every((e) => e == null), we = /^[a-zA-Z0-9 _.-]+$/, Te = /^[a-zA-Z0-9._-]+$/, Ee = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/, De = (n, r = {}) => {
742
742
  let i = {}, s = n.name.trim();
743
743
  s ? a(s, t) ? i.name = Q.TooLong : r.validateNamePattern && !we.test(s) ? i.name = Q.InvalidFormat : o(s) && (i.name = Q.ControlCharacters) : i.name = Q.Required, a(n.description, e) && (i.description = Q.TooLong);
744
744
  let c = n.version.trim();
@@ -26,7 +26,7 @@ export interface DeploymentCreationFormValidationOptions {
26
26
  * Whether to reject a non-empty version that doesn't match a pattern.
27
27
  * `true` checks against the default `VERSION_PATTERN`; passing a `RegExp`
28
28
  * checks against that pattern instead (e.g. `SEMVER_VERSION_PATTERN` for a
29
- * host that requires a strict dot-separated numeric version).
29
+ * host that requires a SemVer 2.0.0 version).
30
30
  */
31
31
  validateVersionPattern?: boolean | RegExp;
32
32
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-builder-form",
3
3
  "description": "Presentational builder form shells, editor layouts, and shared deployment field sets for composing and editing DIAL entities",
4
- "version": "1.2.0-dev.225",
4
+ "version": "1.2.0-dev.229",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -20,8 +20,8 @@
20
20
  "@tabler/icons-react": "^3.44.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@epam/ai-dial-chat-shared": "1.2.0-dev.225",
24
- "@epam/ai-dial-ui-kit": "^0.15.0-dev.27",
23
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.229",
24
+ "@epam/ai-dial-ui-kit": "^0.15.0-dev.30",
25
25
  "react": "^19.2.8"
26
26
  },
27
27
  "repository": {
@@ -4,7 +4,12 @@ import { DeploymentCreationFormErrorCodes, DeploymentCreationFormValidationOptio
4
4
  export declare const NAME_PATTERN: RegExp;
5
5
  /** Allowed characters for the version field: letters, digits, dots, underscores, dashes. */
6
6
  export declare const VERSION_PATTERN: RegExp;
7
- /** Stricter version shape: one or more dot-separated numeric segments (e.g. `0.0.1`). */
7
+ /**
8
+ * SemVer 2.0.0 version (https://semver.org): `MAJOR.MINOR.PATCH` without
9
+ * leading zeros, with an optional pre-release (`-beta.1`) and build metadata
10
+ * (`+build.5`). DIAL Admin checks versions with `semver.valid()`, so a value
11
+ * accepted here is accepted when the same entity is edited there.
12
+ */
8
13
  export declare const SEMVER_VERSION_PATTERN: RegExp;
9
14
  /** Validates the General-step fields and returns untranslated error codes; has no side effects. */
10
15
  export declare const validateDeploymentCreationFields: (values: DeploymentCreationFormValues, options?: DeploymentCreationFormValidationOptions) => DeploymentCreationFormErrorCodes;
@@ -1 +1 @@
1
- {"version":3,"file":"validate-deployment-creation-fields.d.ts","sourceRoot":"","sources":["../../src/utils/validate-deployment-creation-fields.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EACxC,MAAM,sBAAsB,CAAC;AAG9B,iGAAiG;AACjG,eAAO,MAAM,YAAY,QAAuB,CAAC;AAEjD,4FAA4F;AAC5F,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,QAAkB,CAAC;AAEtD,mGAAmG;AACnG,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,4BAA4B,EACpC,UAAS,uCAA4C,KACpD,gCA8BF,CAAC"}
1
+ {"version":3,"file":"validate-deployment-creation-fields.d.ts","sourceRoot":"","sources":["../../src/utils/validate-deployment-creation-fields.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,KAAK,EACV,gCAAgC,EAChC,uCAAuC,EACxC,MAAM,sBAAsB,CAAC;AAG9B,iGAAiG;AACjG,eAAO,MAAM,YAAY,QAAuB,CAAC;AAEjD,4FAA4F;AAC5F,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,QACgJ,CAAC;AAEpL,mGAAmG;AACnG,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,4BAA4B,EACpC,UAAS,uCAA4C,KACpD,gCA8BF,CAAC"}