@arcgis/coding-components 5.1.0-next.94 → 5.1.0-next.96

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.
Files changed (48) hide show
  1. package/dist/cdn/{ODCW355N.js → 363GMMQ6.js} +1 -1
  2. package/dist/cdn/{NZDJGAT2.js → 64X4ILDM.js} +1 -1
  3. package/dist/cdn/{6BS5M2LA.js → 7NI24N24.js} +1 -1
  4. package/dist/cdn/{XDBYQYMN.js → 7Z4V2ZOD.js} +1 -1
  5. package/dist/cdn/{27MWFBRL.js → CHTL74L2.js} +1 -1
  6. package/dist/cdn/GHTOL7NB.js +2 -0
  7. package/dist/cdn/{PNIRJAMR.js → GPIFJKPY.js} +1 -1
  8. package/dist/cdn/{MTIHPCIF.js → GS2ISVXJ.js} +1 -1
  9. package/dist/cdn/{C2NTBAZK.js → GVMVHGSK.js} +1 -1
  10. package/dist/cdn/{QVWSOD3N.js → GZ6HZKQZ.js} +1 -1
  11. package/dist/cdn/{OI3DH7N2.js → JLF32ABD.js} +1 -1
  12. package/dist/cdn/JQQBQXPD.js +2 -0
  13. package/dist/cdn/{MJ7MJPGA.js → KCU2C44H.js} +1 -1
  14. package/dist/cdn/{NK5J27LM.js → N33AALGQ.js} +1 -1
  15. package/dist/cdn/{VUZOZLS3.js → NOHSS7JG.js} +1 -1
  16. package/dist/cdn/{EOGGHL44.js → NWLOXWV6.js} +1 -1
  17. package/dist/cdn/{UQ6UIXTY.js → OGS4AWC2.js} +1 -1
  18. package/dist/cdn/{AHFU2DJA.js → P7I5ATMN.js} +1 -1
  19. package/dist/cdn/{SM3MA3KP.js → REL6OK2I.js} +1 -1
  20. package/dist/cdn/{MR5ZGLNC.js → SATQDL5P.js} +1 -1
  21. package/dist/cdn/{BA546EMZ.js → SB3MM5EM.js} +1 -1
  22. package/dist/cdn/{G3BWRHPC.js → SKTKTWIV.js} +1 -1
  23. package/dist/cdn/{TQNCGG32.js → TCLNQ7Z6.js} +1 -1
  24. package/dist/cdn/{CMZFQA5X.js → TNA5F36E.js} +1 -1
  25. package/dist/cdn/{UFDDEHND.js → TSZHSRGH.js} +1 -1
  26. package/dist/cdn/{FEYQMPLI.js → UCX6WHKQ.js} +1 -1
  27. package/dist/cdn/{R5QVN7GZ.js → WL2QW4SI.js} +1 -1
  28. package/dist/cdn/{Q376WIX4.js → WN4UL6U4.js} +1 -1
  29. package/dist/cdn/WP6BSOSW.js +2 -0
  30. package/dist/cdn/{UB7TEPYB.js → XN56YGFQ.js} +1 -1
  31. package/dist/cdn/Y3KOWWO5.js +2 -0
  32. package/dist/cdn/{KLNTCPWU.js → YE7HDVYS.js} +1 -1
  33. package/dist/cdn/{FZHOCYLK.js → YJW6NUWX.js} +1 -1
  34. package/dist/cdn/{VJG7CIFY.js → YTQ4K7PQ.js} +1 -1
  35. package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
  36. package/dist/cdn/assets/code-editor/sql-layer.worker.js +619 -602
  37. package/dist/cdn/index.js +1 -1
  38. package/dist/components/arcgis-arcade-editor/customElement.js +15 -17
  39. package/dist/components/arcgis-code-editor/customElement.js +88 -97
  40. package/dist/components/arcgis-sql-layer-editor/customElement.js +2 -2
  41. package/dist/docs/api.json +1 -1
  42. package/dist/docs/docs.json +1 -1
  43. package/dist/docs/web-types.json +1 -1
  44. package/package.json +6 -6
  45. package/dist/cdn/BCUUVBXH.js +0 -2
  46. package/dist/cdn/JHCVXLYB.js +0 -2
  47. package/dist/cdn/W7UVGDPL.js +0 -2
  48. package/dist/cdn/XSXXLPXK.js +0 -2
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{J as s,v as e}from"./SM3MA3KP.js";import"./BCUUVBXH.js";import"./3TTFCHAA.js";var r=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./VJG7CIFY.js"),"appVersion,assistantsEnabled,closed,closePanel:,disableQuestionAnswerLogging,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,serviceUrl;destroy"],"arcgis-arcade-debugger-console":[()=>import("./UB7TEPYB.js"),"debuggerStore:,modelId"],"arcgis-arcade-debugger-output":[()=>import("./6BS5M2LA.js"),"debuggerStore:,result:"],"arcgis-arcade-editor":[()=>import("./W7UVGDPL.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,enableDebugger,hideDocumentationActions,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./ODCW355N.js"),"consoleLogs:,hideHeader,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./R5QVN7GZ.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./JHCVXLYB.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./Q376WIX4.js")],"arcgis-code-viewer":[()=>import("./UFDDEHND.js"),"language,lineNumbers,round"],"arcgis-editor-variables":[()=>import("./FEYQMPLI.js"),"closed,heading,loading,messageOverrides:,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./EOGGHL44.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./MR5ZGLNC.js"),"hideSideBar,messageOverrides:,messages:,profile:,script;setFocus"],"arcgis-sql-layer-editor":[()=>import("./C2NTBAZK.js"),"editorInstance:,editorOptions:,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script;setFocus"]});r({resourcesUrl:import.meta.url});var i=new CSSStyleSheet;i.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor,arcgis-sql-layer-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,i];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
2
+ import{J as s,v as e}from"./REL6OK2I.js";import"./Y3KOWWO5.js";import"./3TTFCHAA.js";var r=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./YTQ4K7PQ.js"),"appVersion,assistantsEnabled,closed,closePanel:,disableQuestionAnswerLogging,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,serviceUrl;destroy"],"arcgis-arcade-debugger-console":[()=>import("./XN56YGFQ.js"),"debuggerStore:,modelId"],"arcgis-arcade-debugger-output":[()=>import("./7NI24N24.js"),"debuggerStore:,result:"],"arcgis-arcade-editor":[()=>import("./WP6BSOSW.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,enableDebugger,hideDocumentationActions,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./363GMMQ6.js"),"consoleLogs:,hideHeader,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./WL2QW4SI.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./GHTOL7NB.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./WN4UL6U4.js")],"arcgis-code-viewer":[()=>import("./TSZHSRGH.js"),"language,lineNumbers,round"],"arcgis-editor-variables":[()=>import("./UCX6WHKQ.js"),"closed,heading,loading,messageOverrides:,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./NWLOXWV6.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./SATQDL5P.js"),"hideSideBar,messageOverrides:,messages:,profile:,script;setFocus"],"arcgis-sql-layer-editor":[()=>import("./GVMVHGSK.js"),"editorInstance:,editorOptions:,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script;setFocus"]});r({resourcesUrl:import.meta.url});var i=new CSSStyleSheet;i.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor,arcgis-sql-layer-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,i];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
@@ -37,22 +37,22 @@ async function ge({
37
37
  const s = t.replace(/\/sharing\/rest(\/.*)?$/iu, "").replace(/\/$/u, "");
38
38
  if (!await he(s))
39
39
  return { shouldRender: !1 };
40
- const a = await ue(t), r = `${s}/sharing/rest/portals/self?f=json&token=${a}`, n = `${s}/sharing/rest/portals/self/settings?f=json&token=${a}`, d = `${s}/sharing/rest/portals/self/signinSettings?f=json&token=${a}`, w = await Promise.allSettled([
40
+ const a = await ue(t), r = `${s}/sharing/rest/portals/self?f=json&token=${a}`, n = `${s}/sharing/rest/portals/self/settings?f=json&token=${a}`, d = `${s}/sharing/rest/portals/self/signinSettings?f=json&token=${a}`, E = await Promise.allSettled([
41
41
  fetch(r, { credentials: "include" }).then((S) => S.json()),
42
42
  fetch(n, { credentials: "include" }).then((S) => S.json()),
43
43
  fetch(d, { credentials: "include" }).then((S) => S.json())
44
- ]), [E, R, C] = w, A = E.status === "fulfilled" ? E.value : (p("warn", `Failed to fetch selfUrl. Reason: ${E.reason}.`), {}), M = R.status === "fulfilled" ? R.value : (p("warn", `Failed to fetch settingsUrl. Reason: ${R.reason}.`), {}), G = C.status === "fulfilled" ? C.value : (p("warn", `Failed to fetch signinSettingsUrl. Reason: ${C.reason}.`), {});
45
- if (A.isPortal)
44
+ ]), [w, R, C] = E, D = w.status === "fulfilled" ? w.value : (p("warn", `Failed to fetch selfUrl. Reason: ${w.reason}.`), {}), M = R.status === "fulfilled" ? R.value : (p("warn", `Failed to fetch settingsUrl. Reason: ${R.reason}.`), {}), G = C.status === "fulfilled" ? C.value : (p("warn", `Failed to fetch signinSettingsUrl. Reason: ${C.reason}.`), {});
45
+ if (D.isPortal)
46
46
  return { shouldRender: !1 };
47
- const k = A.helpBase || "";
47
+ const k = D.helpBase || "";
48
48
  if (!M)
49
49
  return p("warn", "Settings response is not available."), { shouldRender: !1 };
50
50
  let I = le(M);
51
51
  G.blockBetaApps === !0 && (p(
52
52
  "warn",
53
53
  "Arcade Assistant is blocked by the organization settings. To enable it, do not block beta apps in the organization settings."
54
- ), I = !1), A?.user?.privileges?.includes("portal:user:useAIAssistants") || (p("warn", "User does not have the required privileges to use AI Assistants."), I = !1);
55
- const B = A?.helperServices?.aiAssistantServices?.url;
54
+ ), I = !1), D?.user?.privileges?.includes("portal:user:useAIAssistants") || (p("warn", "User does not have the required privileges to use AI Assistants."), I = !1);
55
+ const B = D?.helperServices?.aiAssistantServices?.url;
56
56
  return B ? {
57
57
  shouldRender: !0,
58
58
  serviceUrl: B,
@@ -101,7 +101,7 @@ _([
101
101
  u = _([
102
102
  m("ArcadeDebuggerLazyTreeNodeState")
103
103
  ], u);
104
- let D = class extends f {
104
+ let A = class extends f {
105
105
  constructor(t) {
106
106
  super(t), this.generation = 0, this.nodes = /* @__PURE__ */ new Map();
107
107
  }
@@ -160,9 +160,9 @@ let D = class extends f {
160
160
  this.nodes.clear();
161
161
  }
162
162
  };
163
- D = _([
163
+ A = _([
164
164
  m("ArcadeDebuggerLazyTreeState")
165
- ], D);
165
+ ], A);
166
166
  var _e = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, c = (t, e, s, i) => {
167
167
  for (var a = i > 1 ? void 0 : i ? fe(e, s) : e, r = t.length - 1, n; r >= 0; r--)
168
168
  (n = t[r]) && (a = (i ? n(e, s, a) : n(a)) || a);
@@ -275,7 +275,7 @@ $ = c([
275
275
  ], $);
276
276
  let h = class extends f {
277
277
  constructor(t) {
278
- super(t), this.execution = new b(), this.lazyTreeState = new D(), this.pausedFrame = new $(), this.previewTabsState = new N(), this.session = new y(), this.ui = new v();
278
+ super(t), this.execution = new b(), this.lazyTreeState = new A(), this.pausedFrame = new $(), this.previewTabsState = new N(), this.session = new y(), this.ui = new v();
279
279
  }
280
280
  get breakpoints() {
281
281
  return this.session.breakpoints;
@@ -423,7 +423,7 @@ let h = class extends f {
423
423
  this.pausedLine = void 0, this.lazyTreeState.reset(), this.previewTabsState.clear();
424
424
  }
425
425
  replaceTransientDebuggerState() {
426
- this.pausedLine = void 0, this.lazyTreeState = new D(), this.previewTabsState = new N();
426
+ this.pausedLine = void 0, this.lazyTreeState = new A(), this.previewTabsState = new N();
427
427
  }
428
428
  };
429
429
  c([
@@ -526,20 +526,18 @@ class Se extends K {
526
526
  }), e.has("arcadeAssistant") && this._updateArcadeAssistantRemoteState();
527
527
  }
528
528
  async loaded() {
529
- this._componentReadyDefer.resolve(), await this._updateApiLibrary(), await this._connectMonacoCustomizations(), await this._codeEditorElt.value?.setFocus();
529
+ await this._connectMonacoCustomizations(), this._componentReadyDefer.resolve(), await this._codeEditorElt.value?.setFocus();
530
530
  }
531
531
  _setOpenedSidePanel(e) {
532
532
  this.openedSidePanel = e === this.openedSidePanel ? "none" : e;
533
533
  }
534
534
  async _connectMonacoCustomizations() {
535
- if (this._disposables.length || this._connectMonacoCustomizationsPromise)
535
+ if (this._connectMonacoCustomizationsPromise)
536
536
  return await this._connectMonacoCustomizationsPromise;
537
537
  this._connectMonacoCustomizationsPromise = (async () => {
538
- if (await this.updateComplete, !this.isConnected || this._disposables.length)
538
+ if (!this.isConnected)
539
539
  return;
540
540
  const e = await ee();
541
- if (!this.isConnected || this._disposables.length)
542
- return;
543
541
  this._disposables.push(e.onDiagnosticsChange((d) => !this._preparingArcade && this.arcgisDiagnosticsChange.emit(d.diagnostics))), this.testData && !this._executeScriptAction && this._addExecuteScriptAction();
544
542
  const s = T(() => this._debuggerState.breakpoints, () => this._updateBreakpointsDecorations(), { sync: !0 }), i = T(() => this._debuggerState.debuggerLine, () => this._updateDebuggerPausedLineDecoration(), { sync: !0 }), a = T(() => this._debuggerState.consoleLogs.length, () => this.requestUpdate(), { sync: !0 });
545
543
  this._disposables.push({ dispose: () => s.remove() }, { dispose: () => i.remove() }, { dispose: () => a.remove() });
@@ -645,7 +643,7 @@ class Se extends K {
645
643
  (async () => {
646
644
  const r = this._codeEditorElt.value?.value, n = {
647
645
  mode: e,
648
- console: (w) => this._debuggerState.addConsoleLog(w),
646
+ console: (E) => this._debuggerState.addConsoleLog(E),
649
647
  breakpoints: e === "debug" ? this._debuggerState.debuggerBreakpoints : void 0
650
648
  };
651
649
  e === "debug" && (n.onDebugPause = this._handleDebugPause.bind(this, i));