@descope/angular-sdk 0.0.0-next-7be68a9b-20231226 → 0.0.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 (112) hide show
  1. package/README.md +13 -448
  2. package/environment.d.ts +3 -0
  3. package/esm2022/descope-angular-sdk.mjs +5 -0
  4. package/esm2022/environment.mjs +4 -0
  5. package/esm2022/lib/components/descope/descope.component.mjs +106 -0
  6. package/esm2022/lib/components/sign-in-flow/sign-in-flow.component.mjs +40 -0
  7. package/esm2022/lib/components/sign-up-flow/sign-up-flow.component.mjs +40 -0
  8. package/esm2022/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.mjs +40 -0
  9. package/esm2022/lib/descope-auth.module.mjs +52 -0
  10. package/esm2022/lib/services/descope-auth.guard.mjs +15 -0
  11. package/esm2022/lib/services/descope-auth.service.mjs +139 -0
  12. package/esm2022/lib/services/descope.interceptor.mjs +51 -0
  13. package/esm2022/lib/types/types.mjs +6 -0
  14. package/esm2022/lib/utils/constants.mjs +7 -0
  15. package/esm2022/lib/utils/helpers.mjs +27 -0
  16. package/esm2022/public-api.mjs +13 -0
  17. package/fesm2022/descope-angular-sdk.mjs +500 -0
  18. package/fesm2022/descope-angular-sdk.mjs.map +1 -0
  19. package/index.d.ts +5 -0
  20. package/lib/components/descope/descope.component.d.ts +32 -0
  21. package/lib/components/sign-in-flow/sign-in-flow.component.d.ts +24 -0
  22. package/lib/components/sign-up-flow/sign-up-flow.component.d.ts +24 -0
  23. package/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.d.ts +24 -0
  24. package/lib/descope-auth.module.d.ts +14 -0
  25. package/lib/services/descope-auth.guard.d.ts +2 -0
  26. package/lib/services/descope-auth.service.d.ts +38 -0
  27. package/lib/services/descope.interceptor.d.ts +2 -0
  28. package/lib/types/types.d.ts +8 -0
  29. package/lib/utils/constants.d.ts +5 -0
  30. package/lib/utils/helpers.d.ts +5 -0
  31. package/package.json +32 -65
  32. package/{projects/angular-sdk/src/public-api.ts → public-api.d.ts} +0 -4
  33. package/.editorconfig +0 -16
  34. package/.eslintrc.json +0 -40
  35. package/.github/workflows/ci.yml +0 -99
  36. package/.github/workflows/publish-next.yml +0 -40
  37. package/.github/workflows/publish.yml +0 -28
  38. package/.github/workflows/release.yml +0 -46
  39. package/.husky/pre-commit +0 -4
  40. package/.prettierrc +0 -8
  41. package/.vscode/extensions.json +0 -4
  42. package/.vscode/launch.json +0 -20
  43. package/.vscode/settings.json +0 -3
  44. package/.vscode/tasks.json +0 -42
  45. package/LICENSE +0 -21
  46. package/angular.json +0 -154
  47. package/jest.config.js +0 -17
  48. package/projects/angular-sdk/.eslintrc.json +0 -32
  49. package/projects/angular-sdk/README.md +0 -25
  50. package/projects/angular-sdk/ng-package.json +0 -8
  51. package/projects/angular-sdk/package.json +0 -20
  52. package/projects/angular-sdk/src/environment.ts +0 -3
  53. package/projects/angular-sdk/src/lib/components/descope/descope.component.spec.ts +0 -104
  54. package/projects/angular-sdk/src/lib/components/descope/descope.component.ts +0 -114
  55. package/projects/angular-sdk/src/lib/components/sign-in-flow/sign-in-flow.component.html +0 -15
  56. package/projects/angular-sdk/src/lib/components/sign-in-flow/sign-in-flow.component.spec.ts +0 -53
  57. package/projects/angular-sdk/src/lib/components/sign-in-flow/sign-in-flow.component.ts +0 -32
  58. package/projects/angular-sdk/src/lib/components/sign-up-flow/sign-up-flow.component.html +0 -15
  59. package/projects/angular-sdk/src/lib/components/sign-up-flow/sign-up-flow.component.spec.ts +0 -51
  60. package/projects/angular-sdk/src/lib/components/sign-up-flow/sign-up-flow.component.ts +0 -32
  61. package/projects/angular-sdk/src/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.html +0 -15
  62. package/projects/angular-sdk/src/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.spec.ts +0 -53
  63. package/projects/angular-sdk/src/lib/components/sign-up-or-in-flow/sign-up-or-in-flow.component.ts +0 -32
  64. package/projects/angular-sdk/src/lib/descope-auth.module.ts +0 -46
  65. package/projects/angular-sdk/src/lib/services/descope-auth.guard.spec.ts +0 -76
  66. package/projects/angular-sdk/src/lib/services/descope-auth.guard.ts +0 -16
  67. package/projects/angular-sdk/src/lib/services/descope-auth.service.spec.ts +0 -264
  68. package/projects/angular-sdk/src/lib/services/descope-auth.service.ts +0 -176
  69. package/projects/angular-sdk/src/lib/services/descope.interceptor.spec.ts +0 -102
  70. package/projects/angular-sdk/src/lib/services/descope.interceptor.ts +0 -76
  71. package/projects/angular-sdk/src/lib/types/types.ts +0 -10
  72. package/projects/angular-sdk/src/lib/utils/constants.ts +0 -8
  73. package/projects/angular-sdk/src/lib/utils/helpers.spec.ts +0 -103
  74. package/projects/angular-sdk/src/lib/utils/helpers.ts +0 -36
  75. package/projects/angular-sdk/tsconfig.lib.json +0 -12
  76. package/projects/angular-sdk/tsconfig.lib.prod.json +0 -10
  77. package/projects/angular-sdk/tsconfig.spec.json +0 -11
  78. package/projects/demo-app/.eslintrc.json +0 -31
  79. package/projects/demo-app/src/app/app-routing.module.ts +0 -23
  80. package/projects/demo-app/src/app/app.component.html +0 -3
  81. package/projects/demo-app/src/app/app.component.scss +0 -16
  82. package/projects/demo-app/src/app/app.component.spec.ts +0 -37
  83. package/projects/demo-app/src/app/app.component.ts +0 -8
  84. package/projects/demo-app/src/app/app.module.ts +0 -52
  85. package/projects/demo-app/src/app/home/home.component.html +0 -23
  86. package/projects/demo-app/src/app/home/home.component.scss +0 -15
  87. package/projects/demo-app/src/app/home/home.component.spec.ts +0 -44
  88. package/projects/demo-app/src/app/home/home.component.ts +0 -61
  89. package/projects/demo-app/src/app/interceptor/auth.interceptor.ts +0 -20
  90. package/projects/demo-app/src/app/login/login.component.html +0 -12
  91. package/projects/demo-app/src/app/login/login.component.spec.ts +0 -42
  92. package/projects/demo-app/src/app/login/login.component.ts +0 -35
  93. package/projects/demo-app/src/app/protected/protected.component.html +0 -18
  94. package/projects/demo-app/src/app/protected/protected.component.scss +0 -8
  95. package/projects/demo-app/src/app/protected/protected.component.spec.ts +0 -42
  96. package/projects/demo-app/src/app/protected/protected.component.ts +0 -40
  97. package/projects/demo-app/src/assets/.gitkeep +0 -0
  98. package/projects/demo-app/src/environments/conifg.ts +0 -13
  99. package/projects/demo-app/src/environments/environment.ts +0 -19
  100. package/projects/demo-app/src/favicon.ico +0 -0
  101. package/projects/demo-app/src/index.html +0 -17
  102. package/projects/demo-app/src/main.ts +0 -7
  103. package/projects/demo-app/src/styles.scss +0 -21
  104. package/projects/demo-app/tsconfig.app.json +0 -10
  105. package/projects/demo-app/tsconfig.spec.json +0 -10
  106. package/renovate.json +0 -4
  107. package/scripts/gitleaks/.gitleaks.toml +0 -653
  108. package/scripts/gitleaks/gitleaks.sh +0 -34
  109. package/scripts/setversion/setversion.js +0 -20
  110. package/setup-jest.ts +0 -1
  111. package/thirdPartyLicenseCollector_linux_amd64 +0 -0
  112. package/tsconfig.json +0 -35
package/setup-jest.ts DELETED
@@ -1 +0,0 @@
1
- import 'jest-preset-angular/setup-jest';
package/tsconfig.json DELETED
@@ -1,35 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "compileOnSave": false,
4
- "compilerOptions": {
5
- "paths": {
6
- "angular-sdk": ["dist/angular-sdk"]
7
- },
8
- "typeRoots": ["./node_modules/@types", "./node_modules/@descope"],
9
- "baseUrl": "./",
10
- "outDir": "./dist/out-tsc",
11
- "forceConsistentCasingInFileNames": true,
12
- "strictPropertyInitialization": false,
13
- "strict": true,
14
- "noImplicitOverride": true,
15
- "noPropertyAccessFromIndexSignature": true,
16
- "noImplicitReturns": true,
17
- "noFallthroughCasesInSwitch": true,
18
- "sourceMap": true,
19
- "declaration": false,
20
- "downlevelIteration": true,
21
- "experimentalDecorators": true,
22
- "moduleResolution": "node",
23
- "importHelpers": true,
24
- "target": "ES2022",
25
- "module": "ES2022",
26
- "useDefineForClassFields": false,
27
- "lib": ["ES2022", "dom"]
28
- },
29
- "angularCompilerOptions": {
30
- "enableI18nLegacyMessageIdFormat": false,
31
- "strictInjectionParameters": true,
32
- "strictInputAccessModifiers": true,
33
- "strictTemplates": true
34
- }
35
- }