@arcgis/coding-components 4.29.0-beta.76 → 4.29.0-beta.78

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.
Files changed (44) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
  2. package/dist/arcgis-coding-components/index.esm.js +1 -1
  3. package/dist/arcgis-coding-components/{p-c0bf49ad.js → p-1d3f421c.js} +1 -1
  4. package/dist/arcgis-coding-components/{p-3b2457f7.js → p-2b604eec.js} +8 -8
  5. package/dist/arcgis-coding-components/{p-be5ec0c4.entry.js → p-3b6c8fd6.entry.js} +1 -1
  6. package/dist/arcgis-coding-components/{p-6e1f1ee0.js → p-3cf74389.js} +1 -1
  7. package/dist/arcgis-coding-components/{p-45b5bca3.js → p-6217d9dc.js} +1 -1
  8. package/dist/arcgis-coding-components/{p-21871ede.js → p-7c5f00c2.js} +1 -1
  9. package/dist/arcgis-coding-components/{p-59247049.js → p-9594c6a2.js} +1 -1
  10. package/dist/arcgis-coding-components/{p-8010edc0.js → p-a303451c.js} +1 -1
  11. package/dist/arcgis-coding-components/{p-ec3e9c42.js → p-b8eb837f.js} +1 -1
  12. package/dist/arcgis-coding-components/p-ccafed7f.js +2 -0
  13. package/dist/arcgis-coding-components/{p-9301388a.js → p-dc9e6210.js} +1 -1
  14. package/dist/cjs/{arcade-defaults-82737060.js → arcade-defaults-264d7eec.js} +8 -8
  15. package/dist/cjs/{arcade-mode-b21b24cc.js → arcade-mode-1ff4e951.js} +4 -4
  16. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +3 -3
  17. package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
  18. package/dist/cjs/{cssMode-bc43621f.js → cssMode-346fb07e.js} +2 -2
  19. package/dist/cjs/{html-4a747b36.js → html-f1a675b7.js} +2 -2
  20. package/dist/cjs/{htmlMode-c11513d8.js → htmlMode-cffea715.js} +2 -2
  21. package/dist/cjs/{index-ac186201.js → index-aaf14a3e.js} +24 -16
  22. package/dist/cjs/index.cjs.js +2 -2
  23. package/dist/cjs/{javascript-51f1b49d.js → javascript-4641c7e5.js} +3 -3
  24. package/dist/cjs/{jsonMode-3985bbe9.js → jsonMode-510badaa.js} +2 -2
  25. package/dist/cjs/loader.cjs.js +1 -1
  26. package/dist/cjs/{tsMode-b2b3fb82.js → tsMode-28e50146.js} +2 -2
  27. package/dist/cjs/{typescript-795a538e.js → typescript-ac223483.js} +2 -2
  28. package/dist/components/arcade-mode.js +2 -2
  29. package/dist/esm/{arcade-defaults-375c8393.js → arcade-defaults-f0668978.js} +8 -8
  30. package/dist/esm/{arcade-mode-2b1c4c38.js → arcade-mode-49b9d1ce.js} +4 -4
  31. package/dist/esm/arcgis-arcade-api_6.entry.js +3 -3
  32. package/dist/esm/arcgis-coding-components.js +3 -3
  33. package/dist/esm/{cssMode-2d3bbf6d.js → cssMode-4ca16df1.js} +2 -2
  34. package/dist/esm/{html-ba801b93.js → html-f266c184.js} +2 -2
  35. package/dist/esm/{htmlMode-790fcdc3.js → htmlMode-8e91c8bd.js} +2 -2
  36. package/dist/esm/{index-022fb97b.js → index-3732acb8.js} +24 -16
  37. package/dist/esm/index.js +2 -2
  38. package/dist/esm/{javascript-10081345.js → javascript-72c3d3da.js} +3 -3
  39. package/dist/esm/{jsonMode-d6de3d90.js → jsonMode-c8443d0f.js} +2 -2
  40. package/dist/esm/loader.js +2 -2
  41. package/dist/esm/{tsMode-2efadb1a.js → tsMode-a540c3d2.js} +2 -2
  42. package/dist/esm/{typescript-534a4558.js → typescript-9bd09708.js} +2 -2
  43. package/package.json +15 -14
  44. package/dist/arcgis-coding-components/p-2c0d6f15.js +0 -2
@@ -1,5 +1,5 @@
1
- import { r as main, e as editor, M as MarkerSeverity, R as Range, l as languages, E as Emitter } from './arcade-defaults-375c8393.js';
2
- import './index-022fb97b.js';
1
+ import { r as main, e as editor, M as MarkerSeverity, R as Range, l as languages, E as Emitter } from './arcade-defaults-f0668978.js';
2
+ import './index-3732acb8.js';
3
3
 
4
4
  var fe=(e=>(e.False="false",e.Null="null",e.True="true",e))(fe||{}),ge=(e=>(e.Break="break",e.Continue="continue",e.Else="else",e.For="for",e.From="from",e.Function="function",e.If="if",e.Import="import",e.Export="export",e.In="in",e.Return="return",e.Var="var",e.While="while",e))(ge||{}),c=(e=>(e.AssignmentExpression="AssignmentExpression",e.ArrayExpression="ArrayExpression",e.BlockComment="BlockComment",e.BlockStatement="BlockStatement",e.BinaryExpression="BinaryExpression",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.ContinueStatement="ContinueStatement",e.EmptyStatement="EmptyStatement",e.ExpressionStatement="ExpressionStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ForStatement="ForStatement",e.ForInStatement="ForInStatement",e.FunctionDeclaration="FunctionDeclaration",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.LineComment="LineComment",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.ObjectExpression="ObjectExpression",e.Program="Program",e.Property="Property",e.ReturnStatement="ReturnStatement",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e))(c||{}),me=["++","--"],We=["-","+","!","~"],qe=["=","/=","*=","%=","+=","-="],He=["||","&&"],Pt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"],bt=(e=>(e[e.Unknown=0]="Unknown",e[e.BooleanLiteral=1]="BooleanLiteral",e[e.EOF=2]="EOF",e[e.Identifier=3]="Identifier",e[e.Keyword=4]="Keyword",e[e.NullLiteral=5]="NullLiteral",e[e.NumericLiteral=6]="NumericLiteral",e[e.Punctuator=7]="Punctuator",e[e.StringLiteral=8]="StringLiteral",e[e.Template=10]="Template",e))(bt||{}),It=(e=>(e.InvalidModuleUri="InvalidModuleUri",e.ForInOfLoopInitializer="ForInOfLoopInitializer",e.IdentiferExpected="IdentiferExpected",e.InvalidEscapedReservedWord="InvalidEscapedReservedWord",e.InvalidExpression="InvalidExpression",e.InvalidFunctionIdentifier="InvalidFunctionIdentifier",e.InvalidHexEscapeSequence="InvalidHexEscapeSequence",e.InvalidLeftHandSideInAssignment="InvalidLeftHandSideInAssignment",e.InvalidLeftHandSideInForIn="InvalidLeftHandSideInForIn",e.InvalidTemplateHead="InvalidTemplateHead",e.InvalidVariableAssignment="InvalidVariableAssignment",e.KeyMustBeString="KeyMustBeString",e.NoFunctionInsideBlock="NoFunctionInsideBlock",e.NoFunctionInsideFunction="NoFunctionInsideFunction",e.ModuleExportRootOnly="ModuleExportRootOnly",e.ModuleImportRootOnly="ModuleImportRootOnly",e.PunctuatorExpected="PunctuatorExpected",e.TemplateOctalLiteral="TemplateOctalLiteral",e.UnexpectedBoolean="UnexpectedBoolean",e.UnexpectedEndOfScript="UnexpectedEndOfScript",e.UnexpectedIdentifier="UnexpectedIdentifier",e.UnexpectedKeyword="UnexpectedKeyword",e.UnexpectedNull="UnexpectedNull",e.UnexpectedNumber="UnexpectedNumber",e.UnexpectedPunctuator="UnexpectedPunctuator",e.UnexpectedString="UnexpectedString",e.UnexpectedTemplate="UnexpectedTemplate",e.UnexpectedToken="UnexpectedToken",e))(It||{});var L=[[],[],[]];me.forEach(e=>L[e.length-1].push(e));We.forEach(e=>L[e.length-1].push(e));He.forEach(e=>L[e.length-1].push(e));qe.forEach(e=>L[e.length-1].push(e));Pt.forEach(e=>L[e.length-1].push(e));var nt=Object.values(ge),st=Object.values(fe);st.map(e=>({label:e,kind:main.CompletionItemKind.Constant}));nt.map(e=>({label:e,kind:main.CompletionItemKind.Keyword}));
5
5
 
@@ -134,8 +134,8 @@ const arcadeMonarchLanguage = {
134
134
  // delimiter: after number because of .\d floats
135
135
  [/[;,.]/u, "delimiter"],
136
136
  // strings
137
- [/"([^"\\]|\\.)*$/u, "string.invalid"],
138
- [/'([^'\\]|\\.)*$/u, "string.invalid"],
137
+ [/"([^"\\]|\\.)*$/u, "string.invalid"], // non-teminated string
138
+ [/'([^'\\]|\\.)*$/u, "string.invalid"], // non-teminated string
139
139
  [/"/u, "string", "@string_double"],
140
140
  [/'/u, "string", "@string_single"],
141
141
  [/`/u, "string", "@string_backtick"]
@@ -1,5 +1,5 @@
1
- import { h, r as registerInstance, c as createEvent, g as getAssetPath, H as Host, a as getElement, F as Fragment } from './index-022fb97b.js';
2
- import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, n as ne, t as te, i as importRequest, l as languages, d as arcadeDefaults, W, U as Uri, B, j, f as filterCollection, G, h as importArcade, k as h$1, F, $, K as KeyCode, D, q, s as supportedFields, Q, R as Range, T, m as KeyMod } from './arcade-defaults-375c8393.js';
1
+ import { h, r as registerInstance, c as createEvent, g as getAssetPath, H as Host, a as getElement, F as Fragment } from './index-3732acb8.js';
2
+ import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, n as ne, t as te, i as importRequest, l as languages, d as arcadeDefaults, W, U as Uri, B, j, f as filterCollection, G, h as importArcade, k as h$1, F, $, K as KeyCode, D, q, s as supportedFields, Q, R as Range, T, m as KeyMod } from './arcade-defaults-f0668978.js';
3
3
 
4
4
  async function colorizeCode(code) {
5
5
  return await editor.colorize(code, "arcade", { tabSize: 2 });
@@ -3015,7 +3015,7 @@ async function getArcadeWorker(uri) {
3015
3015
  * @returns mode for arcade
3016
3016
  */
3017
3017
  async function getMode() {
3018
- return await import('./arcade-mode-2b1c4c38.js');
3018
+ return await import('./arcade-mode-49b9d1ce.js');
3019
3019
  }
3020
3020
  // Register the language in Monaco
3021
3021
  languages.register({
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-022fb97b.js';
2
- export { s as setNonce } from './index-022fb97b.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-3732acb8.js';
2
+ export { s as setNonce } from './index-3732acb8.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.8.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
@@ -1,5 +1,5 @@
1
- import { o as monaco_editor_core_star } from './arcade-defaults-375c8393.js';
2
- import './index-022fb97b.js';
1
+ import { o as monaco_editor_core_star } from './arcade-defaults-f0668978.js';
2
+ import './index-3732acb8.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,5 +1,5 @@
1
- import { o as monaco_editor_core_star } from './arcade-defaults-375c8393.js';
2
- import './index-022fb97b.js';
1
+ import { o as monaco_editor_core_star } from './arcade-defaults-f0668978.js';
2
+ import './index-3732acb8.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,5 +1,5 @@
1
- import { o as monaco_editor_core_star } from './arcade-defaults-375c8393.js';
2
- import './index-022fb97b.js';
1
+ import { o as monaco_editor_core_star } from './arcade-defaults-f0668978.js';
2
+ import './index-3732acb8.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -751,8 +751,9 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
751
751
  * @param oldCh the old children of the parent node
752
752
  * @param newVNode the new VNode which will replace the parent
753
753
  * @param newCh the new children of the parent node
754
+ * @param isInitialRender whether or not this is the first render of the vdom
754
755
  */
755
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
756
+ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
756
757
  let oldStartIdx = 0;
757
758
  let newStartIdx = 0;
758
759
  let idxInOld = 0;
@@ -779,25 +780,25 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
779
780
  else if (newEndVnode == null) {
780
781
  newEndVnode = newCh[--newEndIdx];
781
782
  }
782
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
783
+ else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
783
784
  // if the start nodes are the same then we should patch the new VNode
784
785
  // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
785
786
  // indices to reflect that. We don't need to move any DOM Nodes around
786
787
  // since things are matched up in order.
787
- patch(oldStartVnode, newStartVnode);
788
+ patch(oldStartVnode, newStartVnode, isInitialRender);
788
789
  oldStartVnode = oldCh[++oldStartIdx];
789
790
  newStartVnode = newCh[++newStartIdx];
790
791
  }
791
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
792
+ else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
792
793
  // likewise, if the end nodes are the same we patch new onto old and
793
794
  // decrement our end indices, and also likewise in this case we don't
794
795
  // need to move any DOM Nodes.
795
- patch(oldEndVnode, newEndVnode);
796
+ patch(oldEndVnode, newEndVnode, isInitialRender);
796
797
  oldEndVnode = oldCh[--oldEndIdx];
797
798
  newEndVnode = newCh[--newEndIdx];
798
799
  }
799
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
800
- patch(oldStartVnode, newEndVnode);
800
+ else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
801
+ patch(oldStartVnode, newEndVnode, isInitialRender);
801
802
  // We need to move the element for `oldStartVnode` into a position which
802
803
  // will be appropriate for `newEndVnode`. For this we can use
803
804
  // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
@@ -819,8 +820,8 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
819
820
  oldStartVnode = oldCh[++oldStartIdx];
820
821
  newEndVnode = newCh[--newEndIdx];
821
822
  }
822
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
823
- patch(oldEndVnode, newStartVnode);
823
+ else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
824
+ patch(oldEndVnode, newStartVnode, isInitialRender);
824
825
  // We've already checked above if `oldStartVnode` and `newStartVnode` are
825
826
  // the same node, so since we're here we know that they are not. Thus we
826
827
  // can move the element for `oldEndVnode` _before_ the element for
@@ -857,7 +858,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
857
858
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
858
859
  }
859
860
  else {
860
- patch(elmToMove, newStartVnode);
861
+ patch(elmToMove, newStartVnode, isInitialRender);
861
862
  // invalidate the matching old node so that we won't try to update it
862
863
  // again later on
863
864
  oldCh[idxInOld] = undefined;
@@ -908,16 +909,22 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
908
909
  *
909
910
  * @param leftVNode the first VNode to check
910
911
  * @param rightVNode the second VNode to check
912
+ * @param isInitialRender whether or not this is the first render of the vdom
911
913
  * @returns whether they're equal or not
912
914
  */
913
- const isSameVnode = (leftVNode, rightVNode) => {
915
+ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
914
916
  // compare if two vnode to see if they're "technically" the same
915
917
  // need to have the same element tag, and same key to be the same
916
918
  if (leftVNode.$tag$ === rightVNode.$tag$) {
917
- // this will be set if components in the build have `key` attrs set on them
918
- {
919
+ // this will be set if JSX tags in the build have `key` attrs set on them
920
+ // we only want to check this if we're not on the first render since on
921
+ // first render `leftVNode.$key$` will always be `null`, so we can be led
922
+ // astray and, for instance, accidentally delete a DOM node that we want to
923
+ // keep around.
924
+ if (!isInitialRender) {
919
925
  return leftVNode.$key$ === rightVNode.$key$;
920
926
  }
927
+ return true;
921
928
  }
922
929
  return false;
923
930
  };
@@ -928,8 +935,9 @@ const isSameVnode = (leftVNode, rightVNode) => {
928
935
  *
929
936
  * @param oldVNode an old VNode whose DOM element and children we want to update
930
937
  * @param newVNode a new VNode representing an updated version of the old one
938
+ * @param isInitialRender whether or not this is the first render of the vdom
931
939
  */
932
- const patch = (oldVNode, newVNode) => {
940
+ const patch = (oldVNode, newVNode, isInitialRender = false) => {
933
941
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
934
942
  const oldChildren = oldVNode.$children$;
935
943
  const newChildren = newVNode.$children$;
@@ -946,7 +954,7 @@ const patch = (oldVNode, newVNode) => {
946
954
  if (oldChildren !== null && newChildren !== null) {
947
955
  // looks like there's child vnodes for both the old and new vnodes
948
956
  // so we need to call `updateChildren` to reconcile them
949
- updateChildren(elm, oldChildren, newVNode, newChildren);
957
+ updateChildren(elm, oldChildren, newVNode, newChildren, isInitialRender);
950
958
  }
951
959
  else if (newChildren !== null) {
952
960
  // no old child vnodes, but there are new child vnodes to add
@@ -1038,7 +1046,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1038
1046
  scopeId = hostElm['s-sc'];
1039
1047
  }
1040
1048
  // synchronous patch
1041
- patch(oldVNode, rootVnode);
1049
+ patch(oldVNode, rootVnode, isInitialLoad);
1042
1050
  };
1043
1051
  const attachToAncestor = (hostRef, ancestorComponent) => {
1044
1052
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { a as arcade } from './arcade-defaults-375c8393.js';
2
- import './index-022fb97b.js';
1
+ export { a as arcade } from './arcade-defaults-f0668978.js';
2
+ import './index-3732acb8.js';
@@ -1,6 +1,6 @@
1
- import { conf as conf$1, language as language$1 } from './typescript-534a4558.js';
2
- import './arcade-defaults-375c8393.js';
3
- import './index-022fb97b.js';
1
+ import { conf as conf$1, language as language$1 } from './typescript-9bd09708.js';
2
+ import './arcade-defaults-f0668978.js';
3
+ import './index-3732acb8.js';
4
4
 
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,5 +1,5 @@
1
- import { o as monaco_editor_core_star } from './arcade-defaults-375c8393.js';
2
- import './index-022fb97b.js';
1
+ import { o as monaco_editor_core_star } from './arcade-defaults-f0668978.js';
2
+ import './index-3732acb8.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-022fb97b.js';
2
- export { s as setNonce } from './index-022fb97b.js';
1
+ import { b as bootstrapLazy } from './index-3732acb8.js';
2
+ export { s as setNonce } from './index-3732acb8.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
@@ -1,5 +1,5 @@
1
- import { p as typescriptDefaults, o as monaco_editor_core_star } from './arcade-defaults-375c8393.js';
2
- import './index-022fb97b.js';
1
+ import { p as typescriptDefaults, o as monaco_editor_core_star } from './arcade-defaults-f0668978.js';
2
+ import './index-3732acb8.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,5 +1,5 @@
1
- import { o as monaco_editor_core_star } from './arcade-defaults-375c8393.js';
2
- import './index-022fb97b.js';
1
+ import { o as monaco_editor_core_star } from './arcade-defaults-f0668978.js';
2
+ import './index-3732acb8.js';
3
3
 
4
4
  /*!-----------------------------------------------------------------------------
5
5
  * Copyright (c) Microsoft Corporation. All rights reserved.
package/package.json CHANGED
@@ -2,7 +2,7 @@
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
4
  "homepage": "https://developers.arcgis.com/javascript/latest/",
5
- "version": "4.29.0-beta.76",
5
+ "version": "4.29.0-beta.78",
6
6
  "module": "dist/components/index.js",
7
7
  "main": "dist/index.cjs.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -30,8 +30,8 @@
30
30
  "start:storybook": "storybook dev -c .storybook/internal --quiet",
31
31
  "start:external-storybook": "kill-port 6018 && storybook dev -c .storybook/external -p 6018 --quiet",
32
32
  "watch": "yarn build:dev --watch",
33
- "build": "yarn pre && yarn build:monaco-workers && yarn build:components",
34
- "build:dev": "yarn pre && yarn build:monaco-workers --sourcemap && yarn build:components:dev",
33
+ "build": "yarn pre && yarn build:components",
34
+ "build:dev": "yarn pre:dev && yarn build:components:dev",
35
35
  "build:storybook": "storybook build -c .storybook/internal --quiet",
36
36
  "build:external-storybook": "storybook build -c .storybook/external -o storybook-static-external --quiet",
37
37
  "build:components": "stencil build",
@@ -42,25 +42,26 @@
42
42
  "test:e2e": "stencil test --e2e",
43
43
  "test.watch": "stencil test --spec --e2e --watchAll",
44
44
  "clean": "rimraf ./node_modules ./storybook-static ./storybook-static-external ./turbo ./dist ./www",
45
- "pre": "rimraf ./dist ./www && awc-build-t9n-types",
45
+ "pre": "rimraf ./dist ./www && awc-build-t9n-types && yarn build:monaco-workers",
46
+ "pre:dev": "yarn pre --sourcemap && awc-create-mock-doc",
46
47
  "util:build-t9n-types": "awc-build-t9n-types",
47
48
  "update:storybook": "npx storybook@latest upgrade",
48
49
  "generate": "stencil generate"
49
50
  },
50
51
  "dependencies": {
51
- "@arcgis/arcade-languageservice": "4.29.0-beta.76",
52
- "@stencil/core": "4.8.2",
52
+ "@arcgis/arcade-languageservice": "4.29.0-beta.78",
53
+ "@stencil/core": "^4.10.0",
53
54
  "monaco-editor": "^0.45.0",
54
55
  "vscode-languageserver-types": "^3.17.3"
55
56
  },
56
57
  "devDependencies": {
57
- "@arcgis/components-plugins": "4.29.0-beta.76",
58
- "@arcgis/components-utils": "4.29.0-beta.76",
58
+ "@arcgis/components-plugins": "4.29.0-beta.78",
59
+ "@arcgis/components-utils": "4.29.0-beta.78",
59
60
  "@arcgis/core": ">=4.29.0-next <4.30",
60
- "@arcgis/core-adapter": "4.29.0-beta.76",
61
+ "@arcgis/core-adapter": "4.29.0-beta.78",
61
62
  "@arcgis/typescript-config": "1.0.0",
62
- "@esri/calcite-components": "^2.1.0",
63
- "@stencil/angular-output-target": "0.8.1",
63
+ "@esri/calcite-components": "^2.2.0",
64
+ "@stencil/angular-output-target": "0.8.3",
64
65
  "@stencil/react-output-target": "0.5.3",
65
66
  "@stencil/sass": "^3.0.0",
66
67
  "@storybook/addon-a11y": "^7.6.6",
@@ -98,14 +99,14 @@
98
99
  "rollup-plugin-node-polyfills": "^0.2.1",
99
100
  "storybook": "^7.6.6",
100
101
  "tsx": "^4.1.2",
101
- "typescript": "5.2.2",
102
+ "typescript": "~5.3.0",
102
103
  "vite": "^4.5.1",
103
104
  "vscode-languageserver-textdocument": "^1.0.9",
104
105
  "yargs": "^17.1.1"
105
106
  },
106
107
  "peerDependencies": {
107
108
  "@arcgis/core": ">=4.29.0-next <4.30",
108
- "@esri/calcite-components": "^2.1.0"
109
+ "@esri/calcite-components": "^2.2.0"
109
110
  },
110
- "gitHead": "77452307e73f942cb7ba1815ea7029e21ba20730"
111
+ "gitHead": "831847ffcfdca1478f81b8a33a9f23794863df34"
111
112
  }
@@ -1,2 +0,0 @@
1
- let n,e,t=!1;const l=n=>{const e=new URL(n,sn.t);return e.origin!==ln.location.origin?e.href:e.pathname},o="slot-fb{display:contents}slot-fb[hidden]{display:none}",s="http://www.w3.org/1999/xlink",i={},c=n=>"object"==(n=typeof n)||"function"===n;function r(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const u=(n,e,...t)=>{let l=null,o=null,s=!1,i=!1;const r=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!c(l))&&(l+=""),s&&i?r[r.length-1].l+=l:r.push(s?a(null,l):l),i=s)};if(u(t),e){e.key&&(o=e.key);{const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}}if("function"==typeof n)return n(null===e?{}:e,r,d);const f=a(n,null);return f.o=e,r.length>0&&(f.i=r),f.u=o,f},a=(n,e)=>({v:0,p:n,l:e,h:null,i:null,o:null,u:null}),f={},d={forEach:(n,e)=>n.map(v).forEach(e),map:(n,e)=>n.map(v).map(e).map(y)},v=n=>({vattrs:n.o,vchildren:n.i,vkey:n.u,vname:n.m,vtag:n.p,vtext:n.l}),y=n=>{if("function"==typeof n.vtag){const e=Object.assign({},n.vattrs);return n.vkey&&(e.key=n.vkey),n.vname&&(e.name=n.vname),u(n.vtag,e,...n.vchildren||[])}const e=a(n.vtag,n.vtext);return e.o=n.vattrs,e.i=n.vchildren,e.u=n.vkey,e.m=n.vname,e},p=n=>K(n).$hostElement$,h=(n,e,t)=>{const l=p(n);return{emit:n=>m(l,e,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:n})}},m=(n,e,t)=>{const l=sn.ce(e,t);return n.dispatchEvent(l),l},$=new WeakMap,b=n=>"sc-"+n.$,w=(n,e,t,l,o,i)=>{if(t!==l){let r=Y(n,e),u=e.toLowerCase();if("class"===e){const e=n.classList,o=k(t),s=k(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if("style"===e){for(const e in t)l&&null!=l[e]||(e.includes("-")?n.style.removeProperty(e):n.style[e]="");for(const e in l)t&&l[e]===t[e]||(e.includes("-")?n.style.setProperty(e,l[e]):n.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(n);else if(r||"o"!==e[0]||"n"!==e[1]){const a=c(l);if((r||a&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?r=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(e=u,f=!0),null==l||!1===l?!1===l&&""!==n.getAttribute(e)||(f?n.removeAttributeNS(s,e):n.removeAttribute(e)):(!r||4&i||o)&&!a&&(l=!0===l?"":l,f?n.setAttributeNS(s,e,l):n.setAttribute(e,l))}else if(e="-"===e[2]?e.slice(3):Y(ln,u)?u.slice(2):u[2]+e.slice(3),t||l){const o=e.endsWith(S);e=e.replace(j,""),t&&sn.rel(n,e,t,o),l&&sn.ael(n,e,l,o)}}},g=/\s/,k=n=>n?n.split(g):[],S="Capture",j=RegExp(S+"$"),O=(n,e,t,l)=>{const o=11===e.h.nodeType&&e.h.host?e.h.host:e.h,s=n&&n.o||i,c=e.o||i;for(l in s)l in c||w(o,l,s[l],void 0,t,e.v);for(l in c)w(o,l,s[l],c[l],t,e.v)},C=(t,l,o)=>{const s=l.i[o];let i,c,r=0;if(null!==s.l)i=s.h=on.createTextNode(s.l);else if(i=s.h=on.createElement(s.p),O(null,s,!1),null!=n&&i["s-si"]!==n&&i.classList.add(i["s-si"]=n),s.i)for(r=0;r<s.i.length;++r)c=C(t,s,r),c&&i.appendChild(c);return i["s-hn"]=e,i},M=(n,t,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=C(null,l,s),c&&(o[s].h=c,r.insertBefore(c,t)))},x=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.h;L(e),n&&n.remove()}}},P=(n,e)=>n.p===e.p&&n.u===e.u,E=(n,e)=>{const t=e.h=n.h,l=n.i,o=e.i,s=e.l;null===s?(O(n,e,!1),null!==l&&null!==o?((n,e,t,l)=>{let o,s,i=0,c=0,r=0,u=0,a=e.length-1,f=e[0],d=e[a],v=l.length-1,y=l[0],p=l[v];for(;i<=a&&c<=v;)if(null==f)f=e[++i];else if(null==d)d=e[--a];else if(null==y)y=l[++c];else if(null==p)p=l[--v];else if(P(f,y))E(f,y),f=e[++i],y=l[++c];else if(P(d,p))E(d,p),d=e[--a],p=l[--v];else if(P(f,p))E(f,p),n.insertBefore(f.h,d.h.nextSibling),f=e[++i],p=l[--v];else if(P(d,y))E(d,y),n.insertBefore(d.h,f.h),d=e[--a],y=l[++c];else{for(r=-1,u=i;u<=a;++u)if(e[u]&&null!==e[u].u&&e[u].u===y.u){r=u;break}r>=0?(s=e[r],s.p!==y.p?o=C(e&&e[c],t,r):(E(s,y),e[r]=void 0,o=s.h),y=l[++c]):(o=C(e&&e[c],t,c),y=l[++c]),o&&f.h.parentNode.insertBefore(o,f.h)}i>a?M(n,null==l[v+1]?null:l[v+1].h,t,l,c,v):c>v&&x(e,i,a)})(t,l,e,o):null!==o?(null!==n.l&&(t.textContent=""),M(t,null,e,o,0,o.length-1)):null!==l&&x(l,0,l.length-1)):n.l!==s&&(t.data=s)},L=n=>{n.o&&n.o.ref&&n.o.ref(null),n.i&&n.i.map(L)},R=(n,e)=>{e&&!n.k&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.k=e)))},A=(n,e)=>{if(n.v|=16,!(4&n.v))return R(n,n.S),pn((()=>N(n,e)));n.v|=512},N=(n,e)=>{const t=n.j;let l;return e&&(l=D(t,"componentWillLoad")),T(l,(()=>W(n,t,e)))},T=(n,e)=>U(n)?n.then(e):e(),U=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,W=async(n,e,t)=>{var l;const s=n.$hostElement$,i=s["s-rc"];t&&(n=>{const e=n.O,t=n.$hostElement$,l=e.v,s=((n,e)=>{var t;const l=b(e),s=tn.get(l);if(n=11===n.nodeType?n:on,s)if("string"==typeof s){let i,c=$.get(n=n.head||n);if(c||$.set(n,c=new Set),!c.has(l)){{i=on.createElement("style"),i.innerHTML=s;const e=null!==(t=sn.C)&&void 0!==t?t:r(on);null!=e&&i.setAttribute("nonce",e),n.insertBefore(i,n.querySelector("link"))}4&e.v&&(i.innerHTML+=o),c&&c.add(l)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(n);F(n,e,s,t),i&&(i.map((n=>n())),s["s-rc"]=void 0);{const e=null!==(l=s["s-p"])&&void 0!==l?l:[],t=()=>H(n);0===e.length?t():(Promise.all(e).then(t),n.v|=4,e.length=0)}},F=(t,l,o,s)=>{try{l=l.render(),t.v&=-17,t.v|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.O,c=t.M||a(null,null),r=(n=>n&&n.p===f)(l)?l:u(null,null,l);if(e=s.tagName,i.P&&(r.o=r.o||{},i.P.map((([n,e])=>r.o[e]=s[n]))),o&&r.o)for(const n of Object.keys(r.o))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(r.o[n]=s[n]);r.p=null,r.v|=4,t.M=r,r.h=c.h=s.shadowRoot||s,n=s["s-sc"],E(c,r)})(t,l,s)}catch(n){Z(n,t.$hostElement$)}return null},H=n=>{const e=n.$hostElement$,t=n.j,l=n.S;64&n.v||(n.v|=64,V(e),D(t,"componentDidLoad"),n.L(e),l||q()),n.R(e),n.k&&(n.k(),n.k=void 0),512&n.v&&yn((()=>A(n,!1))),n.v&=-517},q=()=>{V(on.documentElement),yn((()=>m(ln,"appload",{detail:{namespace:"arcgis-coding-components"}})))},D=(n,e,t)=>{if(n&&n[e])try{return n[e](t)}catch(n){Z(n)}},V=n=>n.setAttribute("hydrated",""),_=(n,e,t)=>{var l;const o=n.prototype;if(e.A){n.watchers&&(e.N=n.watchers);const s=Object.entries(e.A);if(s.map((([n,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(o,n,{get(){return((n,e)=>K(this).T.get(e))(0,n)},set(t){((n,e,t,l)=>{const o=K(n),s=o.$hostElement$,i=o.T.get(e),r=o.v,u=o.j;if(t=((n,e)=>null==n||c(n)?n:4&e?"false"!==n&&(""===n||!!n):1&e?n+"":n)(t,l.A[e][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.T.set(e,t),u)){if(l.N&&128&r){const n=l.N[e];n&&n.map((n=>{try{u[n](t,i,e)}catch(n){Z(n,s)}}))}2==(18&r)&&A(o,!1)}})(this,n,t,e)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(o,n,{value(...e){var t;const l=K(this);return null===(t=null==l?void 0:l.U)||void 0===t?void 0:t.then((()=>{var t;return null===(t=l.j)||void 0===t?void 0:t[n](...e)}))}})})),1&t){const t=new Map;o.attributeChangedCallback=function(n,l,s){sn.jmp((()=>{var i;const c=t.get(n);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=K(this),o=null==t?void 0:t.v;if(o&&!(8&o)&&128&o&&s!==l){const o=t.j,c=null===(i=e.N)||void 0===i?void 0:i[n];null==c||c.forEach((e=>{null!=o[e]&&o[e].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=e.N)&&void 0!==l?l:{}),...s.filter((([n,e])=>15&e[0])).map((([n,l])=>{var o;const s=l[1]||n;return t.set(s,n),512&l[0]&&(null===(o=e.P)||void 0===o||o.push([n,s])),s}))]))}}return n},z=n=>{D(n,"disconnectedCallback")},B=(n,e={})=>{var t;const l=[],s=e.exclude||[],i=ln.customElements,c=on.head,u=c.querySelector("meta[charset]"),a=on.createElement("style"),f=[];let d,v=!0;Object.assign(sn,e),sn.t=new URL(e.resourcesUrl||"./",on.baseURI).href;let y=!1;if(n.map((n=>{n[1].map((e=>{var t;const o={v:e[0],$:e[1],A:e[2],W:e[3]};4&o.v&&(y=!0),o.A=e[2],o.P=[],o.N=null!==(t=e[4])&&void 0!==t?t:{};const c=o.$,r=class extends HTMLElement{constructor(n){super(n),X(n=this,o),1&o.v&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),v?f.push(this):sn.jmp((()=>(n=>{if(0==(1&sn.v)){const e=K(n),t=e.O,l=()=>{};if(1&e.v)(null==e?void 0:e.j)||(null==e?void 0:e.F)&&e.F.then((()=>{}));else{e.v|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){R(e,e.S=t);break}}t.A&&Object.entries(t.A).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t)=>{let l;if(0==(32&e.v)){e.v|=32;{if(l=en(t),l.then){const n=()=>{};l=await l,n()}l.isProxied||(t.N=l.watchers,_(l,t,2),l.isProxied=!0);const n=()=>{};e.v|=8;try{new l(e)}catch(n){Z(n)}e.v&=-9,e.v|=128,n()}if(l.style){let n=l.style;const e=b(t);if(!tn.has(e)){const l=()=>{};((n,e,t)=>{let l=tn.get(n);rn&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,tn.set(n,l)})(e,n,!!(1&t.v)),l()}}}const o=e.S,s=()=>A(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,e,t)}l()}})(this)))}disconnectedCallback(){sn.jmp((()=>(async()=>{if(0==(1&sn.v)){const n=K(this);(null==n?void 0:n.j)?z(n.j):(null==n?void 0:n.F)&&n.F.then((()=>z(n.j)))}})()))}componentOnReady(){return K(this).F}};o.H=n[0],s.includes(c)||i.get(c)||(l.push(c),i.define(c,_(r,o,1)))}))})),y&&(a.innerHTML+=o),a.innerHTML+=l+"{visibility:hidden}[hydrated]{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(t=sn.C)&&void 0!==t?t:r(on);null!=n&&a.setAttribute("nonce",n),c.insertBefore(a,u?u.nextSibling:c.firstChild)}v=!1,f.length?f.map((n=>n.connectedCallback())):sn.jmp((()=>d=setTimeout(q,30)))},G=(n,e)=>e,I=n=>sn.C=n,J=new WeakMap,K=n=>J.get(n),Q=(n,e)=>J.set(e.j=n,e),X=(n,e)=>{const t={v:0,$hostElement$:n,O:e,T:new Map};return t.U=new Promise((n=>t.R=n)),t.F=new Promise((n=>t.L=n)),n["s-p"]=[],n["s-rc"]=[],J.set(n,t)},Y=(n,e)=>e in n,Z=(n,e)=>(0,console.error)(n,e),nn=new Map,en=n=>{const e=n.$.replace(/-/g,"_"),t=n.H,l=nn.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(nn.set(t,n),n[e])),Z)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},tn=new Map,ln="undefined"!=typeof window?window:{},on=ln.document||{head:{}},sn={v:0,t:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},cn=n=>Promise.resolve(n),rn=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),un=[],an=[],fn=(n,e)=>l=>{n.push(l),t||(t=!0,e&&4&sn.v?yn(vn):sn.raf(vn))},dn=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){Z(n)}n.length=0},vn=()=>{dn(un),dn(an),(t=un.length>0)&&sn.raf(vn)},yn=n=>cn().then(n),pn=fn(an,!0);export{G as F,f as H,p as a,B as b,h as c,l as g,u as h,cn as p,Q as r,I as s}