@arcgis/coding-components 4.29.0-beta.47 → 4.29.0-beta.49

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 (94) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
  2. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +13 -13
  3. package/dist/arcgis-coding-components/index.esm.js +1 -1
  4. package/dist/arcgis-coding-components/{p-10a322ec.js → p-0d616249.js} +9 -9
  5. package/dist/arcgis-coding-components/p-2c0d6f15.js +2 -0
  6. package/dist/arcgis-coding-components/{p-71faf9a4.js → p-5802524a.js} +1 -1
  7. package/dist/arcgis-coding-components/{p-9eabda86.js → p-5ddccf04.js} +1 -1
  8. package/dist/arcgis-coding-components/p-7475f3a6.js +1 -0
  9. package/dist/arcgis-coding-components/{p-e6ede32d.js → p-7d8caba9.js} +1 -1
  10. package/dist/arcgis-coding-components/{p-f7d7d78d.js → p-9f6db08a.js} +1 -1
  11. package/dist/arcgis-coding-components/{p-e475e6cd.js → p-aefe77ce.js} +1 -1
  12. package/dist/arcgis-coding-components/p-ce2be55e.entry.js +1 -0
  13. package/dist/arcgis-coding-components/{p-ce586a8c.js → p-d425a387.js} +1 -1
  14. package/dist/arcgis-coding-components/{p-c084ada8.js → p-ff21f230.js} +1 -1
  15. package/dist/cjs/{arcade-defaults-8445d852.js → arcade-defaults-2d513b59.js} +1534 -1534
  16. package/dist/cjs/arcade-mode-6219f1b8.js +599 -0
  17. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1404 -1408
  18. package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
  19. package/dist/cjs/{cssMode-e63287bb.js → cssMode-1ec48254.js} +2 -2
  20. package/dist/cjs/{html-c0d4db3b.js → html-0e1741fe.js} +2 -2
  21. package/dist/cjs/{htmlMode-fdc44d57.js → htmlMode-279d3c29.js} +2 -2
  22. package/dist/cjs/{index-6a382a34.js → index-ac186201.js} +67 -24
  23. package/dist/cjs/index.cjs.js +2 -2
  24. package/dist/cjs/{javascript-a419d064.js → javascript-04f1bce0.js} +3 -3
  25. package/dist/cjs/{jsonMode-73aee5d2.js → jsonMode-59322f7a.js} +2 -2
  26. package/dist/cjs/loader.cjs.js +1 -1
  27. package/dist/cjs/{tsMode-37d1b053.js → tsMode-17561f70.js} +2 -2
  28. package/dist/cjs/{typescript-53f9f36a.js → typescript-b7da8629.js} +2 -2
  29. package/dist/components/arcade-api.js +160 -160
  30. package/dist/components/arcade-contribution.js +60 -60
  31. package/dist/components/arcade-defaults.js +1240 -1240
  32. package/dist/components/arcade-mode.js +514 -513
  33. package/dist/components/arcade-results.js +426 -430
  34. package/dist/components/arcade-suggestions.js +130 -132
  35. package/dist/components/arcade-variables.js +157 -155
  36. package/dist/components/arcgis-arcade-api.d.ts +2 -2
  37. package/dist/components/arcgis-arcade-editor.d.ts +2 -2
  38. package/dist/components/arcgis-arcade-editor.js +391 -391
  39. package/dist/components/arcgis-arcade-results.d.ts +2 -2
  40. package/dist/components/arcgis-arcade-suggestions.d.ts +2 -2
  41. package/dist/components/arcgis-arcade-variables.d.ts +2 -2
  42. package/dist/components/arcgis-code-editor.d.ts +2 -2
  43. package/dist/components/code-editor.js +251 -251
  44. package/dist/components/fields.js +69 -69
  45. package/dist/components/functional-components.js +1 -1
  46. package/dist/components/index2.js +2 -2
  47. package/dist/components/markdown.js +28 -28
  48. package/dist/components/utilities.js +20 -20
  49. package/dist/esm/{arcade-defaults-d7893362.js → arcade-defaults-0bafa696.js} +1534 -1534
  50. package/dist/esm/arcade-mode-c17a1fa1.js +595 -0
  51. package/dist/esm/arcgis-arcade-api_6.entry.js +1404 -1408
  52. package/dist/esm/arcgis-coding-components.js +3 -3
  53. package/dist/esm/{cssMode-b1771f92.js → cssMode-3d18bd2b.js} +2 -2
  54. package/dist/esm/{html-af635d52.js → html-2bce5d77.js} +2 -2
  55. package/dist/esm/{htmlMode-3021c301.js → htmlMode-69d56956.js} +2 -2
  56. package/dist/esm/{index-fd6b2fd8.js → index-022fb97b.js} +67 -24
  57. package/dist/esm/index.js +2 -2
  58. package/dist/esm/{javascript-70589186.js → javascript-ded5c9d7.js} +3 -3
  59. package/dist/esm/{jsonMode-cb509b79.js → jsonMode-0bf84cb2.js} +2 -2
  60. package/dist/esm/loader.js +2 -2
  61. package/dist/esm/{tsMode-ed90c9aa.js → tsMode-15d4e936.js} +2 -2
  62. package/dist/esm/{typescript-db8a0b18.js → typescript-cc4d00f0.js} +2 -2
  63. package/dist/types/components/arcade-api/arcade-api.d.ts +40 -40
  64. package/dist/types/components/arcade-api/t9n-types.d.ts +6 -6
  65. package/dist/types/components/arcade-editor/arcade-editor.d.ts +127 -127
  66. package/dist/types/components/arcade-editor/t9n-types.d.ts +6 -6
  67. package/dist/types/components/arcade-results/arcade-results.d.ts +47 -47
  68. package/dist/types/components/arcade-results/t9n-types.d.ts +11 -11
  69. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +34 -34
  70. package/dist/types/components/arcade-suggestions/t9n-types.d.ts +4 -4
  71. package/dist/types/components/arcade-variables/arcade-variables.d.ts +41 -41
  72. package/dist/types/components/arcade-variables/t9n-types.d.ts +6 -6
  73. package/dist/types/components/code-editor/code-editor.d.ts +73 -73
  74. package/dist/types/stencil-public-runtime.d.ts +8 -0
  75. package/dist/types/utils/arcade-executor.d.ts +79 -79
  76. package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +66 -66
  77. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +23 -23
  78. package/dist/types/utils/arcade-monaco/arcade-mode.d.ts +9 -9
  79. package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +7 -7
  80. package/dist/types/utils/arcade-monaco/arcade-worker-manager.d.ts +9 -9
  81. package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +12 -12
  82. package/dist/types/utils/arcade-monaco/types.d.ts +29 -29
  83. package/dist/types/utils/editor-suggestions.d.ts +24 -24
  84. package/dist/types/utils/functional-components.d.ts +1 -1
  85. package/dist/types/utils/markdown.d.ts +1 -1
  86. package/dist/types/utils/profile/editor-profile.d.ts +185 -185
  87. package/dist/types/utils/profile/types.d.ts +101 -101
  88. package/dist/types/utils/utilities.d.ts +1 -1
  89. package/package.json +7 -7
  90. package/dist/arcgis-coding-components/p-5d670bd2.js +0 -2
  91. package/dist/arcgis-coding-components/p-9e242e76.js +0 -1
  92. package/dist/arcgis-coding-components/p-ccdf0ac1.entry.js +0 -1
  93. package/dist/cjs/arcade-mode-b77afcc9.js +0 -598
  94. package/dist/esm/arcade-mode-70e22d22.js +0 -594
@@ -1,11 +1,11 @@
1
1
  export declare function setupArcadeTheme(): void;
2
2
  export interface IColorRules {
3
- comment?: string;
4
- keyword?: string;
5
- identifier?: string;
6
- string?: string;
7
- number?: string;
8
- constant?: string;
9
- date?: string;
3
+ comment?: string;
4
+ keyword?: string;
5
+ identifier?: string;
6
+ string?: string;
7
+ number?: string;
8
+ constant?: string;
9
+ date?: string;
10
10
  }
11
11
  export declare function updateThemeColors(theme: "light" | "dark", colorRules: IColorRules | undefined): void;
@@ -4,13 +4,13 @@ import { IArcadeLanguageServiceDefaults, IArcadeWorker } from "./types";
4
4
  * Manager to create our arcade worker and client proxy
5
5
  */
6
6
  export declare class WorkerManager {
7
- private _defaults;
8
- private _worker;
9
- private _client;
10
- private _configChangeListener;
11
- constructor(_defaults: IArcadeLanguageServiceDefaults);
12
- dispose(): void;
13
- stopWorker(): void;
14
- private _getClientProxy;
15
- getLanguageServiceWorker(...resources: Uri[]): Promise<IArcadeWorker>;
7
+ private _defaults;
8
+ private _worker;
9
+ private _client;
10
+ private _configChangeListener;
11
+ constructor(_defaults: IArcadeLanguageServiceDefaults);
12
+ dispose(): void;
13
+ stopWorker(): void;
14
+ private _getClientProxy;
15
+ getLanguageServiceWorker(...resources: Uri[]): Promise<IArcadeWorker>;
16
16
  }
@@ -7,16 +7,16 @@ import { CompletionList, Position, TextEdit } from "vscode-languageserver-types"
7
7
  * The Arcade Web Worker is proxied by the Monaco worker server.
8
8
  */
9
9
  export declare class ArcadeWorker implements IArcadeWorker {
10
- private _ctx;
11
- private _languageId;
12
- private _languageService;
13
- constructor(_ctx: worker.IWorkerContext, { languageId, languageOptions }: {
14
- languageId: string;
15
- languageOptions?: ArcadeLanguageServiceSettings;
16
- });
17
- doValidation(modelId: string, context: ApiContext): Promise<Diagnostic[]>;
18
- doComplete(modelId: string, position: Position, context: ApiContext): Promise<CompletionList>;
19
- doFormat(modelId: string, context: ApiContext): Promise<TextEdit[]>;
20
- getApiLibrary(context: ApiContext): Promise<ApiCategory[]>;
21
- private _getTextDocument;
10
+ private _ctx;
11
+ private _languageId;
12
+ private _languageService;
13
+ constructor(_ctx: worker.IWorkerContext, { languageId, languageOptions }: {
14
+ languageId: string;
15
+ languageOptions?: ArcadeLanguageServiceSettings;
16
+ });
17
+ doValidation(modelId: string, context: ApiContext): Promise<Diagnostic[]>;
18
+ doComplete(modelId: string, position: Position, context: ApiContext): Promise<CompletionList>;
19
+ doFormat(modelId: string, context: ApiContext): Promise<TextEdit[]>;
20
+ getApiLibrary(context: ApiContext): Promise<ApiCategory[]>;
21
+ private _getTextDocument;
22
22
  }
@@ -2,40 +2,40 @@ import type { Thenable, Uri, IEvent } from "monaco-editor";
2
2
  import { ApiCategory, ArcadeLanguageServiceSettings, ApiContext, Diagnostic } from "@arcgis/arcade-languageservice";
3
3
  import { 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[]>;
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
9
  }
10
10
  export interface IArcadeWorkerAccessor {
11
- (...more: Uri[]): Thenable<IArcadeWorker>;
11
+ (...more: Uri[]): Thenable<IArcadeWorker>;
12
12
  }
13
13
  /**
14
14
  * The Arcade Language Service Defaults interface.
15
15
  */
16
16
  export interface IArcadeLanguageServiceDefaults {
17
- /**
18
- * The language id for which the settings are valid.
19
- */
20
- readonly languageId: string;
21
- /**
22
- * The language options for the arcade language service.
23
- */
24
- readonly languageOptions: ArcadeLanguageServiceSettings | null;
25
- /**
26
- * An event to signal changes to the settings.
27
- */
28
- readonly onDidChange: IEvent<IArcadeLanguageServiceDefaults>;
29
- /**
30
- * An event to signal changes to a model context.
31
- * The event value is the uri string.
32
- */
33
- readonly onModelContextDidChange: IEvent<string>;
34
- /**
35
- * Get the api context for a model.
36
- * If the model has no context, then the default context is returned.
37
- * @param modelId The model id for which to get the context.
38
- * @returns The api context for the model.
39
- */
40
- getApiContextForModel(modelId: string | Uri): ApiContext;
17
+ /**
18
+ * The language id for which the settings are valid.
19
+ */
20
+ readonly languageId: string;
21
+ /**
22
+ * The language options for the arcade language service.
23
+ */
24
+ readonly languageOptions: ArcadeLanguageServiceSettings | null;
25
+ /**
26
+ * An event to signal changes to the settings.
27
+ */
28
+ readonly onDidChange: IEvent<IArcadeLanguageServiceDefaults>;
29
+ /**
30
+ * An event to signal changes to a model context.
31
+ * The event value is the uri string.
32
+ */
33
+ readonly onModelContextDidChange: IEvent<string>;
34
+ /**
35
+ * Get the api context for a model.
36
+ * If the model has no context, then the default context is returned.
37
+ * @param modelId The model id for which to get the context.
38
+ * @returns The api context for the model.
39
+ */
40
+ getApiContextForModel(modelId: string | Uri): ApiContext;
41
41
  }
@@ -1,32 +1,32 @@
1
1
  export interface IEditorCodeSuggestionGroup {
2
- /**
3
- * Label for the suggestion group
4
- */
5
- label: string;
6
- /**
7
- * List of suggestions for the group
8
- */
9
- suggestions: IEditorCodeSuggestion[];
2
+ /**
3
+ * Label for the suggestion group
4
+ */
5
+ label: string;
6
+ /**
7
+ * List of suggestions for the group
8
+ */
9
+ suggestions: IEditorCodeSuggestion[];
10
10
  }
11
11
  /**
12
12
  * Defines a code suggestion
13
13
  */
14
14
  export interface IEditorCodeSuggestion {
15
- /**
16
- * A short label for the suggestion. Can be thought as a title
17
- */
18
- label: string;
19
- /**
20
- * A short description that will be showed below the label in the list of suggestions panel
21
- */
22
- description?: string;
23
- /**
24
- * Markdown string that will be rendered along with the code in the detail panel
25
- */
26
- documentation?: string;
27
- /**
28
- * The code for the suggestion. Will be injected in the editor is selected
29
- */
30
- code: string;
15
+ /**
16
+ * A short label for the suggestion. Can be thought as a title
17
+ */
18
+ label: string;
19
+ /**
20
+ * A short description that will be showed below the label in the list of suggestions panel
21
+ */
22
+ description?: string;
23
+ /**
24
+ * Markdown string that will be rendered along with the code in the detail panel
25
+ */
26
+ documentation?: string;
27
+ /**
28
+ * The code for the suggestion. Will be injected in the editor is selected
29
+ */
30
+ code: string;
31
31
  }
32
32
  export declare function isSuggestionGroups(item: unknown): item is IEditorCodeSuggestionGroup[];
@@ -1,7 +1,7 @@
1
1
  import { FunctionalComponent } from "../stencil-public-runtime";
2
2
  import type { JSX } from "@esri/calcite-components";
3
3
  interface StickyFilterProps extends JSX.CalciteInput {
4
- filterValue: string;
4
+ filterValue: string;
5
5
  }
6
6
  export declare const StickyFilterInput: FunctionalComponent<StickyFilterProps>;
7
7
  export {};
@@ -1,3 +1,3 @@
1
1
  export declare function convertMarkdownString(value: string | {
2
- value: string;
2
+ value: string;
3
3
  } | null | undefined): string;