@arcgis/coding-components 5.1.26 → 5.1.27
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/cdn/{TMLA756Z.js → 32NT7AGI.js} +1 -1
- package/dist/cdn/{XI36QBQV.js → 3F3TYBHQ.js} +1 -1
- package/dist/cdn/{IR2UWIFU.js → 67ECDZNZ.js} +1 -1
- package/dist/cdn/{FUK3HGN4.js → 6PDNYG3A.js} +1 -1
- package/dist/cdn/{HHIUKEQU.js → A4SW3UYZ.js} +1 -1
- package/dist/cdn/{HTUCDWAO.js → ADYGWGQL.js} +1 -1
- package/dist/cdn/{6ULQ473U.js → ANZF27F7.js} +1 -1
- package/dist/cdn/{4KRRW2B6.js → CDWNC32C.js} +1 -1
- package/dist/cdn/{IKE3HGOJ.js → CLNDLMQR.js} +1 -1
- package/dist/cdn/{T46UPSCW.js → DS3QOSVX.js} +1 -1
- package/dist/cdn/{T3ILGXBQ.js → EBRY3EDA.js} +1 -1
- package/dist/cdn/{MKARA4DL.js → FGCXWQRE.js} +1 -1
- package/dist/cdn/{L2QGJQV6.js → FV4P2ZOR.js} +1 -1
- package/dist/cdn/{CBAQ6CXX.js → GFYRCQ6Q.js} +1 -1
- package/dist/cdn/{HA7FHGPT.js → JNPAJ5FL.js} +1 -1
- package/dist/cdn/{3APYJ7LZ.js → K2XFZKGT.js} +1 -1
- package/dist/cdn/{3MDKKY5R.js → K3426YND.js} +1 -1
- package/dist/cdn/{GHUMTEZE.js → K4PBDODI.js} +1 -1
- package/dist/cdn/{JE4AB3EF.js → LE4LVFJC.js} +1 -1
- package/dist/cdn/{YIJH35LM.js → NSILIJ2Q.js} +1 -1
- package/dist/cdn/{OZ6WFZ4H.js → P44J5MEV.js} +1 -1
- package/dist/cdn/{FWH2GD4R.js → PBWAV4EH.js} +1 -1
- package/dist/cdn/{2LVWPH4F.js → QEJODEXY.js} +1 -1
- package/dist/cdn/{RC2AHB5P.js → TERCHTSC.js} +1 -1
- package/dist/cdn/{XCMMUDMH.js → UZP4LLQL.js} +1 -1
- package/dist/cdn/XPHWZVO7.js +2 -0
- package/dist/cdn/{YL2UMCR5.js → YKARFP6C.js} +1 -1
- package/dist/cdn/{4KJVILBY.js → Z6FKQIJW.js} +3 -3
- package/dist/cdn/{OCR4MZYY.js → ZUYZZ7IW.js} +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +31 -32
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +12 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +12 -12
- package/dist/components/types.d.ts +11 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +4 -4
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +5 -5
- package/dist/cdn/UHCUEYPS.js +0 -2
|
@@ -7,7 +7,7 @@ import { generateGuid as U } from "@arcgis/toolkit/string";
|
|
|
7
7
|
import { i as P, D as W, e as C } from "../../chunks/arcade-executor.js";
|
|
8
8
|
import { s as V, g as H } from "../../chunks/arcade-service-accessors.js";
|
|
9
9
|
import { b as A } from "../../chunks/arcade-defaults.js";
|
|
10
|
-
import { setArcadeAskAiBinding as
|
|
10
|
+
import { setArcadeAskAiBinding as y, arcadeAskAiCommandId as G, arcadeQuickFixKind as j } from "../../chunks/arcade-mode.js";
|
|
11
11
|
import { u as Q } from "../../chunks/useT9n.js";
|
|
12
12
|
import { createRef as T, ref as R } from "lit/directives/ref.js";
|
|
13
13
|
import { load as q } from "@arcgis/lumina/controllers";
|
|
@@ -210,7 +210,7 @@ d([
|
|
|
210
210
|
E = d([
|
|
211
211
|
f("ArcadeDebuggerUiModel")
|
|
212
212
|
], E);
|
|
213
|
-
let
|
|
213
|
+
let $ = class extends x {
|
|
214
214
|
constructor(s) {
|
|
215
215
|
super(s);
|
|
216
216
|
}
|
|
@@ -229,16 +229,16 @@ let y = class extends x {
|
|
|
229
229
|
};
|
|
230
230
|
d([
|
|
231
231
|
c()
|
|
232
|
-
],
|
|
232
|
+
], $.prototype, "pausedState", 2);
|
|
233
233
|
d([
|
|
234
234
|
c()
|
|
235
|
-
],
|
|
236
|
-
|
|
235
|
+
], $.prototype, "lastPausedState", 2);
|
|
236
|
+
$ = d([
|
|
237
237
|
f("ArcadeDebuggerPausedFrameModel")
|
|
238
|
-
],
|
|
238
|
+
], $);
|
|
239
239
|
let p = class extends x {
|
|
240
240
|
constructor(s) {
|
|
241
|
-
super(s), this.execution = new b(), this.lazyTreeState = new D(), this.pausedFrame = new
|
|
241
|
+
super(s), this.execution = new b(), this.lazyTreeState = new D(), this.pausedFrame = new $(), this.previewTabsState = new L(), this.session = new v(), this.ui = new E();
|
|
242
242
|
}
|
|
243
243
|
get editorBreakpoints() {
|
|
244
244
|
return this.session.editorBreakpoints;
|
|
@@ -455,7 +455,7 @@ class oe extends K {
|
|
|
455
455
|
}, this._debuggerPausedLineDecoration = void 0, this._preparingArcade = !1, this._arcadeAssistantRemoteState = { shouldRender: !1 }, this._diagnostics = [], this.enableDebugger = !1, this.hideDocumentationActions = !1, this.hideSideBar = !1, this.openedSidePanel = "none", this.script = "", this.sideActionBarExpanded = !1, this.disableAssistant = !1, this.arcgisDiagnosticsChange = B({ bubbles: !1 }), this.arcgisScriptChange = B({ bubbles: !1 });
|
|
456
456
|
}
|
|
457
457
|
static {
|
|
458
|
-
this.properties = { _apiLibrary: 16, _editorProfile: 16, _preparingArcade: 16, _arcadeAssistantRemoteState: 16, _diagnostics: 16, editorInstance: 32, editorOptions: 0, enableDebugger: 5, hideDocumentationActions: 5, hideSideBar: 5, messageOverrides: 0, openedSidePanel: 3, profile: 0, script: 1, sideActionBarExpanded: 7, snippets: 0, suggestions: 0, testData: 0, customPanels: 0, disableAssistant: 5, arcadeAssistant: 0, externalExecutor: 0 };
|
|
458
|
+
this.properties = { _apiLibrary: 16, _editorProfile: 16, _preparingArcade: 16, _arcadeAssistantRemoteState: 16, _diagnostics: 16, editorInstance: 32, editorOptions: 0, enableDebugger: 5, hideDocumentationActions: 5, hideSideBar: 5, messageOverrides: 0, openedSidePanel: 3, profile: 0, script: 1, sideActionBarExpanded: 7, snippets: 0, suggestions: 0, testData: 0, customPanels: 0, disableAssistant: 5, arcadeAssistant: 0, externalExecutor: 0, docsConfig: 0 };
|
|
459
459
|
}
|
|
460
460
|
static {
|
|
461
461
|
this.styles = [ee];
|
|
@@ -502,7 +502,7 @@ class oe extends K {
|
|
|
502
502
|
async load() {
|
|
503
503
|
const e = F("./assets");
|
|
504
504
|
V(e), await this._updateDataModelDeps(), this.manager.onLifecycle(() => (this.hasUpdated && this._connectMonacoCustomizations().catch(h(this)), () => {
|
|
505
|
-
for (this._askAiBindingKey && (
|
|
505
|
+
for (this._askAiBindingKey && (y(this._askAiBindingKey, void 0), this._askAiBindingKey = void 0); this._disposables.length; )
|
|
506
506
|
this._disposables.pop()?.dispose();
|
|
507
507
|
this._abortExternalExecution(), this._connectMonacoCustomizationsPromise = void 0, this._executeScriptAction = void 0, this._clearDebuggerDecorations(), this._debuggerState.disconnect();
|
|
508
508
|
}));
|
|
@@ -789,10 +789,10 @@ class oe extends K {
|
|
|
789
789
|
return;
|
|
790
790
|
const t = this._getAskAiBindingKey();
|
|
791
791
|
if (!this._arcadeAssistantRemoteState.shouldRender) {
|
|
792
|
-
this._askAiBindingKey && (
|
|
792
|
+
this._askAiBindingKey && (y(this._askAiBindingKey, void 0), this._askAiBindingKey = void 0);
|
|
793
793
|
return;
|
|
794
794
|
}
|
|
795
|
-
this._askAiBindingKey && this._askAiBindingKey !== t &&
|
|
795
|
+
this._askAiBindingKey && this._askAiBindingKey !== t && y(this._askAiBindingKey, void 0), y(t, {
|
|
796
796
|
provideCodeActions: ({ context: i }) => this._getAskAiCodeActions(i),
|
|
797
797
|
run: (i) => {
|
|
798
798
|
this.openArcadeAssistant({
|
|
@@ -868,7 +868,7 @@ class oe extends K {
|
|
|
868
868
|
return l`<arcgis-language-api-panel slot=side-panel class=${S(e === "api" ? "" : "hidden")} .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisInternalItemSelected=${this._insertAsSnippet} @arcgisInternalClosePanel=${this._closeSidePanel} data-panel-name=none .closed=${e !== "api"}></arcgis-language-api-panel><arcgis-editor-variables slot=side-panel class=${S(e === "variables" ? "" : "hidden")} .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._closeSidePanel} data-panel-name=none .variable=${this._editorProfile} .closed=${e !== "variables"} .messageOverrides=${{
|
|
869
869
|
profileempty: this.messages.profileempty,
|
|
870
870
|
profilevariables: this.messages.profilevariables
|
|
871
|
-
}}></arcgis-editor-variables>${this.suggestions?.length && l`<arcgis-arcade-suggestions slot=side-panel class=${S(e === "suggestions" ? "" : "hidden")} .closed=${e !== "suggestions"} .suggestions=${this.suggestions} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._closeSidePanel} data-panel-name=none></arcgis-arcade-suggestions>` || ""}${t?.shouldRender && l`<arcgis-arcade-coding-assistant slot=side-panel class=${S(e === "arcade-assistant" ? "" : "hidden")} .closed=${e !== "arcade-assistant"} .insertText=${this._insertText.bind(this)} .closePanel=${this._closeSidePanel} .portalUrl=${t.portalUrl} .serviceUrl=${"serviceUrl" in t ? t.serviceUrl : void 0} .helpBase=${t.helpBase} .promptingEnabled=${this._canPromptWithArcadeAssistant()} .feedbackServiceUrl=${t.feedbackServiceUrl} .editorRef=${this.el} .appVersion=${this.arcadeAssistant?.appVersion} .disableQuestionAnswerLogging=${this.arcadeAssistant?.disableQuestionAnswerLogging} .diagnostics=${this._diagnostics} ${R(this._arcadeAssistantElt)}></arcgis-arcade-coding-assistant>` || ""}${this.customPanels?.map((i) => l`<calcite-flow slot=side-panel class=${S(e === i.id ? "" : "hidden")}>${i?.useFlows ? i.renderer?.({
|
|
871
|
+
}}></arcgis-editor-variables>${this.suggestions?.length && l`<arcgis-arcade-suggestions slot=side-panel class=${S(e === "suggestions" ? "" : "hidden")} .closed=${e !== "suggestions"} .suggestions=${this.suggestions} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._closeSidePanel} data-panel-name=none></arcgis-arcade-suggestions>` || ""}${t?.shouldRender && l`<arcgis-arcade-coding-assistant slot=side-panel class=${S(e === "arcade-assistant" ? "" : "hidden")} .closed=${e !== "arcade-assistant"} .insertText=${this._insertText.bind(this)} .closePanel=${this._closeSidePanel} .portalUrl=${t.portalUrl} .serviceUrl=${"serviceUrl" in t ? t.serviceUrl : void 0} .helpBase=${t.helpBase} .promptingEnabled=${this._canPromptWithArcadeAssistant()} .feedbackServiceUrl=${t.feedbackServiceUrl} .editorRef=${this.el} .appVersion=${this.arcadeAssistant?.appVersion} .disableQuestionAnswerLogging=${this.arcadeAssistant?.disableQuestionAnswerLogging} .diagnostics=${this._diagnostics} .docsConfig=${this.docsConfig} ${R(this._arcadeAssistantElt)}></arcgis-arcade-coding-assistant>` || ""}${this.customPanels?.map((i) => l`<calcite-flow slot=side-panel class=${S(e === i.id ? "" : "hidden")}>${i?.useFlows ? i.renderer?.({
|
|
872
872
|
closePanel: this._toggleSidePanel,
|
|
873
873
|
insertText: this._insertText.bind(this),
|
|
874
874
|
closed: e !== i.id,
|
|
@@ -519,4 +519,15 @@ export interface IEditorTestContext extends IContextReferences {
|
|
|
519
519
|
* The key's value must be of type ArcGIS core ProfileVariableInstance.
|
|
520
520
|
*/
|
|
521
521
|
profileVariableInstances: ProfileVariableInstances;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/** An object containing overrides of documentation links within the arcade editor. */
|
|
525
|
+
export type ArcadeEditorLinkOverrides = {
|
|
526
|
+
/** URL for the Arcade Assistant help topic. */
|
|
527
|
+
"arcade-assistant-reference-doc"?: string;
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
/** Customizable configuration of documentation links used by the Arcade editor. */
|
|
531
|
+
export interface DocsConfig {
|
|
532
|
+
links: ArcadeEditorLinkOverrides;
|
|
522
533
|
}
|