@arcgis/coding-components 4.30.0-next.0 → 4.30.0-next.2
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/README.md +2 -0
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.en.json +2 -0
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-94841fa0.js → p-1f472679.js} +2 -2
- package/dist/arcgis-coding-components/{p-e1ba5135.js → p-1f933dba.js} +2 -2
- package/dist/arcgis-coding-components/{p-58af3ef8.js → p-30100e82.js} +1 -1
- package/dist/arcgis-coding-components/{p-74f09606.js → p-30e98420.js} +10 -10
- package/dist/arcgis-coding-components/{p-d1d9012a.js → p-758218e2.js} +2 -2
- package/dist/arcgis-coding-components/{p-53ed4d0b.js → p-8c6bf361.js} +2 -2
- package/dist/arcgis-coding-components/{p-f5feaf75.js → p-b22a71b8.js} +1 -1
- package/dist/arcgis-coding-components/{p-be2f2746.js → p-c4b91917.js} +3 -3
- package/dist/arcgis-coding-components/{p-e6a14b51.js → p-e55a59ff.js} +2 -2
- package/dist/arcgis-coding-components/p-f0b811ba.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-e769db2c.js → p-f3068c90.js} +2 -2
- package/dist/arcgis-coding-components/{p-1cd7563b.js → p-fdf8d908.js} +2 -2
- package/dist/cjs/{arcade-defaults-116ec741.js → arcade-defaults-eb3968a5.js} +42 -17
- package/dist/cjs/{arcade-mode-1568f304.js → arcade-mode-5275cbeb.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +27 -28
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{css-783129f2.js → css-bbfdb831.js} +1 -1
- package/dist/cjs/{cssMode-ea737a4f.js → cssMode-f296c8f9.js} +3 -3
- package/dist/cjs/{html-1592d53e.js → html-bc3c7f14.js} +3 -3
- package/dist/cjs/{htmlMode-00d63c80.js → htmlMode-651ef412.js} +3 -3
- package/dist/cjs/{index-2a242e78.js → index-d28fe547.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-4f36066e.js → javascript-a30f18a4.js} +4 -4
- package/dist/cjs/{jsonMode-1a4a229c.js → jsonMode-6861e18a.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-2250adae.js → tsMode-8b347861.js} +3 -3
- package/dist/cjs/{typescript-e0aa847b.js → typescript-44b2647a.js} +3 -3
- package/dist/components/arcade-api.js +13 -12
- package/dist/components/arcade-contribution.js +1 -1
- package/dist/components/arcade-defaults.js +34 -9
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +12 -11
- package/dist/components/arcade-suggestions.js +12 -11
- package/dist/components/arcade-variables.js +12 -11
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +15 -23
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-assets.js +12 -0
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/code-editor.js +22 -10
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/index2.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{arcade-defaults-80f61735.js → arcade-defaults-631dc093.js} +42 -17
- package/dist/esm/{arcade-mode-686cb41f.js → arcade-mode-43856469.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +27 -28
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{css-bbfd2b32.js → css-6b2305f7.js} +1 -1
- package/dist/esm/{cssMode-f294e128.js → cssMode-4a41975b.js} +3 -3
- package/dist/esm/{html-323efee8.js → html-b3b2f1bc.js} +3 -3
- package/dist/esm/{htmlMode-47c1317c.js → htmlMode-cedfb87b.js} +3 -3
- package/dist/esm/{index-b3656b7b.js → index-84f054b0.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-382166f6.js → javascript-2482aacb.js} +4 -4
- package/dist/esm/{jsonMode-6e9a0acf.js → jsonMode-8afe11aa.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-ad3a38e5.js → tsMode-f4368447.js} +3 -3
- package/dist/esm/{typescript-f090f4b9.js → typescript-40b2f5cb.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +7 -3
- package/dist/types/components/code-editor/code-editor.d.ts +10 -4
- package/dist/types/components.d.ts +17 -1
- package/dist/types/utils/profile/editor-profile.d.ts +1 -1
- package/dist/types/utils/profile/types.d.ts +1 -1
- package/dist/types/utils/profile/utils.d.ts +4 -1
- package/package.json +11 -13
- package/dist/arcgis-coding-components/p-c7946869.entry.js +0 -6
|
@@ -44,7 +44,7 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
46
|
profile: IEditorProfileDefinition | IPredefinedProfile | undefined;
|
|
47
|
-
_profileChanged(
|
|
47
|
+
_profileChanged(): void;
|
|
48
48
|
/**
|
|
49
49
|
* The arcade script. Use this property to define or update the script.
|
|
50
50
|
*/
|
|
@@ -53,7 +53,7 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
53
53
|
* Test data used to execute the script in the editor. If undefined the execute script UX will be hidden.
|
|
54
54
|
*/
|
|
55
55
|
testData: IEditorTestContext | undefined;
|
|
56
|
-
_testDataChanged(
|
|
56
|
+
_testDataChanged(): void;
|
|
57
57
|
/**
|
|
58
58
|
* Collection of suggestions
|
|
59
59
|
*/
|
|
@@ -62,7 +62,7 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
62
62
|
* Collection of snippets
|
|
63
63
|
*/
|
|
64
64
|
snippets: ApiSnippet[] | undefined;
|
|
65
|
-
_snippetChanged(
|
|
65
|
+
_snippetChanged(): void;
|
|
66
66
|
/**
|
|
67
67
|
* If true, it will hide the documentation action in the side panel
|
|
68
68
|
*/
|
|
@@ -79,6 +79,10 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
79
79
|
* The name of the opened side panel. 'none' means 'no panel opened'.
|
|
80
80
|
*/
|
|
81
81
|
openedSidePanel: SidePanelName;
|
|
82
|
+
/**
|
|
83
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
84
|
+
*/
|
|
85
|
+
editorOptions: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
82
86
|
/**
|
|
83
87
|
* Returns the current script.
|
|
84
88
|
* @returns {Promise<string>}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EventEmitter, VNode, ComponentInterface } from "../../stencil-public-runtime";
|
|
2
|
+
import { editor } from "monaco-editor";
|
|
2
3
|
import "../../utils/arcade-monaco/arcade-contribution";
|
|
3
4
|
export declare class ArcgisCodeEditor implements ComponentInterface {
|
|
4
5
|
private _editorInstance?;
|
|
@@ -12,13 +13,13 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
|
|
|
12
13
|
* The value is the script, code, css, json, etc.
|
|
13
14
|
*/
|
|
14
15
|
value: string | undefined;
|
|
15
|
-
valuePropChange(newValue: string | undefined
|
|
16
|
+
valuePropChange(newValue: string | undefined): void;
|
|
16
17
|
/**
|
|
17
18
|
* The language for the editor.
|
|
18
19
|
* Currently supported language: arcade, json, css, html, javascript, typescript, and text.
|
|
19
20
|
*/
|
|
20
21
|
language: string | undefined;
|
|
21
|
-
languagePropChange(
|
|
22
|
+
languagePropChange(): void;
|
|
22
23
|
/**
|
|
23
24
|
* A unique identifier for the model.
|
|
24
25
|
* The unique identifier is sometimes used by language defaults to store model metadata.
|
|
@@ -26,7 +27,12 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
|
|
|
26
27
|
* The unique identifier is especially useful when there are multiple editors on the same page.
|
|
27
28
|
*/
|
|
28
29
|
modelId: string;
|
|
29
|
-
modelIdPropChange(
|
|
30
|
+
modelIdPropChange(): void;
|
|
31
|
+
/**
|
|
32
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
33
|
+
*/
|
|
34
|
+
options: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
35
|
+
optionsPropChange(newValue: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined): void;
|
|
30
36
|
/**
|
|
31
37
|
* Gets the current value in the editor.
|
|
32
38
|
* @returns {Promise<string>}
|
|
@@ -56,7 +62,7 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
|
|
|
56
62
|
* Returns the editor instance.
|
|
57
63
|
* @returns {Promise<IStandaloneCodeEditor>} - The monaco editor instance
|
|
58
64
|
*/
|
|
59
|
-
getEditorInstance(): Promise<
|
|
65
|
+
getEditorInstance(): Promise<editor.IStandaloneCodeEditor | undefined>;
|
|
60
66
|
/**
|
|
61
67
|
* Sets the focus on the editor.
|
|
62
68
|
* @returns {Promise<void>}
|
|
@@ -33,6 +33,10 @@ export namespace Components {
|
|
|
33
33
|
"modelId": string | undefined;
|
|
34
34
|
}
|
|
35
35
|
interface ArcgisArcadeEditor {
|
|
36
|
+
/**
|
|
37
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
38
|
+
*/
|
|
39
|
+
"editorOptions": (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
36
40
|
/**
|
|
37
41
|
* @returns - The monaco editor instance
|
|
38
42
|
*/
|
|
@@ -129,7 +133,7 @@ export namespace Components {
|
|
|
129
133
|
/**
|
|
130
134
|
* @returns - The monaco editor instance
|
|
131
135
|
*/
|
|
132
|
-
"getEditorInstance": () => Promise<
|
|
136
|
+
"getEditorInstance": () => Promise<editor.IStandaloneCodeEditor | undefined>;
|
|
133
137
|
/**
|
|
134
138
|
* Gets the current value in the editor.
|
|
135
139
|
* @returns
|
|
@@ -155,6 +159,10 @@ export namespace Components {
|
|
|
155
159
|
* A unique identifier for the model. The unique identifier is sometimes used by language defaults to store model metadata. For example, with arcade, the model id is used to store the arcade profile and other metadata. The unique identifier is especially useful when there are multiple editors on the same page.
|
|
156
160
|
*/
|
|
157
161
|
"modelId": string;
|
|
162
|
+
/**
|
|
163
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
164
|
+
*/
|
|
165
|
+
"options": (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
158
166
|
/**
|
|
159
167
|
* Sets the focus on the editor.
|
|
160
168
|
* @returns
|
|
@@ -333,6 +341,10 @@ declare namespace LocalJSX {
|
|
|
333
341
|
"onItemSelected"?: (event: ArcgisArcadeApiCustomEvent<string>) => void;
|
|
334
342
|
}
|
|
335
343
|
interface ArcgisArcadeEditor {
|
|
344
|
+
/**
|
|
345
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
346
|
+
*/
|
|
347
|
+
"editorOptions"?: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
336
348
|
/**
|
|
337
349
|
* If true, it will hide the documentation action in the side panel
|
|
338
350
|
*/
|
|
@@ -449,6 +461,10 @@ declare namespace LocalJSX {
|
|
|
449
461
|
* Emitted when the value has changed (script, code, css, json, etc.)
|
|
450
462
|
*/
|
|
451
463
|
"onValueChange"?: (event: ArcgisCodeEditorCustomEvent<string>) => void;
|
|
464
|
+
/**
|
|
465
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
466
|
+
*/
|
|
467
|
+
"options"?: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
452
468
|
/**
|
|
453
469
|
* The initial value for the editor. The value is the script, code, css, json, etc.
|
|
454
470
|
*/
|
|
@@ -19,7 +19,7 @@ interface IFeatureSetCollections {
|
|
|
19
19
|
* If the feature set collection represents a Web Map or a Web Scene then it will contain the instance.
|
|
20
20
|
* If the feature set collection represents a service then it will be its URL.
|
|
21
21
|
*/
|
|
22
|
-
source: __esri.WebMap | __esri.WebScene | string;
|
|
22
|
+
source: __esri.Map | __esri.WebMap | __esri.WebScene | string;
|
|
23
23
|
}
|
|
24
24
|
type ProfileItemType = ApiVariableType | "group";
|
|
25
25
|
export type EditorVariable = ArrayVariable | DictionaryVariable | FeatureSetCollectionVariable | FeatureSetVariable | FeatureVariable | ValueVariable;
|
|
@@ -188,7 +188,7 @@ export type FeatureSetDefinition = __esri.FeatureLayer | __esri.FeatureSet | IFe
|
|
|
188
188
|
* FeatureSetCollectionDefinition represents the various ways a FeatureSetCollection could be defined
|
|
189
189
|
* as a feature service or a web map.
|
|
190
190
|
*/
|
|
191
|
-
export type FeatureSetCollectionDefinition = __esri.WebMap | FeatureSetDefinition | IPortalItemDefinition;
|
|
191
|
+
export type FeatureSetCollectionDefinition = __esri.Map | __esri.WebMap | __esri.WebScene | FeatureSetDefinition | IPortalItemDefinition;
|
|
192
192
|
export type VariableDefinitions = Record<string, FeatureDefinition | FeatureSetCollectionDefinition | FeatureSetDefinition | IProfileVariable[] | undefined>;
|
|
193
193
|
export interface IPredefinedProfile {
|
|
194
194
|
/**
|
|
@@ -6,7 +6,10 @@ export declare function isQueryableLayerInstance(item: unknown): item is __esri.
|
|
|
6
6
|
export declare function isSubtypeSublayerInstance(item: unknown): item is __esri.SubtypeSublayer;
|
|
7
7
|
export declare function isGroupLayerInstance(item: unknown): item is __esri.GroupLayer;
|
|
8
8
|
export declare function isMapImageLayerInstance(item: unknown): item is __esri.MapImageLayer;
|
|
9
|
-
export declare function isMapInstance(item: unknown): item is __esri.WebMap | __esri.WebScene;
|
|
9
|
+
export declare function isMapInstance(item: unknown): item is __esri.Map | __esri.WebMap | __esri.WebScene;
|
|
10
|
+
export declare function isWebMapInstance(item: __esri.Map | __esri.WebMap | __esri.WebScene): item is __esri.WebMap;
|
|
11
|
+
export declare function isWebSceneInstance(item: __esri.Map | __esri.WebMap | __esri.WebScene): item is __esri.WebScene;
|
|
12
|
+
export declare function isLoadableMapInstance(item: __esri.Map | __esri.WebMap | __esri.WebScene): item is __esri.WebMap | __esri.WebScene;
|
|
10
13
|
export declare function isPortalItemDefinition(item: unknown): item is types.IPortalItemDefinition;
|
|
11
14
|
export declare function isFeatureLayerItemDefinition(item: unknown): item is types.IFeatureLayerItemDefinition;
|
|
12
15
|
export declare function isFieldsDefinition(item: unknown): item is types.IFieldsDefinition;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
3
|
"description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
|
|
4
4
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
5
|
-
"version": "4.30.0-next.
|
|
5
|
+
"version": "4.30.0-next.2",
|
|
6
6
|
"module": "dist/components/index.js",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -48,23 +48,22 @@
|
|
|
48
48
|
"generate": "stencil generate"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@arcgis/arcade-languageservice": "4.30.0-next.
|
|
51
|
+
"@arcgis/arcade-languageservice": "4.30.0-next.2",
|
|
52
52
|
"@stencil/core": "^4.10.0",
|
|
53
53
|
"monaco-editor": "^0.45.0",
|
|
54
54
|
"vscode-languageserver-types": "^3.17.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@arcgis/components-plugins": "4.30.0-next.
|
|
58
|
-
"@arcgis/components-utils": "4.30.0-next.
|
|
57
|
+
"@arcgis/components-plugins": "4.30.0-next.2",
|
|
58
|
+
"@arcgis/components-utils": "4.30.0-next.2",
|
|
59
59
|
"@arcgis/core": ">=4.30.0-next <4.31",
|
|
60
|
-
"@arcgis/core-adapter": "4.30.0-next.
|
|
61
|
-
"@arcgis/storybook-utils": "4.30.0-next.
|
|
62
|
-
"@arcgis/typescript-config": "4.30.0-next.
|
|
63
|
-
"@esri/calcite-components": "^2.
|
|
60
|
+
"@arcgis/core-adapter": "4.30.0-next.2",
|
|
61
|
+
"@arcgis/storybook-utils": "4.30.0-next.2",
|
|
62
|
+
"@arcgis/typescript-config": "4.30.0-next.2",
|
|
63
|
+
"@esri/calcite-components": "^2.6.0",
|
|
64
64
|
"@stencil/angular-output-target": "0.8.3",
|
|
65
65
|
"@stencil/react-output-target": "0.5.3",
|
|
66
66
|
"@stencil/sass": "^3.0.0",
|
|
67
|
-
"@types/estraverse": "^5.1.2",
|
|
68
67
|
"@types/estree": "^1.0.0",
|
|
69
68
|
"@types/jest": "^29.5.0",
|
|
70
69
|
"@types/marked": "^4.0.8",
|
|
@@ -73,16 +72,15 @@
|
|
|
73
72
|
"@types/resize-observer-browser": "^0.1.7",
|
|
74
73
|
"esbuild": "^0.19.5",
|
|
75
74
|
"eslint": "^8.55.0",
|
|
76
|
-
"estraverse": "^5.3.0",
|
|
77
75
|
"jest": "^29.5.0",
|
|
78
76
|
"jest-cli": "^29.5.0",
|
|
79
77
|
"kill-port": "^2.0.1",
|
|
80
78
|
"magic-string": "^0.30.0",
|
|
81
79
|
"marked": "^5.0.5",
|
|
82
|
-
"postcss": "
|
|
80
|
+
"postcss": ">=8.4.31",
|
|
83
81
|
"postcss-discard-comments": "^5.1.2",
|
|
84
82
|
"postcss-url": "^10.1.3",
|
|
85
|
-
"puppeteer": "^
|
|
83
|
+
"puppeteer": "^21.9.0",
|
|
86
84
|
"resolve-pkg": "^2.0.0",
|
|
87
85
|
"rimraf": "^5.0.0",
|
|
88
86
|
"rollup": "^3.25.0",
|
|
@@ -98,5 +96,5 @@
|
|
|
98
96
|
"@arcgis/core": ">=4.30.0-next <4.31",
|
|
99
97
|
"@esri/calcite-components": ">=2.2.0 <3.0.0"
|
|
100
98
|
},
|
|
101
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "e96e35065453519e2498dd6d3061df4735cd528d"
|
|
102
100
|
}
|