UNPKG

@arcgis/coding-components

Version:

Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.

31 lines (30 loc) 1.03 kB
import { JsxNode } from '@arcgis/lumina'; import { ArcgisArcadeEditor } from '../components/arcgis-arcade-editor/customElement.js'; type IBaseCustomPanel = { /** Unique ID */ id: string; name: string; location: "sidebar"; renderer: ({ closePanel, insertText, closed, editorRef, }: { closePanel: (e: Event) => void; insertText: (text: string) => void; closed: boolean; editorRef: ArcgisArcadeEditor; }) => JsxNode; }; type ICustomSidePanel = IBaseCustomPanel & { /** Calcite icon */ icon: string; /** Optional description */ description?: string; /** Optional flag to indicate that the user is providing custom flow items * @deprecated - this is not used in the codebase and will be removed in the future. */ useFlows?: boolean; /** Optional flag to tell the editor if the panel is enabled, defaults to true */ enabled?: boolean; /** location */ location: "sidebar"; }; export type ICustomPanel = ICustomSidePanel; export {};