@transmitsecurity/platform-web-sdk 1.16.2 → 1.17.1

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 (77) hide show
  1. package/CHANGELOG.md +23 -2
  2. package/README.md +69 -48
  3. package/dist/web-sdk-drs+idv+webauthn+ido.js +2 -2
  4. package/dist/web-sdk.d.ts +4 -16
  5. package/package.json +12 -13
  6. package/build/drs-entry.d.ts +0 -20
  7. package/build/drs-entry.js +0 -19
  8. package/build/drs-only.d.ts +0 -22
  9. package/build/drs-only.js +0 -25
  10. package/build/drs.d.ts +0 -28
  11. package/build/drs.js +0 -45
  12. package/build/ido/idoImpl.d.ts +0 -2
  13. package/build/ido/idoImpl.js +0 -4
  14. package/build/ido/index.d.ts +0 -7
  15. package/build/ido/index.js +0 -9
  16. package/build/ido-entry.d.ts +0 -17
  17. package/build/ido-entry.js +0 -19
  18. package/build/ido.d.ts +0 -18
  19. package/build/ido.js +0 -27
  20. package/build/idv-entry.d.ts +0 -17
  21. package/build/idv-entry.js +0 -19
  22. package/build/idv.d.ts +0 -18
  23. package/build/idv.js +0 -27
  24. package/build/initialize-only.d.ts +0 -7
  25. package/build/initialize-only.js +0 -40
  26. package/build/initialize.d.ts +0 -1
  27. package/build/initialize.js +0 -2
  28. package/build/mainExport.d.ts +0 -16
  29. package/build/mainExport.js +0 -43
  30. package/build/sdk-factory.d.ts +0 -109
  31. package/build/sdk-factory.js +0 -108
  32. package/build/shared-state.d.ts +0 -4
  33. package/build/shared-state.js +0 -32
  34. package/build/webauthn-entry.d.ts +0 -19
  35. package/build/webauthn-entry.js +0 -19
  36. package/build/webauthn.d.ts +0 -24
  37. package/build/webauthn.js +0 -44
  38. package/bundler-config.json +0 -14
  39. package/dist/docs/.nojekyll +0 -1
  40. package/dist/docs/README.md +0 -72
  41. package/dist/docs/enums/ErrorCode.md +0 -113
  42. package/dist/docs/interfaces/ActionEventOptions.md +0 -44
  43. package/dist/docs/interfaces/ActionResponse.md +0 -9
  44. package/dist/docs/interfaces/AuthenticationAutofillActivateHandlers.md +0 -61
  45. package/dist/docs/interfaces/AutofillHandlers.md +0 -50
  46. package/dist/docs/interfaces/CrossDeviceController.md +0 -27
  47. package/dist/docs/interfaces/SdkError.md +0 -28
  48. package/dist/docs/interfaces/WebauthnApis.md +0 -73
  49. package/dist/docs/interfaces/WebauthnAuthenticationFlows.md +0 -52
  50. package/dist/docs/interfaces/WebauthnCrossDeviceFlows.md +0 -107
  51. package/dist/docs/interfaces/WebauthnCrossDeviceRegistrationOptions.md +0 -23
  52. package/dist/docs/interfaces/WebauthnRegistrationOptions.md +0 -55
  53. package/dist/docs/interfaces/initConfigParams.md +0 -7
  54. package/dist/docs/modules/drs.md +0 -92
  55. package/dist/docs/modules/idv.md +0 -106
  56. package/dist/docs/modules/webauthn.md +0 -197
  57. package/dist/docs/modules.md +0 -146
  58. package/dist/drs.cjs +0 -1
  59. package/dist/drs.d.ts +0 -248
  60. package/dist/drs.js +0 -1
  61. package/dist/ido.cjs +0 -3
  62. package/dist/ido.d.ts +0 -57
  63. package/dist/ido.js +0 -3
  64. package/dist/idv.cjs +0 -1
  65. package/dist/idv.d.ts +0 -69
  66. package/dist/idv.js +0 -1
  67. package/dist/index.cjs +0 -3
  68. package/dist/index.esm.js +0 -3
  69. package/dist/index.umd.js +0 -3
  70. package/dist/ts-platform-websdk.js +0 -3
  71. package/dist/webauthn.cjs +0 -1
  72. package/dist/webauthn.d.ts +0 -463
  73. package/dist/webauthn.js +0 -1
  74. package/scripts/make-semver-aliases.sh +0 -11
  75. package/scripts/upload-dist.sh +0 -9
  76. package/src/mainExport.ts +0 -75
  77. package/src/tsconfig.json +0 -14
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- cdn_path=gs://$platform_sdk_cdn/platform-websdk
4
-
5
- for version in \
6
- latest \
7
- ${npm_package_version%.*}.x \
8
- ${npm_package_version%.*.*}.x
9
- do
10
- gsutil cp $cdn_path/$npm_package_version/* $cdn_path/$version/
11
- done
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # Set default CDN bucket if not provided
4
- platform_sdk_cdn=${platform_sdk_cdn:-"platform-websdk.idsec-dev.com"}
5
-
6
- cdn_dir=gs://$platform_sdk_cdn/platform-websdk/$npm_package_version
7
-
8
- gsutil cp dist/web-sdk-*.js $cdn_dir/ts-platform-websdk.js
9
- gsutil cp dist/web-sdk.d.ts $cdn_dir/ts-platform-websdk.d.ts
package/src/mainExport.ts DELETED
@@ -1,75 +0,0 @@
1
- // Browser Environment Validation
2
- (function validateBrowserEnvironment() {
3
- const isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
4
- const isNode = typeof globalThis !== 'undefined' &&
5
- typeof (globalThis as any).process !== 'undefined' &&
6
- (globalThis as any).process?.versions?.node;
7
-
8
- if (isNode && !isBrowser) {
9
- throw new Error(
10
- '\n🚫 @TransmitSecurity/web-sdk is a BROWSER-ONLY package.\n\n' +
11
- 'āŒ Node.js environments are not supported.\n' +
12
- 'āœ… Use this package in web browsers only.\n\n' +
13
- 'For more information, visit: https://github.com/transmitsecurity-dev/ciam-web-sdk#browser-only\n'
14
- );
15
- }
16
-
17
- if (!isBrowser) {
18
- console.warn(
19
- 'āš ļø @TransmitSecurity/web-sdk: Browser environment not detected. ' +
20
- 'Some features may not work correctly.'
21
- );
22
- }
23
- })();
24
-
25
- // Export common SDK functionality (initialize, etc.)
26
- export * from '@transmit-security/web-sdk-common/dist/main-entry';
27
-
28
- // Import individual modules
29
- import * as drsMod from '@transmit-security/riskid_sdk';
30
- import * as idvMod from '@transmit-security/ts-identity-verification';
31
-
32
- // Export TypeScript types for better developer experience
33
- export type { ActionEventOptions, ActionResponse } from "@transmit-security/riskid_sdk";
34
- export type {
35
- authenticate,
36
- WebauthnApis,
37
- WebauthnAuthenticationFlows,
38
- AutofillHandlers,
39
- AuthenticationAutofillActivateHandlers,
40
- WebauthnRegistrationOptions,
41
- isAutofillSupported,
42
- SdkError,
43
- ErrorCode,
44
- isPlatformAuthenticatorSupported,
45
- register,
46
- crossDevice,
47
- CrossDeviceController,
48
- WebauthnCrossDeviceRegistrationOptions,
49
- WebauthnCrossDeviceFlows,
50
- getDefaultPaths
51
- } from '@transmit-security/authentication-sdk';
52
-
53
- // Module factories for dynamic loading
54
- const factories = {
55
- drs: drsMod as unknown as () => Record<string, any>,
56
- idv: idvMod as unknown as () => Record<string, any>,
57
- };
58
-
59
- /**
60
- * Main SDK class for CDN usage (window.tsPlatform)
61
- * Provides access to all modules and common functionality
62
- */
63
- class TSWebSDK {
64
- factories = factories;
65
-
66
- constructor() {
67
- // Attach DRS module functions
68
- Object.assign(this, drsMod);
69
- // Attach IDV module functions
70
- Object.assign(this, idvMod);
71
- }
72
- }
73
-
74
- // Export default instance for CDN usage
75
- export default new TSWebSDK();
package/src/tsconfig.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2018",
4
- "module": "ESNext",
5
- "strict": true,
6
- "skipLibCheck": true,
7
- "declaration": true,
8
- "typeRoots": [
9
- "./node_modules/@typescript/lib-dom"
10
- ],
11
- "outDir": "../build",
12
- "moduleResolution": "node"
13
- }
14
- }