@arcgis/coding-components 5.2.0-next.11 → 5.2.0-next.13

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.
@@ -4,9 +4,9 @@ import { i as h, a as L, b as k, c as E, d as I, e as C, f as P } from "./utils.
4
4
  import { supportedLocales as j, fetchT9nStringsBundle as $ } from "@arcgis/toolkit/intl";
5
5
  import { g as T } from "./runtime.js";
6
6
  import { CompletionItemKind as w, InsertTextFormat as p, InsertTextMode as f } from "vscode-languageserver-types";
7
- import { getDeclaredPixelMembers as B } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
7
+ import { getDeclaredPixelMembers as q } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
8
8
  import "@arcgis/toolkit/type";
9
- async function K(e) {
9
+ async function B(e) {
10
10
  const { apiVersion: i, bundles: t, hiddenApiItems: s } = e.toEditorProfileDefinition(), o = await b(e.dictionaryVariables.filter(P));
11
11
  return { apiVersion: i, bundles: t, variables: o, hiddenApiItems: s?.map((a) => a.toLowerCase()) };
12
12
  }
@@ -24,14 +24,14 @@ async function b(e, i = w.Variable) {
24
24
  // In autocomplete we don't differentiate types, so we can use the same logic as features.
25
25
  case "voxel":
26
26
  case "feature":
27
- return await q(t, i);
27
+ return await _(t, i);
28
28
  default:
29
- return _(t, i);
29
+ return K(t, i);
30
30
  }
31
31
  })
32
32
  );
33
33
  }
34
- function _(e, i) {
34
+ function K(e, i) {
35
35
  const { name: t, type: s } = e, o = e.getDescription(), a = i === w.Field ? v(t, !1) : t;
36
36
  return {
37
37
  name: t,
@@ -48,7 +48,7 @@ function _(e, i) {
48
48
  }
49
49
  };
50
50
  }
51
- async function q(e, i) {
51
+ async function _(e, i) {
52
52
  const t = await e.loadSource(), { name: s } = e, o = e.getDescription(), a = {
53
53
  label: s,
54
54
  detail: s,
@@ -90,7 +90,7 @@ async function z(e, i) {
90
90
  };
91
91
  if (!t || !s.definition)
92
92
  return r;
93
- const c = await B(t), [d, l] = M(c, a);
93
+ const c = await q(t), [d, l] = M(c, a);
94
94
  return r.properties = d, n.documentation = { kind: "markdown", value: l }, r;
95
95
  }
96
96
  async function O(e, i) {
@@ -218,7 +218,8 @@ const N = [
218
218
  "oriented-imagery",
219
219
  "subtype-group",
220
220
  "subtype-sublayer",
221
- "wfs"
221
+ "wfs",
222
+ "parquet"
222
223
  ];
223
224
  function R(e) {
224
225
  return !!e && typeof e == "object" && "type" in e && typeof e.type == "string" && N.includes(e.type);
@@ -277,7 +278,7 @@ class X extends S {
277
278
  W
278
279
  );
279
280
  this._modelToProfileMap.set(o, g);
280
- const D = await K(g);
281
+ const D = await B(g);
281
282
  this.updateApiContextForModel(i, {
282
283
  locale: s.locale,
283
284
  profile: D,
@@ -530,7 +530,7 @@ class Ze extends re {
530
530
  return;
531
531
  }
532
532
  let t = !1, o;
533
- this.viewState.feedback.item.conversationId === this.viewState.history[0]?.conversationId && this.viewState.viewMode === "result" ? (o = this.viewState.context, t = !0) : o = this.viewState.feedback.item.contextSnapshot;
533
+ this.viewState.feedback.item.conversationId === this.viewState.history[0]?.conversationId && this.viewState.viewMode === "result" ? (o = this.viewState.context ?? await this.getProfileAndMetadata(this.getModel()?.uri ?? ""), t = !0) : o = this.viewState.feedback.item.contextSnapshot;
534
534
  const a = U.applicationName;
535
535
  !a && !this.appVersion && w("warn", this, "esriConfig.applicationName is not set. Consider setting it to help identify the application version in feedback.");
536
536
  const { value: n, text: c, termsAccepted: p, item: { question: r, formattedScript: s, conversationId: u } } = this.viewState.feedback, l = {
@@ -597,7 +597,7 @@ class Ze extends re {
597
597
  connectedCallback() {
598
598
  super.connectedCallback(), this.updateViewState({ history: Y, splashActive: K });
599
599
  }
600
- load() {
600
+ loaded() {
601
601
  const e = async () => {
602
602
  const t = this.getModel();
603
603
  if (!t) {
@@ -610,9 +610,8 @@ class Ze extends re {
610
610
  contextReducedNoticeDismissed: o.contextTooLarge ? !1 : this.viewState.contextReducedNoticeDismissed
611
611
  });
612
612
  };
613
- e().catch((t) => {
614
- w("error", this, "Error setting initial context.", { detail: { error: t } });
615
- }), this.manager.onLifecycle(() => {
613
+ this.manager.onLifecycle(() => {
614
+ e();
616
615
  const t = D.onModelContextDidChange(async () => {
617
616
  e().catch((a) => {
618
617
  w("error", this, "Error setting context.", { detail: { error: a } });