@arcgis/coding-components 5.2.0-next.22 → 5.2.0-next.23

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.
@@ -18278,7 +18278,7 @@ function se(t, e, r, n) {
18278
18278
  const cr = { apiKey: void 0, apiKeys: { scopes: [] }, applicationName: "", applicationUrl: globalThis.location?.href, assetsPath: "", fontsUrl: "https://static.arcgis.com/fonts", geometryServiceUrl: "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer", geoRSSServiceUrl: "https://utility.arcgis.com/sharing/rss", kmlServiceUrl: "https://utility.arcgis.com/sharing/kml", userPrivilegesApplied: !0, portalUrl: "https://www.arcgis.com", respectPrefersReducedMotion: !0, routeServiceUrl: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World", workers: { loaderConfig: { has: {}, paths: {}, map: {}, packages: [] } }, request: { crossOriginNoCorsDomains: null, httpsDomains: ["arcgis.com", "arcgisonline.com", "esrikr.com", "premiumservices.blackbridge.com", "esripremium.accuweather.com", "gbm.digitalglobe.com", "firstlook.digitalglobe.com", "msi.digitalglobe.com"], interceptors: [], internalInterceptors: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 62e3, trustedServers: [], useIdentity: !0 }, log: { interceptors: [], level: null } };
18279
18279
  if (globalThis.esriConfig && (K4(cr, globalThis.esriConfig, !0), delete cr.has), !cr.assetsPath) {
18280
18280
  {
18281
- const t = "5.2.0-next.26";
18281
+ const t = "5.2.0-next.27";
18282
18282
  cr.assetsPath = `https://cdn.jsdelivr.net/npm/@arcgis/core@${t}/assets`;
18283
18283
  }
18284
18284
  cr.defaultAssetsPath = cr.assetsPath;
@@ -6,6 +6,7 @@ import type WebMap from "@arcgis/core/WebMap.js";
6
6
  import type WebScene from "@arcgis/core/WebScene.js";
7
7
  import type Map from "@arcgis/core/Map.js";
8
8
  import type SpatialReference from "@arcgis/core/geometry/SpatialReference.js";
9
+ import type Layer from "@arcgis/core/layers/Layer.js";
9
10
  import type { Diagnostic as ArcadeLanguageServiceDiagnostic } from "@arcgis/arcade-languageservice";
10
11
  import type { ApiItem, BundleType, ProfileId } from "@arcgis/languages-api-utils";
11
12
  import type { ProfileVariableInstances, ArcadeServices } from "@arcgis/core/arcade.js";
@@ -378,8 +379,15 @@ export interface IUrlDefinition {
378
379
  url?: string | null;
379
380
  }
380
381
 
382
+ /** Optional metadata for a FieldsDefinition. This metadata is used by the editor to provide a better user experience. */
383
+ export interface FieldsDefinitionMetadata {
384
+ /** The title that will be used within the variables panel. */
385
+ title?: Layer["title"];
386
+ }
387
+
381
388
  /** The most basic way to define a feature or feature set is by passing a collection of fields */
382
- export type FieldsDefinition = Pick<FeatureLayer, "fields">;
389
+ export type FieldsDefinition = FieldsDefinitionMetadata
390
+ & Pick<FeatureLayer, "fields">;
383
391
 
384
392
  /** @deprecated since 5.1. Use FieldsDefinition instead. */
385
393
  export type IFieldsDefinition = FieldsDefinition;