@amedia/user 0.13.29 → 0.13.30

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 (94) hide show
  1. package/dist/actions/storage.d.ts +3 -0
  2. package/dist/eventHandlers/eventMap.d.ts +5 -1
  3. package/dist/index.d.ts +11 -1
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.esm.js.map +2 -2
  6. package/dist/index.js +1 -1
  7. package/dist/index.js.map +2 -2
  8. package/dist/lib/authentication.d.ts +17 -0
  9. package/dist/lib/authentication.js +74 -0
  10. package/dist/lib/authorization.d.ts +14 -0
  11. package/dist/lib/authorization.js +51 -0
  12. package/{esm/cache/engines/indexeddb.d.ts → dist/lib/cache/db.d.ts} +6 -7
  13. package/dist/lib/cache/db.js +13 -0
  14. package/dist/lib/cache/global.d.ts +9 -0
  15. package/dist/lib/cache/global.js +16 -0
  16. package/dist/lib/cache/types.d.ts +5 -0
  17. package/dist/lib/cache/types.js +2 -0
  18. package/dist/lib/queue.d.ts +5 -0
  19. package/dist/lib/queue.js +17 -0
  20. package/dist/lib/tools.d.ts +1 -0
  21. package/dist/lib/tools.js +2 -0
  22. package/dist/lib/user.js +3 -0
  23. package/dist/services/cache.d.ts +9 -0
  24. package/dist/services/cache.js +34 -0
  25. package/{esm/clients → dist/services}/jupiter.d.ts +29 -30
  26. package/dist/services/jupiter.js +72 -0
  27. package/dist/services/pluto.d.ts +12 -0
  28. package/dist/services/pluto.js +40 -0
  29. package/eik.json +2 -2
  30. package/package.json +2 -2
  31. package/src/actions/storage.ts +10 -1
  32. package/src/clients/mercuryLog.ts +1 -0
  33. package/src/clients/pluto.ts +1 -1
  34. package/src/eventHandlers/eventMap.ts +5 -1
  35. package/src/eventHandlers/storage.ts +7 -1
  36. package/src/index-storage.spec.ts +30 -1
  37. package/src/index.ts +4 -0
  38. package/amedia-user-js.iml +0 -9
  39. package/dist/janitor/index.spec.d.ts +0 -4
  40. package/esm/actions/authentication.d.ts +0 -5
  41. package/esm/actions/authentication.spec.d.ts +0 -4
  42. package/esm/actions/authorization.d.ts +0 -9
  43. package/esm/actions/preferences.d.ts +0 -9
  44. package/esm/actions/preferences.spec.d.ts +0 -1
  45. package/esm/actions/storage.d.ts +0 -4
  46. package/esm/actions/userData.d.ts +0 -2
  47. package/esm/autologin/index.d.ts +0 -1
  48. package/esm/autologin/thirdPartyCookie.d.ts +0 -3
  49. package/esm/autologin/thirdPartyCookie.spec.d.ts +0 -1
  50. package/esm/cache/engines/global.d.ts +0 -21
  51. package/esm/cache/engines/global.spec.d.ts +0 -1
  52. package/esm/cache/index.d.ts +0 -11
  53. package/esm/cache/index.spec.d.ts +0 -4
  54. package/esm/cache/types.d.ts +0 -11
  55. package/esm/clients/europa.d.ts +0 -28
  56. package/esm/clients/europa.spec.d.ts +0 -1
  57. package/esm/clients/jupiter.spec.d.ts +0 -1
  58. package/esm/clients/mercury.d.ts +0 -18
  59. package/esm/clients/mercury.spec.d.ts +0 -4
  60. package/esm/clients/nebula.d.ts +0 -2
  61. package/esm/clients/nebula.spec.d.ts +0 -1
  62. package/esm/clients/pluto.d.ts +0 -3
  63. package/esm/clients/pluto.spec.d.ts +0 -1
  64. package/esm/eventHandlers/activation.d.ts +0 -15
  65. package/esm/eventHandlers/authentication.d.ts +0 -17
  66. package/esm/eventHandlers/userAttributes.d.ts +0 -24
  67. package/esm/exceptions/PaywallError.d.ts +0 -7
  68. package/esm/index-authentcation.spec.d.ts +0 -4
  69. package/esm/index-storage.spec.d.ts +0 -4
  70. package/esm/index-subscription.spec.d.ts +0 -4
  71. package/esm/index.d.ts +0 -26
  72. package/esm/janitor/index.d.ts +0 -10
  73. package/esm/janitor/jobs/accessCookieRefresher.d.ts +0 -1
  74. package/esm/janitor/jobs/accessCookieRefresher.spec.d.ts +0 -4
  75. package/esm/lib/PaywallUnlocker.d.ts +0 -16
  76. package/esm/lib/PaywallUnlocker.spec.d.ts +0 -4
  77. package/esm/lib/User.d.ts +0 -21
  78. package/esm/lib/cookie.d.ts +0 -5
  79. package/esm/lib/rpc.d.ts +0 -6
  80. package/esm/store/index.d.ts +0 -22
  81. package/esm/store/index.spec.d.ts +0 -1
  82. package/esm/types.d.ts +0 -22
  83. package/esm/user.js +0 -2
  84. package/esm/user.js.map +0 -1
  85. package/esm/utils/customEventWrapper.d.ts +0 -17
  86. package/esm/utils/deepEquals.d.ts +0 -4
  87. package/esm/utils/getOrUpdate.d.ts +0 -6
  88. package/esm/utils/getOrUpdate.spec.d.ts +0 -1
  89. package/esm/utils/location.d.ts +0 -3
  90. package/esm/utils/log.d.ts +0 -26
  91. package/esm/utils/queue.d.ts +0 -12
  92. package/esm/utils/url.d.ts +0 -6
  93. package/esm/utils/url.spec.d.ts +0 -1
  94. /package/dist/lib/{User.d.ts → user.d.ts} +0 -0
@@ -1,17 +0,0 @@
1
- export declare const setRootElement: (element: any) => void;
2
- /**
3
- * This listener MUST be used by all listeners in ../eventHandlers
4
- * We want to ensure that only _one_ instance of this package actually
5
- * orchestrates data and performs requests against backends.
6
- * @param type
7
- * @param listener
8
- */
9
- export declare const listenWithExclusivity: <T extends keyof WindowEventMap>(type: T, listener: (this: Window, ev: WindowEventMap[T]) => void) => void;
10
- /**
11
- * Use this for response listeners. (../index.ts) where we want
12
- * all updates with data - no matter who sent the actual request
13
- * @param type
14
- * @param listener
15
- */
16
- export declare const listenForAllEvents: <T extends keyof WindowEventMap>(type: T, listener: (this: Window, ev: WindowEventMap[T]) => void) => void;
17
- export declare const dispatch: <T extends Event>(event: T) => void;
@@ -1,4 +0,0 @@
1
- /**
2
- * @see https://dev.to/sanderdebr/deep-equality-checking-of-objects-in-vanilla-javascript-5592
3
- */
4
- export declare const deepEquals: (a: unknown, b: unknown) => boolean;
@@ -1,6 +0,0 @@
1
- import { Runtype, Static } from 'runtypes';
2
- export declare type DataFetcherWithCacheTTL<T extends Runtype> = Promise<{
3
- ttl: number;
4
- data: Static<T>;
5
- }>;
6
- export default function getOrUpdate<T extends Runtype>(key: string, schema: T, fetch: () => DataFetcherWithCacheTTL<T>, cacheQualifier?: (cacheData: Static<T>) => boolean): Promise<Static<T>>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export declare const reload: () => void;
2
- export declare const replace: (requestedUrl: string) => void;
3
- export declare const navigateTo: (url: string) => void;
@@ -1,26 +0,0 @@
1
- export declare type Logger = {
2
- debug: (message: string | any, ...extra: any[]) => void;
3
- info: (message: string | any, ...extra: any[]) => void;
4
- warn: (message: string | any, ...extra: any[]) => void;
5
- error: (message: string | any, ...extra: any[]) => void;
6
- };
7
- export declare const setLogger: (engine: Logger) => void;
8
- declare const _default: {
9
- debug: {
10
- (...data: any[]): void;
11
- (message?: any, ...optionalParams: any[]): void;
12
- };
13
- info: {
14
- (...data: any[]): void;
15
- (message?: any, ...optionalParams: any[]): void;
16
- };
17
- warn: {
18
- (...data: any[]): void;
19
- (message?: any, ...optionalParams: any[]): void;
20
- };
21
- error: {
22
- (...data: any[]): void;
23
- (message?: any, ...optionalParams: any[]): void;
24
- };
25
- };
26
- export default _default;
@@ -1,12 +0,0 @@
1
- declare const _default: {
2
- add: (key: string, promiseCallbacks: {
3
- resolve: (PromiseLike: any) => void;
4
- reject: (reason?: any) => void;
5
- }) => void;
6
- getAll: (key: string) => {
7
- resolve: (PromiseLike: any) => void;
8
- reject: (reason?: any) => void;
9
- }[];
10
- peekQueueSize: (key: string) => number;
11
- };
12
- export default _default;
@@ -1,6 +0,0 @@
1
- export declare const setCurrentHostname: (hostname: string) => void;
2
- export declare const getCurrentHostname: () => string;
3
- export declare const getCurrentUrl: () => string;
4
- export declare const getCurrentEnvironment: () => string | null;
5
- export declare const getCurrentPublicationDomain: () => string;
6
- export declare const getAidDomain: () => string;
@@ -1 +0,0 @@
1
- export {};
File without changes