@arcgis/common-components 4.29.0-beta.3 → 4.29.0-beta.31
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-84fccaad.entry.js → p-9f36faef.entry.js} +1 -1
- package/dist/arcgis-common-components/p-de48d1cf.entry.js +1 -0
- package/dist/cjs/arcgis-api-key.cjs.entry.js +3 -3
- package/dist/cjs/arcgis-identity.cjs.entry.js +3 -3
- package/dist/components/arcgis-api-key.js +2 -2
- package/dist/components/arcgis-identity.js +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/esm/arcgis-api-key.entry.js +3 -3
- package/dist/esm/arcgis-identity.entry.js +3 -3
- package/package.json +19 -16
- package/dist/arcgis-common-components/p-3768a3bb.entry.js +0 -1
- /package/dist/arcgis-common-components/{p-9625972e.js → p-01a57b4f.js} +0 -0
- /package/dist/cjs/{index-f1a937af.js → index-a8e78672.js} +0 -0
- /package/dist/esm/{index-71b437b1.js → index-eb3bc49d.js} +0 -0
- /package/dist/types/components/{arcgis-api-key/arcgis-api-key.d.ts → api-key/api-key.d.ts} +0 -0
- /package/dist/types/components/{arcgis-identity/arcgis-identity.d.ts → identity/identity.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p,b as a}from"./p-b0c98bba.js";export{s as setNonce}from"./p-b0c98bba.js";(()=>{const a=import.meta.url,
|
|
1
|
+
import{p,b as a}from"./p-b0c98bba.js";export{s as setNonce}from"./p-b0c98bba.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),p(e)})().then((p=>a([["p-de48d1cf",[[0,"arcgis-api-key",{apiKey:[1,"api-key"]}]]],["p-9f36faef",[[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]}]]]],p)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,g as s}from"./p-b0c98bba.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-b0c98bba.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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,c as s,g as t}from"./p-b0c98bba.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}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8c59179.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-a8e78672.js');
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const apiKeyCss = ":host{display:none}arcgis-api-key{display:none}";
|
|
9
9
|
|
|
10
10
|
const ArcgisApiKey = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -46,6 +46,6 @@ const ArcgisApiKey = class {
|
|
|
46
46
|
"apiKey": ["apiKeyWatcher"]
|
|
47
47
|
}; }
|
|
48
48
|
};
|
|
49
|
-
ArcgisApiKey.style =
|
|
49
|
+
ArcgisApiKey.style = apiKeyCss;
|
|
50
50
|
|
|
51
51
|
exports.arcgis_api_key = ArcgisApiKey;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e8c59179.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-a8e78672.js');
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const identityCss = ":host{display:none}arcgis-identity{display:none}";
|
|
9
9
|
|
|
10
10
|
const ArcgisIdentity = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -134,6 +134,6 @@ const ArcgisIdentity = class {
|
|
|
134
134
|
"appId": ["appIdWatcher"]
|
|
135
135
|
}; }
|
|
136
136
|
};
|
|
137
|
-
ArcgisIdentity.style =
|
|
137
|
+
ArcgisIdentity.style = identityCss;
|
|
138
138
|
|
|
139
139
|
exports.arcgis_identity = ArcgisIdentity;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
2
|
import { i as importConfig } from './index2.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const apiKeyCss = ":host{display:none}arcgis-api-key{display:none}";
|
|
5
5
|
|
|
6
6
|
const ArcgisApiKey$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
@@ -42,7 +42,7 @@ const ArcgisApiKey$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
42
42
|
static get watchers() { return {
|
|
43
43
|
"apiKey": ["apiKeyWatcher"]
|
|
44
44
|
}; }
|
|
45
|
-
static get style() { return
|
|
45
|
+
static get style() { return apiKeyCss; }
|
|
46
46
|
}, [0, "arcgis-api-key", {
|
|
47
47
|
"apiKey": [1, "api-key"]
|
|
48
48
|
}]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
2
|
import { a as importCoreReactiveUtils, n as newIdentityOAuthInfo, b as importIdentityIdentityManager } from './index2.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const identityCss = ":host{display:none}arcgis-identity{display:none}";
|
|
5
5
|
|
|
6
6
|
const ArcgisIdentity$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
@@ -130,7 +130,7 @@ const ArcgisIdentity$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
130
130
|
static get watchers() { return {
|
|
131
131
|
"appId": ["appIdWatcher"]
|
|
132
132
|
}; }
|
|
133
|
-
static get style() { return
|
|
133
|
+
static get style() { return identityCss; }
|
|
134
134
|
}, [0, "arcgis-identity", {
|
|
135
135
|
"identity": [1040],
|
|
136
136
|
"appId": [1, "app-id"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ArcgisCommonComponents custom elements */
|
|
2
|
-
export { ArcgisApiKey as ArcgisApiKey } from '../types/components/
|
|
3
|
-
export { ArcgisIdentity as ArcgisIdentity } from '../types/components/
|
|
2
|
+
export { ArcgisApiKey as ArcgisApiKey } from '../types/components/api-key/api-key';
|
|
3
|
+
export { ArcgisIdentity as ArcgisIdentity } from '../types/components/identity/identity';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Used to manually set the base path where assets can be found.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, g as getElement } from './index-1f7e8e45.js';
|
|
2
|
-
import { i as importConfig } from './index-
|
|
2
|
+
import { i as importConfig } from './index-eb3bc49d.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const apiKeyCss = ":host{display:none}arcgis-api-key{display:none}";
|
|
5
5
|
|
|
6
6
|
const ArcgisApiKey = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -42,6 +42,6 @@ const ArcgisApiKey = class {
|
|
|
42
42
|
"apiKey": ["apiKeyWatcher"]
|
|
43
43
|
}; }
|
|
44
44
|
};
|
|
45
|
-
ArcgisApiKey.style =
|
|
45
|
+
ArcgisApiKey.style = apiKeyCss;
|
|
46
46
|
|
|
47
47
|
export { ArcgisApiKey as arcgis_api_key };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, g as getElement } from './index-1f7e8e45.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-eb3bc49d.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const identityCss = ":host{display:none}arcgis-identity{display:none}";
|
|
5
5
|
|
|
6
6
|
const ArcgisIdentity = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -130,6 +130,6 @@ const ArcgisIdentity = class {
|
|
|
130
130
|
"appId": ["appIdWatcher"]
|
|
131
131
|
}; }
|
|
132
132
|
};
|
|
133
|
-
ArcgisIdentity.style =
|
|
133
|
+
ArcgisIdentity.style = identityCss;
|
|
134
134
|
|
|
135
135
|
export { ArcgisIdentity as arcgis_identity };
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
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.31",
|
|
5
6
|
"module": "dist/components/index.js",
|
|
6
7
|
"main": "dist/index.cjs.js",
|
|
7
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -33,8 +34,8 @@
|
|
|
33
34
|
"start:storybook": "storybook dev -c .storybook/internal --quiet",
|
|
34
35
|
"start:external-storybook": "kill-port 6019 && storybook dev -c .storybook/external -p 6019 --quiet",
|
|
35
36
|
"watch": "yarn build:dev --watch",
|
|
36
|
-
"build": "yarn build:components",
|
|
37
|
-
"build:dev": "yarn build:components:dev",
|
|
37
|
+
"build": "yarn pre && yarn build:components",
|
|
38
|
+
"build:dev": "yarn pre && yarn build:components:dev",
|
|
38
39
|
"build:storybook": "storybook build -c .storybook/internal --quiet",
|
|
39
40
|
"build:external-storybook": "storybook build -c .storybook/external -o storybook-static-external --quiet",
|
|
40
41
|
"build:components": "stencil build",
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
46
47
|
"clean": "rimraf ./node_modules ./storybook-static ./storybook-static-external ./turbo ./dist ./www",
|
|
47
48
|
"lint": "eslint .",
|
|
49
|
+
"pre": "rimraf ./dist ./www && awc-build-t9n-types",
|
|
48
50
|
"generate": "stencil generate",
|
|
49
51
|
"prettier": "prettier . --write"
|
|
50
52
|
},
|
|
@@ -52,40 +54,41 @@
|
|
|
52
54
|
"@stencil/core": "2.22.3"
|
|
53
55
|
},
|
|
54
56
|
"devDependencies": {
|
|
55
|
-
"@arcgis/components-plugins": "4.29.0-beta.
|
|
57
|
+
"@arcgis/components-plugins": "4.29.0-beta.31",
|
|
58
|
+
"@arcgis/components-utils": "4.29.0-beta.31",
|
|
56
59
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
57
|
-
"@arcgis/core-adapter": "4.29.0-beta.
|
|
60
|
+
"@arcgis/core-adapter": "4.29.0-beta.31",
|
|
58
61
|
"@arcgis/eslint-config": "1.0.0",
|
|
59
|
-
"@arcgis/map-components": "4.29.0-beta.
|
|
62
|
+
"@arcgis/map-components": "4.29.0-beta.31",
|
|
60
63
|
"@arcgis/typescript-config": "1.0.0",
|
|
61
64
|
"@esri/calcite-components": "^1.8.0",
|
|
62
65
|
"@stencil/angular-output-target": "0.8.1",
|
|
63
66
|
"@stencil/react-output-target": "0.5.3",
|
|
64
67
|
"@stencil/sass": "^2.0.4",
|
|
65
|
-
"@storybook/addon-a11y": "^7.
|
|
66
|
-
"@storybook/addon-essentials": "^7.
|
|
67
|
-
"@storybook/addon-links": "^7.
|
|
68
|
-
"@storybook/web-components": "^7.
|
|
69
|
-
"@storybook/web-components-vite": "^7.
|
|
68
|
+
"@storybook/addon-a11y": "^7.6.0",
|
|
69
|
+
"@storybook/addon-essentials": "^7.6.0",
|
|
70
|
+
"@storybook/addon-links": "^7.6.0",
|
|
71
|
+
"@storybook/web-components": "^7.6.0",
|
|
72
|
+
"@storybook/web-components-vite": "^7.6.0",
|
|
70
73
|
"@types/jest": "^29.5.0",
|
|
71
|
-
"eslint": "^8.
|
|
74
|
+
"eslint": "^8.52.0",
|
|
72
75
|
"jest": "^29.5.0",
|
|
73
76
|
"jest-cli": "^29.5.0",
|
|
74
77
|
"kill-port": "^2.0.1",
|
|
75
|
-
"lit": "^
|
|
78
|
+
"lit": "^3.1.0",
|
|
76
79
|
"prettier": "^3.0.0",
|
|
77
80
|
"puppeteer": "^20.5.0",
|
|
78
81
|
"react": "^18.2.0",
|
|
79
82
|
"react-dom": "^18.2.0",
|
|
80
83
|
"resolve-pkg": "^2.0.0",
|
|
81
84
|
"rimraf": "^5.0.0",
|
|
82
|
-
"storybook": "^7.
|
|
85
|
+
"storybook": "^7.6.0",
|
|
83
86
|
"typescript": "4.9.5",
|
|
84
|
-
"vite": "^
|
|
87
|
+
"vite": "^5.0.0"
|
|
85
88
|
},
|
|
86
89
|
"peerDependencies": {
|
|
87
90
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
88
91
|
"@esri/calcite-components": ">=1.7.0 <2.0.0"
|
|
89
92
|
},
|
|
90
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "1050a2901cf275fb9e55d8aa7d4a4a3a9c3e3543"
|
|
91
94
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as a,g as t}from"./p-b0c98bba.js";import{i}from"./p-9625972e.js";const e=class{constructor(t){s(this,t),this.apiKeyReady=a(this,"apiKeyReady",7),this.apiKey=void 0}apiKeyWatcher(s){this._setApiKey(s)}async connectedCallback(){this.apiKey&&await this._setApiKey(this.apiKey)}async _setApiKey(s){(await i()).apiKey=s,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}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/components/{arcgis-identity/arcgis-identity.d.ts → identity/identity.d.ts}
RENAMED
|
File without changes
|