@keycloakify/svelte 0.2.5 → 0.2.6

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,5 +1,5 @@
1
- export const id = 135;
2
- export const ids = [135];
1
+ export const id = 343;
2
+ export const ids = [343];
3
3
  export const modules = {
4
4
 
5
5
  /***/ 94:
@@ -29,7 +29,7 @@ function symToStr(wrap) {
29
29
 
30
30
  /***/ }),
31
31
 
32
- /***/ 535:
32
+ /***/ 455:
33
33
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
34
34
 
35
35
 
@@ -750,11 +750,7 @@ function flattenError(error, mapper = (issue) => issue.message) {
750
750
  }
751
751
  return { formErrors, fieldErrors };
752
752
  }
753
- function formatError(error, _mapper) {
754
- const mapper = _mapper ||
755
- function (issue) {
756
- return issue.message;
757
- };
753
+ function formatError(error, mapper = (issue) => issue.message) {
758
754
  const fieldErrors = { _errors: [] };
759
755
  const processError = (error) => {
760
756
  for (const issue of error.issues) {
@@ -792,11 +788,7 @@ function formatError(error, _mapper) {
792
788
  processError(error);
793
789
  return fieldErrors;
794
790
  }
795
- function treeifyError(error, _mapper) {
796
- const mapper = _mapper ||
797
- function (issue) {
798
- return issue.message;
799
- };
791
+ function treeifyError(error, mapper = (issue) => issue.message) {
800
792
  const result = { errors: [] };
801
793
  const processError = (error, path = []) => {
802
794
  var _a, _b;
@@ -1743,7 +1735,7 @@ class Doc {
1743
1735
  const version = {
1744
1736
  major: 4,
1745
1737
  minor: 1,
1746
- patch: 8,
1738
+ patch: 12,
1747
1739
  };
1748
1740
 
1749
1741
  ;// CONCATENATED MODULE: ./node_modules/zod/v4/core/schemas.js
@@ -2518,6 +2510,20 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
2518
2510
  const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
2519
2511
  // requires cast because technically $ZodObject doesn't extend
2520
2512
  $ZodType.init(inst, def);
2513
+ // const sh = def.shape;
2514
+ const desc = Object.getOwnPropertyDescriptor(def, "shape");
2515
+ if (!desc?.get) {
2516
+ const sh = def.shape;
2517
+ Object.defineProperty(def, "shape", {
2518
+ get: () => {
2519
+ const newSh = { ...sh };
2520
+ Object.defineProperty(def, "shape", {
2521
+ value: newSh,
2522
+ });
2523
+ return newSh;
2524
+ },
2525
+ });
2526
+ }
2521
2527
  const _normalized = cached(() => normalizeDef(def));
2522
2528
  defineLazy(inst._zod, "propValues", () => {
2523
2529
  const shape = def.shape;
@@ -4090,6 +4096,136 @@ const be_error = () => {
4090
4096
  };
4091
4097
  }
4092
4098
 
4099
+ ;// CONCATENATED MODULE: ./node_modules/zod/v4/locales/bg.js
4100
+
4101
+ const parsedType = (data) => {
4102
+ const t = typeof data;
4103
+ switch (t) {
4104
+ case "number": {
4105
+ return Number.isNaN(data) ? "NaN" : "число";
4106
+ }
4107
+ case "object": {
4108
+ if (Array.isArray(data)) {
4109
+ return "масив";
4110
+ }
4111
+ if (data === null) {
4112
+ return "null";
4113
+ }
4114
+ if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
4115
+ return data.constructor.name;
4116
+ }
4117
+ }
4118
+ }
4119
+ return t;
4120
+ };
4121
+ const bg_error = () => {
4122
+ const Sizable = {
4123
+ string: { unit: "символа", verb: "да съдържа" },
4124
+ file: { unit: "байта", verb: "да съдържа" },
4125
+ array: { unit: "елемента", verb: "да съдържа" },
4126
+ set: { unit: "елемента", verb: "да съдържа" },
4127
+ };
4128
+ function getSizing(origin) {
4129
+ return Sizable[origin] ?? null;
4130
+ }
4131
+ const Nouns = {
4132
+ regex: "вход",
4133
+ email: "имейл адрес",
4134
+ url: "URL",
4135
+ emoji: "емоджи",
4136
+ uuid: "UUID",
4137
+ uuidv4: "UUIDv4",
4138
+ uuidv6: "UUIDv6",
4139
+ nanoid: "nanoid",
4140
+ guid: "GUID",
4141
+ cuid: "cuid",
4142
+ cuid2: "cuid2",
4143
+ ulid: "ULID",
4144
+ xid: "XID",
4145
+ ksuid: "KSUID",
4146
+ datetime: "ISO време",
4147
+ date: "ISO дата",
4148
+ time: "ISO време",
4149
+ duration: "ISO продължителност",
4150
+ ipv4: "IPv4 адрес",
4151
+ ipv6: "IPv6 адрес",
4152
+ cidrv4: "IPv4 диапазон",
4153
+ cidrv6: "IPv6 диапазон",
4154
+ base64: "base64-кодиран низ",
4155
+ base64url: "base64url-кодиран низ",
4156
+ json_string: "JSON низ",
4157
+ e164: "E.164 номер",
4158
+ jwt: "JWT",
4159
+ template_literal: "вход",
4160
+ };
4161
+ return (issue) => {
4162
+ switch (issue.code) {
4163
+ case "invalid_type":
4164
+ return `Невалиден вход: очакван ${issue.expected}, получен ${parsedType(issue.input)}`;
4165
+ case "invalid_value":
4166
+ if (issue.values.length === 1)
4167
+ return `Невалиден вход: очакван ${util.stringifyPrimitive(issue.values[0])}`;
4168
+ return `Невалидна опция: очаквано едно от ${util.joinValues(issue.values, "|")}`;
4169
+ case "too_big": {
4170
+ const adj = issue.inclusive ? "<=" : "<";
4171
+ const sizing = getSizing(issue.origin);
4172
+ if (sizing)
4173
+ return `Твърде голямо: очаква се ${issue.origin ?? "стойност"} да съдържа ${adj}${issue.maximum.toString()} ${sizing.unit ?? "елемента"}`;
4174
+ return `Твърде голямо: очаква се ${issue.origin ?? "стойност"} да бъде ${adj}${issue.maximum.toString()}`;
4175
+ }
4176
+ case "too_small": {
4177
+ const adj = issue.inclusive ? ">=" : ">";
4178
+ const sizing = getSizing(issue.origin);
4179
+ if (sizing) {
4180
+ return `Твърде малко: очаква се ${issue.origin} да съдържа ${adj}${issue.minimum.toString()} ${sizing.unit}`;
4181
+ }
4182
+ return `Твърде малко: очаква се ${issue.origin} да бъде ${adj}${issue.minimum.toString()}`;
4183
+ }
4184
+ case "invalid_format": {
4185
+ const _issue = issue;
4186
+ if (_issue.format === "starts_with") {
4187
+ return `Невалиден низ: трябва да започва с "${_issue.prefix}"`;
4188
+ }
4189
+ if (_issue.format === "ends_with")
4190
+ return `Невалиден низ: трябва да завършва с "${_issue.suffix}"`;
4191
+ if (_issue.format === "includes")
4192
+ return `Невалиден низ: трябва да включва "${_issue.includes}"`;
4193
+ if (_issue.format === "regex")
4194
+ return `Невалиден низ: трябва да съвпада с ${_issue.pattern}`;
4195
+ let invalid_adj = "Невалиден";
4196
+ if (_issue.format === "emoji")
4197
+ invalid_adj = "Невалидно";
4198
+ if (_issue.format === "datetime")
4199
+ invalid_adj = "Невалидно";
4200
+ if (_issue.format === "date")
4201
+ invalid_adj = "Невалидна";
4202
+ if (_issue.format === "time")
4203
+ invalid_adj = "Невалидно";
4204
+ if (_issue.format === "duration")
4205
+ invalid_adj = "Невалидна";
4206
+ return `${invalid_adj} ${Nouns[_issue.format] ?? issue.format}`;
4207
+ }
4208
+ case "not_multiple_of":
4209
+ return `Невалидно число: трябва да бъде кратно на ${issue.divisor}`;
4210
+ case "unrecognized_keys":
4211
+ return `Неразпознат${issue.keys.length > 1 ? "и" : ""} ключ${issue.keys.length > 1 ? "ове" : ""}: ${util.joinValues(issue.keys, ", ")}`;
4212
+ case "invalid_key":
4213
+ return `Невалиден ключ в ${issue.origin}`;
4214
+ case "invalid_union":
4215
+ return "Невалиден вход";
4216
+ case "invalid_element":
4217
+ return `Невалидна стойност в ${issue.origin}`;
4218
+ default:
4219
+ return `Невалиден вход`;
4220
+ }
4221
+ };
4222
+ };
4223
+ /* harmony default export */ function bg() {
4224
+ return {
4225
+ localeError: bg_error(),
4226
+ };
4227
+ }
4228
+
4093
4229
  ;// CONCATENATED MODULE: ./node_modules/zod/v4/locales/ca.js
4094
4230
 
4095
4231
  const ca_error = () => {
@@ -4600,7 +4736,7 @@ const de_error = () => {
4600
4736
 
4601
4737
  ;// CONCATENATED MODULE: ./node_modules/zod/v4/locales/en.js
4602
4738
 
4603
- const parsedType = (data) => {
4739
+ const en_parsedType = (data) => {
4604
4740
  const t = typeof data;
4605
4741
  switch (t) {
4606
4742
  case "number": {
@@ -4663,7 +4799,7 @@ const en_error = () => {
4663
4799
  return (issue) => {
4664
4800
  switch (issue.code) {
4665
4801
  case "invalid_type":
4666
- return `Invalid input: expected ${issue.expected}, received ${parsedType(issue.input)}`;
4802
+ return `Invalid input: expected ${issue.expected}, received ${en_parsedType(issue.input)}`;
4667
4803
  case "invalid_value":
4668
4804
  if (issue.values.length === 1)
4669
4805
  return `Invalid input: expected ${stringifyPrimitive(issue.values[0])}`;
@@ -9268,6 +9404,7 @@ const yo_error = () => {
9268
9404
 
9269
9405
 
9270
9406
 
9407
+
9271
9408
 
9272
9409
 
9273
9410
  ;// CONCATENATED MODULE: ./node_modules/zod/v4/core/registries.js
@@ -11295,15 +11432,12 @@ const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
11295
11432
  Object.defineProperty(inst, "_def", { value: def });
11296
11433
  // base methods
11297
11434
  inst.check = (...checks) => {
11298
- return inst.clone({
11299
- ...def,
11435
+ return inst.clone(mergeDefs(def, {
11300
11436
  checks: [
11301
11437
  ...(def.checks ?? []),
11302
11438
  ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch),
11303
11439
  ],
11304
- }
11305
- // { parent: true }
11306
- );
11440
+ }));
11307
11441
  };
11308
11442
  inst.clone = (def, params) => clone(inst, def, params);
11309
11443
  inst.brand = () => inst;
@@ -11802,7 +11936,9 @@ function keyof(schema) {
11802
11936
  const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
11803
11937
  $ZodObjectJIT.init(inst, def);
11804
11938
  ZodType.init(inst, def);
11805
- defineLazy(inst, "shape", () => def.shape);
11939
+ defineLazy(inst, "shape", () => {
11940
+ return def.shape;
11941
+ });
11806
11942
  inst.keyof = () => schemas_enum(Object.keys(inst._zod.def.shape));
11807
11943
  inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall: catchall });
11808
11944
  inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
@@ -11824,10 +11960,7 @@ const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
11824
11960
  function object(shape, params) {
11825
11961
  const def = {
11826
11962
  type: "object",
11827
- get shape() {
11828
- assignProp(this, "shape", shape ? objectClone(shape) : {});
11829
- return this.shape;
11830
- },
11963
+ shape: shape ?? {},
11831
11964
  ...normalizeParams(params),
11832
11965
  };
11833
11966
  return new ZodObject(def);
@@ -11836,10 +11969,7 @@ function object(shape, params) {
11836
11969
  function strictObject(shape, params) {
11837
11970
  return new ZodObject({
11838
11971
  type: "object",
11839
- get shape() {
11840
- util.assignProp(this, "shape", util.objectClone(shape));
11841
- return this.shape;
11842
- },
11972
+ shape,
11843
11973
  catchall: never(),
11844
11974
  ...util.normalizeParams(params),
11845
11975
  });
@@ -11848,10 +11978,7 @@ function strictObject(shape, params) {
11848
11978
  function looseObject(shape, params) {
11849
11979
  return new ZodObject({
11850
11980
  type: "object",
11851
- get shape() {
11852
- util.assignProp(this, "shape", util.objectClone(shape));
11853
- return this.shape;
11854
- },
11981
+ shape,
11855
11982
  catchall: unknown(),
11856
11983
  ...util.normalizeParams(params),
11857
11984
  });
@@ -29,8 +29,8 @@ var update_kc_gen = __webpack_require__(819);
29
29
  var assert = __webpack_require__(966);
30
30
  // EXTERNAL MODULE: ./node_modules/tsafe/esm/id.mjs
31
31
  var id = __webpack_require__(94);
32
- // EXTERNAL MODULE: ./node_modules/zod/v4/classic/external.js + 67 modules
33
- var external = __webpack_require__(535);
32
+ // EXTERNAL MODULE: ./node_modules/zod/v4/classic/external.js + 68 modules
33
+ var external = __webpack_require__(455);
34
34
  ;// CONCATENATED MODULE: ./dist/keycloakify-svelte/bin/initialize-account-theme/updateAccountThemeImplementationInConfig.ts
35
35
 
36
36
 
@@ -1867,7 +1867,8 @@ const LOGIN_THEME_PAGE_IDS = [
1867
1867
  "login-x509-info.ftl",
1868
1868
  "webauthn-error.ftl",
1869
1869
  "login-passkeys-conditional-authenticate.ftl",
1870
- "login-idp-link-confirm-override.ftl"
1870
+ "login-idp-link-confirm-override.ftl",
1871
+ "select-organization.ftl"
1871
1872
  ];
1872
1873
  const ACCOUNT_THEME_PAGE_IDS = [
1873
1874
  "password.ftl",
@@ -2446,7 +2447,7 @@ const { buildContext, commandName } = readParams({ apiVersion: 'v1' });
2446
2447
  return;
2447
2448
  case 'initialize-account-theme':
2448
2449
  {
2449
- const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(135), __nccwpck_require__.e(709)]).then(__nccwpck_require__.bind(__nccwpck_require__, 709));
2450
+ const { command } = await Promise.all(/* import() */[__nccwpck_require__.e(343), __nccwpck_require__.e(709)]).then(__nccwpck_require__.bind(__nccwpck_require__, 709));
2450
2451
  command({ buildContext });
2451
2452
  }
2452
2453
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keycloakify/svelte",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Svelte Components for Keycloakify",
5
5
  "keywords": [
6
6
  "keycloak",
@@ -437,36 +437,36 @@
437
437
  "svelte": "^5.0.0"
438
438
  },
439
439
  "devDependencies": {
440
- "@sveltejs/adapter-auto": "^6.1.0",
441
- "@sveltejs/kit": "^2.41.0",
442
- "@sveltejs/package": "^2.5.2",
443
- "@sveltejs/vite-plugin-svelte": "^6.2.0",
440
+ "@sveltejs/adapter-auto": "^7.0.0",
441
+ "@sveltejs/kit": "^2.48.5",
442
+ "@sveltejs/package": "^2.5.4",
443
+ "@sveltejs/vite-plugin-svelte": "^6.2.1",
444
444
  "@types/eslint": "^9.6.1",
445
- "@types/node": "^22.15.18",
446
- "@vercel/ncc": "^0.38.3",
445
+ "@types/node": "^24.10.1",
446
+ "@vercel/ncc": "^0.38.4",
447
447
  "cli-select": "^1.1.2",
448
448
  "conventional-changelog": "^7.1.1",
449
- "conventional-changelog-angular": "^8.0.0",
450
- "eslint": "^9.35.0",
449
+ "conventional-changelog-angular": "^8.1.0",
450
+ "eslint": "^9.39.1",
451
451
  "eslint-config-prettier": "^10.1.8",
452
452
  "eslint-plugin-prettier": "^5.5.4",
453
- "eslint-plugin-svelte": "^3.12.3",
454
- "eslint-plugin-unused-imports": "^4.2.0",
455
- "globals": "^16.4.0",
453
+ "eslint-plugin-svelte": "^3.13.0",
454
+ "eslint-plugin-unused-imports": "^4.3.0",
455
+ "globals": "^16.5.0",
456
456
  "husky": "^9.1.7",
457
- "keycloakify": "^11.9.6",
458
- "npm-check-updates": "^18.1.1",
457
+ "keycloakify": "^11.11.3",
458
+ "npm-check-updates": "^19.1.2",
459
459
  "prettier": "^3.6.2",
460
460
  "prettier-plugin-svelte": "^3.4.0",
461
- "publint": "^0.3.12",
462
- "svelte": "^5.38.10",
463
- "svelte-check": "^4.3.1",
461
+ "publint": "^0.3.15",
462
+ "svelte": "^5.43.7",
463
+ "svelte-check": "^4.3.4",
464
464
  "ts-node": "^10.9.2",
465
465
  "tsx": "4.20.4",
466
- "typescript": "~5.9.2",
467
- "typescript-eslint": "^8.44.0",
468
- "vite": "^7.1.5",
469
- "zod": "^4.1.8"
466
+ "typescript": "~5.9.3",
467
+ "typescript-eslint": "^8.46.4",
468
+ "vite": "^7.2.2",
469
+ "zod": "^4.1.12"
470
470
  },
471
471
  "bin": {
472
472
  "_keycloakify-custom-handler": "keycloakify-svelte/bin/index.js"