@arcgis/common-components 4.29.0-beta.40 → 4.29.0-beta.42
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/arcgis-common-components/arcgis-common-components.esm.js +1 -1
- package/dist/arcgis-common-components/{p-a39b4556.entry.js → p-02d347bb.entry.js} +1 -1
- package/dist/arcgis-common-components/{p-50b351b8.entry.js → p-d868f293.entry.js} +1 -1
- package/dist/cjs/arcgis-api-key.cjs.entry.js +1 -1
- package/dist/cjs/arcgis-identity.cjs.entry.js +1 -1
- package/dist/esm/arcgis-api-key.entry.js +1 -1
- package/dist/esm/arcgis-identity.entry.js +1 -1
- package/package.json +6 -6
- /package/dist/arcgis-common-components/{p-b4629d3e.js → p-5d6c7dd8.js} +0 -0
- /package/dist/cjs/{index-f93ca465.js → index-9962d715.js} +0 -0
- /package/dist/esm/{index-6dce2d84.js → index-2ba2e62a.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p,b as a}from"./p-2a7fe37a.js";export{s as setNonce}from"./p-2a7fe37a.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),p(e)})().then((p=>a([["p-
|
|
1
|
+
import{p,b as a}from"./p-2a7fe37a.js";export{s as setNonce}from"./p-2a7fe37a.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),p(e)})().then((p=>a([["p-02d347bb",[[0,"arcgis-api-key",{apiKey:[1,"api-key"]},null,{apiKey:["apiKeyWatcher"]}]]],["p-d868f293",[[0,"arcgis-identity",{identity:[1040],appId:[1,"app-id"],credential:[1040],expiration:[1026],locale:[1],usePopup:[4,"use-popup"],popupCallbackUrl:[1,"popup-callback-url"],portalUrl:[1,"portal-url"],preserveUrlHash:[4,"preserve-url-hash"],signIn:[64],signOut:[64]},null,{appId:["appIdWatcher"]}]]]],p)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,c as s,g as t}from"./p-2a7fe37a.js";import{i}from"./p-
|
|
1
|
+
import{r as a,c as s,g as t}from"./p-2a7fe37a.js";import{i}from"./p-5d6c7dd8.js";const e=class{constructor(t){a(this,t),this.apiKeyReady=s(this,"apiKeyReady",7),this.apiKey=void 0}apiKeyWatcher(a){this._setApiKey(a)}async connectedCallback(){this.apiKey&&await this._setApiKey(this.apiKey)}async _setApiKey(a){(await i()).apiKey=a,this.apiKeyReady.emit(!0)}get el(){return t(this)}static get watchers(){return{apiKey:["apiKeyWatcher"]}}};e.style=":host{display:none}arcgis-api-key{display:none}";export{e as arcgis_api_key}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,g as s}from"./p-2a7fe37a.js";import{a as h,n as a,b as e}from"./p-
|
|
1
|
+
import{r as t,c as i,g as s}from"./p-2a7fe37a.js";import{a as h,n as a,b as e}from"./p-5d6c7dd8.js";const r=class{constructor(s){t(this,s),this.identityReady=i(this,"identityReady",7),this.credentialCreate=i(this,"credentialCreate",7),this.dialogCreate=i(this,"dialogCreate",7),this.identity=void 0,this.appId=void 0,this.credential=void 0,this.expiration=void 0,this.locale=void 0,this.usePopup=!1,this.popupCallbackUrl=void 0,this.portalUrl=void 0,this.preserveUrlHash=!1}appIdWatcher(t,i){i!==t&&this._registerOAuth()}async signIn(){if(!this.credential)try{this.credential=await this._checkCurrentStatus()}catch(t){this.credential=await this._fetchCredential()}return this.credential}async signOut(){if(!this.credential)try{this.identity.destroyCredentials()}catch(t){this.credential=void 0}this.credential=void 0}async connectedCallback(){this.appId&&await this._registerOAuth(),this._proxyEvents(),await this._addWatchers(),this.identityReady.emit({identity:this.identity,ready:!0})}async _addWatchers(){const{watch:t}=await h();t((()=>this._info.expiration),(t=>this.expiration=t),{initial:!0})}_checkCurrentStatus(){return this.identity.checkSignInStatus(`${this._info.portalUrl}/sharing`)}async _createOAuthInfo(){const t={};void 0!==this.appId&&(t.appId=this.appId),void 0!==this.locale&&(t.locale=this.locale),void 0!==this.popupCallbackUrl&&(t.popupCallbackUrl=this.popupCallbackUrl),void 0!==this.preserveUrlHash&&(t.preserveUrlHash=this.preserveUrlHash),void 0!==this.usePopup&&(t.popup=this.usePopup),void 0!==this.portalUrl&&(t.portalUrl=this.portalUrl);const i=await a(t);return this._info=i,i}async _fetchCredential(){return await this.identity.getCredential(`${this._info?.portalUrl}/sharing`,{error:null,oAuthPopupConfirmation:!1,token:null})}async _registerOAuth(){this.identity=await e();const t=await this._createOAuthInfo();this.identity.registerOAuthInfos([t])}_proxyEvents(){this.identity.on("credential-create",(t=>this.credentialCreate.emit(t))),this.identity.on("dialog-create",(t=>this.dialogCreate.emit(t)))}get el(){return s(this)}static get watchers(){return{appId:["appIdWatcher"]}}};r.style=":host{display:none}arcgis-identity{display:none}";export{r as arcgis_identity}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-693a0aa8.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-9962d715.js');
|
|
7
7
|
|
|
8
8
|
const apiKeyCss = ":host{display:none}arcgis-api-key{display:none}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-693a0aa8.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-9962d715.js');
|
|
7
7
|
|
|
8
8
|
const identityCss = ":host{display:none}arcgis-identity{display:none}";
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, g as getElement } from './index-00709df9.js';
|
|
2
|
-
import { i as importConfig } from './index-
|
|
2
|
+
import { i as importConfig } from './index-2ba2e62a.js';
|
|
3
3
|
|
|
4
4
|
const apiKeyCss = ":host{display:none}arcgis-api-key{display:none}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, g as getElement } from './index-00709df9.js';
|
|
2
|
-
import { a as importCoreReactiveUtils, n as newIdentityOAuthInfo, b as importIdentityIdentityManager } from './index-
|
|
2
|
+
import { a as importCoreReactiveUtils, n as newIdentityOAuthInfo, b as importIdentityIdentityManager } from './index-2ba2e62a.js';
|
|
3
3
|
|
|
4
4
|
const identityCss = ":host{display:none}arcgis-identity{display:none}";
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@arcgis/common-components",
|
|
3
3
|
"description": "ArcGIS Common Components",
|
|
4
4
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
5
|
-
"version": "4.29.0-beta.
|
|
5
|
+
"version": "4.29.0-beta.42",
|
|
6
6
|
"module": "dist/components/index.js",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@stencil/core": "4.7.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@arcgis/components-plugins": "4.29.0-beta.
|
|
56
|
-
"@arcgis/components-utils": "4.29.0-beta.
|
|
55
|
+
"@arcgis/components-plugins": "4.29.0-beta.42",
|
|
56
|
+
"@arcgis/components-utils": "4.29.0-beta.42",
|
|
57
57
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
58
|
-
"@arcgis/core-adapter": "4.29.0-beta.
|
|
59
|
-
"@arcgis/map-components": "4.29.0-beta.
|
|
58
|
+
"@arcgis/core-adapter": "4.29.0-beta.42",
|
|
59
|
+
"@arcgis/map-components": "4.29.0-beta.42",
|
|
60
60
|
"@arcgis/typescript-config": "1.0.0",
|
|
61
61
|
"@esri/calcite-components": "^2.0.0",
|
|
62
62
|
"@stencil/angular-output-target": "0.8.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
87
87
|
"@esri/calcite-components": "^2.0.0"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "65426acf3a32d7160f67dd233c566bba36609097"
|
|
90
90
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|