@arcgis/coding-components 4.28.0-beta.7 → 4.28.0-beta.8

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.
@@ -3335,7 +3335,7 @@ async function executeScript(editorProfile, script, testContext, console) {
3335
3335
  const { profileVariableInstances, spatialReference, timeZone } = testContext;
3336
3336
  const executeContext = {
3337
3337
  spatialReference,
3338
- timeReference: { timeZone },
3338
+ timeZone,
3339
3339
  rawOutput: true,
3340
3340
  console
3341
3341
  };
@@ -158,7 +158,7 @@ async function executeScript(editorProfile, script, testContext, console) {
158
158
  const { profileVariableInstances, spatialReference, timeZone } = testContext;
159
159
  const executeContext = {
160
160
  spatialReference,
161
- timeReference: { timeZone },
161
+ timeZone,
162
162
  rawOutput: true,
163
163
  console
164
164
  };
@@ -3331,7 +3331,7 @@ async function executeScript(editorProfile, script, testContext, console) {
3331
3331
  const { profileVariableInstances, spatialReference, timeZone } = testContext;
3332
3332
  const executeContext = {
3333
3333
  spatialReference,
3334
- timeReference: { timeZone },
3334
+ timeZone,
3335
3335
  rawOutput: true,
3336
3336
  console
3337
3337
  };
@@ -4,23 +4,7 @@ import type { IEditorProfileDefinition } from "./profile/types";
4
4
  * The key's value must be of type ArcGIS core ProfileVariableInstanceType.
5
5
  */
6
6
  export type ProfileVariableInstances = Record<string, __esri.ProfileVariableInstanceType>;
7
- /**
8
- * An object that represents a time reference.
9
- */
10
- export interface IEditorTimeReference {
11
- timeZone: string;
12
- }
13
- /**
14
- * If a profile doesn't contain a map, the spatial reference of geometries will be defaulted to
15
- * wkid: 3857.
16
- * The test context objects allows to set the execution spatial reference for such scenario.
17
- */
18
- export interface IEditorTestContext {
19
- /**
20
- * An object of key/value pairs where the key is the name of a profile variable.
21
- * The key's value must be of type ArcGIS core ProfileVariableInstanceType.
22
- */
23
- profileVariableInstances: ProfileVariableInstances;
7
+ interface IContextReferences {
24
8
  /**
25
9
  * Spatial reference object used to define the spatial reference for the arcade runtime.
26
10
  * By defaults, the spatial reference is set to Web Mercator (wkid: 3857).
@@ -34,6 +18,18 @@ export interface IEditorTestContext {
34
18
  */
35
19
  timeZone?: string;
36
20
  }
21
+ /**
22
+ * If a profile doesn't contain a map, the spatial reference of geometries will be defaulted to
23
+ * wkid: 3857.
24
+ * The test context objects allows to set the execution spatial reference for such scenario.
25
+ */
26
+ export interface IEditorTestContext extends IContextReferences {
27
+ /**
28
+ * An object of key/value pairs where the key is the name of a profile variable.
29
+ * The key's value must be of type ArcGIS core ProfileVariableInstanceType.
30
+ */
31
+ profileVariableInstances: ProfileVariableInstances;
32
+ }
37
33
  /**
38
34
  * @deprecated Use IEditorTestContext instead.
39
35
  */
@@ -49,28 +45,30 @@ export interface IArcadeRuntimeDictionary {
49
45
  export interface IAbortSignal {
50
46
  aborted: boolean;
51
47
  }
52
- export interface IArcadeRuntimeFeatureSet {
48
+ interface IArcadeRuntimeFeatureSet {
53
49
  declaredRootClass: string;
54
50
  fields: __esri.Field[] | null;
55
51
  load(): Promise<IArcadeRuntimeFeatureSet>;
56
52
  iterator(abortSignal: IAbortSignal): IArcadeRuntimeFeatureSetIterator;
57
53
  }
58
- export interface IArcadeRuntimeFeatureSetIterator {
59
- nextBatchAsArcadeFeatures(bsize: number, timeReference: IEditorTimeReference): Promise<IArcadeRuntimeDictionary[] | null>;
54
+ interface IArcadeRuntimeFeatureSetIterator {
55
+ nextBatchAsArcadeFeatures(bsize: number, timeReference: {
56
+ timeZone: string;
57
+ }): Promise<IArcadeRuntimeDictionary[] | null>;
60
58
  }
61
- export interface IArcadeRuntimeDate {
59
+ interface IArcadeRuntimeDate {
62
60
  declaredRootClass: string;
63
61
  toDateTime(): any;
64
62
  isUnknownTimeZone: boolean;
65
63
  }
66
- export interface IArcadeRuntimeDateOnly {
64
+ interface IArcadeRuntimeDateOnly {
67
65
  declaredRootClass: string;
68
66
  /**
69
67
  * To ISO Date format
70
68
  */
71
69
  toString(): string;
72
70
  }
73
- export interface IArcadeRuntimeTimeOnly {
71
+ interface IArcadeRuntimeTimeOnly {
74
72
  declaredRootClass: string;
75
73
  /**
76
74
  * To ISO Time format
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcgis/coding-components",
3
3
  "description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
4
- "version": "4.28.0-beta.7",
4
+ "version": "4.28.0-beta.8",
5
5
  "module": "dist/components/index.js",
6
6
  "main": "dist/index.cjs.js",
7
7
  "types": "dist/types/index.d.ts",
@@ -50,17 +50,17 @@
50
50
  "prettier": "prettier . --write"
51
51
  },
52
52
  "dependencies": {
53
- "@arcgis/arcade-languageservice": "4.28.0-beta.7",
53
+ "@arcgis/arcade-languageservice": "4.28.0-beta.8",
54
54
  "@esri/calcite-components": "^1.8.0",
55
55
  "@stencil/core": "2.22.3",
56
56
  "monaco-editor": "^0.39.0",
57
57
  "vscode-languageserver-types": "^3.17.3"
58
58
  },
59
59
  "devDependencies": {
60
- "@arcgis/components-plugins": "4.28.0-beta.7",
61
- "@arcgis/components-utils": "4.28.0-beta.7",
60
+ "@arcgis/components-plugins": "4.28.0-beta.8",
61
+ "@arcgis/components-utils": "4.28.0-beta.8",
62
62
  "@arcgis/core": ">=4.28.0-next <4.29",
63
- "@arcgis/core-adapter": "4.28.0-beta.7",
63
+ "@arcgis/core-adapter": "4.28.0-beta.8",
64
64
  "@arcgis/eslint-config": "1.0.0",
65
65
  "@arcgis/typescript-config": "1.0.0",
66
66
  "@stencil/sass": "^2.0.4",
@@ -112,5 +112,5 @@
112
112
  "peerDependencies": {
113
113
  "@arcgis/core": ">=4.28.0-next <4.29"
114
114
  },
115
- "gitHead": "f1335d4cbe902c8785b3c277427ebaaebeac38da"
115
+ "gitHead": "58de7cc1650c17d88e7fdeea22d27fbc073e9019"
116
116
  }