@arcgis/coding-components-react 4.34.0-next.9 → 4.34.0-next.91

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/LICENSE.md CHANGED
@@ -4,10 +4,14 @@ COPYRIGHT © 2025 Esri
4
4
 
5
5
  All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
6
6
 
7
- This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement. You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
7
+ This material is licensed for use under the [Esri Master License Agreement (MLA)](https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-full/ma-full.pdf), and is bound by the terms of that agreement.
8
+ You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
8
9
 
9
- See use restrictions at <http://www.esri.com/legal/pdfs/mla_e204_e300/english>
10
+ For additional information, contact:
11
+ Environmental Systems Research Institute, Inc.
12
+ Attn: Contracts and Legal Services Department
13
+ 380 New York Street
14
+ Redlands, California, USA 92373
15
+ USA
10
16
 
11
- For additional information, contact: Environmental Systems Research Institute, Inc. Attn: Contracts and Legal Services Department 380 New York Street Redlands, California, USA 92373 USA
12
-
13
- email: contracts@esri.com
17
+ email: legal@esri.com
package/README.md CHANGED
@@ -1,15 +1,18 @@
1
1
  # ArcGIS Maps SDK for JavaScript - React wrapper for Coding Components
2
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.
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.
4
4
 
5
5
  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
6
 
7
+ 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
+
7
9
  ## Documentation
8
10
 
9
11
  - [Key Features](https://developers.arcgis.com/javascript/latest/key-features/)
10
- - [Build with React](https://developers.arcgis.com/javascript/latest/get-started-react/)
12
+ - [Build with React](https://developers.arcgis.com/javascript/latest/get-started/#react)
11
13
  - [API and component references](https://developers.arcgis.com/javascript/latest/references/)
12
14
  - [Functionality samples](https://developers.arcgis.com/javascript/latest/sample-code/)
15
+ - [TypeScript setup](https://developers.arcgis.com/javascript/latest/get-started/#typescript)
13
16
 
14
17
  ## Resources
15
18
 
@@ -35,10 +38,14 @@ COPYRIGHT © 2025 Esri
35
38
 
36
39
  All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
37
40
 
38
- This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement. You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
39
-
40
- See use restrictions at <http://www.esri.com/legal/pdfs/mla_e204_e300/english>
41
+ This material is licensed for use under the [Esri Master License Agreement (MLA)](https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-full/ma-full.pdf), and is bound by the terms of that agreement.
42
+ You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
41
43
 
42
- For additional information, contact: Environmental Systems Research Institute, Inc. Attn: Contracts and Legal Services Department 380 New York Street Redlands, California, USA 92373 USA
44
+ For additional information, contact:
45
+ Environmental Systems Research Institute, Inc.
46
+ Attn: Contracts and Legal Services Department
47
+ 380 New York Street
48
+ Redlands, California, USA 92373
49
+ USA
43
50
 
44
- email: contracts@esri.com
51
+ email: legal@esri.com
@@ -1,18 +1,18 @@
1
1
  /// <reference types="@arcgis/coding-components" preserve="true" />
2
- import type { EventName } from "@lit/react";
3
- export declare const ArcgisArcadeEditor: import("@lit/react").ReactWebComponent<HTMLArcgisArcadeEditorElement & {
2
+ import { EventName } from '@lit/react';
3
+ export declare const ArcgisArcadeEditor: import('@lit/react').ReactWebComponent<HTMLArcgisArcadeEditorElement & {
4
4
  class?: string;
5
5
  }, {
6
6
  onArcgisDiagnosticsChange: EventName<HTMLArcgisArcadeEditorElement["arcgisDiagnosticsChange"]>;
7
7
  onArcgisScriptChange: EventName<HTMLArcgisArcadeEditorElement["arcgisScriptChange"]>;
8
8
  }>;
9
- export declare const ArcgisCodeEditor: import("@lit/react").ReactWebComponent<HTMLArcgisCodeEditorElement & {
9
+ export declare const ArcgisCodeEditor: import('@lit/react').ReactWebComponent<HTMLArcgisCodeEditorElement & {
10
10
  class?: string;
11
11
  }, {
12
12
  onArcgisSelectionChange: EventName<HTMLArcgisCodeEditorElement["arcgisSelectionChange"]>;
13
13
  onArcgisValueChange: EventName<HTMLArcgisCodeEditorElement["arcgisValueChange"]>;
14
14
  }>;
15
- export declare const ArcgisSqlExpressionEditor: import("@lit/react").ReactWebComponent<HTMLArcgisSqlExpressionEditorElement & {
15
+ export declare const ArcgisSqlExpressionEditor: import('@lit/react').ReactWebComponent<HTMLArcgisSqlExpressionEditorElement & {
16
16
  class?: string;
17
17
  }, {
18
18
  onArcgisScriptChange: EventName<HTMLArcgisSqlExpressionEditorElement["arcgisScriptChange"]>;
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./components";
1
+ export * from './components';
package/dist/index.js CHANGED
@@ -1 +1,32 @@
1
- export * from "./components";
1
+ import i from "react";
2
+ import { createComponent as c } from "@lit/react";
3
+ import { makeReactWrapperFactory as a, getReactWrapperOptions as r } from "@arcgis/lumina";
4
+ const e = /* @__PURE__ */ a(i, c), g = /* @__PURE__ */ e(
5
+ r(
6
+ "arcgis-arcade-editor",
7
+ {
8
+ onArcgisDiagnosticsChange: "arcgisDiagnosticsChange",
9
+ onArcgisScriptChange: "arcgisScriptChange"
10
+ }
11
+ )
12
+ ), n = /* @__PURE__ */ e(
13
+ r(
14
+ "arcgis-code-editor",
15
+ {
16
+ onArcgisSelectionChange: "arcgisSelectionChange",
17
+ onArcgisValueChange: "arcgisValueChange"
18
+ }
19
+ )
20
+ ), p = /* @__PURE__ */ e(
21
+ r(
22
+ "arcgis-sql-expression-editor",
23
+ {
24
+ onArcgisScriptChange: "arcgisScriptChange"
25
+ }
26
+ )
27
+ );
28
+ export {
29
+ g as ArcgisArcadeEditor,
30
+ n as ArcgisCodeEditor,
31
+ p as ArcgisSqlExpressionEditor
32
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/coding-components-react",
3
- "version": "4.34.0-next.9",
3
+ "version": "4.34.0-next.91",
4
4
  "description": "A set of React components that wrap ArcGIS coding components",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -29,12 +29,14 @@
29
29
  ],
30
30
  "license": "SEE LICENSE.md",
31
31
  "dependencies": {
32
- "@arcgis/coding-components": "4.34.0-next.9",
32
+ "@arcgis/coding-components": "4.34.0-next.91",
33
+ "@arcgis/lumina": "4.34.0-next.91",
33
34
  "@lit/react": "^1.0.7",
35
+ "lit": "^3.3.0",
34
36
  "tslib": "^2.8.1"
35
37
  },
36
38
  "peerDependencies": {
37
- "@arcgis/core": ">=4.34.0-next <4.35",
39
+ "@arcgis/core": ">=4.34.0-next.43 <4.35",
38
40
  "react": ">=18.0.0 <20.0.0",
39
41
  "react-dom": ">=18.0.0 <20.0.0"
40
42
  }
@@ -1,16 +0,0 @@
1
- /// <reference types="@arcgis/coding-components" preserve="true" />
2
- import React from "react";
3
- import { createComponent } from "@lit/react";
4
- import { makeReactWrapperFactory, getReactWrapperOptions } from "@arcgis/lumina";
5
- const createWrapper = /*@__PURE__*/ makeReactWrapperFactory(React, createComponent);
6
- export const ArcgisArcadeEditor = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-arcade-editor", {
7
- onArcgisDiagnosticsChange: "arcgisDiagnosticsChange",
8
- onArcgisScriptChange: "arcgisScriptChange",
9
- }));
10
- export const ArcgisCodeEditor = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-code-editor", {
11
- onArcgisSelectionChange: "arcgisSelectionChange",
12
- onArcgisValueChange: "arcgisValueChange",
13
- }));
14
- export const ArcgisSqlExpressionEditor = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-sql-expression-editor", {
15
- onArcgisScriptChange: "arcgisScriptChange",
16
- }));