@arcgis/lumina 4.32.0-next.1 → 4.32.0-next.2

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/index.js CHANGED
@@ -8,19 +8,20 @@ import {
8
8
  } from "./chunk-CH52Q2MB.js";
9
9
 
10
10
  // src/createEvent.ts
11
- import { retrieveComponent, trackPropertyKey } from "@arcgis/components-controllers";
11
+ import { retrieveComponent, trackPropertyKey, keyTrackResolve } from "@arcgis/components-controllers";
12
12
  var createEventFactory = (eventName = "", options = {}, component = retrieveComponent()) => {
13
13
  const emitter = {
14
14
  emit: (payload) => {
15
- if (process.env.NODE_ENV !== "production") {
16
- if (eventName === "") {
15
+ if (process.env.NODE_ENV !== "production" && !component.el.isConnected) {
16
+ console.warn(
17
+ `Trying to emit an ${eventName} event on a disconnected element ${component.el.tagName.toLowerCase()}`
18
+ );
19
+ }
20
+ if (eventName === "") {
21
+ keyTrackResolve();
22
+ if (process.env.NODE_ENV !== "production" && eventName === "") {
17
23
  throw new Error("Unable to resolve event name from property name");
18
24
  }
19
- if (!component.el.isConnected) {
20
- console.warn(
21
- `Trying to emit an ${eventName} event on a disconnected element ${component.el.tagName.toLowerCase()}`
22
- );
23
- }
24
25
  }
25
26
  const event = new CustomEvent(eventName, {
26
27
  detail: payload,
@@ -682,11 +683,13 @@ var LitElement = class _LitElement extends OriginalLitElement {
682
683
  }
683
684
  return existingShadowRoot;
684
685
  }
685
- const domRoot = renderRoot.getRootNode();
686
- domRoot.adoptedStyleSheets = [
687
- ...domRoot.adoptedStyleSheets,
688
- ...Class.elementStyles.map((stylesheet) => "styleSheet" in stylesheet ? stylesheet.styleSheet : stylesheet)
689
- ];
686
+ if (this.isConnected) {
687
+ const domRoot = renderRoot.getRootNode();
688
+ domRoot.adoptedStyleSheets = [
689
+ ...domRoot.adoptedStyleSheets,
690
+ ...Class.elementStyles.map((stylesheet) => "styleSheet" in stylesheet ? stylesheet.styleSheet : stylesheet)
691
+ ];
692
+ }
690
693
  return renderRoot;
691
694
  }
692
695
  /** Do asynchronous component load */
@@ -1,4 +1,4 @@
1
- // src/stencil-ssr-compatibility/index.ts
1
+ // src/stencilSsrCompatibility/index.ts
2
2
  import { getWindow } from "@lit-labs/ssr/lib/dom-shim.js";
3
3
  import { render } from "@lit-labs/ssr/lib/render.js";
4
4
  import { html } from "@lit-labs/ssr/lib/server-template.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina",
3
- "version": "4.32.0-next.1",
3
+ "version": "4.32.0-next.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -8,7 +8,7 @@
8
8
  "exports": {
9
9
  ".": "./dist/index.js",
10
10
  "./config": "./dist/config.js",
11
- "./stencil-ssr-compatibility": "./dist/stencil-ssr-compatibility/index.js",
11
+ "./stencilSsrCompatibility": "./dist/stencilSsrCompatibility/index.js",
12
12
  "./typings": {
13
13
  "types": "./dist/typings/index.d.ts"
14
14
  },
@@ -29,21 +29,21 @@
29
29
  "clean": "rimraf ./dist ./build ./turbo ./node_modules"
30
30
  },
31
31
  "dependencies": {
32
- "@arcgis/components-controllers": "4.32.0-next.1",
33
- "@arcgis/components-utils": "4.32.0-next.1",
32
+ "@arcgis/components-controllers": "4.32.0-next.2",
33
+ "@arcgis/components-utils": "4.32.0-next.2",
34
34
  "@lit-labs/ssr": "^3.2.2",
35
35
  "@lit-labs/ssr-client": "^1.1.7",
36
36
  "csstype": "^3.1.3",
37
- "lit": "^3.1.2",
37
+ "lit": "^3.2.0",
38
38
  "tslib": "^2.7.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@arcgis/typescript-config": "4.32.0-next.1",
41
+ "@arcgis/typescript-config": "4.32.0-next.2",
42
42
  "@types/node": "^20.2.5",
43
43
  "eslint": "^8.55.0",
44
44
  "rimraf": "^5.0.0",
45
45
  "tsup": "^8.3.0",
46
46
  "typescript": "~5.4.0"
47
47
  },
48
- "gitHead": "e5c61e5426551da5fa01c269b3b138133e620ca0"
48
+ "gitHead": "8c9d6f7c0e88ea1b6ddbc00ebdb1c89069b0cbbf"
49
49
  }