@everymatrix/user-action-controller 1.43.4 → 1.45.0

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 (50) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-c5061e5a.js +1315 -0
  3. package/dist/cjs/loader.cjs.js +7 -13
  4. package/dist/cjs/player-user-consents_2.cjs.entry.js +457 -495
  5. package/dist/cjs/user-action-controller.cjs.js +17 -11
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/user-action-controller/index.js +1 -0
  8. package/dist/collection/components/user-action-controller/user-action-controller.js +408 -414
  9. package/dist/collection/utils/locale.utils.js +70 -70
  10. package/dist/collection/utils/utils.js +1 -1
  11. package/dist/esm/app-globals-0f993ce5.js +3 -0
  12. package/dist/esm/index-02b86e76.js +1288 -0
  13. package/dist/esm/loader.js +7 -13
  14. package/dist/esm/player-user-consents_2.entry.js +457 -495
  15. package/dist/esm/user-action-controller.js +14 -11
  16. package/dist/stencil.config.dev.js +17 -0
  17. package/dist/stencil.config.js +14 -19
  18. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +2 -0
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +2 -0
  20. package/dist/types/components/user-action-controller/index.d.ts +1 -0
  21. package/dist/types/components/user-action-controller/user-action-controller.d.ts +68 -68
  22. package/dist/types/stencil-public-runtime.d.ts +142 -33
  23. package/dist/user-action-controller/p-b996e8b8.js +2 -0
  24. package/dist/user-action-controller/p-d7fbd383.entry.js +1 -0
  25. package/dist/user-action-controller/p-e1255160.js +1 -0
  26. package/dist/user-action-controller/user-action-controller.esm.js +1 -1
  27. package/loader/cdn.js +1 -3
  28. package/loader/index.cjs.js +1 -3
  29. package/loader/index.d.ts +13 -1
  30. package/loader/index.es2017.js +1 -3
  31. package/loader/index.js +1 -3
  32. package/loader/package.json +1 -0
  33. package/package.json +9 -2
  34. package/dist/cjs/index-87049e21.js +0 -1300
  35. package/dist/components/index.d.ts +0 -26
  36. package/dist/components/index.js +0 -1
  37. package/dist/components/player-user-consents.js +0 -6
  38. package/dist/components/player-user-consents2.js +0 -257
  39. package/dist/components/user-action-controller.d.ts +0 -11
  40. package/dist/components/user-action-controller.js +0 -365
  41. package/dist/esm/index-71f14530.js +0 -1274
  42. package/dist/esm/polyfills/core-js.js +0 -11
  43. package/dist/esm/polyfills/css-shim.js +0 -1
  44. package/dist/esm/polyfills/dom.js +0 -79
  45. package/dist/esm/polyfills/es5-html-element.js +0 -1
  46. package/dist/esm/polyfills/index.js +0 -34
  47. package/dist/esm/polyfills/system.js +0 -6
  48. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/user-action-controller/.stencil/packages/user-action-controller/stencil.config.d.ts +0 -2
  49. package/dist/user-action-controller/p-2dc9103a.entry.js +0 -1
  50. package/dist/user-action-controller/p-ba444709.js +0 -1
@@ -1,17 +1,20 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-71f14530.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-02b86e76.js';
2
+ export { s as setNonce } from './index-02b86e76.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
2
4
 
3
5
  /*
4
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
5
7
  */
6
- const patchBrowser = () => {
7
- const importMeta = import.meta.url;
8
- const opts = {};
9
- if (importMeta !== '') {
10
- opts.resourcesUrl = new URL('.', importMeta).href;
11
- }
12
- return promiseResolve(opts);
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
13
15
  };
14
16
 
15
- patchBrowser().then(options => {
16
- return bootstrapLazy([["player-user-consents_2",[[1,"user-action-controller",{"endpoint":[513],"userSession":[513,"user-session"],"userId":[513,"user-id"],"lang":[1537],"includeSubmitButton":[516,"include-submit-button"],"gmVersion":[1,"gm-version"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"queryFired":[32],"readyActionsCount":[32],"activeUserActions":[32],"userActionsValidated":[32],"receivedQueryResponses":[32],"limitStylingAppends":[32],"isLoading":[32],"mandatoryActionsChecked":[32],"mandatoryItems":[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]]],[1,"player-user-consents",{"lang":[1537],"queried":[516],"consentType":[513,"consent-type"],"mandatory":[516],"gmVersion":[1,"gm-version"],"consentTitle":[513,"consent-title"],"clientStyling":[1,"client-styling"],"translationUrl":[513,"translation-url"],"textContent":[32],"limitStylingAppends":[32]}]]]], options);
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["player-user-consents_2",[[1,"user-action-controller",{"endpoint":[513],"userSession":[513,"user-session"],"userId":[513,"user-id"],"lang":[1537],"includeSubmitButton":[516,"include-submit-button"],"gmVersion":[1,"gm-version"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"queryFired":[32],"readyActionsCount":[32],"activeUserActions":[32],"userActionsValidated":[32],"receivedQueryResponses":[32],"limitStylingAppends":[32],"isLoading":[32],"mandatoryActionsChecked":[32],"mandatoryItems":[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]],{"translationUrl":["handleNewTranslations"],"receivedQueryResponses":["handleQueryResponse"]}],[1,"player-user-consents",{"lang":[1537],"queried":[516],"consentType":[513,"consent-type"],"mandatory":[516],"gmVersion":[1,"gm-version"],"consentTitle":[513,"consent-title"],"clientStyling":[1,"client-styling"],"translationUrl":[513,"translation-url"],"textContent":[32],"limitStylingAppends":[32]},null,{"translationUrl":["handleNewTranslations"]}]]]], options);
17
20
  });
@@ -0,0 +1,17 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'user-action-controller',
4
+ taskQueue: 'async',
5
+ sourceMap: true,
6
+ minifyJs: false,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'www',
14
+ serviceWorker: null // disable service workers
15
+ }
16
+ ]
17
+ };
@@ -1,22 +1,17 @@
1
- import { sass } from '@stencil/sass';
1
+ import { sass } from "@stencil/sass";
2
2
  export const config = {
3
- namespace: 'user-action-controller',
4
- taskQueue: 'async',
5
- plugins: [sass()],
6
- outputTargets: [
7
- {
8
- type: 'dist',
9
- esmLoaderPath: '../loader',
3
+ namespace: 'user-action-controller',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
10
9
  },
11
- {
12
- type: 'dist-custom-elements',
13
- },
14
- {
15
- type: 'docs-readme',
16
- },
17
- {
18
- type: 'www',
19
- serviceWorker: null, // disable service workers
20
- },
21
- ],
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'dist',
14
+ esmLoaderPath: '../loader'
15
+ }
16
+ ]
22
17
  };
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1 @@
1
+ export { UserActionController } from './user-action-controller';
@@ -1,73 +1,73 @@
1
- import '@everymatrix/player-user-consents';
1
+ import "../../../../../../dist/packages/stencil/player-user-consents/dist/types/index";
2
2
  interface LegislationConsentEvent {
3
- type: string;
4
- value: boolean | string;
3
+ type: string;
4
+ value: boolean | string;
5
5
  }
6
6
  export declare class UserActionController {
7
- /**
8
- * the endpoint required for the update call
9
- */
10
- endpoint: string;
11
- /**
12
- * user session required for the update call
13
- */
14
- userSession: string;
15
- /**
16
- * user id required for the update call
17
- */
18
- userId: string;
19
- /**
20
- * Language
21
- */
22
- lang: string;
23
- /**
24
- * whether or not to include the submit button (in case we want to compose a different )
25
- */
26
- includeSubmitButton: boolean;
27
- /**
28
- * Select GM version
29
- */
30
- gmVersion: string;
31
- /**
32
- * Translation url
33
- */
34
- translationUrl: string;
35
- /**
36
- * Client custom styling via inline style
37
- */
38
- clientStyling: string;
39
- /**
40
- * Client custom styling via url
41
- */
42
- clientStylingUrl: string;
43
- handleNewTranslations(): void;
44
- handleQueryResponse(): void;
45
- userLegislationConsentHandler(event: CustomEvent<LegislationConsentEvent>): void;
46
- /**
47
- * Which actions are required in order to activate the "Apply" button. Other actions are considered optional.
48
- */
49
- queryFired: boolean;
50
- readyActionsCount: number;
51
- activeUserActions: Array<string>;
52
- userActionsValidated: boolean;
53
- receivedQueryResponses: number;
54
- private limitStylingAppends;
55
- private isLoading;
56
- private mandatoryActionsChecked;
57
- private mandatoryItems;
58
- private mandatoryActions;
59
- private userActions;
60
- private stylingContainer;
61
- private consentTitles;
62
- determineUserActionsCore(): Promise<void>;
63
- determineUserActions16(): Promise<void>;
64
- updateUserConsents(): void;
65
- handleApplyClick(): void;
66
- componentWillLoad(): Promise<void>;
67
- componentDidRender(): void;
68
- setClientStyling: () => void;
69
- setClientStylingURL: () => void;
70
- calcMandatoryActions(): void;
71
- render(): any;
7
+ /**
8
+ * the endpoint required for the update call
9
+ */
10
+ endpoint: string;
11
+ /**
12
+ * user session required for the update call
13
+ */
14
+ userSession: string;
15
+ /**
16
+ * user id required for the update call
17
+ */
18
+ userId: string;
19
+ /**
20
+ * Language
21
+ */
22
+ lang: string;
23
+ /**
24
+ * whether or not to include the submit button (in case we want to compose a different )
25
+ */
26
+ includeSubmitButton: boolean;
27
+ /**
28
+ * Select GM version
29
+ */
30
+ gmVersion: string;
31
+ /**
32
+ * Translation url
33
+ */
34
+ translationUrl: string;
35
+ /**
36
+ * Client custom styling via inline style
37
+ */
38
+ clientStyling: string;
39
+ /**
40
+ * Client custom styling via url
41
+ */
42
+ clientStylingUrl: string;
43
+ handleNewTranslations(): void;
44
+ handleQueryResponse(): void;
45
+ userLegislationConsentHandler(event: CustomEvent<LegislationConsentEvent>): void;
46
+ /**
47
+ * Which actions are required in order to activate the "Apply" button. Other actions are considered optional.
48
+ */
49
+ queryFired: boolean;
50
+ readyActionsCount: number;
51
+ activeUserActions: Array<string>;
52
+ userActionsValidated: boolean;
53
+ receivedQueryResponses: number;
54
+ private limitStylingAppends;
55
+ private isLoading;
56
+ private mandatoryActionsChecked;
57
+ private mandatoryItems;
58
+ private mandatoryActions;
59
+ private userActions;
60
+ private stylingContainer;
61
+ private consentTitles;
62
+ determineUserActionsCore(): Promise<void>;
63
+ determineUserActions16(): Promise<void>;
64
+ updateUserConsents(): void;
65
+ handleApplyClick(): void;
66
+ componentWillLoad(): Promise<void>;
67
+ componentDidRender(): void;
68
+ setClientStyling: () => void;
69
+ setClientStylingURL: () => void;
70
+ calcMandatoryActions(): void;
71
+ render(): any;
72
72
  }
73
73
  export {};