@ezeep/ezeep-js 1.0.178 → 1.0.181
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.
- package/dist/cjs/ezp-auth_14.cjs.entry.js +11 -5
- package/dist/collection/components/ezp-printing/ezp-printing.js +11 -5
- package/dist/custom-elements/index.js +11 -5
- package/dist/esm/ezp-auth_14.entry.js +11 -5
- package/dist/esm-es5/ezp-auth_14.entry.js +3 -3
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/p-16c7584d.system.js +1 -1
- package/dist/ezeep/{p-9706130f.entry.js → p-4d6a3c19.entry.js} +1 -1
- package/dist/ezeep/{p-cc02e307.system.entry.js → p-aefea3fb.system.entry.js} +1 -1
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +3 -1
- package/dist/types/shared/types.d.ts +112 -0
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/p-16c7584d.system.js +1 -1
- package/www/build/{p-9706130f.entry.js → p-4d6a3c19.entry.js} +1 -1
- package/www/build/{p-cc02e307.system.entry.js → p-aefea3fb.system.entry.js} +1 -1
- package/www/index.html +2 -2
|
@@ -33197,10 +33197,10 @@ let EzpPrinting = class {
|
|
|
33197
33197
|
}
|
|
33198
33198
|
}
|
|
33199
33199
|
async getAuthUri() {
|
|
33200
|
-
|
|
33201
|
-
|
|
33202
|
-
await
|
|
33203
|
-
|
|
33200
|
+
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
33201
|
+
this.auth.generateCodeVerifier();
|
|
33202
|
+
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
33203
|
+
this.auth.buildAuthURI();
|
|
33204
33204
|
return authStore.state.authUri;
|
|
33205
33205
|
}
|
|
33206
33206
|
checkAuth() {
|
|
@@ -33234,7 +33234,7 @@ let EzpPrinting = class {
|
|
|
33234
33234
|
authService.refreshTokens();
|
|
33235
33235
|
}, seconds * 1000);
|
|
33236
33236
|
}
|
|
33237
|
-
componentWillLoad() {
|
|
33237
|
+
async componentWillLoad() {
|
|
33238
33238
|
const systemAppearanceDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
33239
33239
|
this.systemAppearance = systemAppearanceDark.matches ? 'dark' : 'light';
|
|
33240
33240
|
systemAppearanceDark.addEventListener('change', (event) => {
|
|
@@ -33255,6 +33255,12 @@ let EzpPrinting = class {
|
|
|
33255
33255
|
else {
|
|
33256
33256
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
33257
33257
|
}
|
|
33258
|
+
if (this.code) {
|
|
33259
|
+
this.auth.code = this.code;
|
|
33260
|
+
await this.auth.getAccessToken();
|
|
33261
|
+
this.authOpen = false;
|
|
33262
|
+
this.printOpen = true;
|
|
33263
|
+
}
|
|
33258
33264
|
sendCodeToParentWindow();
|
|
33259
33265
|
initi18n(this.language);
|
|
33260
33266
|
this.checkAuth();
|
|
@@ -110,10 +110,10 @@ export class EzpPrinting {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
async getAuthUri() {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
await
|
|
116
|
-
|
|
113
|
+
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
114
|
+
this.auth.generateCodeVerifier();
|
|
115
|
+
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
116
|
+
this.auth.buildAuthURI();
|
|
117
117
|
return authStore.state.authUri;
|
|
118
118
|
}
|
|
119
119
|
checkAuth() {
|
|
@@ -147,7 +147,7 @@ export class EzpPrinting {
|
|
|
147
147
|
authService.refreshTokens();
|
|
148
148
|
}, seconds * 1000);
|
|
149
149
|
}
|
|
150
|
-
componentWillLoad() {
|
|
150
|
+
async componentWillLoad() {
|
|
151
151
|
const systemAppearanceDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
152
152
|
this.systemAppearance = systemAppearanceDark.matches ? 'dark' : 'light';
|
|
153
153
|
systemAppearanceDark.addEventListener('change', (event) => {
|
|
@@ -168,6 +168,12 @@ export class EzpPrinting {
|
|
|
168
168
|
else {
|
|
169
169
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
170
170
|
}
|
|
171
|
+
if (this.code) {
|
|
172
|
+
this.auth.code = this.code;
|
|
173
|
+
await this.auth.getAccessToken();
|
|
174
|
+
this.authOpen = false;
|
|
175
|
+
this.printOpen = true;
|
|
176
|
+
}
|
|
171
177
|
sendCodeToParentWindow();
|
|
172
178
|
initi18n(this.language);
|
|
173
179
|
this.checkAuth();
|
|
@@ -33222,10 +33222,10 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33222
33222
|
}
|
|
33223
33223
|
}
|
|
33224
33224
|
async getAuthUri() {
|
|
33225
|
-
|
|
33226
|
-
|
|
33227
|
-
await
|
|
33228
|
-
|
|
33225
|
+
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
33226
|
+
this.auth.generateCodeVerifier();
|
|
33227
|
+
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
33228
|
+
this.auth.buildAuthURI();
|
|
33229
33229
|
return authStore.state.authUri;
|
|
33230
33230
|
}
|
|
33231
33231
|
checkAuth() {
|
|
@@ -33259,7 +33259,7 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33259
33259
|
authService.refreshTokens();
|
|
33260
33260
|
}, seconds * 1000);
|
|
33261
33261
|
}
|
|
33262
|
-
componentWillLoad() {
|
|
33262
|
+
async componentWillLoad() {
|
|
33263
33263
|
const systemAppearanceDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
33264
33264
|
this.systemAppearance = systemAppearanceDark.matches ? 'dark' : 'light';
|
|
33265
33265
|
systemAppearanceDark.addEventListener('change', (event) => {
|
|
@@ -33280,6 +33280,12 @@ let EzpPrinting$1 = class extends HTMLElement {
|
|
|
33280
33280
|
else {
|
|
33281
33281
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
33282
33282
|
}
|
|
33283
|
+
if (this.code) {
|
|
33284
|
+
this.auth.code = this.code;
|
|
33285
|
+
await this.auth.getAccessToken();
|
|
33286
|
+
this.authOpen = false;
|
|
33287
|
+
this.printOpen = true;
|
|
33288
|
+
}
|
|
33283
33289
|
sendCodeToParentWindow();
|
|
33284
33290
|
initi18n(this.language);
|
|
33285
33291
|
this.checkAuth();
|
|
@@ -33193,10 +33193,10 @@ let EzpPrinting = class {
|
|
|
33193
33193
|
}
|
|
33194
33194
|
}
|
|
33195
33195
|
async getAuthUri() {
|
|
33196
|
-
|
|
33197
|
-
|
|
33198
|
-
await
|
|
33199
|
-
|
|
33196
|
+
this.auth = new EzpAuthorizationService(this.redirecturi, this.clientid);
|
|
33197
|
+
this.auth.generateCodeVerifier();
|
|
33198
|
+
await this.auth.generateCodeChallenge(authStore.state.codeVerifier);
|
|
33199
|
+
this.auth.buildAuthURI();
|
|
33200
33200
|
return authStore.state.authUri;
|
|
33201
33201
|
}
|
|
33202
33202
|
checkAuth() {
|
|
@@ -33230,7 +33230,7 @@ let EzpPrinting = class {
|
|
|
33230
33230
|
authService.refreshTokens();
|
|
33231
33231
|
}, seconds * 1000);
|
|
33232
33232
|
}
|
|
33233
|
-
componentWillLoad() {
|
|
33233
|
+
async componentWillLoad() {
|
|
33234
33234
|
const systemAppearanceDark = window.matchMedia('(prefers-color-scheme: dark)');
|
|
33235
33235
|
this.systemAppearance = systemAppearanceDark.matches ? 'dark' : 'light';
|
|
33236
33236
|
systemAppearanceDark.addEventListener('change', (event) => {
|
|
@@ -33251,6 +33251,12 @@ let EzpPrinting = class {
|
|
|
33251
33251
|
else {
|
|
33252
33252
|
printStore.state.printApiHostUrl = config.printingApiHostUrl;
|
|
33253
33253
|
}
|
|
33254
|
+
if (this.code) {
|
|
33255
|
+
this.auth.code = this.code;
|
|
33256
|
+
await this.auth.getAccessToken();
|
|
33257
|
+
this.authOpen = false;
|
|
33258
|
+
this.printOpen = true;
|
|
33259
|
+
}
|
|
33254
33260
|
sendCodeToParentWindow();
|
|
33255
33261
|
initi18n(this.language);
|
|
33256
33262
|
this.checkAuth();
|