@arcgis/common-components 4.29.0-beta.35 → 4.29.0-beta.37

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/README.md CHANGED
@@ -14,4 +14,4 @@ See use restrictions at <http://www.esri.com/legal/pdfs/mla_e204_e300/english>
14
14
 
15
15
  For additional information, contact: Environmental Systems Research Institute, Inc. Attn: Contracts and Legal Services Department 380 New York Street Redlands, California, USA 92373 USA
16
16
 
17
- email: contracts@esri.com
17
+ email: contracts@esri.com
@@ -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-04629339",[[0,"arcgis-api-key",{apiKey:[1,"api-key"]},null,{apiKey:["apiKeyWatcher"]}]]],["p-264c3536",[[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
+ 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-a39b4556",[[0,"arcgis-api-key",{apiKey:[1,"api-key"]},null,{apiKey:["apiKeyWatcher"]}]]],["p-50b351b8",[[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 t,c as i,g as s}from"./p-2a7fe37a.js";import{a as h,n as a,b as e}from"./p-01a57b4f.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}
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-b4629d3e.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}
@@ -1 +1 @@
1
- import{r as a,c as s,g as t}from"./p-2a7fe37a.js";import{i}from"./p-01a57b4f.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
+ import{r as a,c as s,g as t}from"./p-2a7fe37a.js";import{i}from"./p-b4629d3e.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}
@@ -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-a8e78672.js');
6
+ const index$1 = require('./index-f93ca465.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-a8e78672.js');
6
+ const index$1 = require('./index-f93ca465.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-eb3bc49d.js';
2
+ import { i as importConfig } from './index-6dce2d84.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-eb3bc49d.js';
2
+ import { a as importCoreReactiveUtils, n as newIdentityOAuthInfo, b as importIdentityIdentityManager } from './index-6dce2d84.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.35",
5
+ "version": "4.29.0-beta.37",
6
6
  "module": "dist/components/index.js",
7
7
  "main": "dist/index.cjs.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -45,21 +45,19 @@
45
45
  "test:e2e": "stencil test --e2e",
46
46
  "test.watch": "stencil test --spec --e2e --watchAll",
47
47
  "clean": "rimraf ./node_modules ./storybook-static ./storybook-static-external ./turbo ./dist ./www",
48
- "lint": "eslint .",
49
48
  "pre": "rimraf ./dist ./www && awc-build-t9n-types",
50
- "generate": "stencil generate",
51
- "prettier": "prettier . --write"
49
+ "generate": "stencil generate"
52
50
  },
53
51
  "dependencies": {
54
52
  "@stencil/core": "4.7.1"
55
53
  },
56
54
  "devDependencies": {
57
- "@arcgis/components-plugins": "4.29.0-beta.35",
58
- "@arcgis/components-utils": "4.29.0-beta.35",
55
+ "@arcgis/components-plugins": "4.29.0-beta.37",
56
+ "@arcgis/components-utils": "4.29.0-beta.37",
59
57
  "@arcgis/core": ">=4.29.0-next <4.30",
60
- "@arcgis/core-adapter": "4.29.0-beta.35",
58
+ "@arcgis/core-adapter": "4.29.0-beta.37",
61
59
  "@arcgis/eslint-config": "1.0.0",
62
- "@arcgis/map-components": "4.29.0-beta.35",
60
+ "@arcgis/map-components": "4.29.0-beta.37",
63
61
  "@arcgis/typescript-config": "1.0.0",
64
62
  "@esri/calcite-components": "^2.0.0",
65
63
  "@stencil/angular-output-target": "0.8.1",
@@ -76,7 +74,6 @@
76
74
  "jest-cli": "^29.5.0",
77
75
  "kill-port": "^2.0.1",
78
76
  "lit": "^3.1.0",
79
- "prettier": "^3.0.0",
80
77
  "puppeteer": "^20.5.0",
81
78
  "react": "^18.2.0",
82
79
  "react-dom": "^18.2.0",
@@ -90,5 +87,5 @@
90
87
  "@arcgis/core": ">=4.29.0-next <4.30",
91
88
  "@esri/calcite-components": "^2.0.0"
92
89
  },
93
- "gitHead": "23138c4114d5e30bfad535cb3154825c0641933b"
90
+ "gitHead": "73d51455d3789439d5b05458847b35a655fd5d74"
94
91
  }