@thunderid/vue 0.0.4 → 0.0.5

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.
Files changed (53) hide show
  1. package/dist/ThunderIDVueClient.d.ts +4 -10
  2. package/dist/ThunderIDVueClient.d.ts.map +1 -1
  3. package/dist/cjs/index.cjs +391 -609
  4. package/dist/components/auth/sign-in/SignIn.d.ts +1 -1
  5. package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts +2 -2
  6. package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts.map +1 -1
  7. package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts +3 -3
  8. package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts.map +1 -1
  9. package/dist/components/presentation/organization-list/OrganizationList.css.d.ts +2 -2
  10. package/dist/components/presentation/organization-list/OrganizationList.css.d.ts.map +1 -1
  11. package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts +2 -2
  12. package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts.map +1 -1
  13. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts +3 -3
  14. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts.map +1 -1
  15. package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts +2 -2
  16. package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts.map +1 -1
  17. package/dist/components/presentation/user-profile/UserProfile.css.d.ts +2 -2
  18. package/dist/components/presentation/user-profile/UserProfile.css.d.ts.map +1 -1
  19. package/dist/components/primitives/Alert/Alert.css.d.ts +2 -2
  20. package/dist/components/primitives/Alert/Alert.css.d.ts.map +1 -1
  21. package/dist/components/primitives/Button/Button.css.d.ts +2 -2
  22. package/dist/components/primitives/Button/Button.css.d.ts.map +1 -1
  23. package/dist/components/primitives/Card/Card.css.d.ts +2 -2
  24. package/dist/components/primitives/Card/Card.css.d.ts.map +1 -1
  25. package/dist/components/primitives/Checkbox/Checkbox.css.d.ts +2 -2
  26. package/dist/components/primitives/Checkbox/Checkbox.css.d.ts.map +1 -1
  27. package/dist/components/primitives/DatePicker/DatePicker.css.d.ts +2 -2
  28. package/dist/components/primitives/DatePicker/DatePicker.css.d.ts.map +1 -1
  29. package/dist/components/primitives/Divider/Divider.css.d.ts +2 -2
  30. package/dist/components/primitives/Divider/Divider.css.d.ts.map +1 -1
  31. package/dist/components/primitives/Logo/Logo.css.d.ts +2 -2
  32. package/dist/components/primitives/Logo/Logo.css.d.ts.map +1 -1
  33. package/dist/components/primitives/OtpField/OtpField.css.d.ts +2 -2
  34. package/dist/components/primitives/OtpField/OtpField.css.d.ts.map +1 -1
  35. package/dist/components/primitives/PasswordField/PasswordField.css.d.ts +2 -2
  36. package/dist/components/primitives/PasswordField/PasswordField.css.d.ts.map +1 -1
  37. package/dist/components/primitives/Select/Select.css.d.ts +2 -2
  38. package/dist/components/primitives/Select/Select.css.d.ts.map +1 -1
  39. package/dist/components/primitives/Spinner/Spinner.css.d.ts +2 -2
  40. package/dist/components/primitives/Spinner/Spinner.css.d.ts.map +1 -1
  41. package/dist/components/primitives/TextField/TextField.css.d.ts +2 -2
  42. package/dist/components/primitives/TextField/TextField.css.d.ts.map +1 -1
  43. package/dist/components/primitives/Typography/Typography.css.d.ts +2 -2
  44. package/dist/components/primitives/Typography/Typography.css.d.ts.map +1 -1
  45. package/dist/index.js +387 -605
  46. package/dist/models/contexts.d.ts +2 -2
  47. package/dist/models/contexts.d.ts.map +1 -1
  48. package/dist/providers/ThunderIDProvider.d.ts.map +1 -1
  49. package/package.json +2 -2
  50. package/dist/__temp__/api.d.ts +0 -64
  51. package/dist/__temp__/api.d.ts.map +0 -1
  52. package/dist/__temp__/models.d.ts +0 -44
  53. package/dist/__temp__/models.d.ts.map +0 -1
@@ -800,164 +800,11 @@ const UserProvider = (0, vue.defineComponent)({
800
800
  });
801
801
  var UserProvider_default = UserProvider;
802
802
 
803
- //#endregion
804
- //#region src/__temp__/api.ts
805
- var AuthAPI = class AuthAPI {
806
- static DEFAULT_STATE;
807
- authState = AuthAPI.DEFAULT_STATE;
808
- client;
809
- apiInstanceId;
810
- loadingState;
811
- constructor(spaClient, instanceId = 0) {
812
- this.apiInstanceId = instanceId;
813
- this.client = spaClient ?? __thunderid_browser.ThunderIDSPAClient.getInstance(instanceId);
814
- this.getState = this.getState.bind(this);
815
- this.init = this.init.bind(this);
816
- this.signIn = this.signIn.bind(this);
817
- this.signOut = this.signOut.bind(this);
818
- this.updateState = this.updateState.bind(this);
819
- }
820
- getInstanceId() {
821
- return this.apiInstanceId;
822
- }
823
- setLoadingState(isLoading) {
824
- this.loadingState = isLoading;
825
- }
826
- getLoadingState() {
827
- return this.loadingState;
828
- }
829
- isLoading() {
830
- return this.getLoadingState();
831
- }
832
- getState() {
833
- return this.authState;
834
- }
835
- async init(config) {
836
- return this.client.initialize(config);
837
- }
838
- async getConfigData() {
839
- return this.client.getConfigData();
840
- }
841
- async getStorageManager() {
842
- return this.client.getStorageManager();
843
- }
844
- async isInitialized() {
845
- return this.client.isInitialized();
846
- }
847
- async signIn(config, authorizationCode, sessionState, authState, callback, tokenRequestConfig) {
848
- return this.client.signIn(config, authorizationCode, sessionState, authState, tokenRequestConfig).then(async (response) => {
849
- if (!response) return null;
850
- if (await this.client.isSignedIn()) {
851
- const stateToUpdate = {
852
- displayName: response.displayName,
853
- email: response.email,
854
- isLoading: false,
855
- isSignedIn: true,
856
- username: response.username
857
- };
858
- this.updateState(stateToUpdate);
859
- this.setLoadingState(false);
860
- if (callback) callback(response);
861
- }
862
- return response;
863
- }).catch((error) => Promise.reject(error));
864
- }
865
- signOut(callback) {
866
- return this.client.signOut().then((response) => {
867
- if (callback) callback(response);
868
- return response;
869
- }).catch((error) => Promise.reject(error));
870
- }
871
- updateState(state) {
872
- this.authState = {
873
- ...this.authState,
874
- ...state
875
- };
876
- }
877
- async getUser() {
878
- return this.client.getUser();
879
- }
880
- async httpRequest(config) {
881
- return this.client.httpRequest(config);
882
- }
883
- async httpRequestAll(configs) {
884
- return this.client.httpRequestAll(configs);
885
- }
886
- exchangeToken(config, callback) {
887
- return this.client.exchangeToken(config).then((response) => {
888
- if (!response) return null;
889
- if (config.returnsSession) this.updateState({
890
- ...this.getState(),
891
- ...response,
892
- isLoading: false,
893
- isSignedIn: true
894
- });
895
- if (callback) callback(response);
896
- return response;
897
- }).catch((error) => Promise.reject(error));
898
- }
899
- async getOpenIDProviderEndpoints() {
900
- return this.client.getOpenIDProviderEndpoints();
901
- }
902
- async getHttpClient() {
903
- return this.client.getHttpClient();
904
- }
905
- async decodeJwtToken(token) {
906
- return this.client.decodeJwtToken(token);
907
- }
908
- async getDecodedIdToken(sessionId) {
909
- return this.client.getDecodedIdToken(sessionId);
910
- }
911
- async getIdToken() {
912
- return this.client.getIdToken();
913
- }
914
- async getAccessToken(sessionId) {
915
- return this.client.getAccessToken(sessionId);
916
- }
917
- async refreshAccessToken() {
918
- return this.client.refreshAccessToken();
919
- }
920
- async isSignedIn() {
921
- return this.client.isSignedIn();
922
- }
923
- async enableHttpHandler() {
924
- return this.client.enableHttpHandler();
925
- }
926
- async disableHttpHandler() {
927
- return this.client.disableHttpHandler();
928
- }
929
- async reInitialize(config) {
930
- return this.client.reInitialize(config);
931
- }
932
- on(hook, callback, id) {
933
- if (hook === __thunderid_browser.Hooks.CustomGrant) return this.client.on(hook, callback, id);
934
- return this.client.on(hook, callback);
935
- }
936
- async signInSilently(additionalParams, tokenRequestConfig) {
937
- return this.client.signInSilently(additionalParams, tokenRequestConfig).then(async (response) => {
938
- if (!response) return false;
939
- return response;
940
- }).catch((error) => Promise.reject(error));
941
- }
942
- clearSession(sessionId) {
943
- this.client.clearSession(sessionId);
944
- }
945
- };
946
- AuthAPI.DEFAULT_STATE = {
947
- displayName: "",
948
- email: "",
949
- isLoading: true,
950
- isSignedIn: false,
951
- username: ""
952
- };
953
- var api_default = AuthAPI;
954
-
955
803
  //#endregion
956
804
  //#region src/api/getAllOrganizations.ts
957
805
  const getAllOrganizations = async ({ fetcher, instanceId = 0,...requestConfig }) => {
958
806
  const defaultFetcher = async (url, config) => {
959
- const client = __thunderid_browser.ThunderIDSPAClient.getInstance(instanceId);
960
- const response = await client.httpRequest.bind(client)({
807
+ const response = await __thunderid_browser.FetchHttpClient.getInstance(instanceId).request({
961
808
  headers: config.headers,
962
809
  method: config.method || "GET",
963
810
  url
@@ -981,8 +828,7 @@ var getAllOrganizations_default = getAllOrganizations;
981
828
  //#region src/api/getMeOrganizations.ts
982
829
  const getMeOrganizations = async ({ fetcher, instanceId = 0,...requestConfig }) => {
983
830
  const defaultFetcher = async (url, config) => {
984
- const client = __thunderid_browser.ThunderIDSPAClient.getInstance(instanceId);
985
- const response = await client.httpRequest.bind(client)({
831
+ const response = await __thunderid_browser.FetchHttpClient.getInstance(instanceId).request({
986
832
  headers: config.headers,
987
833
  method: config.method || "GET",
988
834
  url
@@ -1006,8 +852,7 @@ var getMeOrganizations_default = getMeOrganizations;
1006
852
  //#region src/api/getSchemas.ts
1007
853
  const getSchemas = async ({ fetcher, instanceId = 0,...requestConfig }) => {
1008
854
  const defaultFetcher = async (url, config) => {
1009
- const client = __thunderid_browser.ThunderIDSPAClient.getInstance(instanceId);
1010
- const response = await client.httpRequest.bind(client)({
855
+ const response = await __thunderid_browser.FetchHttpClient.getInstance(instanceId).request({
1011
856
  headers: config.headers,
1012
857
  method: config.method || "GET",
1013
858
  url
@@ -1031,8 +876,7 @@ var getSchemas_default = getSchemas;
1031
876
  //#region src/api/getScim2Me.ts
1032
877
  const getScim2Me = async ({ fetcher, instanceId = 0,...requestConfig }) => {
1033
878
  const defaultFetcher = async (url, config) => {
1034
- const client = __thunderid_browser.ThunderIDSPAClient.getInstance(instanceId);
1035
- const response = await client.httpRequest.bind(client)({
879
+ const response = await __thunderid_browser.FetchHttpClient.getInstance(instanceId).request({
1036
880
  headers: config.headers,
1037
881
  method: config.method || "GET",
1038
882
  url
@@ -1061,16 +905,9 @@ var getScim2Me_default = getScim2Me;
1061
905
  * @typeParam T - Configuration type that extends ThunderIDVueConfig.
1062
906
  */
1063
907
  var ThunderIDVueClient = class extends __thunderid_browser.ThunderIDBrowserClient {
1064
- authApi;
1065
908
  loadingState = false;
1066
- clientInstanceId;
1067
909
  constructor(instanceId = 0) {
1068
- super();
1069
- this.clientInstanceId = instanceId;
1070
- this.authApi = new api_default(void 0, instanceId);
1071
- }
1072
- getInstanceId() {
1073
- return this.clientInstanceId;
910
+ super(instanceId);
1074
911
  }
1075
912
  setLoading(loading) {
1076
913
  this.loadingState = loading;
@@ -1086,7 +923,7 @@ var ThunderIDVueClient = class extends __thunderid_browser.ThunderIDBrowserClien
1086
923
  initialize(config) {
1087
924
  let resolvedOrganizationHandle = config?.organizationHandle;
1088
925
  if (!resolvedOrganizationHandle) resolvedOrganizationHandle = (0, __thunderid_browser.deriveOrganizationHandleFromBaseUrl)(config?.baseUrl);
1089
- return this.withLoading(async () => this.authApi.init({
926
+ return this.withLoading(async () => super.initialize({
1090
927
  ...config,
1091
928
  organizationHandle: resolvedOrganizationHandle
1092
929
  }));
@@ -1095,7 +932,7 @@ var ThunderIDVueClient = class extends __thunderid_browser.ThunderIDBrowserClien
1095
932
  return this.withLoading(async () => {
1096
933
  let isInitialized;
1097
934
  try {
1098
- await this.authApi.reInitialize(config);
935
+ await super.reInitialize(config);
1099
936
  isInitialized = true;
1100
937
  } catch (error) {
1101
938
  throw new __thunderid_browser.ThunderIDRuntimeError(`Failed to check if the client is initialized: ${error instanceof Error ? error.message : String(error)}`, "ThunderIDVueClient-reInitialize-RuntimeError-001", "vue", "An error occurred while checking the initialization status of the client.");
@@ -1109,23 +946,23 @@ var ThunderIDVueClient = class extends __thunderid_browser.ThunderIDBrowserClien
1109
946
  async getUser(options) {
1110
947
  try {
1111
948
  let baseUrl = options?.baseUrl;
1112
- if (!baseUrl) baseUrl = (await this.authApi.getConfigData())?.baseUrl;
949
+ if (!baseUrl) baseUrl = this.getStorageManager().getConfigData()?.baseUrl;
1113
950
  return (0, __thunderid_browser.generateUserProfile)(await getScim2Me_default({ baseUrl }), (0, __thunderid_browser.flattenUserSchema)(await getSchemas_default({ baseUrl })));
1114
951
  } catch (error) {
1115
952
  return (0, __thunderid_browser.extractUserClaimsFromIdToken)(await this.getDecodedIdToken());
1116
953
  }
1117
954
  }
1118
955
  async getDecodedIdToken(sessionId) {
1119
- return this.authApi.getDecodedIdToken(sessionId);
956
+ return await super.getDecodedIdToken(sessionId);
1120
957
  }
1121
958
  async getIdToken() {
1122
- return this.withLoading(async () => this.authApi.getIdToken());
959
+ return this.withLoading(async () => super.getIdToken());
1123
960
  }
1124
961
  async getUserProfile(options) {
1125
962
  return this.withLoading(async () => {
1126
963
  try {
1127
964
  let baseUrl = options?.baseUrl;
1128
- if (!baseUrl) baseUrl = (await this.authApi.getConfigData())?.baseUrl;
965
+ if (!baseUrl) baseUrl = this.getStorageManager().getConfigData()?.baseUrl;
1129
966
  const profile = await getScim2Me_default({
1130
967
  baseUrl,
1131
968
  instanceId: this.getInstanceId()
@@ -1151,7 +988,7 @@ var ThunderIDVueClient = class extends __thunderid_browser.ThunderIDBrowserClien
1151
988
  async getMyOrganizations(options) {
1152
989
  try {
1153
990
  let baseUrl = options?.baseUrl;
1154
- if (!baseUrl) baseUrl = (await this.authApi.getConfigData())?.baseUrl;
991
+ if (!baseUrl) baseUrl = this.getStorageManager().getConfigData()?.baseUrl;
1155
992
  return await getMeOrganizations_default({
1156
993
  baseUrl,
1157
994
  instanceId: this.getInstanceId()
@@ -1163,7 +1000,7 @@ var ThunderIDVueClient = class extends __thunderid_browser.ThunderIDBrowserClien
1163
1000
  async getAllOrganizations(options) {
1164
1001
  try {
1165
1002
  let baseUrl = options?.baseUrl;
1166
- if (!baseUrl) baseUrl = (await this.authApi.getConfigData())?.baseUrl;
1003
+ if (!baseUrl) baseUrl = this.getStorageManager().getConfigData()?.baseUrl;
1167
1004
  return await getAllOrganizations_default({
1168
1005
  baseUrl,
1169
1006
  instanceId: this.getInstanceId()
@@ -1189,7 +1026,7 @@ var ThunderIDVueClient = class extends __thunderid_browser.ThunderIDBrowserClien
1189
1026
  async switchOrganization(organization) {
1190
1027
  return this.withLoading(async () => {
1191
1028
  try {
1192
- const sourceInstanceId = (await this.authApi.getConfigData())?.organizationChain?.sourceInstanceId;
1029
+ const sourceInstanceId = this.getStorageManager().getConfigData()?.organizationChain?.sourceInstanceId;
1193
1030
  if (!organization.id) throw new __thunderid_browser.ThunderIDRuntimeError("Organization ID is required for switching organizations", "vue-ThunderIDVueClient-SwitchOrganizationError-001", "vue", "The organization object must contain a valid ID to perform the organization switch.");
1194
1031
  const exchangeConfig = {
1195
1032
  attachToken: false,
@@ -1204,47 +1041,42 @@ var ThunderIDVueClient = class extends __thunderid_browser.ThunderIDBrowserClien
1204
1041
  returnsSession: true,
1205
1042
  signInRequired: sourceInstanceId === void 0
1206
1043
  };
1207
- return await this.authApi.exchangeToken(exchangeConfig, () => {});
1044
+ return await super.exchangeToken(exchangeConfig);
1208
1045
  } catch (error) {
1209
1046
  throw new __thunderid_browser.ThunderIDRuntimeError(`Failed to switch organization: ${error.message || error}`, "vue-ThunderIDVueClient-SwitchOrganizationError-003", "vue", "An error occurred while switching to the specified organization. Please try again.");
1210
1047
  }
1211
1048
  });
1212
1049
  }
1213
1050
  isLoading() {
1214
- return this.loadingState || this.authApi.isLoading();
1051
+ return this.loadingState || super.isLoading();
1215
1052
  }
1216
1053
  async isInitialized() {
1217
- return this.authApi.isInitialized();
1054
+ return super.isInitialized();
1218
1055
  }
1219
1056
  async isSignedIn() {
1220
- return this.authApi.isSignedIn();
1221
- }
1222
- getConfiguration() {
1223
- return this.authApi.getConfigData();
1057
+ return await super.isSignedIn();
1224
1058
  }
1225
1059
  async exchangeToken(config) {
1226
- return this.withLoading(async () => this.authApi.exchangeToken(config, () => {}));
1060
+ return this.withLoading(async () => await super.exchangeToken(config));
1227
1061
  }
1228
1062
  async signIn(...args) {
1229
1063
  return this.withLoading(async () => {
1230
1064
  const arg1 = args[0];
1231
1065
  const arg2 = args[1];
1232
- const config = await this.authApi.getConfigData();
1233
- const platformFromStorage = sessionStorage.getItem("thunderid_platform");
1234
- const isV2Platform = config?.platform === __thunderid_browser.Platform.ThunderIDV2 || platformFromStorage === "ThunderIDV2";
1235
- if (isV2Platform && typeof arg1 === "object" && arg1 !== null && arg1.callOnlyOnRedirect === true) return;
1236
- if (isV2Platform && typeof arg1 === "object" && arg1 !== null && !(0, __thunderid_browser.isEmpty)(arg1) && ("executionId" in arg1 || "applicationId" in arg1)) {
1066
+ if (typeof arg1 === "object" && arg1 !== null && arg1.callOnlyOnRedirect === true) return;
1067
+ if (typeof arg1 === "object" && arg1 !== null && !(0, __thunderid_browser.isEmpty)(arg1) && ("executionId" in arg1 || "applicationId" in arg1)) {
1068
+ const configData = this.getStorageManager().getConfigData();
1237
1069
  const authIdFromUrl = new URL(window.location.href).searchParams.get("authId");
1238
1070
  const authIdFromStorage = sessionStorage.getItem("thunderid_auth_id");
1239
1071
  const authId = authIdFromUrl || authIdFromStorage;
1240
1072
  const baseUrlFromStorage = sessionStorage.getItem("thunderid_base_url");
1241
1073
  const response = await (0, __thunderid_browser.executeEmbeddedSignInFlowV2)({
1242
1074
  authId,
1243
- baseUrl: config?.baseUrl || baseUrlFromStorage,
1075
+ baseUrl: configData?.baseUrl || baseUrlFromStorage,
1244
1076
  payload: arg1,
1245
1077
  url: arg2?.url
1246
1078
  });
1247
- if (isV2Platform && response && typeof response === "object" && response.flowStatus === __thunderid_browser.EmbeddedSignInFlowStatusV2.Complete && response.assertion) {
1079
+ if (response && typeof response === "object" && response.flowStatus === __thunderid_browser.EmbeddedSignInFlowStatusV2.Complete && response.assertion) {
1248
1080
  const decodedAssertion = await this.decodeJwtToken(response.assertion);
1249
1081
  const createdAt = decodedAssertion.iat ? decodedAssertion.iat * 1e3 : Date.now();
1250
1082
  const expiresIn = decodedAssertion.exp && decodedAssertion.iat ? decodedAssertion.exp - decodedAssertion.iat : 3600;
@@ -1256,75 +1088,53 @@ var ThunderIDVueClient = class extends __thunderid_browser.ThunderIDBrowserClien
1256
1088
  scope: decodedAssertion.scope,
1257
1089
  token_type: "Bearer"
1258
1090
  });
1091
+ this.notifySignIn((0, __thunderid_browser.extractUserClaimsFromIdToken)(decodedAssertion));
1259
1092
  }
1260
1093
  return response;
1261
1094
  }
1262
- if (typeof arg1 === "object" && "flowId" in arg1 && typeof arg2 === "object" && "url" in arg2) return (0, __thunderid_browser.executeEmbeddedSignInFlow)({
1263
- payload: arg1,
1264
- url: arg2.url
1265
- });
1266
- return await this.authApi.signIn(arg1);
1095
+ return await super.signIn(arg1);
1267
1096
  });
1268
1097
  }
1269
1098
  async signInSilently(options) {
1270
- return this.authApi.signInSilently(options);
1271
- }
1272
- async signOut(...args) {
1273
- let afterSignOut;
1274
- if (typeof args[1] === "string") [, , afterSignOut] = args;
1275
- else if (typeof args[1] === "function") [, afterSignOut] = args;
1276
- const config = await this.authApi.getConfigData();
1277
- if (config.platform === __thunderid_browser.Platform.ThunderIDV2) {
1278
- this.authApi.clearSession();
1279
- if (config.signInUrl) (0, __thunderid_browser.navigate)(config.signInUrl);
1280
- else this.signIn(config.signInOptions);
1281
- afterSignOut?.(config.afterSignOutUrl || "");
1282
- return Promise.resolve(config.afterSignOutUrl || "");
1283
- }
1284
- const response = await this.authApi.signOut(afterSignOut);
1285
- return Promise.resolve(String(response));
1099
+ return await super.signInSilently(options);
1286
1100
  }
1287
1101
  async signUp(...args) {
1288
- const config = await this.authApi.getConfigData();
1102
+ const configData = this.getStorageManager().getConfigData();
1289
1103
  const firstArg = args[0];
1290
- const baseUrl = config?.baseUrl;
1291
- if (config.platform === __thunderid_browser.Platform.ThunderIDV2) {
1292
- const authIdFromUrl = new URL(window.location.href).searchParams.get("authId");
1293
- const authIdFromStorage = sessionStorage.getItem("thunderid_auth_id");
1294
- const authId = authIdFromUrl || authIdFromStorage;
1295
- if (authIdFromUrl && !authIdFromStorage) sessionStorage.setItem("thunderid_auth_id", authIdFromUrl);
1296
- return (0, __thunderid_browser.executeEmbeddedSignUpFlowV2)({
1297
- authId,
1298
- baseUrl,
1299
- payload: typeof firstArg === "object" && "flowType" in firstArg ? {
1300
- ...firstArg,
1301
- verbose: true
1302
- } : firstArg
1303
- });
1304
- }
1305
- if (typeof firstArg === "object" && "flowType" in firstArg) return (0, __thunderid_browser.executeEmbeddedSignUpFlow)({
1104
+ const baseUrl = configData?.baseUrl;
1105
+ const authIdFromUrl = new URL(window.location.href).searchParams.get("authId");
1106
+ const authIdFromStorage = sessionStorage.getItem("thunderid_auth_id");
1107
+ const authId = authIdFromUrl || authIdFromStorage;
1108
+ if (authIdFromUrl && !authIdFromStorage) sessionStorage.setItem("thunderid_auth_id", authIdFromUrl);
1109
+ return (0, __thunderid_browser.executeEmbeddedSignUpFlowV2)({
1110
+ authId,
1306
1111
  baseUrl,
1307
- payload: firstArg
1112
+ payload: typeof firstArg === "object" && "flowType" in firstArg ? {
1113
+ ...firstArg,
1114
+ verbose: true
1115
+ } : firstArg
1308
1116
  });
1309
- (0, __thunderid_browser.navigate)((0, __thunderid_browser.getRedirectBasedSignUpUrl)(config));
1310
1117
  }
1311
1118
  async request(requestConfig) {
1312
- return this.authApi.httpRequest(requestConfig);
1119
+ return this.httpRequest(requestConfig);
1313
1120
  }
1314
1121
  async requestAll(requestConfigs) {
1315
- return this.authApi.httpRequestAll(requestConfigs);
1122
+ return this.httpRequestAll(requestConfigs);
1316
1123
  }
1317
1124
  async getAccessToken(sessionId) {
1318
- return this.authApi.getAccessToken(sessionId);
1125
+ return super.getAccessToken(sessionId);
1319
1126
  }
1320
1127
  clearSession(sessionId) {
1321
- this.authApi.clearSession(sessionId);
1128
+ super.clearSession(sessionId);
1322
1129
  }
1323
1130
  async setSession(sessionData, sessionId) {
1324
- return (await this.authApi.getStorageManager()).setSessionData(sessionData, sessionId);
1131
+ return this.getStorageManager().setSessionData(sessionData, sessionId);
1325
1132
  }
1326
1133
  decodeJwtToken(token) {
1327
- return this.authApi.decodeJwtToken(token);
1134
+ return super.decodeJwtToken(token);
1135
+ }
1136
+ getStorageManager() {
1137
+ return super.getStorageManager();
1328
1138
  }
1329
1139
  };
1330
1140
  var ThunderIDVueClient_default = ThunderIDVueClient;
@@ -1335,7 +1145,7 @@ var ThunderIDVueClient_default = ThunderIDVueClient;
1335
1145
  * Checks if the current URL contains authentication parameters.
1336
1146
  */
1337
1147
  function hasAuthParams(url, afterSignInUrl) {
1338
- return (0, __thunderid_browser.hasAuthParamsInUrl)() && new URL(url.origin + url.pathname).toString() === new URL(afterSignInUrl).toString() || url.searchParams.get("error") !== null;
1148
+ return (0, __thunderid_browser.hasAuthParamsInUrl)() && !!afterSignInUrl && new URL(url.origin + url.pathname).toString() === new URL(afterSignInUrl).toString() || url.searchParams.get("error") !== null;
1339
1149
  }
1340
1150
  /**
1341
1151
  * Root provider component for the ThunderID Vue SDK.
@@ -1356,11 +1166,11 @@ const ThunderIDProvider = (0, vue.defineComponent)({
1356
1166
  name: "ThunderIDProvider",
1357
1167
  props: {
1358
1168
  afterSignInUrl: {
1359
- default: () => window.location.origin,
1169
+ default: void 0,
1360
1170
  type: String
1361
1171
  },
1362
1172
  afterSignOutUrl: {
1363
- default: () => window.location.origin,
1173
+ default: void 0,
1364
1174
  type: String
1365
1175
  },
1366
1176
  applicationId: {
@@ -1438,7 +1248,6 @@ const ThunderIDProvider = (0, vue.defineComponent)({
1438
1248
  clientId: props.clientId,
1439
1249
  organizationChain: props.organizationChain,
1440
1250
  organizationHandle: props.organizationHandle,
1441
- platform: props.platform,
1442
1251
  scopes: props.scopes,
1443
1252
  signInOptions: props.signInOptions,
1444
1253
  signInUrl: props.signInUrl,
@@ -1457,28 +1266,13 @@ const ThunderIDProvider = (0, vue.defineComponent)({
1457
1266
  baseUrl = `${(await client.getConfiguration()).baseUrl}/o`;
1458
1267
  resolvedBaseUrl.value = baseUrl;
1459
1268
  }
1460
- if (buildConfig().platform === __thunderid_browser.Platform.ThunderIDV2) {
1461
- const claims = (0, __thunderid_browser.extractUserClaimsFromIdToken)(decodedToken);
1462
- user.value = claims;
1463
- userProfile.value = {
1464
- flattenedProfile: claims,
1465
- profile: claims,
1466
- schemas: []
1467
- };
1468
- } else {
1469
- try {
1470
- user.value = await client.getUser({ baseUrl });
1471
- } catch {}
1472
- try {
1473
- currentOrganization.value = await client.getCurrentOrganization();
1474
- } catch {}
1475
- try {
1476
- myOrganizations.value = await client.getMyOrganizations({ baseUrl }) || [];
1477
- } catch {}
1478
- try {
1479
- userProfile.value = await client.getUserProfile({ baseUrl });
1480
- } catch {}
1481
- }
1269
+ const claims = (0, __thunderid_browser.extractUserClaimsFromIdToken)(decodedToken);
1270
+ user.value = claims;
1271
+ userProfile.value = {
1272
+ flattenedProfile: claims,
1273
+ profile: claims,
1274
+ schemas: []
1275
+ };
1482
1276
  isSignedIn.value = await client.isSignedIn();
1483
1277
  } catch {} finally {
1484
1278
  isUpdatingSession = false;
@@ -1487,16 +1281,13 @@ const ThunderIDProvider = (0, vue.defineComponent)({
1487
1281
  }
1488
1282
  async function signIn(...args) {
1489
1283
  const arg1 = args[0];
1490
- const isV2FlowRequest = buildConfig().platform === __thunderid_browser.Platform.ThunderIDV2 && typeof arg1 === "object" && arg1 !== null && ("executionId" in arg1 || "applicationId" in arg1);
1284
+ const isV2FlowRequest = typeof arg1 === "object" && arg1 !== null && ("executionId" in arg1 || "applicationId" in arg1);
1491
1285
  try {
1492
1286
  if (!isV2FlowRequest) {
1493
1287
  isUpdatingSession = true;
1494
1288
  isLoading.value = true;
1495
1289
  }
1496
- const response = await client.signIn(...args);
1497
- if (isV2FlowRequest || response && typeof response === "object" && "flowStatus" in response) return response;
1498
- if (await client.isSignedIn()) await updateSession();
1499
- return response;
1290
+ return await client.signIn(...args);
1500
1291
  } catch (error) {
1501
1292
  throw new __thunderid_browser.ThunderIDRuntimeError(`Sign in failed: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`, "thunderid-signIn-Error", "vue", "An error occurred while trying to sign in.");
1502
1293
  } finally {
@@ -1516,9 +1307,7 @@ const ThunderIDProvider = (0, vue.defineComponent)({
1516
1307
  try {
1517
1308
  isUpdatingSession = true;
1518
1309
  isLoading.value = true;
1519
- const response = await client.signInSilently(options);
1520
- if (await client.isSignedIn()) await updateSession();
1521
- return response;
1310
+ return await client.signInSilently(options);
1522
1311
  } catch (error) {
1523
1312
  throw new __thunderid_browser.ThunderIDRuntimeError(`Error while signing in silently: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`, "thunderid-signInSilently-Error", "vue", "An error occurred while trying to sign in silently.");
1524
1313
  } finally {
@@ -1562,7 +1351,7 @@ const ThunderIDProvider = (0, vue.defineComponent)({
1562
1351
  isSignedIn,
1563
1352
  organization: currentOrganization,
1564
1353
  organizationHandle: props.organizationHandle,
1565
- platform: props.platform,
1354
+ platform: __thunderid_browser.Platform.ThunderID,
1566
1355
  reInitialize: async (config) => {
1567
1356
  const result = await client.reInitialize(config);
1568
1357
  return typeof result === "boolean" ? result : true;
@@ -1582,24 +1371,24 @@ const ThunderIDProvider = (0, vue.defineComponent)({
1582
1371
  const config = buildConfig();
1583
1372
  await client.initialize(config);
1584
1373
  const initializedConfig = client.getConfiguration();
1585
- if (initializedConfig?.platform) sessionStorage.setItem("thunderid_platform", initializedConfig.platform);
1586
1374
  if (initializedConfig?.baseUrl) sessionStorage.setItem("thunderid_base_url", initializedConfig.baseUrl);
1587
1375
  try {
1588
1376
  isInitialized.value = await client.isInitialized();
1589
1377
  } catch {
1590
1378
  isInitialized.value = false;
1591
1379
  }
1380
+ await client.on("sign-in", async () => {
1381
+ await updateSession();
1382
+ });
1592
1383
  if (await client.isSignedIn()) await updateSession();
1593
1384
  else {
1594
1385
  const currentUrl = new URL(window.location.href);
1595
- if (hasAuthParams(currentUrl, props.afterSignInUrl) && (0, __thunderid_browser.hasCalledForThisInstanceInUrl)(props.instanceId ?? 0, currentUrl.search)) try {
1596
- if (config.platform === __thunderid_browser.Platform.ThunderIDV2) {
1597
- const urlParams = currentUrl.searchParams;
1598
- const code = urlParams.get("code");
1599
- const executionIdFromUrl = urlParams.get("executionId");
1600
- const storedExecutionId = sessionStorage.getItem("thunderid_execution_id");
1601
- if (code && !executionIdFromUrl && !storedExecutionId) await signIn();
1602
- } else await signIn({ callOnlyOnRedirect: true });
1386
+ if (hasAuthParams(currentUrl, initializedConfig?.afterSignInUrl) && (0, __thunderid_browser.hasCalledForThisInstanceInUrl)(props.instanceId ?? 0, currentUrl.search)) try {
1387
+ const urlParams = currentUrl.searchParams;
1388
+ const code = urlParams.get("code");
1389
+ const executionIdFromUrl = urlParams.get("executionId");
1390
+ const storedExecutionId = sessionStorage.getItem("thunderid_execution_id");
1391
+ if (code && !executionIdFromUrl && !storedExecutionId) await signIn();
1603
1392
  } catch (error) {
1604
1393
  throw new __thunderid_browser.ThunderIDRuntimeError(`Sign in failed: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`, "thunderid-signIn-Error", "vue", "An error occurred while trying to sign in.");
1605
1394
  }
@@ -1622,7 +1411,7 @@ const ThunderIDProvider = (0, vue.defineComponent)({
1622
1411
  loadingCheckInterval = setInterval(() => {
1623
1412
  if (isUpdatingSession) return;
1624
1413
  const currentUrl = new URL(window.location.href);
1625
- if (!isSignedIn.value && hasAuthParams(currentUrl, props.afterSignInUrl)) return;
1414
+ if (!isSignedIn.value && hasAuthParams(currentUrl, initializedConfig?.afterSignInUrl)) return;
1626
1415
  isLoading.value = client.isLoading();
1627
1416
  }, 100);
1628
1417
  });
@@ -1630,7 +1419,7 @@ const ThunderIDProvider = (0, vue.defineComponent)({
1630
1419
  if (signInCheckInterval) clearInterval(signInCheckInterval);
1631
1420
  if (loadingCheckInterval) clearInterval(loadingCheckInterval);
1632
1421
  });
1633
- return () => (0, vue.h)(I18nProvider_default, null, { default: () => (0, vue.h)(FlowMetaProvider_default, { enabled: props.platform === __thunderid_browser.Platform.ThunderIDV2 }, { default: () => (0, vue.h)(BrandingProvider_default, null, { default: () => (0, vue.h)(ThemeProvider_default, null, { default: () => (0, vue.h)(FlowProvider_default, null, { default: () => (0, vue.h)(UserProvider_default, {
1422
+ return () => (0, vue.h)(I18nProvider_default, null, { default: () => (0, vue.h)(FlowMetaProvider_default, { enabled: true }, { default: () => (0, vue.h)(BrandingProvider_default, null, { default: () => (0, vue.h)(ThemeProvider_default, null, { default: () => (0, vue.h)(FlowProvider_default, null, { default: () => (0, vue.h)(UserProvider_default, {
1634
1423
  onUpdateProfile: (updatedUser) => {
1635
1424
  user.value = updatedUser;
1636
1425
  userProfile.value = {
@@ -1641,20 +1430,14 @@ const ThunderIDProvider = (0, vue.defineComponent)({
1641
1430
  },
1642
1431
  profile: userProfile.value,
1643
1432
  revalidateProfile: async () => {
1644
- if (buildConfig().platform === __thunderid_browser.Platform.ThunderIDV2) {
1645
- try {
1646
- const claims = (0, __thunderid_browser.extractUserClaimsFromIdToken)(await client.getDecodedIdToken());
1647
- user.value = claims;
1648
- userProfile.value = {
1649
- flattenedProfile: claims,
1650
- profile: claims,
1651
- schemas: []
1652
- };
1653
- } catch {}
1654
- return;
1655
- }
1656
1433
  try {
1657
- userProfile.value = await client.getUserProfile({ baseUrl: resolvedBaseUrl.value });
1434
+ const claims = (0, __thunderid_browser.extractUserClaimsFromIdToken)(await client.getDecodedIdToken());
1435
+ user.value = claims;
1436
+ userProfile.value = {
1437
+ flattenedProfile: claims,
1438
+ profile: claims,
1439
+ schemas: []
1440
+ };
1658
1441
  } catch {}
1659
1442
  }
1660
1443
  }, { default: () => (0, vue.h)(OrganizationProvider_default, {
@@ -1948,7 +1731,7 @@ var defaults_css_default = DEFAULTS_CSS;
1948
1731
  /**
1949
1732
  * Styles for the CreateOrganization presentation component.
1950
1733
  *
1951
- * BEM block: `.thunder-create-organization`
1734
+ * BEM block: `.thunderid-create-organization`
1952
1735
  *
1953
1736
  * The root element is a Card, whose padding is intentionally kept
1954
1737
  * as this is a full form panel.
@@ -1965,7 +1748,7 @@ const CREATE_ORGANIZATION_CSS = `
1965
1748
  CreateOrganization
1966
1749
  ============================================================ */
1967
1750
 
1968
- .thunder-create-organization {
1751
+ .thunderid-create-organization {
1969
1752
  display: flex;
1970
1753
  flex-direction: column;
1971
1754
  gap: calc(var(--thunder-spacing-unit) * 1.75);
@@ -1975,20 +1758,20 @@ const CREATE_ORGANIZATION_CSS = `
1975
1758
 
1976
1759
  /* Title & description --------------------------------------- */
1977
1760
 
1978
- .thunder-create-organization__description {
1761
+ .thunderid-create-organization__description {
1979
1762
  margin-top: calc(var(--thunder-spacing-unit) * -0.75);
1980
1763
  color: var(--thunder-color-text-secondary);
1981
1764
  }
1982
1765
 
1983
1766
  /* Input ----------------------------------------------------- */
1984
1767
 
1985
- .thunder-create-organization__input {
1768
+ .thunderid-create-organization__input {
1986
1769
  width: 100%;
1987
1770
  }
1988
1771
 
1989
1772
  /* Submit ---------------------------------------------------- */
1990
1773
 
1991
- .thunder-create-organization__submit {
1774
+ .thunderid-create-organization__submit {
1992
1775
  align-self: flex-start;
1993
1776
  }
1994
1777
  `;
@@ -2016,9 +1799,9 @@ var CreateOrganization_css_default = CREATE_ORGANIZATION_CSS;
2016
1799
  /**
2017
1800
  * Styles for the LanguageSwitcher presentation component.
2018
1801
  *
2019
- * BEM block: `.thunder-language-switcher`
1802
+ * BEM block: `.thunderid-language-switcher`
2020
1803
  *
2021
- * The root element is a Card (`.thunder-card`). We override its default
1804
+ * The root element is a Card (`.thunderid-card`). We override its default
2022
1805
  * padding to 0 so the trigger button fills the surface edge-to-edge,
2023
1806
  * and apply `position: relative` to anchor the absolute dropdown.
2024
1807
  * The Card's border-radius and shadow are intentionally kept.
@@ -2036,7 +1819,7 @@ const LANGUAGE_SWITCHER_CSS = `
2036
1819
  ============================================================ */
2037
1820
 
2038
1821
  /* Override Card's default padding so the trigger fills the surface */
2039
- .thunder-language-switcher.thunder-card {
1822
+ .thunderid-language-switcher.thunderid-card {
2040
1823
  padding: 0;
2041
1824
  position: relative;
2042
1825
  display: inline-block;
@@ -2044,7 +1827,7 @@ const LANGUAGE_SWITCHER_CSS = `
2044
1827
 
2045
1828
  /* Trigger ---------------------------------------------------- */
2046
1829
 
2047
- .thunder-language-switcher__trigger {
1830
+ .thunderid-language-switcher__trigger {
2048
1831
  display: inline-flex;
2049
1832
  align-items: center;
2050
1833
  gap: calc(var(--thunder-spacing-unit) * 0.5);
@@ -2061,23 +1844,23 @@ const LANGUAGE_SWITCHER_CSS = `
2061
1844
  box-sizing: border-box;
2062
1845
  }
2063
1846
 
2064
- .thunder-language-switcher__trigger:hover {
1847
+ .thunderid-language-switcher__trigger:hover {
2065
1848
  background-color: var(--thunder-color-action-hover);
2066
1849
  }
2067
1850
 
2068
- .thunder-language-switcher__trigger:focus-visible {
1851
+ .thunderid-language-switcher__trigger:focus-visible {
2069
1852
  outline: none;
2070
1853
  box-shadow: inset 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
2071
1854
  border-radius: var(--thunder-dropdown-borderRadius);
2072
1855
  }
2073
1856
 
2074
- .thunder-language-switcher__trigger-label {
1857
+ .thunderid-language-switcher__trigger-label {
2075
1858
  flex: 0 0 auto;
2076
1859
  }
2077
1860
 
2078
1861
  /* Dropdown --------------------------------------------------- */
2079
1862
 
2080
- .thunder-language-switcher__dropdown {
1863
+ .thunderid-language-switcher__dropdown {
2081
1864
  position: absolute;
2082
1865
  top: calc(100% + calc(var(--thunder-spacing-unit) * 0.5));
2083
1866
  right: 0;
@@ -2095,7 +1878,7 @@ const LANGUAGE_SWITCHER_CSS = `
2095
1878
 
2096
1879
  /* Items ----------------------------------------------------- */
2097
1880
 
2098
- .thunder-language-switcher__item {
1881
+ .thunderid-language-switcher__item {
2099
1882
  display: flex;
2100
1883
  align-items: center;
2101
1884
  width: 100%;
@@ -2111,17 +1894,17 @@ const LANGUAGE_SWITCHER_CSS = `
2111
1894
  box-sizing: border-box;
2112
1895
  }
2113
1896
 
2114
- .thunder-language-switcher__item:hover {
1897
+ .thunderid-language-switcher__item:hover {
2115
1898
  background-color: var(--thunder-color-action-hover);
2116
1899
  }
2117
1900
 
2118
- .thunder-language-switcher__item--active {
1901
+ .thunderid-language-switcher__item--active {
2119
1902
  background-color: var(--thunder-color-action-selected);
2120
1903
  color: var(--thunder-color-primary-main);
2121
1904
  font-weight: var(--thunder-typography-fontWeight-medium);
2122
1905
  }
2123
1906
 
2124
- .thunder-language-switcher__item--active:hover {
1907
+ .thunderid-language-switcher__item--active:hover {
2125
1908
  background-color: var(--thunder-color-action-focus);
2126
1909
  }
2127
1910
  `;
@@ -2149,7 +1932,7 @@ var LanguageSwitcher_css_default = LANGUAGE_SWITCHER_CSS;
2149
1932
  /**
2150
1933
  * Styles for the OrganizationList presentation component.
2151
1934
  *
2152
- * BEM block: `.thunder-organization-list`
1935
+ * BEM block: `.thunderid-organization-list`
2153
1936
  *
2154
1937
  * The root element is a plain `div`. There is no Card wrapper here,
2155
1938
  * so this file provides the full layout including border and spacing.
@@ -2164,7 +1947,7 @@ const ORGANIZATION_LIST_CSS = `
2164
1947
  OrganizationList
2165
1948
  ============================================================ */
2166
1949
 
2167
- .thunder-organization-list {
1950
+ .thunderid-organization-list {
2168
1951
  display: flex;
2169
1952
  flex-direction: column;
2170
1953
  gap: calc(var(--thunder-spacing-unit) * 0.5);
@@ -2173,8 +1956,8 @@ const ORGANIZATION_LIST_CSS = `
2173
1956
 
2174
1957
  /* Loading / Empty ------------------------------------------- */
2175
1958
 
2176
- .thunder-organization-list__loading,
2177
- .thunder-organization-list__empty {
1959
+ .thunderid-organization-list__loading,
1960
+ .thunderid-organization-list__empty {
2178
1961
  display: flex;
2179
1962
  align-items: center;
2180
1963
  justify-content: center;
@@ -2184,7 +1967,7 @@ const ORGANIZATION_LIST_CSS = `
2184
1967
 
2185
1968
  /* Items ----------------------------------------------------- */
2186
1969
 
2187
- .thunder-organization-list__item {
1970
+ .thunderid-organization-list__item {
2188
1971
  display: flex;
2189
1972
  align-items: center;
2190
1973
  gap: calc(var(--thunder-spacing-unit) * 1.25);
@@ -2205,12 +1988,12 @@ const ORGANIZATION_LIST_CSS = `
2205
1988
  box-sizing: border-box;
2206
1989
  }
2207
1990
 
2208
- .thunder-organization-list__item:hover {
1991
+ .thunderid-organization-list__item:hover {
2209
1992
  background-color: var(--thunder-color-primary-light);
2210
1993
  border-color: var(--thunder-color-primary-main);
2211
1994
  }
2212
1995
 
2213
- .thunder-organization-list__item:focus-visible {
1996
+ .thunderid-organization-list__item:focus-visible {
2214
1997
  outline: none;
2215
1998
  box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
2216
1999
  }
@@ -2239,14 +2022,14 @@ var OrganizationList_css_default = ORGANIZATION_LIST_CSS;
2239
2022
  /**
2240
2023
  * Styles for the OrganizationProfile presentation component.
2241
2024
  *
2242
- * BEM block: `.thunder-organization-profile`
2025
+ * BEM block: `.thunderid-organization-profile`
2243
2026
  */
2244
2027
  const ORGANIZATION_PROFILE_CSS = `
2245
2028
  /* ============================================================
2246
2029
  OrganizationProfile
2247
2030
  ============================================================ */
2248
2031
 
2249
- .thunder-organization-profile {
2032
+ .thunderid-organization-profile {
2250
2033
  display: flex;
2251
2034
  flex-direction: column;
2252
2035
  min-width: 320px;
@@ -2256,22 +2039,22 @@ const ORGANIZATION_PROFILE_CSS = `
2256
2039
 
2257
2040
  /* Header: title + divider ------------------------------------ */
2258
2041
 
2259
- .thunder-organization-profile__header {
2042
+ .thunderid-organization-profile__header {
2260
2043
  padding: calc(var(--thunder-spacing-unit) * 2) calc(var(--thunder-spacing-unit) * 2.5);
2261
2044
  padding-bottom: calc(var(--thunder-spacing-unit) * 1.5);
2262
2045
  }
2263
2046
 
2264
- .thunder-organization-profile__title {
2047
+ .thunderid-organization-profile__title {
2265
2048
  margin: 0;
2266
2049
  }
2267
2050
 
2268
- .thunder-organization-profile__header-divider {
2051
+ .thunderid-organization-profile__header-divider {
2269
2052
  margin: 0;
2270
2053
  }
2271
2054
 
2272
2055
  /* Identity: avatar + org name + handle ----------------------- */
2273
2056
 
2274
- .thunder-organization-profile__identity {
2057
+ .thunderid-organization-profile__identity {
2275
2058
  display: flex;
2276
2059
  flex-direction: column;
2277
2060
  align-items: center;
@@ -2279,7 +2062,7 @@ const ORGANIZATION_PROFILE_CSS = `
2279
2062
  gap: calc(var(--thunder-spacing-unit) * 0.5);
2280
2063
  }
2281
2064
 
2282
- .thunder-organization-profile__avatar {
2065
+ .thunderid-organization-profile__avatar {
2283
2066
  width: var(--thunder-avatar-size);
2284
2067
  height: var(--thunder-avatar-size);
2285
2068
  border-radius: 50%;
@@ -2290,7 +2073,7 @@ const ORGANIZATION_PROFILE_CSS = `
2290
2073
  margin-bottom: calc(var(--thunder-spacing-unit) * 0.375);
2291
2074
  }
2292
2075
 
2293
- .thunder-organization-profile__avatar-initials {
2076
+ .thunderid-organization-profile__avatar-initials {
2294
2077
  color: #ffffff;
2295
2078
  font-size: var(--thunder-avatar-fontSize);
2296
2079
  font-weight: 600;
@@ -2300,28 +2083,28 @@ const ORGANIZATION_PROFILE_CSS = `
2300
2083
  user-select: none;
2301
2084
  }
2302
2085
 
2303
- .thunder-organization-profile__org-name {
2086
+ .thunderid-organization-profile__org-name {
2304
2087
  margin: 0;
2305
2088
  text-align: center;
2306
2089
  }
2307
2090
 
2308
- .thunder-organization-profile__org-handle {
2091
+ .thunderid-organization-profile__org-handle {
2309
2092
  color: var(--thunder-color-text-secondary);
2310
2093
  text-align: center;
2311
2094
  }
2312
2095
 
2313
- .thunder-organization-profile__identity-divider {
2096
+ .thunderid-organization-profile__identity-divider {
2314
2097
  margin: 0;
2315
2098
  }
2316
2099
 
2317
2100
  /* Fields ---------------------------------------------------- */
2318
2101
 
2319
- .thunder-organization-profile__fields {
2102
+ .thunderid-organization-profile__fields {
2320
2103
  display: flex;
2321
2104
  flex-direction: column;
2322
2105
  }
2323
2106
 
2324
- .thunder-organization-profile__field {
2107
+ .thunderid-organization-profile__field {
2325
2108
  display: grid;
2326
2109
  grid-template-columns: 36% 64%;
2327
2110
  align-items: center;
@@ -2331,28 +2114,28 @@ const ORGANIZATION_PROFILE_CSS = `
2331
2114
  transition: background-color var(--thunder-transition-fast);
2332
2115
  }
2333
2116
 
2334
- .thunder-organization-profile__field:hover {
2117
+ .thunderid-organization-profile__field:hover {
2335
2118
  background-color: var(--thunder-color-action-hover);
2336
2119
  }
2337
2120
 
2338
- .thunder-organization-profile__field + .thunder-organization-profile__field {
2121
+ .thunderid-organization-profile__field + .thunderid-organization-profile__field {
2339
2122
  border-top: 1px solid var(--thunder-color-border);
2340
2123
  }
2341
2124
 
2342
- .thunder-organization-profile__field-label-col {
2125
+ .thunderid-organization-profile__field-label-col {
2343
2126
  /* label column */
2344
2127
  }
2345
2128
 
2346
- .thunder-organization-profile__field-label {
2129
+ .thunderid-organization-profile__field-label {
2347
2130
  color: var(--thunder-color-text-secondary);
2348
2131
  font-size: var(--thunder-typography-fontSize-sm);
2349
2132
  }
2350
2133
 
2351
- .thunder-organization-profile__field-value-col {
2134
+ .thunderid-organization-profile__field-value-col {
2352
2135
  /* value column */
2353
2136
  }
2354
2137
 
2355
- .thunder-organization-profile__field-display {
2138
+ .thunderid-organization-profile__field-display {
2356
2139
  display: flex;
2357
2140
  align-items: center;
2358
2141
  justify-content: space-between;
@@ -2360,21 +2143,21 @@ const ORGANIZATION_PROFILE_CSS = `
2360
2143
  min-height: 1.5rem;
2361
2144
  }
2362
2145
 
2363
- .thunder-organization-profile__field-value {
2146
+ .thunderid-organization-profile__field-value {
2364
2147
  color: var(--thunder-color-text-primary);
2365
2148
  word-break: break-word;
2366
2149
  flex: 1;
2367
2150
  font-size: var(--thunder-typography-fontSize-sm);
2368
2151
  }
2369
2152
 
2370
- .thunder-organization-profile__field-value--id {
2153
+ .thunderid-organization-profile__field-value--id {
2371
2154
  font-size: calc(var(--thunder-typography-fontSize-sm) * 0.9);
2372
2155
  color: var(--thunder-color-text-secondary);
2373
2156
  font-family: monospace;
2374
2157
  word-break: break-all;
2375
2158
  }
2376
2159
 
2377
- .thunder-organization-profile__field-placeholder {
2160
+ .thunderid-organization-profile__field-placeholder {
2378
2161
  color: var(--thunder-color-primary-main);
2379
2162
  font-style: italic;
2380
2163
  font-size: var(--thunder-typography-fontSize-sm);
@@ -2387,7 +2170,7 @@ const ORGANIZATION_PROFILE_CSS = `
2387
2170
 
2388
2171
  /* Edit button (pencil icon) --------------------------------- */
2389
2172
 
2390
- .thunder-organization-profile__field-edit-btn {
2173
+ .thunderid-organization-profile__field-edit-btn {
2391
2174
  display: inline-flex;
2392
2175
  align-items: center;
2393
2176
  justify-content: center;
@@ -2406,16 +2189,16 @@ const ORGANIZATION_PROFILE_CSS = `
2406
2189
  line-height: 0;
2407
2190
  }
2408
2191
 
2409
- .thunder-organization-profile__field:hover .thunder-organization-profile__field-edit-btn {
2192
+ .thunderid-organization-profile__field:hover .thunderid-organization-profile__field-edit-btn {
2410
2193
  opacity: 1;
2411
2194
  }
2412
2195
 
2413
- .thunder-organization-profile__field-edit-btn:hover {
2196
+ .thunderid-organization-profile__field-edit-btn:hover {
2414
2197
  color: var(--thunder-color-primary-main);
2415
2198
  background-color: var(--thunder-color-primary-light);
2416
2199
  }
2417
2200
 
2418
- .thunder-organization-profile__field-edit-btn:focus-visible {
2201
+ .thunderid-organization-profile__field-edit-btn:focus-visible {
2419
2202
  opacity: 1;
2420
2203
  outline: none;
2421
2204
  box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
@@ -2423,13 +2206,13 @@ const ORGANIZATION_PROFILE_CSS = `
2423
2206
 
2424
2207
  /* Edit mode ------------------------------------------------- */
2425
2208
 
2426
- .thunder-organization-profile__field-edit {
2209
+ .thunderid-organization-profile__field-edit {
2427
2210
  display: flex;
2428
2211
  flex-direction: column;
2429
2212
  gap: calc(var(--thunder-spacing-unit) * 0.75);
2430
2213
  }
2431
2214
 
2432
- .thunder-organization-profile__field-edit-actions {
2215
+ .thunderid-organization-profile__field-edit-actions {
2433
2216
  display: flex;
2434
2217
  align-items: center;
2435
2218
  gap: calc(var(--thunder-spacing-unit) * 0.75);
@@ -2459,9 +2242,9 @@ var OrganizationProfile_css_default = ORGANIZATION_PROFILE_CSS;
2459
2242
  /**
2460
2243
  * Styles for the OrganizationSwitcher presentation component.
2461
2244
  *
2462
- * BEM block: `.thunder-organization-switcher`
2245
+ * BEM block: `.thunderid-organization-switcher`
2463
2246
  *
2464
- * The root element is a Card (`.thunder-card`), so we override its
2247
+ * The root element is a Card (`.thunderid-card`), so we override its
2465
2248
  * default padding to let the trigger button fill the surface edge-to-edge,
2466
2249
  * and apply `position: relative` to anchor the absolute dropdown.
2467
2250
  *
@@ -2482,7 +2265,7 @@ const ORGANIZATION_SWITCHER_CSS = `
2482
2265
  ============================================================ */
2483
2266
 
2484
2267
  /* Override Card's default padding so the trigger button fills the surface */
2485
- .thunder-organization-switcher.thunder-card {
2268
+ .thunderid-organization-switcher.thunderid-card {
2486
2269
  padding: 0;
2487
2270
  position: relative;
2488
2271
  display: inline-block;
@@ -2491,7 +2274,7 @@ const ORGANIZATION_SWITCHER_CSS = `
2491
2274
 
2492
2275
  /* Trigger ---------------------------------------------------- */
2493
2276
 
2494
- .thunder-organization-switcher__trigger {
2277
+ .thunderid-organization-switcher__trigger {
2495
2278
  display: flex;
2496
2279
  align-items: center;
2497
2280
  gap: calc(var(--thunder-spacing-unit) * 0.75);
@@ -2509,17 +2292,17 @@ const ORGANIZATION_SWITCHER_CSS = `
2509
2292
  box-sizing: border-box;
2510
2293
  }
2511
2294
 
2512
- .thunder-organization-switcher__trigger:hover {
2295
+ .thunderid-organization-switcher__trigger:hover {
2513
2296
  background-color: var(--thunder-color-action-hover);
2514
2297
  }
2515
2298
 
2516
- .thunder-organization-switcher__trigger:focus-visible {
2299
+ .thunderid-organization-switcher__trigger:focus-visible {
2517
2300
  outline: none;
2518
2301
  box-shadow: inset 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
2519
2302
  border-radius: var(--thunder-dropdown-borderRadius);
2520
2303
  }
2521
2304
 
2522
- .thunder-organization-switcher__trigger-label {
2305
+ .thunderid-organization-switcher__trigger-label {
2523
2306
  flex: 1;
2524
2307
  text-align: left;
2525
2308
  overflow: hidden;
@@ -2529,7 +2312,7 @@ const ORGANIZATION_SWITCHER_CSS = `
2529
2312
 
2530
2313
  /* Dropdown --------------------------------------------------- */
2531
2314
 
2532
- .thunder-organization-switcher__dropdown {
2315
+ .thunderid-organization-switcher__dropdown {
2533
2316
  position: absolute;
2534
2317
  top: calc(100% + calc(var(--thunder-spacing-unit) * 0.5));
2535
2318
  left: 0;
@@ -2548,8 +2331,8 @@ const ORGANIZATION_SWITCHER_CSS = `
2548
2331
 
2549
2332
  /* Loading / Empty states ------------------------------------ */
2550
2333
 
2551
- .thunder-organization-switcher__loading,
2552
- .thunder-organization-switcher__empty {
2334
+ .thunderid-organization-switcher__loading,
2335
+ .thunderid-organization-switcher__empty {
2553
2336
  display: flex;
2554
2337
  align-items: center;
2555
2338
  justify-content: center;
@@ -2559,7 +2342,7 @@ const ORGANIZATION_SWITCHER_CSS = `
2559
2342
 
2560
2343
  /* Items ----------------------------------------------------- */
2561
2344
 
2562
- .thunder-organization-switcher__item {
2345
+ .thunderid-organization-switcher__item {
2563
2346
  display: flex;
2564
2347
  align-items: center;
2565
2348
  gap: calc(var(--thunder-spacing-unit) * 0.75);
@@ -2576,17 +2359,17 @@ const ORGANIZATION_SWITCHER_CSS = `
2576
2359
  box-sizing: border-box;
2577
2360
  }
2578
2361
 
2579
- .thunder-organization-switcher__item:hover {
2362
+ .thunderid-organization-switcher__item:hover {
2580
2363
  background-color: var(--thunder-color-action-hover);
2581
2364
  }
2582
2365
 
2583
- .thunder-organization-switcher__item--active {
2366
+ .thunderid-organization-switcher__item--active {
2584
2367
  background-color: var(--thunder-color-action-selected);
2585
2368
  color: var(--thunder-color-primary-main);
2586
2369
  font-weight: var(--thunder-typography-fontWeight-medium);
2587
2370
  }
2588
2371
 
2589
- .thunder-organization-switcher__item--active:hover {
2372
+ .thunderid-organization-switcher__item--active:hover {
2590
2373
  background-color: var(--thunder-color-action-focus);
2591
2374
  }
2592
2375
  `;
@@ -2614,7 +2397,7 @@ var OrganizationSwitcher_css_default = ORGANIZATION_SWITCHER_CSS;
2614
2397
  /**
2615
2398
  * Styles for the UserDropdown presentation component.
2616
2399
  *
2617
- * BEM block: `.thunder-user-dropdown`
2400
+ * BEM block: `.thunderid-user-dropdown`
2618
2401
  *
2619
2402
  * Trigger modifiers:
2620
2403
  * __trigger--open – ring + border while menu is visible
@@ -2642,7 +2425,7 @@ const USER_DROPDOWN_CSS = `
2642
2425
  UserDropdown
2643
2426
  ============================================================ */
2644
2427
 
2645
- .thunder-user-dropdown {
2428
+ .thunderid-user-dropdown {
2646
2429
  position: relative;
2647
2430
  display: inline-block;
2648
2431
  font-family: var(--thunder-typography-fontFamily);
@@ -2650,7 +2433,7 @@ const USER_DROPDOWN_CSS = `
2650
2433
 
2651
2434
  /* ── Trigger ─────────────────────────────────────────────────── */
2652
2435
 
2653
- .thunder-user-dropdown__trigger {
2436
+ .thunderid-user-dropdown__trigger {
2654
2437
  display: inline-flex;
2655
2438
  align-items: center;
2656
2439
  gap: calc(var(--thunder-spacing-unit) * 0.5);
@@ -2667,23 +2450,23 @@ const USER_DROPDOWN_CSS = `
2667
2450
  outline: none;
2668
2451
  }
2669
2452
 
2670
- .thunder-user-dropdown__trigger:hover {
2453
+ .thunderid-user-dropdown__trigger:hover {
2671
2454
  border-color: var(--thunder-color-primary-main);
2672
2455
  }
2673
2456
 
2674
- .thunder-user-dropdown__trigger--open {
2457
+ .thunderid-user-dropdown__trigger--open {
2675
2458
  border-color: var(--thunder-color-primary-main);
2676
2459
  box-shadow: 0 0 0 3px var(--thunder-focus-ring-color);
2677
2460
  }
2678
2461
 
2679
- .thunder-user-dropdown__trigger:focus-visible {
2462
+ .thunderid-user-dropdown__trigger:focus-visible {
2680
2463
  border-color: var(--thunder-color-primary-main);
2681
2464
  box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
2682
2465
  }
2683
2466
 
2684
2467
  /* ── Trigger avatar ──────────────────────────────────────────── */
2685
2468
 
2686
- .thunder-user-dropdown__avatar {
2469
+ .thunderid-user-dropdown__avatar {
2687
2470
  display: flex;
2688
2471
  align-items: center;
2689
2472
  justify-content: center;
@@ -2700,14 +2483,14 @@ const USER_DROPDOWN_CSS = `
2700
2483
  }
2701
2484
 
2702
2485
  /* sm — 28 px */
2703
- .thunder-user-dropdown__avatar--sm {
2486
+ .thunderid-user-dropdown__avatar--sm {
2704
2487
  width: 28px;
2705
2488
  height: 28px;
2706
2489
  font-size: var(--thunder-typography-fontSize-xs);
2707
2490
  }
2708
2491
 
2709
2492
  /* lg — 38 px */
2710
- .thunder-user-dropdown__avatar--lg {
2493
+ .thunderid-user-dropdown__avatar--lg {
2711
2494
  width: 38px;
2712
2495
  height: 38px;
2713
2496
  font-size: var(--thunder-typography-fontSize-md);
@@ -2715,7 +2498,7 @@ const USER_DROPDOWN_CSS = `
2715
2498
 
2716
2499
  /* ── Chevron ─────────────────────────────────────────────────── */
2717
2500
 
2718
- .thunder-user-dropdown__chevron {
2501
+ .thunderid-user-dropdown__chevron {
2719
2502
  display: inline-flex;
2720
2503
  align-items: center;
2721
2504
  color: var(--thunder-color-text-secondary);
@@ -2723,13 +2506,13 @@ const USER_DROPDOWN_CSS = `
2723
2506
  padding-right: calc(var(--thunder-spacing-unit) * 0.25);
2724
2507
  }
2725
2508
 
2726
- .thunder-user-dropdown__trigger--open .thunder-user-dropdown__chevron {
2509
+ .thunderid-user-dropdown__trigger--open .thunderid-user-dropdown__chevron {
2727
2510
  transform: rotate(180deg);
2728
2511
  }
2729
2512
 
2730
2513
  /* ── Dropdown menu ───────────────────────────────────────────── */
2731
2514
 
2732
- .thunder-user-dropdown__menu {
2515
+ .thunderid-user-dropdown__menu {
2733
2516
  position: absolute;
2734
2517
  top: calc(100% + calc(var(--thunder-spacing-unit) * 0.75));
2735
2518
  right: 0;
@@ -2747,51 +2530,51 @@ const USER_DROPDOWN_CSS = `
2747
2530
 
2748
2531
  /* Alignment */
2749
2532
 
2750
- .thunder-user-dropdown__menu--align-left {
2533
+ .thunderid-user-dropdown__menu--align-left {
2751
2534
  right: auto;
2752
2535
  left: 0;
2753
2536
  }
2754
2537
 
2755
2538
  /* Size: sm */
2756
2539
 
2757
- .thunder-user-dropdown__menu--size-sm {
2540
+ .thunderid-user-dropdown__menu--size-sm {
2758
2541
  min-width: 180px;
2759
2542
  }
2760
2543
 
2761
- .thunder-user-dropdown__menu--size-sm .thunder-user-dropdown__menu-header {
2544
+ .thunderid-user-dropdown__menu--size-sm .thunderid-user-dropdown__menu-header {
2762
2545
  padding: calc(var(--thunder-spacing-unit) * 1.25) calc(var(--thunder-spacing-unit) * 1.5);
2763
2546
  gap: calc(var(--thunder-spacing-unit) * 1);
2764
2547
  }
2765
2548
 
2766
- .thunder-user-dropdown__menu--size-sm .thunder-user-dropdown__menu-header-avatar {
2549
+ .thunderid-user-dropdown__menu--size-sm .thunderid-user-dropdown__menu-header-avatar {
2767
2550
  width: 30px;
2768
2551
  height: 30px;
2769
2552
  font-size: var(--thunder-typography-fontSize-sm);
2770
2553
  }
2771
2554
 
2772
- .thunder-user-dropdown__menu--size-sm .thunder-user-dropdown__item {
2555
+ .thunderid-user-dropdown__menu--size-sm .thunderid-user-dropdown__item {
2773
2556
  padding: calc(var(--thunder-spacing-unit) * 0.75) calc(var(--thunder-spacing-unit) * 1.5);
2774
2557
  font-size: var(--thunder-typography-fontSize-xs);
2775
2558
  }
2776
2559
 
2777
2560
  /* Size: lg */
2778
2561
 
2779
- .thunder-user-dropdown__menu--size-lg {
2562
+ .thunderid-user-dropdown__menu--size-lg {
2780
2563
  min-width: 280px;
2781
2564
  }
2782
2565
 
2783
- .thunder-user-dropdown__menu--size-lg .thunder-user-dropdown__menu-header {
2566
+ .thunderid-user-dropdown__menu--size-lg .thunderid-user-dropdown__menu-header {
2784
2567
  padding: calc(var(--thunder-spacing-unit) * 2) calc(var(--thunder-spacing-unit) * 2);
2785
2568
  gap: calc(var(--thunder-spacing-unit) * 1.5);
2786
2569
  }
2787
2570
 
2788
- .thunder-user-dropdown__menu--size-lg .thunder-user-dropdown__menu-header-avatar {
2571
+ .thunderid-user-dropdown__menu--size-lg .thunderid-user-dropdown__menu-header-avatar {
2789
2572
  width: 42px;
2790
2573
  height: 42px;
2791
2574
  font-size: var(--thunder-typography-fontSize-lg);
2792
2575
  }
2793
2576
 
2794
- .thunder-user-dropdown__menu--size-lg .thunder-user-dropdown__item {
2577
+ .thunderid-user-dropdown__menu--size-lg .thunderid-user-dropdown__item {
2795
2578
  padding: calc(var(--thunder-spacing-unit) * 1.25) calc(var(--thunder-spacing-unit) * 2);
2796
2579
  font-size: var(--thunder-typography-fontSize-md);
2797
2580
  }
@@ -2809,14 +2592,14 @@ const USER_DROPDOWN_CSS = `
2809
2592
 
2810
2593
  /* ── Menu header (user identity) ─────────────────────────────── */
2811
2594
 
2812
- .thunder-user-dropdown__menu-header {
2595
+ .thunderid-user-dropdown__menu-header {
2813
2596
  display: flex;
2814
2597
  align-items: center;
2815
2598
  gap: calc(var(--thunder-spacing-unit) * 1.25);
2816
2599
  padding: calc(var(--thunder-spacing-unit) * 1.5) calc(var(--thunder-spacing-unit) * 1.75);
2817
2600
  }
2818
2601
 
2819
- .thunder-user-dropdown__menu-header-avatar {
2602
+ .thunderid-user-dropdown__menu-header-avatar {
2820
2603
  display: flex;
2821
2604
  align-items: center;
2822
2605
  justify-content: center;
@@ -2831,14 +2614,14 @@ const USER_DROPDOWN_CSS = `
2831
2614
  user-select: none;
2832
2615
  }
2833
2616
 
2834
- .thunder-user-dropdown__menu-header-info {
2617
+ .thunderid-user-dropdown__menu-header-info {
2835
2618
  display: flex;
2836
2619
  flex-direction: column;
2837
2620
  gap: 2px;
2838
2621
  min-width: 0;
2839
2622
  }
2840
2623
 
2841
- .thunder-user-dropdown__menu-header-name {
2624
+ .thunderid-user-dropdown__menu-header-name {
2842
2625
  font-size: var(--thunder-typography-fontSize-sm);
2843
2626
  font-weight: var(--thunder-typography-fontWeight-semibold);
2844
2627
  color: var(--thunder-color-text-primary);
@@ -2848,7 +2631,7 @@ const USER_DROPDOWN_CSS = `
2848
2631
  line-height: var(--thunder-typography-lineHeight-tight);
2849
2632
  }
2850
2633
 
2851
- .thunder-user-dropdown__menu-header-subtitle {
2634
+ .thunderid-user-dropdown__menu-header-subtitle {
2852
2635
  font-size: var(--thunder-typography-fontSize-xs);
2853
2636
  color: var(--thunder-color-text-secondary);
2854
2637
  white-space: nowrap;
@@ -2859,7 +2642,7 @@ const USER_DROPDOWN_CSS = `
2859
2642
 
2860
2643
  /* ── Menu divider ────────────────────────────────────────────── */
2861
2644
 
2862
- .thunder-user-dropdown__menu-divider {
2645
+ .thunderid-user-dropdown__menu-divider {
2863
2646
  height: 1px;
2864
2647
  background-color: var(--thunder-color-border);
2865
2648
  margin: calc(var(--thunder-spacing-unit) * 0.5) 0;
@@ -2868,7 +2651,7 @@ const USER_DROPDOWN_CSS = `
2868
2651
 
2869
2652
  /* ── Menu items ──────────────────────────────────────────────── */
2870
2653
 
2871
- .thunder-user-dropdown__item {
2654
+ .thunderid-user-dropdown__item {
2872
2655
  display: flex;
2873
2656
  align-items: center;
2874
2657
  gap: calc(var(--thunder-spacing-unit) * 1);
@@ -2885,28 +2668,28 @@ const USER_DROPDOWN_CSS = `
2885
2668
  box-sizing: border-box;
2886
2669
  }
2887
2670
 
2888
- .thunder-user-dropdown__item:hover {
2671
+ .thunderid-user-dropdown__item:hover {
2889
2672
  background-color: var(--thunder-color-action-hover);
2890
2673
  }
2891
2674
 
2892
- .thunder-user-dropdown__item:focus-visible {
2675
+ .thunderid-user-dropdown__item:focus-visible {
2893
2676
  outline: none;
2894
2677
  background-color: var(--thunder-color-action-focus);
2895
2678
  }
2896
2679
 
2897
2680
  /* Danger variant (sign-out) */
2898
2681
 
2899
- .thunder-user-dropdown__item--danger {
2682
+ .thunderid-user-dropdown__item--danger {
2900
2683
  color: var(--thunder-color-error-main);
2901
2684
  }
2902
2685
 
2903
- .thunder-user-dropdown__item--danger:hover {
2686
+ .thunderid-user-dropdown__item--danger:hover {
2904
2687
  background-color: var(--thunder-color-error-light);
2905
2688
  }
2906
2689
 
2907
2690
  /* ── Modal overlay ───────────────────────────────────────────── */
2908
2691
 
2909
- .thunder-user-dropdown__modal-overlay {
2692
+ .thunderid-user-dropdown__modal-overlay {
2910
2693
  position: fixed;
2911
2694
  inset: 0;
2912
2695
  background-color: rgba(0, 0, 0, 0.45);
@@ -2925,7 +2708,7 @@ const USER_DROPDOWN_CSS = `
2925
2708
 
2926
2709
  /* ── Modal content ───────────────────────────────────────────── */
2927
2710
 
2928
- .thunder-user-dropdown__modal-content {
2711
+ .thunderid-user-dropdown__modal-content {
2929
2712
  background: var(--thunder-color-background-surface);
2930
2713
  border-radius: var(--thunder-border-radius-large);
2931
2714
  box-shadow: var(--thunder-shadow-large);
@@ -2950,7 +2733,7 @@ const USER_DROPDOWN_CSS = `
2950
2733
 
2951
2734
  /* ── Modal close button ──────────────────────────────────────── */
2952
2735
 
2953
- .thunder-user-dropdown__modal-close {
2736
+ .thunderid-user-dropdown__modal-close {
2954
2737
  position: absolute;
2955
2738
  top: calc(var(--thunder-spacing-unit) * 1.25);
2956
2739
  right: calc(var(--thunder-spacing-unit) * 1.25);
@@ -2970,12 +2753,12 @@ const USER_DROPDOWN_CSS = `
2970
2753
  line-height: 0;
2971
2754
  }
2972
2755
 
2973
- .thunder-user-dropdown__modal-close:hover {
2756
+ .thunderid-user-dropdown__modal-close:hover {
2974
2757
  color: var(--thunder-color-text-primary);
2975
2758
  background-color: var(--thunder-color-action-hover);
2976
2759
  }
2977
2760
 
2978
- .thunder-user-dropdown__modal-close:focus-visible {
2761
+ .thunderid-user-dropdown__modal-close:focus-visible {
2979
2762
  outline: none;
2980
2763
  box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
2981
2764
  }
@@ -3004,7 +2787,7 @@ var UserDropdown_css_default = USER_DROPDOWN_CSS;
3004
2787
  /**
3005
2788
  * Styles for the UserProfile presentation component.
3006
2789
  *
3007
- * BEM block: `.thunder-user-profile`
2790
+ * BEM block: `.thunderid-user-profile`
3008
2791
  *
3009
2792
  * Modifiers:
3010
2793
  * --compact – reduced field padding for modal / dropdown embedding
@@ -3020,7 +2803,7 @@ const USER_PROFILE_CSS = `
3020
2803
  UserProfile (modern redesign)
3021
2804
  ============================================================ */
3022
2805
 
3023
- .thunder-user-profile {
2806
+ .thunderid-user-profile {
3024
2807
  display: flex;
3025
2808
  flex-direction: column;
3026
2809
  min-width: 320px;
@@ -3030,7 +2813,7 @@ const USER_PROFILE_CSS = `
3030
2813
 
3031
2814
  /* ── Header ─────────────────────────────────────────────────── */
3032
2815
 
3033
- .thunder-user-profile__header {
2816
+ .thunderid-user-profile__header {
3034
2817
  display: flex;
3035
2818
  align-items: center;
3036
2819
  justify-content: space-between;
@@ -3038,7 +2821,7 @@ const USER_PROFILE_CSS = `
3038
2821
  calc(var(--thunder-spacing-unit) * 1.75);
3039
2822
  }
3040
2823
 
3041
- .thunder-user-profile__title {
2824
+ .thunderid-user-profile__title {
3042
2825
  margin: 0;
3043
2826
  font-size: var(--thunder-typography-fontSize-md);
3044
2827
  font-weight: var(--thunder-typography-fontWeight-semibold);
@@ -3046,13 +2829,13 @@ const USER_PROFILE_CSS = `
3046
2829
  letter-spacing: var(--thunder-typography-letterSpacing-tight);
3047
2830
  }
3048
2831
 
3049
- .thunder-user-profile__header-divider {
2832
+ .thunderid-user-profile__header-divider {
3050
2833
  margin: 0;
3051
2834
  }
3052
2835
 
3053
2836
  /* ── Hero (avatar + name + subtitle) ────────────────────────── */
3054
2837
 
3055
- .thunder-user-profile__hero {
2838
+ .thunderid-user-profile__hero {
3056
2839
  display: flex;
3057
2840
  flex-direction: column;
3058
2841
  align-items: center;
@@ -3067,7 +2850,7 @@ const USER_PROFILE_CSS = `
3067
2850
  border-bottom: 1px solid var(--thunder-color-border);
3068
2851
  }
3069
2852
 
3070
- .thunder-user-profile__avatar-wrapper {
2853
+ .thunderid-user-profile__avatar-wrapper {
3071
2854
  position: relative;
3072
2855
  border-radius: 50%;
3073
2856
  padding: 3px;
@@ -3079,7 +2862,7 @@ const USER_PROFILE_CSS = `
3079
2862
  box-shadow: 0 4px 14px rgba(75, 110, 245, 0.28);
3080
2863
  }
3081
2864
 
3082
- .thunder-user-profile__avatar {
2865
+ .thunderid-user-profile__avatar {
3083
2866
  width: var(--thunder-avatar-size, 72px);
3084
2867
  height: var(--thunder-avatar-size, 72px);
3085
2868
  border-radius: 50%;
@@ -3092,34 +2875,34 @@ const USER_PROFILE_CSS = `
3092
2875
 
3093
2876
  /* Avatar size variants */
3094
2877
 
3095
- .thunder-user-profile__avatar--sm {
2878
+ .thunderid-user-profile__avatar--sm {
3096
2879
  width: 48px;
3097
2880
  height: 48px;
3098
2881
  }
3099
2882
 
3100
- .thunder-user-profile__avatar--sm .thunder-user-profile__avatar-initials {
2883
+ .thunderid-user-profile__avatar--sm .thunderid-user-profile__avatar-initials {
3101
2884
  font-size: 1rem;
3102
2885
  }
3103
2886
 
3104
- .thunder-user-profile__avatar--md {
2887
+ .thunderid-user-profile__avatar--md {
3105
2888
  width: 64px;
3106
2889
  height: 64px;
3107
2890
  }
3108
2891
 
3109
- .thunder-user-profile__avatar--md .thunder-user-profile__avatar-initials {
2892
+ .thunderid-user-profile__avatar--md .thunderid-user-profile__avatar-initials {
3110
2893
  font-size: 1.25rem;
3111
2894
  }
3112
2895
 
3113
- .thunder-user-profile__avatar--lg {
2896
+ .thunderid-user-profile__avatar--lg {
3114
2897
  width: 80px;
3115
2898
  height: 80px;
3116
2899
  }
3117
2900
 
3118
- .thunder-user-profile__avatar--lg .thunder-user-profile__avatar-initials {
2901
+ .thunderid-user-profile__avatar--lg .thunderid-user-profile__avatar-initials {
3119
2902
  font-size: 1.625rem;
3120
2903
  }
3121
2904
 
3122
- .thunder-user-profile__avatar-initials {
2905
+ .thunderid-user-profile__avatar-initials {
3123
2906
  color: #ffffff;
3124
2907
  font-weight: var(--thunder-typography-fontWeight-semibold);
3125
2908
  line-height: 1;
@@ -3128,7 +2911,7 @@ const USER_PROFILE_CSS = `
3128
2911
  user-select: none;
3129
2912
  }
3130
2913
 
3131
- .thunder-user-profile__hero-info {
2914
+ .thunderid-user-profile__hero-info {
3132
2915
  display: flex;
3133
2916
  flex-direction: column;
3134
2917
  align-items: center;
@@ -3136,7 +2919,7 @@ const USER_PROFILE_CSS = `
3136
2919
  text-align: center;
3137
2920
  }
3138
2921
 
3139
- .thunder-user-profile__hero-name {
2922
+ .thunderid-user-profile__hero-name {
3140
2923
  font-size: var(--thunder-typography-fontSize-lg);
3141
2924
  font-weight: var(--thunder-typography-fontWeight-semibold);
3142
2925
  color: var(--thunder-color-text-primary);
@@ -3144,7 +2927,7 @@ const USER_PROFILE_CSS = `
3144
2927
  letter-spacing: var(--thunder-typography-letterSpacing-tight);
3145
2928
  }
3146
2929
 
3147
- .thunder-user-profile__hero-subtitle {
2930
+ .thunderid-user-profile__hero-subtitle {
3148
2931
  font-size: var(--thunder-typography-fontSize-sm);
3149
2932
  color: var(--thunder-color-text-secondary);
3150
2933
  line-height: var(--thunder-typography-lineHeight-normal);
@@ -3152,12 +2935,12 @@ const USER_PROFILE_CSS = `
3152
2935
 
3153
2936
  /* ── Alerts & loading ────────────────────────────────────────── */
3154
2937
 
3155
- .thunder-user-profile__error {
2938
+ .thunderid-user-profile__error {
3156
2939
  margin: calc(var(--thunder-spacing-unit) * 1.5) calc(var(--thunder-spacing-unit) * 2.5)
3157
2940
  calc(var(--thunder-spacing-unit) * 0.5);
3158
2941
  }
3159
2942
 
3160
- .thunder-user-profile__loading {
2943
+ .thunderid-user-profile__loading {
3161
2944
  display: flex;
3162
2945
  align-items: center;
3163
2946
  justify-content: center;
@@ -3166,12 +2949,12 @@ const USER_PROFILE_CSS = `
3166
2949
 
3167
2950
  /* ── Fields ──────────────────────────────────────────────────── */
3168
2951
 
3169
- .thunder-user-profile__fields {
2952
+ .thunderid-user-profile__fields {
3170
2953
  display: flex;
3171
2954
  flex-direction: column;
3172
2955
  }
3173
2956
 
3174
- .thunder-user-profile__field {
2957
+ .thunderid-user-profile__field {
3175
2958
  display: grid;
3176
2959
  grid-template-columns: 38% 62%;
3177
2960
  align-items: start;
@@ -3181,22 +2964,22 @@ const USER_PROFILE_CSS = `
3181
2964
  transition: background-color var(--thunder-transition-fast);
3182
2965
  }
3183
2966
 
3184
- .thunder-user-profile__field:hover {
2967
+ .thunderid-user-profile__field:hover {
3185
2968
  background-color: var(--thunder-color-action-hover);
3186
2969
  }
3187
2970
 
3188
- .thunder-user-profile__field + .thunder-user-profile__field {
2971
+ .thunderid-user-profile__field + .thunderid-user-profile__field {
3189
2972
  border-top: 1px solid var(--thunder-color-border);
3190
2973
  }
3191
2974
 
3192
- .thunder-user-profile__field-label {
2975
+ .thunderid-user-profile__field-label {
3193
2976
  color: var(--thunder-color-text-secondary);
3194
2977
  font-size: var(--thunder-typography-fontSize-sm);
3195
2978
  font-weight: var(--thunder-typography-fontWeight-medium);
3196
2979
  padding-top: 2px;
3197
2980
  }
3198
2981
 
3199
- .thunder-user-profile__field-display {
2982
+ .thunderid-user-profile__field-display {
3200
2983
  display: flex;
3201
2984
  align-items: center;
3202
2985
  justify-content: space-between;
@@ -3204,14 +2987,14 @@ const USER_PROFILE_CSS = `
3204
2987
  min-height: 1.5rem;
3205
2988
  }
3206
2989
 
3207
- .thunder-user-profile__field-value {
2990
+ .thunderid-user-profile__field-value {
3208
2991
  color: var(--thunder-color-text-primary);
3209
2992
  word-break: break-word;
3210
2993
  flex: 1;
3211
2994
  font-size: var(--thunder-typography-fontSize-sm);
3212
2995
  }
3213
2996
 
3214
- .thunder-user-profile__field-placeholder {
2997
+ .thunderid-user-profile__field-placeholder {
3215
2998
  color: var(--thunder-color-primary-main);
3216
2999
  font-size: var(--thunder-typography-fontSize-sm);
3217
3000
  font-style: italic;
@@ -3224,13 +3007,13 @@ const USER_PROFILE_CSS = `
3224
3007
  transition: opacity var(--thunder-transition-fast);
3225
3008
  }
3226
3009
 
3227
- .thunder-user-profile__field-placeholder:hover {
3010
+ .thunderid-user-profile__field-placeholder:hover {
3228
3011
  opacity: 1;
3229
3012
  }
3230
3013
 
3231
3014
  /* ── Edit button (pencil) ────────────────────────────────────── */
3232
3015
 
3233
- .thunder-user-profile__field-edit-btn {
3016
+ .thunderid-user-profile__field-edit-btn {
3234
3017
  display: inline-flex;
3235
3018
  align-items: center;
3236
3019
  justify-content: center;
@@ -3249,16 +3032,16 @@ const USER_PROFILE_CSS = `
3249
3032
  line-height: 0;
3250
3033
  }
3251
3034
 
3252
- .thunder-user-profile__field:hover .thunder-user-profile__field-edit-btn {
3035
+ .thunderid-user-profile__field:hover .thunderid-user-profile__field-edit-btn {
3253
3036
  opacity: 1;
3254
3037
  }
3255
3038
 
3256
- .thunder-user-profile__field-edit-btn:hover {
3039
+ .thunderid-user-profile__field-edit-btn:hover {
3257
3040
  color: var(--thunder-color-primary-main);
3258
3041
  background-color: var(--thunder-color-primary-light);
3259
3042
  }
3260
3043
 
3261
- .thunder-user-profile__field-edit-btn:focus-visible {
3044
+ .thunderid-user-profile__field-edit-btn:focus-visible {
3262
3045
  opacity: 1;
3263
3046
  outline: none;
3264
3047
  box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
@@ -3266,14 +3049,14 @@ const USER_PROFILE_CSS = `
3266
3049
 
3267
3050
  /* ── Edit mode ───────────────────────────────────────────────── */
3268
3051
 
3269
- .thunder-user-profile__field-edit {
3052
+ .thunderid-user-profile__field-edit {
3270
3053
  display: flex;
3271
3054
  flex-direction: column;
3272
3055
  gap: calc(var(--thunder-spacing-unit) * 0.75);
3273
3056
  padding: calc(var(--thunder-spacing-unit) * 0.25) 0;
3274
3057
  }
3275
3058
 
3276
- .thunder-user-profile__field-edit-actions {
3059
+ .thunderid-user-profile__field-edit-actions {
3277
3060
  display: flex;
3278
3061
  align-items: center;
3279
3062
  gap: calc(var(--thunder-spacing-unit) * 0.75);
@@ -3281,31 +3064,31 @@ const USER_PROFILE_CSS = `
3281
3064
 
3282
3065
  /* ── Footer slot ─────────────────────────────────────────────── */
3283
3066
 
3284
- .thunder-user-profile__footer {
3067
+ .thunderid-user-profile__footer {
3285
3068
  padding: calc(var(--thunder-spacing-unit) * 1.5) calc(var(--thunder-spacing-unit) * 2.5);
3286
3069
  border-top: 1px solid var(--thunder-color-border);
3287
3070
  }
3288
3071
 
3289
3072
  /* ── Compact modifier ────────────────────────────────────────── */
3290
3073
 
3291
- .thunder-user-profile--compact .thunder-user-profile__hero {
3074
+ .thunderid-user-profile--compact .thunderid-user-profile__hero {
3292
3075
  padding: calc(var(--thunder-spacing-unit) * 2) calc(var(--thunder-spacing-unit) * 2);
3293
3076
  }
3294
3077
 
3295
- .thunder-user-profile--compact .thunder-user-profile__avatar--lg {
3078
+ .thunderid-user-profile--compact .thunderid-user-profile__avatar--lg {
3296
3079
  width: 56px;
3297
3080
  height: 56px;
3298
3081
  }
3299
3082
 
3300
- .thunder-user-profile--compact .thunder-user-profile__avatar--lg .thunder-user-profile__avatar-initials {
3083
+ .thunderid-user-profile--compact .thunderid-user-profile__avatar--lg .thunderid-user-profile__avatar-initials {
3301
3084
  font-size: 1.125rem;
3302
3085
  }
3303
3086
 
3304
- .thunder-user-profile--compact .thunder-user-profile__field {
3087
+ .thunderid-user-profile--compact .thunderid-user-profile__field {
3305
3088
  padding: calc(var(--thunder-spacing-unit) * 1) calc(var(--thunder-spacing-unit) * 2);
3306
3089
  }
3307
3090
 
3308
- .thunder-user-profile--compact .thunder-user-profile__hero-name {
3091
+ .thunderid-user-profile--compact .thunderid-user-profile__hero-name {
3309
3092
  font-size: var(--thunder-typography-fontSize-md);
3310
3093
  }
3311
3094
  `;
@@ -3333,7 +3116,7 @@ var UserProfile_css_default = USER_PROFILE_CSS;
3333
3116
  /**
3334
3117
  * Styles for the Alert primitive component.
3335
3118
  *
3336
- * BEM block: `.thunder-alert`
3119
+ * BEM block: `.thunderid-alert`
3337
3120
  *
3338
3121
  * Modifiers:
3339
3122
  * Severity: --info | --success | --warning | --error
@@ -3346,7 +3129,7 @@ const ALERT_CSS = `
3346
3129
  Alert
3347
3130
  ============================================================ */
3348
3131
 
3349
- .thunder-alert {
3132
+ .thunderid-alert {
3350
3133
  display: flex;
3351
3134
  align-items: flex-start;
3352
3135
  justify-content: space-between;
@@ -3361,35 +3144,35 @@ const ALERT_CSS = `
3361
3144
  line-height: var(--thunder-typography-lineHeight-normal);
3362
3145
  }
3363
3146
 
3364
- .thunder-alert__content {
3147
+ .thunderid-alert__content {
3365
3148
  flex: 1;
3366
3149
  }
3367
3150
 
3368
- .thunder-alert--info {
3151
+ .thunderid-alert--info {
3369
3152
  background-color: var(--thunder-color-info-light);
3370
3153
  border-color: var(--thunder-color-info-main);
3371
3154
  color: var(--thunder-color-info-contrastText);
3372
3155
  }
3373
3156
 
3374
- .thunder-alert--success {
3157
+ .thunderid-alert--success {
3375
3158
  background-color: var(--thunder-color-success-light);
3376
3159
  border-color: var(--thunder-color-success-main);
3377
3160
  color: var(--thunder-color-success-contrastText);
3378
3161
  }
3379
3162
 
3380
- .thunder-alert--warning {
3163
+ .thunderid-alert--warning {
3381
3164
  background-color: var(--thunder-color-warning-light);
3382
3165
  border-color: var(--thunder-color-warning-main);
3383
3166
  color: var(--thunder-color-warning-contrastText);
3384
3167
  }
3385
3168
 
3386
- .thunder-alert--error {
3169
+ .thunderid-alert--error {
3387
3170
  background-color: var(--thunder-color-error-light);
3388
3171
  border-color: var(--thunder-color-error-main);
3389
3172
  color: var(--thunder-color-error-contrastText);
3390
3173
  }
3391
3174
 
3392
- .thunder-alert__dismiss {
3175
+ .thunderid-alert__dismiss {
3393
3176
  background: none;
3394
3177
  border: none;
3395
3178
  cursor: pointer;
@@ -3402,7 +3185,7 @@ const ALERT_CSS = `
3402
3185
  flex-shrink: 0;
3403
3186
  transition: opacity var(--thunder-transition-fast), background-color var(--thunder-transition-fast);
3404
3187
  }
3405
- .thunder-alert__dismiss:hover {
3188
+ .thunderid-alert__dismiss:hover {
3406
3189
  opacity: 1;
3407
3190
  background-color: var(--thunder-color-action-hover);
3408
3191
  }
@@ -3431,7 +3214,7 @@ var Alert_css_default = ALERT_CSS;
3431
3214
  /**
3432
3215
  * Styles for the Button primitive component.
3433
3216
  *
3434
- * BEM block: `.thunder-button`
3217
+ * BEM block: `.thunderid-button`
3435
3218
  *
3436
3219
  * Modifiers:
3437
3220
  * Variant: --solid | --outline | --ghost | --text
@@ -3450,7 +3233,7 @@ const BUTTON_CSS = `
3450
3233
  Button
3451
3234
  ============================================================ */
3452
3235
 
3453
- .thunder-button {
3236
+ .thunderid-button {
3454
3237
  display: inline-flex;
3455
3238
  align-items: center;
3456
3239
  justify-content: center;
@@ -3480,26 +3263,26 @@ const BUTTON_CSS = `
3480
3263
  user-select: none;
3481
3264
  }
3482
3265
 
3483
- .thunder-button:focus-visible {
3266
+ .thunderid-button:focus-visible {
3484
3267
  outline: none;
3485
3268
  box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
3486
3269
  }
3487
3270
 
3488
3271
  /* -- Sizes -- */
3489
3272
 
3490
- .thunder-button--small {
3273
+ .thunderid-button--small {
3491
3274
  padding: 0 var(--thunder-button-sm-paddingX);
3492
3275
  font-size: var(--thunder-button-sm-fontSize);
3493
3276
  height: var(--thunder-button-sm-height);
3494
3277
  }
3495
3278
 
3496
- .thunder-button--medium {
3279
+ .thunderid-button--medium {
3497
3280
  padding: 0 var(--thunder-button-md-paddingX);
3498
3281
  font-size: var(--thunder-button-md-fontSize);
3499
3282
  height: var(--thunder-button-md-height);
3500
3283
  }
3501
3284
 
3502
- .thunder-button--large {
3285
+ .thunderid-button--large {
3503
3286
  padding: 0 var(--thunder-button-lg-paddingX);
3504
3287
  font-size: var(--thunder-button-lg-fontSize);
3505
3288
  height: var(--thunder-button-lg-height);
@@ -3507,12 +3290,12 @@ const BUTTON_CSS = `
3507
3290
 
3508
3291
  /* -- Modifiers -- */
3509
3292
 
3510
- .thunder-button--full-width {
3293
+ .thunderid-button--full-width {
3511
3294
  width: 100%;
3512
3295
  }
3513
3296
 
3514
- .thunder-button--loading,
3515
- .thunder-button:disabled {
3297
+ .thunderid-button--loading,
3298
+ .thunderid-button:disabled {
3516
3299
  cursor: not-allowed;
3517
3300
  opacity: 0.55;
3518
3301
  pointer-events: none;
@@ -3520,172 +3303,172 @@ const BUTTON_CSS = `
3520
3303
 
3521
3304
  /* -- Solid variants -- */
3522
3305
 
3523
- .thunder-button--solid.thunder-button--primary {
3306
+ .thunderid-button--solid.thunderid-button--primary {
3524
3307
  background-color: var(--thunder-color-primary-main);
3525
3308
  color: var(--thunder-color-primary-contrastText);
3526
3309
  border-color: var(--thunder-color-primary-main);
3527
3310
  }
3528
- .thunder-button--solid.thunder-button--primary:hover:not(:disabled) {
3311
+ .thunderid-button--solid.thunderid-button--primary:hover:not(:disabled) {
3529
3312
  background-color: var(--thunder-color-primary-dark);
3530
3313
  border-color: var(--thunder-color-primary-dark);
3531
3314
  }
3532
- .thunder-button--solid.thunder-button--primary:active:not(:disabled) {
3315
+ .thunderid-button--solid.thunderid-button--primary:active:not(:disabled) {
3533
3316
  transform: scale(0.98);
3534
3317
  }
3535
3318
 
3536
- .thunder-button--solid.thunder-button--secondary {
3319
+ .thunderid-button--solid.thunderid-button--secondary {
3537
3320
  background-color: var(--thunder-color-secondary-light);
3538
3321
  color: var(--thunder-color-secondary-main);
3539
3322
  border-color: var(--thunder-color-border);
3540
3323
  }
3541
- .thunder-button--solid.thunder-button--secondary:hover:not(:disabled) {
3324
+ .thunderid-button--solid.thunderid-button--secondary:hover:not(:disabled) {
3542
3325
  background-color: var(--thunder-color-border);
3543
3326
  border-color: var(--thunder-color-border);
3544
3327
  }
3545
- .thunder-button--solid.thunder-button--secondary:active:not(:disabled) {
3328
+ .thunderid-button--solid.thunderid-button--secondary:active:not(:disabled) {
3546
3329
  transform: scale(0.98);
3547
3330
  }
3548
3331
 
3549
- .thunder-button--solid.thunder-button--danger {
3332
+ .thunderid-button--solid.thunderid-button--danger {
3550
3333
  background-color: var(--thunder-color-error-main);
3551
3334
  color: #ffffff;
3552
3335
  border-color: var(--thunder-color-error-main);
3553
3336
  }
3554
- .thunder-button--solid.thunder-button--danger:hover:not(:disabled) {
3337
+ .thunderid-button--solid.thunderid-button--danger:hover:not(:disabled) {
3555
3338
  filter: brightness(0.92);
3556
3339
  }
3557
- .thunder-button--solid.thunder-button--danger:active:not(:disabled) {
3340
+ .thunderid-button--solid.thunderid-button--danger:active:not(:disabled) {
3558
3341
  transform: scale(0.98);
3559
3342
  }
3560
3343
 
3561
3344
  /* -- Outline variants -- */
3562
3345
 
3563
- .thunder-button--outline.thunder-button--primary {
3346
+ .thunderid-button--outline.thunderid-button--primary {
3564
3347
  background-color: transparent;
3565
3348
  color: var(--thunder-color-primary-main);
3566
3349
  border-color: var(--thunder-color-primary-main);
3567
3350
  }
3568
- .thunder-button--outline.thunder-button--primary:hover:not(:disabled) {
3351
+ .thunderid-button--outline.thunderid-button--primary:hover:not(:disabled) {
3569
3352
  background-color: var(--thunder-color-primary-light);
3570
3353
  }
3571
- .thunder-button--outline.thunder-button--primary:active:not(:disabled) {
3354
+ .thunderid-button--outline.thunderid-button--primary:active:not(:disabled) {
3572
3355
  transform: scale(0.98);
3573
3356
  }
3574
3357
 
3575
- .thunder-button--outline.thunder-button--secondary {
3358
+ .thunderid-button--outline.thunderid-button--secondary {
3576
3359
  background-color: transparent;
3577
3360
  color: var(--thunder-color-secondary-main);
3578
3361
  border-color: var(--thunder-color-border);
3579
3362
  }
3580
- .thunder-button--outline.thunder-button--secondary:hover:not(:disabled) {
3363
+ .thunderid-button--outline.thunderid-button--secondary:hover:not(:disabled) {
3581
3364
  background-color: var(--thunder-color-secondary-light);
3582
3365
  border-color: var(--thunder-color-secondary-main);
3583
3366
  }
3584
- .thunder-button--outline.thunder-button--secondary:active:not(:disabled) {
3367
+ .thunderid-button--outline.thunderid-button--secondary:active:not(:disabled) {
3585
3368
  transform: scale(0.98);
3586
3369
  }
3587
3370
 
3588
- .thunder-button--outline.thunder-button--danger {
3371
+ .thunderid-button--outline.thunderid-button--danger {
3589
3372
  background-color: transparent;
3590
3373
  color: var(--thunder-color-error-main);
3591
3374
  border-color: var(--thunder-color-error-main);
3592
3375
  }
3593
- .thunder-button--outline.thunder-button--danger:hover:not(:disabled) {
3376
+ .thunderid-button--outline.thunderid-button--danger:hover:not(:disabled) {
3594
3377
  background-color: var(--thunder-color-error-light);
3595
3378
  }
3596
- .thunder-button--outline.thunder-button--danger:active:not(:disabled) {
3379
+ .thunderid-button--outline.thunderid-button--danger:active:not(:disabled) {
3597
3380
  transform: scale(0.98);
3598
3381
  }
3599
3382
 
3600
3383
  /* -- Ghost variants -- */
3601
3384
 
3602
- .thunder-button--ghost.thunder-button--primary {
3385
+ .thunderid-button--ghost.thunderid-button--primary {
3603
3386
  background-color: transparent;
3604
3387
  color: var(--thunder-color-primary-main);
3605
3388
  border-color: transparent;
3606
3389
  }
3607
- .thunder-button--ghost.thunder-button--primary:hover:not(:disabled) {
3390
+ .thunderid-button--ghost.thunderid-button--primary:hover:not(:disabled) {
3608
3391
  background-color: var(--thunder-color-primary-light);
3609
3392
  border-color: transparent;
3610
3393
  }
3611
3394
 
3612
- .thunder-button--ghost.thunder-button--secondary {
3395
+ .thunderid-button--ghost.thunderid-button--secondary {
3613
3396
  background-color: transparent;
3614
3397
  color: var(--thunder-color-secondary-main);
3615
3398
  border-color: transparent;
3616
3399
  }
3617
- .thunder-button--ghost.thunder-button--secondary:hover:not(:disabled) {
3400
+ .thunderid-button--ghost.thunderid-button--secondary:hover:not(:disabled) {
3618
3401
  background-color: var(--thunder-color-action-hover);
3619
3402
  border-color: transparent;
3620
3403
  }
3621
3404
 
3622
- .thunder-button--ghost.thunder-button--danger {
3405
+ .thunderid-button--ghost.thunderid-button--danger {
3623
3406
  background-color: transparent;
3624
3407
  color: var(--thunder-color-error-main);
3625
3408
  border-color: transparent;
3626
3409
  }
3627
- .thunder-button--ghost.thunder-button--danger:hover:not(:disabled) {
3410
+ .thunderid-button--ghost.thunderid-button--danger:hover:not(:disabled) {
3628
3411
  background-color: var(--thunder-color-error-light);
3629
3412
  border-color: transparent;
3630
3413
  }
3631
3414
 
3632
3415
  /* -- Text variants -- */
3633
3416
 
3634
- .thunder-button--text {
3417
+ .thunderid-button--text {
3635
3418
  border-color: transparent;
3636
3419
  background-color: transparent;
3637
3420
  padding-left: calc(var(--thunder-spacing-unit) * 0.25);
3638
3421
  padding-right: calc(var(--thunder-spacing-unit) * 0.25);
3639
3422
  }
3640
3423
 
3641
- .thunder-button--text.thunder-button--primary {
3424
+ .thunderid-button--text.thunderid-button--primary {
3642
3425
  color: var(--thunder-color-primary-main);
3643
3426
  }
3644
- .thunder-button--text.thunder-button--primary:hover:not(:disabled) {
3427
+ .thunderid-button--text.thunderid-button--primary:hover:not(:disabled) {
3645
3428
  color: var(--thunder-color-primary-dark);
3646
3429
  text-decoration: underline;
3647
3430
  text-underline-offset: 2px;
3648
3431
  }
3649
3432
 
3650
- .thunder-button--text.thunder-button--secondary {
3433
+ .thunderid-button--text.thunderid-button--secondary {
3651
3434
  color: var(--thunder-color-secondary-main);
3652
3435
  }
3653
- .thunder-button--text.thunder-button--secondary:hover:not(:disabled) {
3436
+ .thunderid-button--text.thunderid-button--secondary:hover:not(:disabled) {
3654
3437
  color: var(--thunder-color-text-primary);
3655
3438
  text-decoration: underline;
3656
3439
  text-underline-offset: 2px;
3657
3440
  }
3658
3441
 
3659
- .thunder-button--text.thunder-button--danger {
3442
+ .thunderid-button--text.thunderid-button--danger {
3660
3443
  color: var(--thunder-color-error-main);
3661
3444
  }
3662
- .thunder-button--text.thunder-button--danger:hover:not(:disabled) {
3445
+ .thunderid-button--text.thunderid-button--danger:hover:not(:disabled) {
3663
3446
  text-decoration: underline;
3664
3447
  text-underline-offset: 2px;
3665
3448
  }
3666
3449
 
3667
3450
  /* -- Inner elements -- */
3668
3451
 
3669
- .thunder-button__start-icon,
3670
- .thunder-button__end-icon {
3452
+ .thunderid-button__start-icon,
3453
+ .thunderid-button__end-icon {
3671
3454
  display: inline-flex;
3672
3455
  align-items: center;
3673
3456
  justify-content: center;
3674
3457
  flex-shrink: 0;
3675
3458
  line-height: 0;
3676
3459
  }
3677
- .thunder-button--small .thunder-button__start-icon svg,
3678
- .thunder-button--small .thunder-button__end-icon svg {
3460
+ .thunderid-button--small .thunderid-button__start-icon svg,
3461
+ .thunderid-button--small .thunderid-button__end-icon svg {
3679
3462
  width: 14px;
3680
3463
  height: 14px;
3681
3464
  }
3682
3465
 
3683
- .thunder-button__content {
3466
+ .thunderid-button__content {
3684
3467
  display: inline-flex;
3685
3468
  align-items: center;
3686
3469
  }
3687
3470
 
3688
- .thunder-button__spinner {
3471
+ .thunderid-button__spinner {
3689
3472
  display: inline-block;
3690
3473
  width: 1em;
3691
3474
  height: 1em;
@@ -3720,7 +3503,7 @@ var Button_css_default = BUTTON_CSS;
3720
3503
  /**
3721
3504
  * Styles for the Card primitive component.
3722
3505
  *
3723
- * BEM block: `.thunder-card`
3506
+ * BEM block: `.thunderid-card`
3724
3507
  *
3725
3508
  * Modifiers:
3726
3509
  * --elevated – medium drop shadow
@@ -3732,7 +3515,7 @@ const CARD_CSS = `
3732
3515
  Card
3733
3516
  ============================================================ */
3734
3517
 
3735
- .thunder-card {
3518
+ .thunderid-card {
3736
3519
  background-color: var(--thunder-color-background-surface);
3737
3520
  border-radius: var(--thunder-card-borderRadius);
3738
3521
  padding: var(--thunder-card-padding);
@@ -3740,15 +3523,15 @@ const CARD_CSS = `
3740
3523
  transition: box-shadow var(--thunder-transition-normal);
3741
3524
  }
3742
3525
 
3743
- .thunder-card--elevated {
3526
+ .thunderid-card--elevated {
3744
3527
  box-shadow: var(--thunder-card-shadow);
3745
3528
  }
3746
3529
 
3747
- .thunder-card--outlined {
3530
+ .thunderid-card--outlined {
3748
3531
  border: 1px solid var(--thunder-card-borderColor);
3749
3532
  }
3750
3533
 
3751
- /* .thunder-card--flat: no shadow or border */
3534
+ /* .thunderid-card--flat: no shadow or border */
3752
3535
  `;
3753
3536
  var Card_css_default = CARD_CSS;
3754
3537
 
@@ -3774,7 +3557,7 @@ var Card_css_default = CARD_CSS;
3774
3557
  /**
3775
3558
  * Styles for the Checkbox primitive component.
3776
3559
  *
3777
- * BEM block: `.thunder-checkbox`
3560
+ * BEM block: `.thunderid-checkbox`
3778
3561
  *
3779
3562
  * Modifiers:
3780
3563
  * --error – shows validation error state
@@ -3787,14 +3570,14 @@ const CHECKBOX_CSS = `
3787
3570
  Checkbox
3788
3571
  ============================================================ */
3789
3572
 
3790
- .thunder-checkbox {
3573
+ .thunderid-checkbox {
3791
3574
  display: flex;
3792
3575
  flex-direction: column;
3793
3576
  gap: calc(var(--thunder-spacing-unit) * 0.5);
3794
3577
  font-family: var(--thunder-typography-fontFamily);
3795
3578
  }
3796
3579
 
3797
- .thunder-checkbox__wrapper {
3580
+ .thunderid-checkbox__wrapper {
3798
3581
  display: inline-flex;
3799
3582
  align-items: center;
3800
3583
  gap: calc(var(--thunder-spacing-unit) * 0.75);
@@ -3802,7 +3585,7 @@ const CHECKBOX_CSS = `
3802
3585
  user-select: none;
3803
3586
  }
3804
3587
 
3805
- .thunder-checkbox__input {
3588
+ .thunderid-checkbox__input {
3806
3589
  width: var(--thunder-checkbox-size);
3807
3590
  height: var(--thunder-checkbox-size);
3808
3591
  cursor: pointer;
@@ -3810,22 +3593,22 @@ const CHECKBOX_CSS = `
3810
3593
  flex-shrink: 0;
3811
3594
  border-radius: var(--thunder-border-radius-xs);
3812
3595
  }
3813
- .thunder-checkbox__input:focus-visible {
3596
+ .thunderid-checkbox__input:focus-visible {
3814
3597
  outline: none;
3815
3598
  box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
3816
3599
  }
3817
- .thunder-checkbox__input:disabled {
3600
+ .thunderid-checkbox__input:disabled {
3818
3601
  cursor: not-allowed;
3819
3602
  opacity: 0.5;
3820
3603
  }
3821
3604
 
3822
- .thunder-checkbox__label {
3605
+ .thunderid-checkbox__label {
3823
3606
  font-size: var(--thunder-typography-fontSize-md);
3824
3607
  color: var(--thunder-color-text-primary);
3825
3608
  line-height: var(--thunder-typography-lineHeight-normal);
3826
3609
  }
3827
3610
 
3828
- .thunder-checkbox__error {
3611
+ .thunderid-checkbox__error {
3829
3612
  font-size: var(--thunder-typography-fontSize-xs);
3830
3613
  color: var(--thunder-color-error-contrastText);
3831
3614
  line-height: var(--thunder-typography-lineHeight-normal);
@@ -3855,7 +3638,7 @@ var Checkbox_css_default = CHECKBOX_CSS;
3855
3638
  /**
3856
3639
  * Styles for the DatePicker primitive component.
3857
3640
  *
3858
- * BEM block: `.thunder-date-picker`
3641
+ * BEM block: `.thunderid-date-picker`
3859
3642
  *
3860
3643
  * Modifiers:
3861
3644
  * --error – shows validation error state
@@ -3868,7 +3651,7 @@ const DATE_PICKER_CSS = `
3868
3651
  DatePicker
3869
3652
  ============================================================ */
3870
3653
 
3871
- .thunder-date-picker {
3654
+ .thunderid-date-picker {
3872
3655
  display: flex;
3873
3656
  flex-direction: column;
3874
3657
  gap: calc(var(--thunder-spacing-unit) * 0.5);
@@ -3877,7 +3660,7 @@ const DATE_PICKER_CSS = `
3877
3660
  box-sizing: border-box;
3878
3661
  }
3879
3662
 
3880
- .thunder-date-picker__label {
3663
+ .thunderid-date-picker__label {
3881
3664
  font-size: var(--thunder-typography-fontSize-sm);
3882
3665
  font-weight: var(--thunder-typography-fontWeight-medium);
3883
3666
  color: var(--thunder-color-text-primary);
@@ -3885,12 +3668,12 @@ const DATE_PICKER_CSS = `
3885
3668
  line-height: var(--thunder-typography-lineHeight-normal);
3886
3669
  }
3887
3670
 
3888
- .thunder-date-picker__required {
3671
+ .thunderid-date-picker__required {
3889
3672
  color: var(--thunder-color-error-main);
3890
3673
  margin-left: 2px;
3891
3674
  }
3892
3675
 
3893
- .thunder-date-picker__input {
3676
+ .thunderid-date-picker__input {
3894
3677
  width: 100%;
3895
3678
  height: var(--thunder-input-height);
3896
3679
  padding: 0 var(--thunder-input-paddingX);
@@ -3907,23 +3690,23 @@ const DATE_PICKER_CSS = `
3907
3690
  outline: none;
3908
3691
  cursor: pointer;
3909
3692
  }
3910
- .thunder-date-picker__input:focus {
3693
+ .thunderid-date-picker__input:focus {
3911
3694
  border-color: var(--thunder-input-focusBorderColor);
3912
3695
  box-shadow: var(--thunder-input-focusRing);
3913
3696
  }
3914
- .thunder-date-picker--error .thunder-date-picker__input {
3697
+ .thunderid-date-picker--error .thunderid-date-picker__input {
3915
3698
  border-color: var(--thunder-color-error-main);
3916
3699
  }
3917
- .thunder-date-picker--error .thunder-date-picker__input:focus {
3700
+ .thunderid-date-picker--error .thunderid-date-picker__input:focus {
3918
3701
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
3919
3702
  }
3920
- .thunder-date-picker__input:disabled {
3703
+ .thunderid-date-picker__input:disabled {
3921
3704
  background-color: var(--thunder-color-background-disabled);
3922
3705
  color: var(--thunder-color-action-disabled);
3923
3706
  cursor: not-allowed;
3924
3707
  }
3925
3708
 
3926
- .thunder-date-picker__error {
3709
+ .thunderid-date-picker__error {
3927
3710
  font-size: var(--thunder-typography-fontSize-xs);
3928
3711
  color: var(--thunder-color-error-contrastText);
3929
3712
  line-height: var(--thunder-typography-lineHeight-normal);
@@ -3953,7 +3736,7 @@ var DatePicker_css_default = DATE_PICKER_CSS;
3953
3736
  /**
3954
3737
  * Styles for the Divider primitive component.
3955
3738
  *
3956
- * BEM block: `.thunder-divider`
3739
+ * BEM block: `.thunderid-divider`
3957
3740
  *
3958
3741
  * Modifiers:
3959
3742
  * --horizontal – full-width horizontal rule
@@ -3968,18 +3751,18 @@ const DIVIDER_CSS = `
3968
3751
  Divider
3969
3752
  ============================================================ */
3970
3753
 
3971
- .thunder-divider {
3754
+ .thunderid-divider {
3972
3755
  box-sizing: border-box;
3973
3756
  }
3974
3757
 
3975
- .thunder-divider--horizontal {
3758
+ .thunderid-divider--horizontal {
3976
3759
  width: 100%;
3977
3760
  border: none;
3978
3761
  border-top: 1px solid var(--thunder-color-border);
3979
3762
  margin: calc(var(--thunder-spacing-unit) * 1) 0;
3980
3763
  }
3981
3764
 
3982
- .thunder-divider--vertical {
3765
+ .thunderid-divider--vertical {
3983
3766
  display: inline-block;
3984
3767
  width: 1px;
3985
3768
  height: 100%;
@@ -3990,7 +3773,7 @@ const DIVIDER_CSS = `
3990
3773
  align-self: stretch;
3991
3774
  }
3992
3775
 
3993
- .thunder-divider--with-content {
3776
+ .thunderid-divider--with-content {
3994
3777
  display: flex;
3995
3778
  align-items: center;
3996
3779
  gap: calc(var(--thunder-spacing-unit) * 1);
@@ -3998,13 +3781,13 @@ const DIVIDER_CSS = `
3998
3781
  margin: calc(var(--thunder-spacing-unit) * 1) 0;
3999
3782
  }
4000
3783
 
4001
- .thunder-divider__line {
3784
+ .thunderid-divider__line {
4002
3785
  flex: 1;
4003
3786
  height: 1px;
4004
3787
  background-color: var(--thunder-color-border);
4005
3788
  }
4006
3789
 
4007
- .thunder-divider__content {
3790
+ .thunderid-divider__content {
4008
3791
  flex-shrink: 0;
4009
3792
  font-size: var(--thunder-typography-fontSize-xs);
4010
3793
  color: var(--thunder-color-text-secondary);
@@ -4039,7 +3822,7 @@ var Divider_css_default = DIVIDER_CSS;
4039
3822
  /**
4040
3823
  * Styles for the Logo primitive component.
4041
3824
  *
4042
- * BEM block: `.thunder-logo`
3825
+ * BEM block: `.thunderid-logo`
4043
3826
  *
4044
3827
  * Elements:
4045
3828
  * __image
@@ -4049,18 +3832,18 @@ const LOGO_CSS = `
4049
3832
  Logo
4050
3833
  ============================================================ */
4051
3834
 
4052
- .thunder-logo {
3835
+ .thunderid-logo {
4053
3836
  display: inline-flex;
4054
3837
  align-items: center;
4055
3838
  text-decoration: none;
4056
3839
  transition: opacity var(--thunder-transition-fast);
4057
3840
  }
4058
3841
 
4059
- .thunder-logo:hover {
3842
+ .thunderid-logo:hover {
4060
3843
  opacity: 0.85;
4061
3844
  }
4062
3845
 
4063
- .thunder-logo__image {
3846
+ .thunderid-logo__image {
4064
3847
  display: block;
4065
3848
  max-height: 100%;
4066
3849
  width: auto;
@@ -4092,7 +3875,7 @@ var Logo_css_default = LOGO_CSS;
4092
3875
  /**
4093
3876
  * Styles for the OtpField primitive component.
4094
3877
  *
4095
- * BEM block: `.thunder-otp-field`
3878
+ * BEM block: `.thunderid-otp-field`
4096
3879
  *
4097
3880
  * Elements:
4098
3881
  * __label | __required | __inputs | __digit | __error
@@ -4102,14 +3885,14 @@ const OTP_FIELD_CSS = `
4102
3885
  OtpField
4103
3886
  ============================================================ */
4104
3887
 
4105
- .thunder-otp-field {
3888
+ .thunderid-otp-field {
4106
3889
  display: flex;
4107
3890
  flex-direction: column;
4108
3891
  gap: calc(var(--thunder-spacing-unit) * 0.75);
4109
3892
  font-family: var(--thunder-typography-fontFamily);
4110
3893
  }
4111
3894
 
4112
- .thunder-otp-field__label {
3895
+ .thunderid-otp-field__label {
4113
3896
  font-size: var(--thunder-typography-fontSize-sm);
4114
3897
  font-weight: var(--thunder-typography-fontWeight-medium);
4115
3898
  color: var(--thunder-color-text-primary);
@@ -4117,17 +3900,17 @@ const OTP_FIELD_CSS = `
4117
3900
  line-height: var(--thunder-typography-lineHeight-normal);
4118
3901
  }
4119
3902
 
4120
- .thunder-otp-field__required {
3903
+ .thunderid-otp-field__required {
4121
3904
  color: var(--thunder-color-error-main);
4122
3905
  margin-left: 2px;
4123
3906
  }
4124
3907
 
4125
- .thunder-otp-field__inputs {
3908
+ .thunderid-otp-field__inputs {
4126
3909
  display: flex;
4127
3910
  gap: calc(var(--thunder-spacing-unit) * 0.75);
4128
3911
  }
4129
3912
 
4130
- .thunder-otp-field__digit {
3913
+ .thunderid-otp-field__digit {
4131
3914
  width: var(--thunder-input-height);
4132
3915
  height: var(--thunder-input-height);
4133
3916
  text-align: center;
@@ -4144,17 +3927,17 @@ const OTP_FIELD_CSS = `
4144
3927
  border-color var(--thunder-transition-fast),
4145
3928
  box-shadow var(--thunder-transition-fast);
4146
3929
  }
4147
- .thunder-otp-field__digit:focus {
3930
+ .thunderid-otp-field__digit:focus {
4148
3931
  border-color: var(--thunder-input-focusBorderColor);
4149
3932
  box-shadow: var(--thunder-input-focusRing);
4150
3933
  }
4151
- .thunder-otp-field__digit:disabled {
3934
+ .thunderid-otp-field__digit:disabled {
4152
3935
  background-color: var(--thunder-color-background-disabled);
4153
3936
  color: var(--thunder-color-action-disabled);
4154
3937
  cursor: not-allowed;
4155
3938
  }
4156
3939
 
4157
- .thunder-otp-field__error {
3940
+ .thunderid-otp-field__error {
4158
3941
  font-size: var(--thunder-typography-fontSize-xs);
4159
3942
  color: var(--thunder-color-error-contrastText);
4160
3943
  line-height: var(--thunder-typography-lineHeight-normal);
@@ -4184,7 +3967,7 @@ var OtpField_css_default = OTP_FIELD_CSS;
4184
3967
  /**
4185
3968
  * Styles for the PasswordField primitive component.
4186
3969
  *
4187
- * BEM block: `.thunder-password-field`
3970
+ * BEM block: `.thunderid-password-field`
4188
3971
  *
4189
3972
  * Modifiers:
4190
3973
  * --error – shows validation error state
@@ -4197,7 +3980,7 @@ const PASSWORD_FIELD_CSS = `
4197
3980
  PasswordField
4198
3981
  ============================================================ */
4199
3982
 
4200
- .thunder-password-field {
3983
+ .thunderid-password-field {
4201
3984
  display: flex;
4202
3985
  flex-direction: column;
4203
3986
  gap: calc(var(--thunder-spacing-unit) * 0.5);
@@ -4206,7 +3989,7 @@ const PASSWORD_FIELD_CSS = `
4206
3989
  box-sizing: border-box;
4207
3990
  }
4208
3991
 
4209
- .thunder-password-field__label {
3992
+ .thunderid-password-field__label {
4210
3993
  font-size: var(--thunder-typography-fontSize-sm);
4211
3994
  font-weight: var(--thunder-typography-fontWeight-medium);
4212
3995
  color: var(--thunder-color-text-primary);
@@ -4214,12 +3997,12 @@ const PASSWORD_FIELD_CSS = `
4214
3997
  line-height: var(--thunder-typography-lineHeight-normal);
4215
3998
  }
4216
3999
 
4217
- .thunder-password-field__required {
4000
+ .thunderid-password-field__required {
4218
4001
  color: var(--thunder-color-error-main);
4219
4002
  margin-left: 2px;
4220
4003
  }
4221
4004
 
4222
- .thunder-password-field__wrapper {
4005
+ .thunderid-password-field__wrapper {
4223
4006
  display: flex;
4224
4007
  align-items: center;
4225
4008
  height: var(--thunder-input-height);
@@ -4232,18 +4015,18 @@ const PASSWORD_FIELD_CSS = `
4232
4015
  overflow: hidden;
4233
4016
  box-sizing: border-box;
4234
4017
  }
4235
- .thunder-password-field__wrapper:focus-within {
4018
+ .thunderid-password-field__wrapper:focus-within {
4236
4019
  border-color: var(--thunder-input-focusBorderColor);
4237
4020
  box-shadow: var(--thunder-input-focusRing);
4238
4021
  }
4239
- .thunder-password-field--error .thunder-password-field__wrapper {
4022
+ .thunderid-password-field--error .thunderid-password-field__wrapper {
4240
4023
  border-color: var(--thunder-color-error-main);
4241
4024
  }
4242
- .thunder-password-field--error .thunder-password-field__wrapper:focus-within {
4025
+ .thunderid-password-field--error .thunderid-password-field__wrapper:focus-within {
4243
4026
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
4244
4027
  }
4245
4028
 
4246
- .thunder-password-field__input {
4029
+ .thunderid-password-field__input {
4247
4030
  flex: 1;
4248
4031
  padding: 0 var(--thunder-input-paddingX);
4249
4032
  border: none;
@@ -4257,14 +4040,14 @@ const PASSWORD_FIELD_CSS = `
4257
4040
  box-sizing: border-box;
4258
4041
  min-width: 0;
4259
4042
  }
4260
- .thunder-password-field__input::placeholder {
4043
+ .thunderid-password-field__input::placeholder {
4261
4044
  color: var(--thunder-color-text-secondary);
4262
4045
  }
4263
- .thunder-password-field__input:disabled {
4046
+ .thunderid-password-field__input:disabled {
4264
4047
  cursor: not-allowed;
4265
4048
  }
4266
4049
 
4267
- .thunder-password-field__toggle {
4050
+ .thunderid-password-field__toggle {
4268
4051
  background: none;
4269
4052
  border: none;
4270
4053
  cursor: pointer;
@@ -4278,11 +4061,11 @@ const PASSWORD_FIELD_CSS = `
4278
4061
  height: 100%;
4279
4062
  transition: color var(--thunder-transition-fast);
4280
4063
  }
4281
- .thunder-password-field__toggle:hover {
4064
+ .thunderid-password-field__toggle:hover {
4282
4065
  color: var(--thunder-color-text-primary);
4283
4066
  }
4284
4067
 
4285
- .thunder-password-field__error {
4068
+ .thunderid-password-field__error {
4286
4069
  font-size: var(--thunder-typography-fontSize-xs);
4287
4070
  color: var(--thunder-color-error-contrastText);
4288
4071
  line-height: var(--thunder-typography-lineHeight-normal);
@@ -4312,7 +4095,7 @@ var PasswordField_css_default = PASSWORD_FIELD_CSS;
4312
4095
  /**
4313
4096
  * Styles for the Select primitive component.
4314
4097
  *
4315
- * BEM block: `.thunder-select`
4098
+ * BEM block: `.thunderid-select`
4316
4099
  *
4317
4100
  * Modifiers:
4318
4101
  * --error – shows validation error state
@@ -4325,7 +4108,7 @@ const SELECT_CSS = `
4325
4108
  Select
4326
4109
  ============================================================ */
4327
4110
 
4328
- .thunder-select {
4111
+ .thunderid-select {
4329
4112
  display: flex;
4330
4113
  flex-direction: column;
4331
4114
  gap: calc(var(--thunder-spacing-unit) * 0.5);
@@ -4334,7 +4117,7 @@ const SELECT_CSS = `
4334
4117
  box-sizing: border-box;
4335
4118
  }
4336
4119
 
4337
- .thunder-select__label {
4120
+ .thunderid-select__label {
4338
4121
  font-size: var(--thunder-typography-fontSize-sm);
4339
4122
  font-weight: var(--thunder-typography-fontWeight-medium);
4340
4123
  color: var(--thunder-color-text-primary);
@@ -4342,12 +4125,12 @@ const SELECT_CSS = `
4342
4125
  line-height: var(--thunder-typography-lineHeight-normal);
4343
4126
  }
4344
4127
 
4345
- .thunder-select__required {
4128
+ .thunderid-select__required {
4346
4129
  color: var(--thunder-color-error-main);
4347
4130
  margin-left: 2px;
4348
4131
  }
4349
4132
 
4350
- .thunder-select__input {
4133
+ .thunderid-select__input {
4351
4134
  width: 100%;
4352
4135
  height: var(--thunder-input-height);
4353
4136
  padding: 0 calc(var(--thunder-spacing-unit) * 4) 0 var(--thunder-input-paddingX);
@@ -4370,30 +4153,30 @@ const SELECT_CSS = `
4370
4153
  outline: none;
4371
4154
  line-height: var(--thunder-typography-lineHeight-normal);
4372
4155
  }
4373
- .thunder-select__input:focus {
4156
+ .thunderid-select__input:focus {
4374
4157
  border-color: var(--thunder-input-focusBorderColor);
4375
4158
  box-shadow: var(--thunder-input-focusRing);
4376
4159
  }
4377
- .thunder-select__input:disabled {
4160
+ .thunderid-select__input:disabled {
4378
4161
  background-color: var(--thunder-color-background-disabled);
4379
4162
  color: var(--thunder-color-action-disabled);
4380
4163
  cursor: not-allowed;
4381
4164
  }
4382
4165
 
4383
- .thunder-select--error .thunder-select__input {
4166
+ .thunderid-select--error .thunderid-select__input {
4384
4167
  border-color: var(--thunder-color-error-main);
4385
4168
  }
4386
- .thunder-select--error .thunder-select__input:focus {
4169
+ .thunderid-select--error .thunderid-select__input:focus {
4387
4170
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
4388
4171
  }
4389
4172
 
4390
- .thunder-select__error {
4173
+ .thunderid-select__error {
4391
4174
  font-size: var(--thunder-typography-fontSize-xs);
4392
4175
  color: var(--thunder-color-error-contrastText);
4393
4176
  line-height: var(--thunder-typography-lineHeight-normal);
4394
4177
  }
4395
4178
 
4396
- .thunder-select__helper {
4179
+ .thunderid-select__helper {
4397
4180
  font-size: var(--thunder-typography-fontSize-xs);
4398
4181
  color: var(--thunder-color-text-secondary);
4399
4182
  line-height: var(--thunder-typography-lineHeight-normal);
@@ -4423,7 +4206,7 @@ var Select_css_default = SELECT_CSS;
4423
4206
  /**
4424
4207
  * Styles for the Spinner primitive component.
4425
4208
  *
4426
- * BEM block: `.thunder-spinner`
4209
+ * BEM block: `.thunderid-spinner`
4427
4210
  *
4428
4211
  * Modifiers:
4429
4212
  * Size: --small | --medium | --large
@@ -4439,35 +4222,35 @@ const SPINNER_CSS = `
4439
4222
  Spinner
4440
4223
  ============================================================ */
4441
4224
 
4442
- .thunder-spinner {
4225
+ .thunderid-spinner {
4443
4226
  display: inline-flex;
4444
4227
  align-items: center;
4445
4228
  justify-content: center;
4446
4229
  color: var(--thunder-color-primary-main);
4447
4230
  }
4448
4231
 
4449
- .thunder-spinner--small {
4232
+ .thunderid-spinner--small {
4450
4233
  width: calc(var(--thunder-spacing-unit) * 2);
4451
4234
  height: calc(var(--thunder-spacing-unit) * 2);
4452
4235
  }
4453
4236
 
4454
- .thunder-spinner--medium {
4237
+ .thunderid-spinner--medium {
4455
4238
  width: calc(var(--thunder-spacing-unit) * 2.5);
4456
4239
  height: calc(var(--thunder-spacing-unit) * 2.5);
4457
4240
  }
4458
4241
 
4459
- .thunder-spinner--large {
4242
+ .thunderid-spinner--large {
4460
4243
  width: calc(var(--thunder-spacing-unit) * 3.5);
4461
4244
  height: calc(var(--thunder-spacing-unit) * 3.5);
4462
4245
  }
4463
4246
 
4464
- .thunder-spinner__svg {
4247
+ .thunderid-spinner__svg {
4465
4248
  width: 100%;
4466
4249
  height: 100%;
4467
4250
  animation: thunder-spin 1.4s linear infinite;
4468
4251
  }
4469
4252
 
4470
- .thunder-spinner__circle {
4253
+ .thunderid-spinner__circle {
4471
4254
  stroke-dasharray: 80, 200;
4472
4255
  stroke-dashoffset: 0;
4473
4256
  animation: thunder-spinner-dash 1.4s ease-in-out infinite;
@@ -4497,7 +4280,7 @@ var Spinner_css_default = SPINNER_CSS;
4497
4280
  /**
4498
4281
  * Styles for the TextField primitive component.
4499
4282
  *
4500
- * BEM block: `.thunder-text-field`
4283
+ * BEM block: `.thunderid-text-field`
4501
4284
  *
4502
4285
  * Modifiers:
4503
4286
  * --error – shows validation error state
@@ -4510,7 +4293,7 @@ const TEXT_FIELD_CSS = `
4510
4293
  TextField
4511
4294
  ============================================================ */
4512
4295
 
4513
- .thunder-text-field {
4296
+ .thunderid-text-field {
4514
4297
  display: flex;
4515
4298
  flex-direction: column;
4516
4299
  gap: calc(var(--thunder-spacing-unit) * 0.5);
@@ -4519,7 +4302,7 @@ const TEXT_FIELD_CSS = `
4519
4302
  box-sizing: border-box;
4520
4303
  }
4521
4304
 
4522
- .thunder-text-field__label {
4305
+ .thunderid-text-field__label {
4523
4306
  font-size: var(--thunder-typography-fontSize-sm);
4524
4307
  font-weight: var(--thunder-typography-fontWeight-medium);
4525
4308
  color: var(--thunder-color-text-primary);
@@ -4527,12 +4310,12 @@ const TEXT_FIELD_CSS = `
4527
4310
  line-height: var(--thunder-typography-lineHeight-normal);
4528
4311
  }
4529
4312
 
4530
- .thunder-text-field__required {
4313
+ .thunderid-text-field__required {
4531
4314
  color: var(--thunder-color-error-main);
4532
4315
  margin-left: 2px;
4533
4316
  }
4534
4317
 
4535
- .thunder-text-field__input {
4318
+ .thunderid-text-field__input {
4536
4319
  width: 100%;
4537
4320
  height: var(--thunder-input-height);
4538
4321
  padding: 0 var(--thunder-input-paddingX);
@@ -4548,33 +4331,33 @@ const TEXT_FIELD_CSS = `
4548
4331
  box-shadow var(--thunder-transition-fast);
4549
4332
  outline: none;
4550
4333
  }
4551
- .thunder-text-field__input:focus {
4334
+ .thunderid-text-field__input:focus {
4552
4335
  border-color: var(--thunder-input-focusBorderColor);
4553
4336
  box-shadow: var(--thunder-input-focusRing);
4554
4337
  }
4555
- .thunder-text-field__input::placeholder {
4338
+ .thunderid-text-field__input::placeholder {
4556
4339
  color: var(--thunder-color-text-secondary);
4557
4340
  }
4558
- .thunder-text-field__input:disabled {
4341
+ .thunderid-text-field__input:disabled {
4559
4342
  background-color: var(--thunder-color-background-disabled);
4560
4343
  color: var(--thunder-color-action-disabled);
4561
4344
  cursor: not-allowed;
4562
4345
  }
4563
4346
 
4564
- .thunder-text-field--error .thunder-text-field__input {
4347
+ .thunderid-text-field--error .thunderid-text-field__input {
4565
4348
  border-color: var(--thunder-color-error-main);
4566
4349
  }
4567
- .thunder-text-field--error .thunder-text-field__input:focus {
4350
+ .thunderid-text-field--error .thunderid-text-field__input:focus {
4568
4351
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
4569
4352
  }
4570
4353
 
4571
- .thunder-text-field__error {
4354
+ .thunderid-text-field__error {
4572
4355
  font-size: var(--thunder-typography-fontSize-xs);
4573
4356
  color: var(--thunder-color-error-contrastText);
4574
4357
  line-height: var(--thunder-typography-lineHeight-normal);
4575
4358
  }
4576
4359
 
4577
- .thunder-text-field__helper {
4360
+ .thunderid-text-field__helper {
4578
4361
  font-size: var(--thunder-typography-fontSize-xs);
4579
4362
  color: var(--thunder-color-text-secondary);
4580
4363
  line-height: var(--thunder-typography-lineHeight-normal);
@@ -4604,7 +4387,7 @@ var TextField_css_default = TEXT_FIELD_CSS;
4604
4387
  /**
4605
4388
  * Styles for the Typography primitive component.
4606
4389
  *
4607
- * BEM block: `.thunder-typography`
4390
+ * BEM block: `.thunderid-typography`
4608
4391
  *
4609
4392
  * Modifiers (variant):
4610
4393
  * --h1 | --h2 | --h3 | --h4 | --h5 | --h6
@@ -4617,7 +4400,7 @@ const TYPOGRAPHY_CSS = `
4617
4400
  Typography
4618
4401
  ============================================================ */
4619
4402
 
4620
- .thunder-typography {
4403
+ .thunderid-typography {
4621
4404
  font-family: var(--thunder-typography-fontFamily);
4622
4405
  color: var(--thunder-color-text-primary);
4623
4406
  margin: 0;
@@ -4626,74 +4409,74 @@ const TYPOGRAPHY_CSS = `
4626
4409
  -moz-osx-font-smoothing: grayscale;
4627
4410
  }
4628
4411
 
4629
- .thunder-typography--h1 {
4412
+ .thunderid-typography--h1 {
4630
4413
  font-size: var(--thunder-typography-fontSize-3xl);
4631
4414
  font-weight: var(--thunder-typography-fontWeight-bold);
4632
4415
  line-height: var(--thunder-typography-lineHeight-tight);
4633
4416
  letter-spacing: var(--thunder-typography-letterSpacing-tight);
4634
4417
  }
4635
4418
 
4636
- .thunder-typography--h2 {
4419
+ .thunderid-typography--h2 {
4637
4420
  font-size: var(--thunder-typography-fontSize-2xl);
4638
4421
  font-weight: var(--thunder-typography-fontWeight-bold);
4639
4422
  line-height: var(--thunder-typography-lineHeight-tight);
4640
4423
  letter-spacing: var(--thunder-typography-letterSpacing-tight);
4641
4424
  }
4642
4425
 
4643
- .thunder-typography--h3 {
4426
+ .thunderid-typography--h3 {
4644
4427
  font-size: var(--thunder-typography-fontSize-xl);
4645
4428
  font-weight: var(--thunder-typography-fontWeight-semibold);
4646
4429
  line-height: var(--thunder-typography-lineHeight-tight);
4647
4430
  }
4648
4431
 
4649
- .thunder-typography--h4 {
4432
+ .thunderid-typography--h4 {
4650
4433
  font-size: var(--thunder-typography-fontSize-lg);
4651
4434
  font-weight: var(--thunder-typography-fontWeight-semibold);
4652
4435
  }
4653
4436
 
4654
- .thunder-typography--h5 {
4437
+ .thunderid-typography--h5 {
4655
4438
  font-size: var(--thunder-typography-fontSize-md);
4656
4439
  font-weight: var(--thunder-typography-fontWeight-semibold);
4657
4440
  }
4658
4441
 
4659
- .thunder-typography--h6 {
4442
+ .thunderid-typography--h6 {
4660
4443
  font-size: var(--thunder-typography-fontSize-sm);
4661
4444
  font-weight: var(--thunder-typography-fontWeight-semibold);
4662
4445
  text-transform: uppercase;
4663
4446
  letter-spacing: var(--thunder-typography-letterSpacing-wide);
4664
4447
  }
4665
4448
 
4666
- .thunder-typography--subtitle1 {
4449
+ .thunderid-typography--subtitle1 {
4667
4450
  font-size: var(--thunder-typography-fontSize-lg);
4668
4451
  font-weight: var(--thunder-typography-fontWeight-medium);
4669
4452
  }
4670
4453
 
4671
- .thunder-typography--subtitle2 {
4454
+ .thunderid-typography--subtitle2 {
4672
4455
  font-size: var(--thunder-typography-fontSize-md);
4673
4456
  font-weight: var(--thunder-typography-fontWeight-medium);
4674
4457
  color: var(--thunder-color-text-secondary);
4675
4458
  }
4676
4459
 
4677
- .thunder-typography--body1 {
4460
+ .thunderid-typography--body1 {
4678
4461
  font-size: var(--thunder-typography-fontSize-md);
4679
4462
  font-weight: var(--thunder-typography-fontWeight-normal);
4680
4463
  line-height: var(--thunder-typography-lineHeight-relaxed);
4681
4464
  }
4682
4465
 
4683
- .thunder-typography--body2 {
4466
+ .thunderid-typography--body2 {
4684
4467
  font-size: var(--thunder-typography-fontSize-sm);
4685
4468
  font-weight: var(--thunder-typography-fontWeight-normal);
4686
4469
  line-height: var(--thunder-typography-lineHeight-relaxed);
4687
4470
  color: var(--thunder-color-text-secondary);
4688
4471
  }
4689
4472
 
4690
- .thunder-typography--caption {
4473
+ .thunderid-typography--caption {
4691
4474
  font-size: var(--thunder-typography-fontSize-xs);
4692
4475
  font-weight: var(--thunder-typography-fontWeight-normal);
4693
4476
  color: var(--thunder-color-text-secondary);
4694
4477
  }
4695
4478
 
4696
- .thunder-typography--overline {
4479
+ .thunderid-typography--overline {
4697
4480
  font-size: var(--thunder-typography-fontSize-xs);
4698
4481
  font-weight: var(--thunder-typography-fontWeight-medium);
4699
4482
  text-transform: uppercase;
@@ -6489,7 +6272,7 @@ const Callback = (0, vue.defineComponent)({
6489
6272
  }
6490
6273
  },
6491
6274
  setup(props) {
6492
- const navigate$5 = (path) => {
6275
+ const navigate$4 = (path) => {
6493
6276
  if (props.onNavigate) props.onNavigate(path);
6494
6277
  else (0, __thunderid_browser.navigate)(path);
6495
6278
  };
@@ -6523,7 +6306,7 @@ const Callback = (0, vue.defineComponent)({
6523
6306
  const params$1 = new URLSearchParams();
6524
6307
  params$1.set("error", oauthError);
6525
6308
  if (errorDescription) params$1.set("error_description", errorDescription);
6526
- navigate$5(`/?${params$1.toString()}`);
6309
+ navigate$4(`/?${params$1.toString()}`);
6527
6310
  return;
6528
6311
  }
6529
6312
  throw new Error("Invalid OAuth state - possible CSRF attack");
@@ -6542,14 +6325,14 @@ const Callback = (0, vue.defineComponent)({
6542
6325
  const params$1 = new URLSearchParams();
6543
6326
  params$1.set("error", oauthError);
6544
6327
  if (errorDescription) params$1.set("error_description", errorDescription);
6545
- navigate$5(`${returnPath}?${params$1.toString()}`);
6328
+ navigate$4(`${returnPath}?${params$1.toString()}`);
6546
6329
  return;
6547
6330
  }
6548
6331
  if (!code) throw new Error("Missing OAuth authorization code");
6549
6332
  const params = new URLSearchParams();
6550
6333
  params.set("code", code);
6551
6334
  if (nonce) params.set("nonce", nonce);
6552
- navigate$5(`${returnPath}?${params.toString()}`);
6335
+ navigate$4(`${returnPath}?${params.toString()}`);
6553
6336
  } catch (err) {
6554
6337
  const errorMessage = err instanceof Error ? err.message : "OAuth callback processing failed";
6555
6338
  logger$4.error("OAuth callback error:", err);
@@ -6557,7 +6340,7 @@ const Callback = (0, vue.defineComponent)({
6557
6340
  const params = new URLSearchParams();
6558
6341
  params.set("error", "callback_error");
6559
6342
  params.set("error_description", errorMessage);
6560
- navigate$5(`${returnPath}?${params.toString()}`);
6343
+ navigate$4(`${returnPath}?${params.toString()}`);
6561
6344
  }
6562
6345
  });
6563
6346
  return () => null;
@@ -8893,7 +8676,7 @@ var SignIn_default$2 = SignIn$1;
8893
8676
  * SignIn — platform-aware sign-in component.
8894
8677
  *
8895
8678
  * Routes to the V1 (authenticator-based) flow by default or the V2
8896
- * (component-driven) flow when `platform` is set to `Platform.ThunderIDV2`.
8679
+ * (component-driven) flow when `platform` is set to `Platform.ThunderID`.
8897
8680
  */
8898
8681
  const SignIn = (0, vue.defineComponent)({
8899
8682
  name: "SignIn",
@@ -8915,7 +8698,7 @@ const SignIn = (0, vue.defineComponent)({
8915
8698
  setup(props, { slots, emit, attrs }) {
8916
8699
  const { platform } = useThunderID_default();
8917
8700
  return () => {
8918
- if (platform === __thunderid_browser.Platform.ThunderIDV2) return (0, vue.h)(SignIn_default$2, {
8701
+ if (platform === __thunderid_browser.Platform.ThunderID) return (0, vue.h)(SignIn_default$2, {
8919
8702
  ...attrs,
8920
8703
  class: props.className,
8921
8704
  onError: (err) => emit("error", err),
@@ -8950,7 +8733,7 @@ const BaseSignIn = (0, vue.defineComponent)({
8950
8733
  setup(_props, { attrs, slots }) {
8951
8734
  const { platform } = useThunderID_default();
8952
8735
  return () => {
8953
- if (platform === __thunderid_browser.Platform.ThunderIDV2) return (0, vue.h)(BaseSignIn_default$2, { ...attrs }, slots);
8736
+ if (platform === __thunderid_browser.Platform.ThunderID) return (0, vue.h)(BaseSignIn_default$2, { ...attrs }, slots);
8954
8737
  return (0, vue.h)(BaseSignIn_default$1, { ...attrs }, slots);
8955
8738
  };
8956
8739
  }
@@ -10317,7 +10100,7 @@ const SignUp = (0, vue.defineComponent)({
10317
10100
  setup(_props, { attrs, slots }) {
10318
10101
  const { platform } = useThunderID_default();
10319
10102
  return () => {
10320
- if (platform === __thunderid_browser.Platform.ThunderIDV2) return (0, vue.h)(SignUp_default$2, { ...attrs }, slots);
10103
+ if (platform === __thunderid_browser.Platform.ThunderID) return (0, vue.h)(SignUp_default$2, { ...attrs }, slots);
10321
10104
  return (0, vue.h)(SignUp_default$1, { ...attrs }, slots);
10322
10105
  };
10323
10106
  }
@@ -10343,7 +10126,7 @@ const BaseSignUp = (0, vue.defineComponent)({
10343
10126
  setup(_props, { attrs, slots }) {
10344
10127
  const { platform } = useThunderID_default();
10345
10128
  return () => {
10346
- if (platform === __thunderid_browser.Platform.ThunderIDV2) return (0, vue.h)(BaseSignUp_default$2, { ...attrs }, slots);
10129
+ if (platform === __thunderid_browser.Platform.ThunderID) return (0, vue.h)(BaseSignUp_default$2, { ...attrs }, slots);
10347
10130
  return (0, vue.h)(BaseSignUp_default$1, { ...attrs }, slots);
10348
10131
  };
10349
10132
  }
@@ -10931,8 +10714,7 @@ var BaseUserProfile_default = BaseUserProfile;
10931
10714
  //#region src/api/updateMeProfile.ts
10932
10715
  const updateMeProfile = async ({ fetcher, instanceId = 0,...requestConfig }) => {
10933
10716
  const defaultFetcher = async (url, config) => {
10934
- const client = __thunderid_browser.ThunderIDSPAClient.getInstance(instanceId);
10935
- const response = await client.httpRequest.bind(client)({
10717
+ const response = await __thunderid_browser.FetchHttpClient.getInstance(instanceId).request({
10936
10718
  data: config.body ? JSON.parse(config.body) : void 0,
10937
10719
  headers: config.headers,
10938
10720
  method: config.method || "PATCH",