@arcgis/coding-components 4.29.0-beta.61 → 4.29.0-beta.63

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 (122) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +3 -3
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +3 -3
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +3 -3
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +3 -3
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +3 -3
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +3 -3
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +3 -3
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +3 -3
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +3 -3
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +3 -3
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +3 -3
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +3 -3
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +3 -3
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +3 -3
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +3 -3
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +3 -3
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +3 -3
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +3 -3
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +3 -3
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +3 -3
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +3 -3
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +3 -3
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +3 -3
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +3 -3
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +3 -3
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +3 -3
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +3 -3
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +3 -3
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +3 -3
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +3 -3
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +3 -3
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +3 -3
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +3 -3
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +3 -3
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +3 -3
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +3 -3
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +3 -3
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +3 -3
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +3 -3
  41. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +23 -23
  42. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +30 -30
  43. package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +7 -7
  44. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +18 -18
  45. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +20 -20
  46. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +77 -77
  47. package/dist/arcgis-coding-components/index.esm.js +1 -1
  48. package/dist/arcgis-coding-components/{p-cfff9500.js → p-009eaccf.js} +1 -1
  49. package/dist/arcgis-coding-components/{p-2bd81bb5.js → p-2a665136.js} +2 -2
  50. package/dist/arcgis-coding-components/p-3ba4deea.js +1 -0
  51. package/dist/arcgis-coding-components/{p-4dce7d14.js → p-595d9a06.js} +2 -2
  52. package/dist/arcgis-coding-components/{p-665d75bc.js → p-7b6af57c.js} +2 -2
  53. package/dist/arcgis-coding-components/p-7d5fcf2e.js +63 -0
  54. package/dist/arcgis-coding-components/{p-e26e9f42.js → p-989439a0.js} +2 -2
  55. package/dist/arcgis-coding-components/{p-4e2e25e0.js → p-9b4a0643.js} +2 -2
  56. package/dist/arcgis-coding-components/{p-2e47d2b1.js → p-d7ca1083.js} +2 -2
  57. package/dist/arcgis-coding-components/p-e4efcbd0.entry.js +1 -0
  58. package/dist/arcgis-coding-components/{p-f7369d73.js → p-fcdd0366.js} +2 -2
  59. package/dist/cjs/{arcade-defaults-a0f45ab1.js → arcade-defaults-5c2ff166.js} +11507 -9772
  60. package/dist/cjs/{arcade-mode-579b4052.js → arcade-mode-23925c8d.js} +10 -9
  61. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +47 -51
  62. package/dist/cjs/{css-7229b372.js → css-eb1c8e5c.js} +1 -1
  63. package/dist/cjs/{cssMode-c3cf6180.js → cssMode-2e878b70.js} +2 -2
  64. package/dist/cjs/{html-0017e4c9.js → html-847c7e39.js} +2 -2
  65. package/dist/cjs/{htmlMode-17c8c42c.js → htmlMode-7a36db6d.js} +2 -2
  66. package/dist/cjs/index.cjs.js +1 -1
  67. package/dist/cjs/{javascript-8270accf.js → javascript-f5ca9a1a.js} +3 -3
  68. package/dist/cjs/{jsonMode-31e5160f.js → jsonMode-0d326a6e.js} +2 -2
  69. package/dist/cjs/{tsMode-db6b702f.js → tsMode-e4abe99d.js} +2 -2
  70. package/dist/cjs/{typescript-b962205d.js → typescript-c43b7258.js} +2 -2
  71. package/dist/components/arcade-api.js +6 -6
  72. package/dist/components/arcade-contribution.js +5 -5
  73. package/dist/components/arcade-defaults.js +35 -35
  74. package/dist/components/arcade-mode.js +9 -8
  75. package/dist/components/arcade-results.js +12 -12
  76. package/dist/components/arcade-suggestions.js +6 -6
  77. package/dist/components/arcade-variables.js +5 -5
  78. package/dist/components/arcgis-arcade-editor.js +20 -20
  79. package/dist/components/code-editor.js +9 -13
  80. package/dist/components/fields.js +2 -2
  81. package/dist/components/index2.js +2 -2
  82. package/dist/components/markdown.js +1 -1
  83. package/dist/components/utilities.js +2 -2
  84. package/dist/esm/{arcade-defaults-d96f16cd.js → arcade-defaults-7525fe7a.js} +11500 -9765
  85. package/dist/esm/{arcade-mode-8662cb42.js → arcade-mode-312bbd22.js} +10 -9
  86. package/dist/esm/arcgis-arcade-api_6.entry.js +47 -51
  87. package/dist/esm/{css-ff1e9f8c.js → css-aade9167.js} +1 -1
  88. package/dist/esm/{cssMode-eb4872e0.js → cssMode-71ce0374.js} +2 -2
  89. package/dist/esm/{html-074ac87c.js → html-37ae4460.js} +2 -2
  90. package/dist/esm/{htmlMode-3a5d257f.js → htmlMode-ae5b0f39.js} +2 -2
  91. package/dist/esm/index.js +1 -1
  92. package/dist/esm/{javascript-edca9928.js → javascript-ad435a4b.js} +3 -3
  93. package/dist/esm/{jsonMode-e7283fe9.js → jsonMode-b8bb4df0.js} +2 -2
  94. package/dist/esm/{tsMode-1dba46bc.js → tsMode-b967128d.js} +2 -2
  95. package/dist/esm/{typescript-21a54a2f.js → typescript-a9a22ab3.js} +2 -2
  96. package/dist/types/components/arcade-api/arcade-api.d.ts +3 -3
  97. package/dist/types/components/arcade-editor/arcade-editor.d.ts +8 -8
  98. package/dist/types/components/arcade-results/arcade-results.d.ts +4 -4
  99. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +5 -5
  100. package/dist/types/components/arcade-variables/arcade-variables.d.ts +3 -3
  101. package/dist/types/components/code-editor/code-editor.d.ts +2 -2
  102. package/dist/types/components.d.ts +7 -5
  103. package/dist/types/index.d.ts +1 -1
  104. package/dist/types/utils/arcade-executor.d.ts +14 -14
  105. package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +1 -1
  106. package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +11 -10
  107. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +5 -4
  108. package/dist/types/utils/arcade-monaco/arcade-mode.d.ts +1 -1
  109. package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +1 -1
  110. package/dist/types/utils/arcade-monaco/arcade-worker-manager.d.ts +2 -2
  111. package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +2 -2
  112. package/dist/types/utils/arcade-monaco/types.d.ts +8 -10
  113. package/dist/types/utils/colorize.d.ts +1 -1
  114. package/dist/types/utils/functional-components.d.ts +1 -1
  115. package/dist/types/utils/profile/editor-profile.d.ts +16 -18
  116. package/dist/types/utils/profile/types.d.ts +14 -14
  117. package/dist/types/utils/profile/utils.d.ts +1 -1
  118. package/dist/types/utils/utilities.d.ts +1 -1
  119. package/package.json +7 -7
  120. package/dist/arcgis-coding-components/p-0e589f27.entry.js +0 -1
  121. package/dist/arcgis-coding-components/p-15c465b1.js +0 -1
  122. package/dist/arcgis-coding-components/p-abb70533.js +0 -62
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
3
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
6
  *-----------------------------------------------------------------------------*/
@@ -1,9 +1,9 @@
1
- import { m as monaco_editor_core_star } from './arcade-defaults-d96f16cd.js';
1
+ import { o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.js';
2
2
  import './index-022fb97b.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
6
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
6
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
7
7
  * Released under the MIT license
8
8
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
9
  *-----------------------------------------------------------------------------*/
@@ -1,9 +1,9 @@
1
- import { m as monaco_editor_core_star } from './arcade-defaults-d96f16cd.js';
1
+ import { o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.js';
2
2
  import './index-022fb97b.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
6
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
6
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
7
7
  * Released under the MIT license
8
8
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
9
  *-----------------------------------------------------------------------------*/
@@ -1,9 +1,9 @@
1
- import { m as monaco_editor_core_star } from './arcade-defaults-d96f16cd.js';
1
+ import { o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.js';
2
2
  import './index-022fb97b.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
6
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
6
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
7
7
  * Released under the MIT license
8
8
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
9
  *-----------------------------------------------------------------------------*/
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { a as arcade } from './arcade-defaults-d96f16cd.js';
1
+ export { a as arcade } from './arcade-defaults-7525fe7a.js';
2
2
  import './index-022fb97b.js';
@@ -1,10 +1,10 @@
1
- import { conf as conf$1, language as language$1 } from './typescript-21a54a2f.js';
2
- import './arcade-defaults-d96f16cd.js';
1
+ import { conf as conf$1, language as language$1 } from './typescript-a9a22ab3.js';
2
+ import './arcade-defaults-7525fe7a.js';
3
3
  import './index-022fb97b.js';
4
4
 
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
7
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
8
8
  * Released under the MIT license
9
9
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
10
10
  *-----------------------------------------------------------------------------*/
@@ -1,9 +1,9 @@
1
- import { m as monaco_editor_core_star } from './arcade-defaults-d96f16cd.js';
1
+ import { o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.js';
2
2
  import './index-022fb97b.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
6
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
6
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
7
7
  * Released under the MIT license
8
8
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
9
  *-----------------------------------------------------------------------------*/
@@ -1,9 +1,9 @@
1
- import { t as typescriptDefaults, m as monaco_editor_core_star } from './arcade-defaults-d96f16cd.js';
1
+ import { p as typescriptDefaults, o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.js';
2
2
  import './index-022fb97b.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
6
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
6
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
7
7
  * Released under the MIT license
8
8
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
9
  *-----------------------------------------------------------------------------*/
@@ -1,9 +1,9 @@
1
- import { m as monaco_editor_core_star } from './arcade-defaults-d96f16cd.js';
1
+ import { o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.js';
2
2
  import './index-022fb97b.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
6
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
6
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
7
7
  * Released under the MIT license
8
8
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
9
9
  *-----------------------------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
- import { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
1
+ import type { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
2
2
  import type { ApiCategory, ApiItem } from "@arcgis/arcade-languageservice";
3
- import { ArcadeAPIStrings } from "./t9n-types";
3
+ import type { ArcadeAPIStrings } from "./t9n-types";
4
4
  /** @internal */
5
5
  export declare class ArcgisArcadeApi implements ComponentInterface {
6
6
  private _flowObserver?;
@@ -9,7 +9,7 @@ export declare class ArcgisArcadeApi implements ComponentInterface {
9
9
  _lang: string;
10
10
  _t9nLocale: string;
11
11
  _t9nStrings: ArcadeAPIStrings | undefined;
12
- _selectedApiItem: undefined | ApiItem;
12
+ _selectedApiItem: ApiItem | undefined;
13
13
  _filterValue: string;
14
14
  _colorizeStyle: string;
15
15
  _preparingApi: boolean;
@@ -1,14 +1,14 @@
1
- import { EventEmitter, VNode, ComponentInterface } from "../../stencil-public-runtime";
1
+ import type { EventEmitter, VNode, ComponentInterface } from "../../stencil-public-runtime";
2
2
  import type { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
3
3
  import type { ArcadeEditorStrings } from "./t9n-types";
4
4
  import type { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "../../utils/editor-suggestions";
5
5
  import type { IEditorProfileDefinition, IPredefinedProfile } from "../../utils/profile/types";
6
- import { editor } from "monaco-editor";
7
- import { EditorProfile } from "../../utils/profile/editor-profile";
8
- import { ArcadeResult, IEditorTestContext, ResultType } from "../../utils/arcade-executor";
9
- import { IColorRules } from "../../utils/arcade-monaco/arcade-theme";
10
- import { ResultPanelName } from "../arcade-results/arcade-results";
11
- export type SidePanelName = "none" | "api" | "variables" | "suggestions";
6
+ import type { editor } from "monaco-editor";
7
+ import type { EditorProfile } from "../../utils/profile/editor-profile";
8
+ import type { ArcadeResult, IEditorTestContext, ResultType } from "../../utils/arcade-executor";
9
+ import type { IColorRules } from "../../utils/arcade-monaco/arcade-theme";
10
+ import type { ResultPanelName } from "../arcade-results/arcade-results";
11
+ export type SidePanelName = "api" | "none" | "suggestions" | "variables";
12
12
  export declare class ArcgisArcadeEditor implements ComponentInterface {
13
13
  private _codeEditorElt?;
14
14
  private _componentReadyDefer;
@@ -57,7 +57,7 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
57
57
  /**
58
58
  * Collection of suggestions
59
59
  */
60
- suggestions: IEditorCodeSuggestionGroup[] | IEditorCodeSuggestion[] | undefined;
60
+ suggestions: IEditorCodeSuggestion[] | IEditorCodeSuggestionGroup[] | undefined;
61
61
  /**
62
62
  * Collection of snippets
63
63
  */
@@ -1,7 +1,7 @@
1
- import { ComponentInterface, EventEmitter, VNode } from "../../stencil-public-runtime";
2
- import { ArcadeResult } from "../../utils/arcade-executor";
3
- import { ArcadeResultsStrings } from "./t9n-types";
4
- export type ResultPanelName = "output" | "console" | "log";
1
+ import type { ComponentInterface, EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import type { ArcadeResult } from "../../utils/arcade-executor";
3
+ import type { ArcadeResultsStrings } from "./t9n-types";
4
+ export type ResultPanelName = "console" | "log" | "output";
5
5
  /** @internal */
6
6
  export declare class ArcgisArcadeResults implements ComponentInterface {
7
7
  _hostElement: HTMLArcgisArcadeResultsElement;
@@ -1,6 +1,6 @@
1
- import { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
2
- import { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "../../utils/editor-suggestions";
3
- import { ArcadeSuggestionsStrings } from "./t9n-types";
1
+ import type { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
2
+ import type { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "../../utils/editor-suggestions";
3
+ import type { ArcadeSuggestionsStrings } from "./t9n-types";
4
4
  /** @internal */
5
5
  export declare class ArcgisArcadeSuggestions implements ComponentInterface {
6
6
  private _flowObserver?;
@@ -9,13 +9,13 @@ export declare class ArcgisArcadeSuggestions implements ComponentInterface {
9
9
  _lang: string;
10
10
  _t9nLocale: string;
11
11
  _t9nStrings: ArcadeSuggestionsStrings | undefined;
12
- _selectedSuggestion: undefined | IEditorCodeSuggestion;
12
+ _selectedSuggestion: IEditorCodeSuggestion | undefined;
13
13
  _filterValue: string;
14
14
  _colorizeStyle: string;
15
15
  /**
16
16
  * The collection of suggestions
17
17
  */
18
- suggestions: IEditorCodeSuggestionGroup[] | IEditorCodeSuggestion[] | undefined;
18
+ suggestions: IEditorCodeSuggestion[] | IEditorCodeSuggestionGroup[] | undefined;
19
19
  suggestionsPropChanged(): void;
20
20
  /**
21
21
  * Raised when close action has been activated
@@ -1,5 +1,5 @@
1
- import { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
2
- import { ArcadeVariablesStrings } from "./t9n-types";
1
+ import type { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
2
+ import type { ArcadeVariablesStrings } from "./t9n-types";
3
3
  /** @internal */
4
4
  export declare class ArcgisArcadeVariables implements ComponentInterface {
5
5
  private _flowObserver?;
@@ -8,7 +8,7 @@ export declare class ArcgisArcadeVariables implements ComponentInterface {
8
8
  _t9nLocale: string;
9
9
  _t9nStrings: ArcadeVariablesStrings | undefined;
10
10
  _mutationCounter: number;
11
- _flowItemRenderers: Array<() => VNode>;
11
+ _flowItemRenderers: (() => VNode)[];
12
12
  _filterValue: string;
13
13
  /**
14
14
  * Loading state
@@ -1,4 +1,4 @@
1
- import { EventEmitter, VNode, ComponentInterface } from "../../stencil-public-runtime";
1
+ import type { EventEmitter, VNode, ComponentInterface } from "../../stencil-public-runtime";
2
2
  import "../../utils/arcade-monaco/arcade-contribution";
3
3
  export declare class ArcgisCodeEditor implements ComponentInterface {
4
4
  private _editorInstance?;
@@ -56,7 +56,7 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
56
56
  * Returns the editor instance.
57
57
  * @returns {Promise<IStandaloneCodeEditor>} - The monaco editor instance
58
58
  */
59
- getEditorInstance(): Promise<any | undefined>;
59
+ getEditorInstance(): Promise<typeof this._editorInstance>;
60
60
  /**
61
61
  * Sets the focus on the editor.
62
62
  * @returns {Promise<void>}
@@ -12,6 +12,7 @@ import { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
12
12
  import { SidePanelName } from "./components/arcade-editor/arcade-editor";
13
13
  import { IColorRules } from "./utils/arcade-monaco/arcade-theme";
14
14
  import { ResultPanelName } from "./components/arcade-results/arcade-results";
15
+ import { editor } from "monaco-editor";
15
16
  export { IEditorProfileDefinition, IPredefinedProfile } from "./utils/profile/types";
16
17
  export { ArcadeResult, IEditorTestContext, ResultType } from "./utils/arcade-executor";
17
18
  export { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "./utils/editor-suggestions";
@@ -19,6 +20,7 @@ export { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
19
20
  export { SidePanelName } from "./components/arcade-editor/arcade-editor";
20
21
  export { IColorRules } from "./utils/arcade-monaco/arcade-theme";
21
22
  export { ResultPanelName } from "./components/arcade-results/arcade-results";
23
+ export { editor } from "monaco-editor";
22
24
  export namespace Components {
23
25
  interface ArcgisArcadeApi {
24
26
  /**
@@ -84,7 +86,7 @@ export namespace Components {
84
86
  /**
85
87
  * Collection of suggestions
86
88
  */
87
- "suggestions": IEditorCodeSuggestionGroup[] | IEditorCodeSuggestion[] | undefined;
89
+ "suggestions": IEditorCodeSuggestion[] | IEditorCodeSuggestionGroup[] | undefined;
88
90
  /**
89
91
  * Test data used to execute the script in the editor. If undefined the execute script UX will be hidden.
90
92
  */
@@ -116,7 +118,7 @@ export namespace Components {
116
118
  /**
117
119
  * The collection of suggestions
118
120
  */
119
- "suggestions": IEditorCodeSuggestionGroup[] | IEditorCodeSuggestion[] | undefined;
121
+ "suggestions": IEditorCodeSuggestion[] | IEditorCodeSuggestionGroup[] | undefined;
120
122
  }
121
123
  interface ArcgisArcadeVariables {
122
124
  /**
@@ -132,7 +134,7 @@ export namespace Components {
132
134
  /**
133
135
  * @returns - The monaco editor instance
134
136
  */
135
- "getEditorInstance": () => Promise<any | undefined>;
137
+ "getEditorInstance": () => Promise<typeof this._editorInstance>;
136
138
  /**
137
139
  * Gets the current value in the editor.
138
140
  * @returns
@@ -375,7 +377,7 @@ declare namespace LocalJSX {
375
377
  /**
376
378
  * Collection of suggestions
377
379
  */
378
- "suggestions"?: IEditorCodeSuggestionGroup[] | IEditorCodeSuggestion[] | undefined;
380
+ "suggestions"?: IEditorCodeSuggestion[] | IEditorCodeSuggestionGroup[] | undefined;
379
381
  /**
380
382
  * Test data used to execute the script in the editor. If undefined the execute script UX will be hidden.
381
383
  */
@@ -419,7 +421,7 @@ declare namespace LocalJSX {
419
421
  /**
420
422
  * The collection of suggestions
421
423
  */
422
- "suggestions"?: IEditorCodeSuggestionGroup[] | IEditorCodeSuggestion[] | undefined;
424
+ "suggestions"?: IEditorCodeSuggestion[] | IEditorCodeSuggestionGroup[] | undefined;
423
425
  }
424
426
  interface ArcgisArcadeVariables {
425
427
  /**
@@ -1,3 +1,3 @@
1
1
  export * from "./components";
2
2
  export { arcade } from "./utils/arcade-monaco/arcade-defaults";
3
- export { Diagnostic } from "@arcgis/arcade-languageservice";
3
+ export type { Diagnostic } from "@arcgis/arcade-languageservice";
@@ -37,10 +37,10 @@ export type EditorTestContext = IEditorTestContext;
37
37
  export interface IArcadeRuntimeDictionary {
38
38
  declaredClass?: string;
39
39
  arcadeDeclaredClass?: string;
40
- keys(): string[];
41
- field(name: string): any;
42
- geometry?(): any;
43
- castAsJson(): Record<string, any>;
40
+ keys: () => string[];
41
+ field: (name: string) => any;
42
+ geometry?: () => any;
43
+ castAsJson: () => Record<string, any>;
44
44
  }
45
45
  export interface IAbortSignal {
46
46
  aborted: boolean;
@@ -48,15 +48,15 @@ export interface IAbortSignal {
48
48
  interface IArcadeRuntimeFeatureSet {
49
49
  declaredRootClass: string;
50
50
  fields: __esri.Field[] | null;
51
- load(): Promise<IArcadeRuntimeFeatureSet>;
52
- iterator(abortSignal: IAbortSignal): IArcadeRuntimeFeatureSetIterator;
51
+ load: () => Promise<IArcadeRuntimeFeatureSet>;
52
+ iterator: (abortSignal: IAbortSignal) => IArcadeRuntimeFeatureSetIterator;
53
53
  }
54
54
  interface IArcadeRuntimeFeatureSetIterator {
55
- nextBatchAsArcadeFeatures(bsize: number, timeZone: string): Promise<IArcadeRuntimeDictionary[] | null>;
55
+ nextBatchAsArcadeFeatures: (bsize: number, timeZone: string) => Promise<IArcadeRuntimeDictionary[] | null>;
56
56
  }
57
57
  interface IArcadeRuntimeDate {
58
58
  declaredRootClass: string;
59
- toDateTime(): any;
59
+ toDateTime: () => any;
60
60
  isUnknownTimeZone: boolean;
61
61
  }
62
62
  interface IArcadeRuntimeDateOnly {
@@ -64,16 +64,16 @@ interface IArcadeRuntimeDateOnly {
64
64
  /**
65
65
  * To ISO Date format
66
66
  */
67
- toString(): string;
67
+ toString: () => string;
68
68
  }
69
69
  interface IArcadeRuntimeTimeOnly {
70
70
  declaredRootClass: string;
71
71
  /**
72
72
  * To ISO Time format
73
73
  */
74
- toString(): string;
74
+ toString: () => string;
75
75
  }
76
- export type ResultType = "unknown" | "error" | "null" | "array" | "date" | "dateOnly" | "time" | "text" | "number" | "boolean" | "dictionary" | "geometry" | "attachment" | "feature" | "featureSet" | "portal";
76
+ export type ResultType = "array" | "attachment" | "boolean" | "date" | "dateOnly" | "dictionary" | "error" | "feature" | "featureSet" | "geometry" | "null" | "number" | "portal" | "text" | "time" | "unknown";
77
77
  interface IArcadeResultBase {
78
78
  type: ResultType;
79
79
  timeStamp?: Date;
@@ -93,11 +93,11 @@ export interface IArcadeResultError extends IArcadeResultBase {
93
93
  }
94
94
  export interface IArcadeResultArray extends IArcadeResultBase {
95
95
  type: "array";
96
- value: Array<any>;
96
+ value: any[];
97
97
  }
98
98
  export interface IArcadeResultDate extends IArcadeResultBase {
99
99
  type: "date";
100
- value: IArcadeRuntimeDate | Date;
100
+ value: Date | IArcadeRuntimeDate;
101
101
  }
102
102
  export interface IArcadeResultDateOnly extends IArcadeResultBase {
103
103
  type: "dateOnly";
@@ -145,7 +145,7 @@ export interface IArcadeResultAttachment extends IArcadeResultBase {
145
145
  type: "attachment";
146
146
  value: IArcadeRuntimeDictionary;
147
147
  }
148
- export type ArcadeResult = IArcadeResultError | IArcadeResultUnknown | IArcadeResultNull | IArcadeResultNumber | IArcadeResultBoolean | IArcadeResultString | IArcadeResultDate | IArcadeResultDateOnly | IArcadeResultTimeOnly | IArcadeResultArray | IArcadeResultDictionary | IArcadeResultGeometry | IArcadeResultAttachment | IArcadeResultFeature | IArcadeResultFeatureSet | IArcadeResultPortal;
148
+ export type ArcadeResult = IArcadeResultArray | IArcadeResultAttachment | IArcadeResultBoolean | IArcadeResultDate | IArcadeResultDateOnly | IArcadeResultDictionary | IArcadeResultError | IArcadeResultFeature | IArcadeResultFeatureSet | IArcadeResultGeometry | IArcadeResultNull | IArcadeResultNumber | IArcadeResultPortal | IArcadeResultString | IArcadeResultTimeOnly | IArcadeResultUnknown;
149
149
  export declare function valueToArcadeResult(value: unknown): ArcadeResult;
150
150
  export declare function formatArcadeResultDate(dateObject: IArcadeResultDate, lang?: string): string;
151
151
  export declare function formatArcadeResultDateOnly(dateObject: IArcadeResultDateOnly): string;
@@ -1,5 +1,5 @@
1
1
  import type { IArcadeWorker } from "./types";
2
- import { Uri } from "monaco-editor";
2
+ import type { Uri } from "monaco-editor";
3
3
  import type { IDiagnosticService } from "./arcade-mode";
4
4
  /**
5
5
  * Returns the arcade diagnostic service.
@@ -1,8 +1,9 @@
1
1
  import type { IArcadeLanguageServiceDefaults } from "./types";
2
2
  import type { ApiContext, ApiSnippet, ArcadeLanguageServiceSettings } from "@arcgis/arcade-languageservice";
3
- import { IEvent, Uri } from "monaco-editor";
3
+ import type { IEvent } from "monaco-editor";
4
+ import { Uri } from "monaco-editor";
4
5
  import { EditorProfile } from "../profile/editor-profile";
5
- import { IEditorProfileDefinition, IPredefinedProfile } from "../profile/types";
6
+ import type { IEditorProfileDefinition, IPredefinedProfile } from "../profile/types";
6
7
  declare class ArcadeLanguageServiceDefaults implements IArcadeLanguageServiceDefaults {
7
8
  private _languageId;
8
9
  private _languageOptions;
@@ -27,7 +28,7 @@ declare class ArcadeLanguageServiceDefaults implements IArcadeLanguageServiceDef
27
28
  * @param locale The locale to use for the model context.
28
29
  * @returns The EditorProfile for the model.
29
30
  */
30
- setProfileForModel(modelId: string | Uri, definition: IEditorProfileDefinition | IPredefinedProfile | undefined, apiContext?: {
31
+ setProfileForModel(modelId: Uri | string, definition: IEditorProfileDefinition | IPredefinedProfile | undefined, apiContext?: {
31
32
  locale: string;
32
33
  snippets?: ApiSnippet[];
33
34
  }): Promise<void>;
@@ -36,31 +37,31 @@ declare class ArcadeLanguageServiceDefaults implements IArcadeLanguageServiceDef
36
37
  * It is the responsibility of the caller that created the editor profile to dispose it.
37
38
  * @param modelId The model id for which to dispose the editor profile.
38
39
  */
39
- disposeEditorProfileForModel(modelId: string | Uri): void;
40
+ disposeEditorProfileForModel(modelId: Uri | string): void;
40
41
  /**
41
42
  * Dispose the api context for the given model id.
42
43
  * @param modelId The model id for which to dispose the api context.
43
44
  */
44
- disposeApiContextForModel(modelId: string | Uri): void;
45
+ disposeApiContextForModel(modelId: Uri | string): void;
45
46
  /**
46
47
  * Returns the editor profile for the given model id.
47
48
  * @param modelId The model id for which to get the editor profile.
48
49
  * @returns The editor profile for the model.
49
50
  */
50
- getEditorProfileForModel(modelId: string | Uri): EditorProfile | undefined;
51
+ getEditorProfileForModel(modelId: Uri | string): EditorProfile | undefined;
51
52
  /**
52
53
  * Returns the API context for the given model id.
53
54
  * Returns the default context if the model has no context.
54
55
  * @param modelId The model id for which to get the API context.
55
56
  * @returns The API context for the model.
56
57
  */
57
- getApiContextForModel(contextId: string | Uri): ApiContext;
58
+ getApiContextForModel(contextId: Uri | string): ApiContext;
58
59
  /**
59
60
  * Set or update api context for the given model id.
60
61
  * @param modelId The model id for which to set the context.
61
62
  * @param apiContext The api context to set.
62
63
  */
63
- updateApiContextForModel(modelId: string | Uri, apiContext: ApiContext): void;
64
+ updateApiContextForModel(modelId: Uri | string, apiContext: ApiContext): void;
64
65
  /**
65
66
  * Set or update the Arcade language service options.
66
67
  * @param languageOptions The language options to set.
@@ -69,9 +70,9 @@ declare class ArcadeLanguageServiceDefaults implements IArcadeLanguageServiceDef
69
70
  }
70
71
  export declare const arcadeDefaults: ArcadeLanguageServiceDefaults;
71
72
  export declare const arcade: {
72
- setProfileForModel(modelId: string | Uri, definition: IEditorProfileDefinition | IPredefinedProfile | undefined, apiContext?: {
73
+ setProfileForModel: (modelId: Uri | string, definition: IEditorProfileDefinition | IPredefinedProfile | undefined, apiContext?: {
73
74
  locale: string;
74
75
  snippets?: ApiSnippet[];
75
- }): Promise<void>;
76
+ }) => Promise<void>;
76
77
  };
77
78
  export {};
@@ -1,6 +1,7 @@
1
- import { Diagnostic } from "@arcgis/arcade-languageservice";
2
- import { editor, Uri, Position, languages } from "monaco-editor";
3
- import { IArcadeLanguageServiceDefaults, IArcadeWorkerAccessor } from "./types";
1
+ import type { Diagnostic } from "@arcgis/arcade-languageservice";
2
+ import type { Uri, Position } from "monaco-editor";
3
+ import { editor, languages } from "monaco-editor";
4
+ import type { IArcadeLanguageServiceDefaults, IArcadeWorkerAccessor } from "./types";
4
5
  export declare class DiagnosticsAdapter {
5
6
  private _languageId;
6
7
  private _worker;
@@ -11,7 +12,7 @@ export declare class DiagnosticsAdapter {
11
12
  constructor(_languageId: string, _worker: IArcadeWorkerAccessor, { defaults, diagnosticsService }: {
12
13
  defaults: IArcadeLanguageServiceDefaults;
13
14
  diagnosticsService: {
14
- fireDiagnosticsChange(uri: Uri, diagnostics: Diagnostic[]): void;
15
+ fireDiagnosticsChange: (uri: Uri, diagnostics: Diagnostic[]) => void;
15
16
  };
16
17
  });
17
18
  dispose(): void;
@@ -1,4 +1,4 @@
1
- import { IEvent, Uri } from "monaco-editor";
1
+ import type { IEvent, Uri } from "monaco-editor";
2
2
  import type { IArcadeLanguageServiceDefaults, IArcadeWorker } from "./types";
3
3
  import type { Diagnostic } from "@arcgis/arcade-languageservice";
4
4
  /**
@@ -8,4 +8,4 @@ export interface IColorRules {
8
8
  constant?: string;
9
9
  date?: string;
10
10
  }
11
- export declare function updateThemeColors(theme: "light" | "dark", colorRules: IColorRules | undefined): void;
11
+ export declare function updateThemeColors(theme: "dark" | "light", colorRules: IColorRules | undefined): void;
@@ -1,5 +1,5 @@
1
- import { Uri } from "monaco-editor";
2
- import { IArcadeLanguageServiceDefaults, IArcadeWorker } from "./types";
1
+ import type { Uri } from "monaco-editor";
2
+ import type { IArcadeLanguageServiceDefaults, IArcadeWorker } from "./types";
3
3
  /**
4
4
  * Manager to create our arcade worker and client proxy
5
5
  */
@@ -1,7 +1,7 @@
1
- import { worker } from "monaco-editor";
1
+ import type { worker } from "monaco-editor";
2
2
  import type { IArcadeWorker } from "./types";
3
3
  import type { ArcadeLanguageServiceSettings, ApiCategory, ApiContext, Diagnostic } from "@arcgis/arcade-languageservice";
4
- import { CompletionList, Position, TextEdit } from "vscode-languageserver-types";
4
+ import type { CompletionList, Position, TextEdit } from "vscode-languageserver-types";
5
5
  /**
6
6
  * The Arcade Web Worker is leveraging the Arcade Language Service to provide the editor functionalities.
7
7
  * The Arcade Web Worker is proxied by the Monaco worker server.
@@ -1,15 +1,13 @@
1
1
  import type { Thenable, Uri, IEvent } from "monaco-editor";
2
- import { ApiCategory, ArcadeLanguageServiceSettings, ApiContext, Diagnostic } from "@arcgis/arcade-languageservice";
3
- import { CompletionList, Position, TextEdit } from "vscode-languageserver-types";
2
+ import type { ApiCategory, ArcadeLanguageServiceSettings, ApiContext, Diagnostic } from "@arcgis/arcade-languageservice";
3
+ import type { CompletionList, Position, TextEdit } from "vscode-languageserver-types";
4
4
  export interface IArcadeWorker {
5
- doValidation(modelId: string, context: ApiContext): Thenable<Diagnostic[]>;
6
- doComplete(modelId: string, position: Position, context: ApiContext): Thenable<CompletionList>;
7
- doFormat(modelId: string, context: ApiContext): Thenable<TextEdit[]>;
8
- getApiLibrary(context: ApiContext): Thenable<ApiCategory[]>;
9
- }
10
- export interface IArcadeWorkerAccessor {
11
- (...more: Uri[]): Thenable<IArcadeWorker>;
5
+ doValidation: (modelId: string, context: ApiContext) => Thenable<Diagnostic[]>;
6
+ doComplete: (modelId: string, position: Position, context: ApiContext) => Thenable<CompletionList>;
7
+ doFormat: (modelId: string, context: ApiContext) => Thenable<TextEdit[]>;
8
+ getApiLibrary: (context: ApiContext) => Thenable<ApiCategory[]>;
12
9
  }
10
+ export type IArcadeWorkerAccessor = (...more: Uri[]) => Thenable<IArcadeWorker>;
13
11
  /**
14
12
  * The Arcade Language Service Defaults interface.
15
13
  */
@@ -37,5 +35,5 @@ export interface IArcadeLanguageServiceDefaults {
37
35
  * @param modelId The model id for which to get the context.
38
36
  * @returns The api context for the model.
39
37
  */
40
- getApiContextForModel(modelId: string | Uri): ApiContext;
38
+ getApiContextForModel: (modelId: Uri | string) => ApiContext;
41
39
  }
@@ -1,4 +1,4 @@
1
- import { IDisposable } from "monaco-editor";
1
+ import type { IDisposable } from "monaco-editor";
2
2
  export declare function colorizedAllCodeElements(e: HTMLElement): Promise<void>;
3
3
  export declare function colorizeCodeElement(e: Element | null | undefined, text: string | null | undefined): Promise<void>;
4
4
  export declare function generateColorizeStyles(): string;
@@ -1,4 +1,4 @@
1
- import { FunctionalComponent } from "../stencil-public-runtime";
1
+ import type { FunctionalComponent } from "../stencil-public-runtime";
2
2
  import type { JSX } from "@esri/calcite-components";
3
3
  interface StickyFilterProps extends JSX.CalciteInput {
4
4
  filterValue: string;