@thunderid/javascript 0.3.6 → 0.3.8

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 (38) hide show
  1. package/dist/ThunderIDJavaScriptClient.d.ts +0 -5
  2. package/dist/ThunderIDJavaScriptClient.d.ts.map +1 -1
  3. package/dist/api/getOrganizationUnitChildren.d.ts +65 -22
  4. package/dist/api/getOrganizationUnitChildren.d.ts.map +1 -1
  5. package/dist/cjs/index.cjs +551 -1344
  6. package/dist/edge/index.js +552 -1336
  7. package/dist/errors/exception.d.ts +1 -3
  8. package/dist/errors/exception.d.ts.map +1 -1
  9. package/dist/index.d.ts +1 -18
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +552 -1336
  12. package/dist/models/client.d.ts +0 -25
  13. package/dist/models/client.d.ts.map +1 -1
  14. package/dist/models/config.d.ts +0 -15
  15. package/dist/models/config.d.ts.map +1 -1
  16. package/package.json +1 -1
  17. package/dist/api/createOrganization.d.ts +0 -130
  18. package/dist/api/createOrganization.d.ts.map +0 -1
  19. package/dist/api/getAllOrganizations.d.ts +0 -104
  20. package/dist/api/getAllOrganizations.d.ts.map +0 -1
  21. package/dist/api/getBrandingPreference.d.ts +0 -104
  22. package/dist/api/getBrandingPreference.d.ts.map +0 -1
  23. package/dist/api/getMeOrganizations.d.ts +0 -120
  24. package/dist/api/getMeOrganizations.d.ts.map +0 -1
  25. package/dist/api/getOrganization.d.ts +0 -110
  26. package/dist/api/getOrganization.d.ts.map +0 -1
  27. package/dist/api/updateOrganization.d.ts +0 -119
  28. package/dist/api/updateOrganization.d.ts.map +0 -1
  29. package/dist/models/branding-preference.d.ts +0 -249
  30. package/dist/models/branding-preference.d.ts.map +0 -1
  31. package/dist/models/organization-unit.d.ts +0 -103
  32. package/dist/models/organization-unit.d.ts.map +0 -1
  33. package/dist/models/organization.d.ts +0 -34
  34. package/dist/models/organization.d.ts.map +0 -1
  35. package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts +0 -40
  36. package/dist/utils/deriveOrganizationHandleFromBaseUrl.d.ts.map +0 -1
  37. package/dist/utils/transformBrandingPreferenceToTheme.d.ts +0 -49
  38. package/dist/utils/transformBrandingPreferenceToTheme.d.ts.map +0 -1
@@ -1,49 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import { BrandingPreference } from '../models/branding-preference';
19
- import { Theme } from '../theme/types';
20
- /**
21
- * Transforms branding preference response to Theme object
22
- *
23
- * @param brandingPreference - The branding preference response from getBrandingPreference
24
- * @param forceTheme - Optional parameter to force a specific theme ('light' or 'dark'),
25
- * if not provided, will use the activeTheme from branding preference
26
- * @returns Theme object that can be used with the theme system
27
- *
28
- * The function extracts the following from branding preference:
29
- * - Colors (primary, secondary, background, text, alerts, etc.)
30
- * - Border radius from buttons and inputs
31
- * - Images (logo and favicon with their URLs, titles, and alt text)
32
- * - Typography settings
33
- *
34
- * @example
35
- * ```typescript
36
- * const brandingPreference = await getBrandingPreference({ baseUrl: "..." });
37
- * const theme = transformBrandingPreferenceToTheme(brandingPreference);
38
- *
39
- * // Access image URLs via CSS variables
40
- * // Logo: var(--wso2-image-logo-url)
41
- * // Favicon: var(--wso2-image-favicon-url)
42
- *
43
- * // Force light theme regardless of branding preference activeTheme
44
- * const lightTheme = transformBrandingPreferenceToTheme(brandingPreference, 'light');
45
- * ```
46
- */
47
- export declare const transformBrandingPreferenceToTheme: (brandingPreference: BrandingPreference, forceTheme?: "light" | "dark") => Theme;
48
- export default transformBrandingPreferenceToTheme;
49
- //# sourceMappingURL=transformBrandingPreferenceToTheme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformBrandingPreferenceToTheme.d.ts","sourceRoot":"","sources":["../../src/utils/transformBrandingPreferenceToTheme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,kBAAkB,EAA8B,MAAM,+BAA+B,CAAC;AAE9F,OAAO,EAAC,KAAK,EAAc,MAAM,gBAAgB,CAAC;AAuJlD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,kCAAkC,GAC7C,oBAAoB,kBAAkB,EACtC,aAAa,OAAO,GAAG,MAAM,KAC5B,KAsCF,CAAC;AAEF,eAAe,kCAAkC,CAAC"}