UNPKG

@arcgis/coding-components-react

Version:

A set of React components that wrap ArcGIS coding components

17 lines (16 loc) 921 B
/// <reference types="@arcgis/coding-components" preserve="true" /> import React from "react"; import { createComponent } from "@lit/react"; import { makeReactWrapperFactory, getReactWrapperOptions } from "@arcgis/lumina"; const createWrapper = /*@__PURE__*/ makeReactWrapperFactory(React, createComponent); export const ArcgisArcadeEditor = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-arcade-editor", { onArcgisDiagnosticsChange: "arcgisDiagnosticsChange", onArcgisScriptChange: "arcgisScriptChange", })); export const ArcgisCodeEditor = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-code-editor", { onArcgisSelectionChange: "arcgisSelectionChange", onArcgisValueChange: "arcgisValueChange", })); export const ArcgisSqlExpressionEditor = /*@__PURE__*/ createWrapper(getReactWrapperOptions("arcgis-sql-expression-editor", { onArcgisScriptChange: "arcgisScriptChange", }));