@arcgis/coding-components-react 5.0.0-next.98 → 5.1.0-next.0
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 +11 -7
- package/dist/components.d.ts +11 -3
- package/dist/index.js +12 -6
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
# ArcGIS Maps SDK for JavaScript -
|
|
2
|
-
|
|
3
|
-
> Note: `@arcgis/coding-components-react` was developed for use in React 18. Consider updating to React 19 where the React wrapper is no longer necessary. Check out the [documentation](https://developers.arcgis.com/javascript/latest/get-started/#react) to get started with `@arcgis/coding-components` in React 19.
|
|
1
|
+
# ArcGIS Maps SDK for JavaScript - Coding Components React
|
|
4
2
|
|
|
5
3
|
The ArcGIS Maps SDK for JavaScript provides a suite of ready-to-use UI components that simplify the process of creating GIS web applications. Currently, this package only includes an [Arcade](https://developers.arcgis.com/arcade/) expression code editor.
|
|
6
4
|
|
|
7
5
|
Want to get started immediately? See [Get started](https://developers.arcgis.com/javascript/latest/get-started/) or try out the [sample applications](https://github.com/Esri/jsapi-resources/tree/main/component-samples) for a variety of popular frameworks, module bundlers, and TypeScript.
|
|
8
6
|
|
|
7
|
+
## Deprecation Notice
|
|
8
|
+
|
|
9
|
+
> WARNING: Coding Components React is deprecated in v5.0.0 and will be removed in v6.0.0.
|
|
10
|
+
|
|
11
|
+
The `@arcgis/coding-components-react` package was originally developed for use with React 18 where wrappers were necessary to use custom elements. With React 19's custom element support, these wrappers are no longer needed.
|
|
12
|
+
|
|
13
|
+
Consider upgrading to React 19+ and using `@arcgis/coding-components` directly. Check out the [documentation](https://developers.arcgis.com/javascript/latest/get-started/#react) to get started.
|
|
14
|
+
|
|
9
15
|
## Documentation
|
|
10
16
|
|
|
11
17
|
- [Key Features](https://developers.arcgis.com/javascript/latest/key-features/)
|
|
@@ -17,7 +23,6 @@ Want to get started immediately? See [Get started](https://developers.arcgis.com
|
|
|
17
23
|
## Resources
|
|
18
24
|
|
|
19
25
|
- [ArcGIS blog](https://blogs.esri.com/esri/arcgis/tag/javascript/)
|
|
20
|
-
- [twitter@EsriDevs](https://twitter.com/EsriDevs)
|
|
21
26
|
- [System Requirements](https://developers.arcgis.com/javascript/latest/system-requirements/)
|
|
22
27
|
- [Terms of Use](https://www.esri.com/en-us/legal/terms/product-specific-scope-of-use)
|
|
23
28
|
- [Licensing](https://developers.arcgis.com/javascript/latest/licensing/)
|
|
@@ -34,6 +39,5 @@ An [example](https://github.com/Esri/jsapi-resources/tree/50579b9362b846e869a343
|
|
|
34
39
|
|
|
35
40
|
## License
|
|
36
41
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
This package is licensed under the terms described in the `LICENSE.md` file, located in the root of the package.
|
|
42
|
+
This package is licensed under the terms described in the `LICENSE.md` file, located in the root of the package, and at https://js.arcgis.com/5.0/LICENSE.txt.
|
|
43
|
+
For third party notices, see https://js.arcgis.com/5.0/third-party-notices.txt.
|
package/dist/components.d.ts
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
/// <reference types="@arcgis/coding-components" preserve="true" />
|
|
2
2
|
import { EventName } from '@lit/react';
|
|
3
|
+
/** @deprecated since 5.0. React wrappers are not needed in React 19 or above. Use <arcgis-arcade-editor /> directly. */
|
|
3
4
|
export declare const ArcgisArcadeEditor: import('@lit/react').ReactWebComponent<HTMLArcgisArcadeEditorElement & {
|
|
4
5
|
class?: string;
|
|
5
6
|
}, {
|
|
6
7
|
onArcgisDiagnosticsChange: EventName<HTMLArcgisArcadeEditorElement["arcgisDiagnosticsChange"]>;
|
|
7
8
|
onArcgisScriptChange: EventName<HTMLArcgisArcadeEditorElement["arcgisScriptChange"]>;
|
|
8
9
|
}>;
|
|
9
|
-
|
|
10
|
+
/** @deprecated since 5.0. React wrappers are not needed in React 19 or above. Use <arcgis-code-editor /> directly. */
|
|
11
|
+
export declare const ArcgisCodeEditor: import('@lit/react').ReactWebComponent<import('@arcgis/coding-components/components/arcgis-code-editor/customElement').ArcgisCodeEditor & {
|
|
10
12
|
class?: string;
|
|
11
13
|
}, {
|
|
12
14
|
onArcgisSelectionChange: EventName<HTMLArcgisCodeEditorElement["arcgisSelectionChange"]>;
|
|
13
15
|
onArcgisValueChange: EventName<HTMLArcgisCodeEditorElement["arcgisValueChange"]>;
|
|
14
16
|
}>;
|
|
15
|
-
|
|
17
|
+
/** @deprecated since 5.0. React wrappers are not needed in React 19 or above. Use <arcgis-code-editor-shell /> directly. */
|
|
18
|
+
export declare const ArcgisCodeEditorShell: import('@lit/react').ReactWebComponent<import('@arcgis/coding-components/components/arcgis-code-editor-shell/customElement').CodeEditorShell & {
|
|
16
19
|
class?: string;
|
|
17
20
|
}, {}>;
|
|
18
|
-
|
|
21
|
+
/** @deprecated since 5.0. React wrappers are not needed in React 19 or above. Use <arcgis-code-viewer /> directly. */
|
|
22
|
+
export declare const ArcgisCodeViewer: import('@lit/react').ReactWebComponent<import('@arcgis/coding-components/components/arcgis-code-viewer/customElement').ArcgisCodeViewer & {
|
|
23
|
+
class?: string;
|
|
24
|
+
}, {}>;
|
|
25
|
+
/** @deprecated since 5.0. React wrappers are not needed in React 19 or above. Use <arcgis-sql-expression-editor /> directly. */
|
|
26
|
+
export declare const ArcgisSqlExpressionEditor: import('@lit/react').ReactWebComponent<import('@arcgis/coding-components/components/arcgis-sql-expression-editor/customElement').ArcgisSqlExpressionEditor & {
|
|
19
27
|
class?: string;
|
|
20
28
|
}, {
|
|
21
29
|
onArcgisDiagnosticsChange: EventName<HTMLArcgisSqlExpressionEditorElement["arcgisDiagnosticsChange"]>;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i from "react";
|
|
2
2
|
import { createComponent as c } from "@lit/react";
|
|
3
|
-
import { makeReactWrapperFactory as
|
|
4
|
-
const e = /* @__PURE__ */
|
|
3
|
+
import { makeReactWrapperFactory as o, getReactWrapperOptions as r } from "@arcgis/lumina";
|
|
4
|
+
const e = /* @__PURE__ */ o(i, c), t = /* @__PURE__ */ e(
|
|
5
5
|
r(
|
|
6
6
|
"arcgis-arcade-editor",
|
|
7
7
|
{
|
|
@@ -9,7 +9,7 @@ const e = /* @__PURE__ */ a(i, c), n = /* @__PURE__ */ e(
|
|
|
9
9
|
onArcgisScriptChange: "arcgisScriptChange"
|
|
10
10
|
}
|
|
11
11
|
)
|
|
12
|
-
),
|
|
12
|
+
), n = /* @__PURE__ */ e(
|
|
13
13
|
r(
|
|
14
14
|
"arcgis-code-editor",
|
|
15
15
|
{
|
|
@@ -18,6 +18,11 @@ const e = /* @__PURE__ */ a(i, c), n = /* @__PURE__ */ e(
|
|
|
18
18
|
}
|
|
19
19
|
)
|
|
20
20
|
), p = /* @__PURE__ */ e(
|
|
21
|
+
r(
|
|
22
|
+
"arcgis-code-editor-shell",
|
|
23
|
+
{}
|
|
24
|
+
)
|
|
25
|
+
), d = /* @__PURE__ */ e(
|
|
21
26
|
r(
|
|
22
27
|
"arcgis-code-viewer",
|
|
23
28
|
{}
|
|
@@ -32,8 +37,9 @@ const e = /* @__PURE__ */ a(i, c), n = /* @__PURE__ */ e(
|
|
|
32
37
|
)
|
|
33
38
|
);
|
|
34
39
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
p as
|
|
40
|
+
t as ArcgisArcadeEditor,
|
|
41
|
+
n as ArcgisCodeEditor,
|
|
42
|
+
p as ArcgisCodeEditorShell,
|
|
43
|
+
d as ArcgisCodeViewer,
|
|
38
44
|
C as ArcgisSqlExpressionEditor
|
|
39
45
|
};
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components-react",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0-next.0",
|
|
4
4
|
"description": "A set of React components that wrap ArcGIS coding components",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"ArcGIS",
|
|
7
|
-
"javascript",
|
|
8
|
-
"react",
|
|
9
|
-
"map",
|
|
10
|
-
"3D",
|
|
11
6
|
"2D",
|
|
12
|
-
"
|
|
7
|
+
"3D",
|
|
13
8
|
"analytics",
|
|
14
|
-
"
|
|
9
|
+
"ArcGIS",
|
|
10
|
+
"components",
|
|
15
11
|
"data-driven",
|
|
12
|
+
"Esri",
|
|
16
13
|
"gis",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
14
|
+
"javascript",
|
|
15
|
+
"map",
|
|
16
|
+
"react",
|
|
17
|
+
"spatial",
|
|
18
|
+
"visualization",
|
|
19
|
+
"web-components"
|
|
20
20
|
],
|
|
21
21
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
22
22
|
"sideEffects": false,
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist/"
|
|
29
29
|
],
|
|
30
|
-
"license": "SEE LICENSE.md",
|
|
30
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@arcgis/coding-components": "5.0.0-next.98",
|
|
33
|
-
"@arcgis/lumina": "5.0.0-next.98",
|
|
34
32
|
"@lit/react": "^1.0.8",
|
|
35
33
|
"lit": "^3.3.0",
|
|
36
|
-
"tslib": "^2.8.1"
|
|
34
|
+
"tslib": "^2.8.1",
|
|
35
|
+
"@arcgis/coding-components": "5.1.0-next.0",
|
|
36
|
+
"@arcgis/lumina": "5.1.0-next.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@arcgis/core": "
|
|
39
|
+
"@arcgis/core": "^5.0.0-next",
|
|
40
40
|
"react": ">=18.0.0 <20.0.0",
|
|
41
41
|
"react-dom": ">=18.0.0 <20.0.0"
|
|
42
42
|
}
|