@arcgis/coding-components 4.34.0-next.133 → 4.34.0-next.134
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.
- package/dist/addons.js +1 -1
- package/dist/cdn/{INUF6LI3.js → 3JK2IC7B.js} +2 -2
- package/dist/cdn/{IFNUEEY6.js → 3QJXVV5E.js} +2 -2
- package/dist/cdn/{YUXMLOLC.js → 5B3RSZBU.js} +2 -2
- package/dist/cdn/{444YJJLQ.js → 5F3JLUEK.js} +2 -2
- package/dist/cdn/{IIV3BOUP.js → 5MPQVYRH.js} +2 -2
- package/dist/cdn/{3J4MHZTC.js → 6EK4SSJM.js} +2 -2
- package/dist/cdn/{33FMU32I.js → A5ZZP37W.js} +2 -2
- package/dist/cdn/{NBC2N7DQ.js → AEIRTZKV.js} +2 -2
- package/dist/cdn/{LB5UVB2T.js → AYQECBE2.js} +2 -2
- package/dist/cdn/{RLM24PPW.js → CLAPPJYW.js} +2 -2
- package/dist/cdn/{VTGZADX5.js → CMOSXXEO.js} +1 -1
- package/dist/cdn/{PMG7E6F7.js → DYY3XUGM.js} +1 -1
- package/dist/cdn/{TXLNSKBC.js → DZFXXRKG.js} +4 -4
- package/dist/cdn/{HX5KCZE7.js → FWQJPEVF.js} +1 -1
- package/dist/cdn/{VCVT33O7.js → G6WKYFWT.js} +2 -2
- package/dist/cdn/{ADOFXSHY.js → GL653COE.js} +2 -2
- package/dist/cdn/{JYIKHQHZ.js → GYTDHAB5.js} +2 -2
- package/dist/cdn/I4K63IW3.js +63 -0
- package/dist/cdn/{OAXYRUYW.js → IJW7FJ57.js} +1 -1
- package/dist/cdn/{OYEHPNOM.js → IL7AHKNR.js} +2 -2
- package/dist/cdn/{NJ5RM7DS.js → KABTZNY4.js} +2 -2
- package/dist/cdn/{7RHH4P5M.js → LX3R5VIW.js} +2 -2
- package/dist/cdn/{DSIF4ZUF.js → LYYFPLXW.js} +2 -2
- package/dist/cdn/{XHW3JCAA.js → M3VTUMGO.js} +1 -1
- package/dist/cdn/{B2ETOF6E.js → MEICINCL.js} +2 -2
- package/dist/cdn/{RGU2XCZ4.js → MMN5V6LJ.js} +2 -2
- package/dist/cdn/MRGANHSY.js +4 -0
- package/dist/cdn/{H5JKFDB4.js → N7DDZYTD.js} +2 -2
- package/dist/cdn/{6G3BWD4I.js → OFKGW3AJ.js} +2 -2
- package/dist/cdn/{MPYVEDWN.js → OZSHMYTX.js} +2 -2
- package/dist/cdn/{SFZHBHD6.js → Q75ITDEE.js} +2 -2
- package/dist/cdn/{ELU3G7A2.js → QMXJLUFG.js} +2 -2
- package/dist/cdn/{BHKLXIUC.js → RL2MAHPV.js} +2 -2
- package/dist/cdn/{7XLORGVX.js → T6XD5XXG.js} +1 -1
- package/dist/cdn/{SMJH5SA6.js → TGA656YH.js} +2 -2
- package/dist/cdn/{YR54KJQM.js → THLWGGEM.js} +2 -2
- package/dist/cdn/{KOTYZLXM.js → UEZPL2UR.js} +2 -2
- package/dist/cdn/{TVXP2N25.js → VJDFKMIS.js} +2 -2
- package/dist/cdn/{EZPQRXVF.js → VXMR3RO3.js} +2 -2
- package/dist/cdn/{YSBS6TWD.js → WCY6TWNN.js} +1 -1
- package/dist/cdn/{NJ4ZAXGL.js → WIVNFTLC.js} +2 -2
- package/dist/cdn/{HAQPAAAD.js → WZZXASNV.js} +2 -2
- package/dist/cdn/{TY4ZPHY5.js → XQK7TY5U.js} +2 -2
- package/dist/cdn/{5ODW6NHY.js → XVYFSHJW.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +35888 -35795
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/editor.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +45 -40
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/setup-monaco.js +1 -1
- package/dist/chunks/sql-expr-contribution.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.d.ts +8 -0
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +71 -0
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.d.ts +14 -0
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +8 -0
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.d.ts +53 -0
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.d.ts +19 -0
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.d.ts +23 -0
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +28 -0
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.d.ts +8 -0
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/monacoStyles.js +1 -1
- package/dist/types/preact.d.ts +6 -6
- package/dist/types/preact10.d.ts +41 -0
- package/package.json +5 -5
- package/dist/cdn/CARPBLSL.js +0 -63
- package/dist/cdn/ZCOIOSPC.js +0 -4
package/dist/cdn/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{C as i,o as e}from"./
|
|
3
|
+
v4.34.0-next.134 */
|
|
4
|
+
import{C as i,o as e}from"./LYYFPLXW.js";import"./WCY6TWNN.js";import"./DYY3XUGM.js";var r=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./IL7AHKNR.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./WZZXASNV.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./5F3JLUEK.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./VJDFKMIS.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./AEIRTZKV.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./WIVNFTLC.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./A5ZZP37W.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./MEICINCL.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./QMXJLUFG.js"),"loading,modelId"]});r({resourcesUrl:import.meta.url});var o=new CSSStyleSheet();var ___=new CSSStyleSheet();___.replaceSync(`@layer{/*!-----------------------------------------------------------
|
|
5
5
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
6
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
7
7
|
* Released under the MIT license
|
|
@@ -5,7 +5,7 @@ import { CompletionItemKind as w, InsertTextFormat as u, InsertTextMode as p } f
|
|
|
5
5
|
import { getDeclaredPixelMembers as I } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
8
|
-
v4.34.0-next.
|
|
8
|
+
v4.34.0-next.134 */
|
|
9
9
|
async function C(e) {
|
|
10
10
|
const { apiVersion: r, bundles: t, hiddenApiItems: i } = e.toEditorProfileDefinition(), n = await h(e.dictionaryVariables);
|
|
11
11
|
return { apiVersion: r, bundles: t, variables: n, hiddenApiItems: i?.map((s) => s.toLowerCase()) };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createArcadeExecutor as C } from "@arcgis/core/arcade.js";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.134 */
|
|
5
5
|
const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
|
|
6
6
|
function u(t) {
|
|
7
7
|
return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
|
|
@@ -9,7 +9,7 @@ import { debounce as F } from "@arcgis/toolkit/function";
|
|
|
9
9
|
import { Deferred as _ } from "@arcgis/toolkit/promise";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
12
|
-
v4.34.0-next.
|
|
12
|
+
v4.34.0-next.134 */
|
|
13
13
|
const S = [
|
|
14
14
|
"<=",
|
|
15
15
|
">=",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
3
|
+
v4.34.0-next.134 */
|
|
4
4
|
async function a() {
|
|
5
5
|
return (await e()).getArcadeDiagnosticService();
|
|
6
6
|
}
|
package/dist/chunks/editor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css as e } from "lit";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.134 */
|
|
5
5
|
const o = e`@layer{arcgis-arcade-editor,arcgis-sql-expression-editor{.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}.side-panel calcite-flow{height:100%}}}`;
|
|
6
6
|
export {
|
|
7
7
|
o as s
|
package/dist/chunks/fields.js
CHANGED
|
@@ -15,7 +15,7 @@ import { filterApiLibraryForContext as de } from "@arcgis/languages-api-utils";
|
|
|
15
15
|
import { Emitter as G, Uri as E } from "monaco-editor";
|
|
16
16
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
17
17
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
18
|
-
v4.34.0-next.
|
|
18
|
+
v4.34.0-next.134 */
|
|
19
19
|
function k(t) {
|
|
20
20
|
return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && w(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
|
|
21
21
|
}
|
package/dist/chunks/markdown.js
CHANGED
|
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as ie } from "monaco-editor/esm/vs/editor/stand
|
|
|
4
4
|
import { generateTokensCSSForColorMap as we } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.134 */
|
|
8
8
|
async function ye(r, e) {
|
|
9
9
|
return await (await me()).colorize(r, e, { tabSize: 2 });
|
|
10
10
|
}
|
|
@@ -13,11 +13,11 @@ async function ct(r, e) {
|
|
|
13
13
|
return;
|
|
14
14
|
const n = Array.from(
|
|
15
15
|
r.querySelectorAll("code.language-arcade, code.language-sql"),
|
|
16
|
-
async (s) => await
|
|
16
|
+
async (s) => await Se(s, s.textContent, e)
|
|
17
17
|
);
|
|
18
18
|
await Promise.all(n);
|
|
19
19
|
}
|
|
20
|
-
async function
|
|
20
|
+
async function Se(r, e, n) {
|
|
21
21
|
!r || r.tagName !== "CODE" || (r.innerHTML = await ye(e ?? "", n));
|
|
22
22
|
}
|
|
23
23
|
function ht() {
|
|
@@ -27,14 +27,14 @@ function ht() {
|
|
|
27
27
|
function pt(r) {
|
|
28
28
|
return le.get(ie).onDidColorThemeChange(() => r());
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function N() {
|
|
31
31
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
32
32
|
}
|
|
33
|
-
var
|
|
33
|
+
var $ = N();
|
|
34
34
|
function ae(r) {
|
|
35
|
-
|
|
35
|
+
$ = r;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var _ = { exec: () => null };
|
|
38
38
|
function u(r, e = "") {
|
|
39
39
|
let n = typeof r == "string" ? r : r.source, s = { replace: (t, i) => {
|
|
40
40
|
let l = typeof i == "string" ? i : i.source;
|
|
@@ -42,8 +42,8 @@ function u(r, e = "") {
|
|
|
42
42
|
}, getRegex: () => new RegExp(n, e) };
|
|
43
43
|
return s;
|
|
44
44
|
}
|
|
45
|
-
var x = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), htmlBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i") },
|
|
46
|
-
]`).replace("lheading", ce).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, qe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Be = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, pe = /^( {2,}|\\)\n(?!\s*$)/, Ze = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, q = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u,
|
|
45
|
+
var x = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), htmlBeginRegex: (r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i") }, $e = /^(?:[ \t]*(?:\n|$))+/, Re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ze = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, O = /(?:[*+-]|\d{1,9}[.)])/, oe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ce = u(oe).replace(/bull/g, O).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ae = u(oe).replace(/bull/g, O).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Q = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, _e = /^[^\n]+/, j = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ce = u(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", j).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = u(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, O).getRegex(), E = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", G = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ie = u("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", G).replace("tag", E).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), he = u(Q).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", E).getRegex(), ve = u(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", he).getRegex(), F = { blockquote: ve, code: Re, def: Ce, fences: Te, heading: ze, hr: C, html: Ie, lheading: ce, list: Pe, newline: $e, paragraph: he, table: _, text: _e }, ee = u("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", E).getRegex(), Le = { ...F, lheading: Ae, table: ee, paragraph: u(Q).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ee).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", E).getRegex() }, Ee = { ...F, html: u(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", G).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: _, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: u(Q).replace("hr", C).replace("heading", ` *#{1,6} *[^
|
|
46
|
+
]`).replace("lheading", ce).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, qe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Be = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, pe = /^( {2,}|\\)\n(?!\s*$)/, Ze = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, q = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Me = u(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ge = /(?!~)[\p{P}\p{S}]/u, De = /(?!~)[\s\p{P}\p{S}]/u, He = /(?:[^\s\p{P}\p{S}]|~)/u, Ne = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, ke = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Oe = u(ke, "u").replace(/punct/g, q).getRegex(), Qe = u(ke, "u").replace(/punct/g, ge).getRegex(), fe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", je = u(fe, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, q).getRegex(), Ge = u(fe, "gu").replace(/notPunctSpace/g, He).replace(/punctSpace/g, De).replace(/punct/g, ge).getRegex(), Fe = u("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, q).getRegex(), We = u(/\\(punct)/, "gu").replace(/punct/g, q).getRegex(), Xe = u(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ue = u(G).replace("(?:-->|$)", "-->").getRegex(), Je = u("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ue).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), I = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Ke = u(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", I).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = u(/^!?\[(label)\]\[(ref)\]/).replace("label", I).replace("ref", j).getRegex(), xe = u(/^!?\[(ref)\](?:\[\])?/).replace("ref", j).getRegex(), Ve = u("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", xe).getRegex(), X = { _backpedal: _, anyPunctuation: We, autolink: Xe, blockSkip: Ne, br: pe, code: Be, del: _, emStrongLDelim: Oe, emStrongRDelimAst: je, emStrongRDelimUnd: Fe, escape: qe, link: Ke, nolink: xe, punctuation: Me, reflink: de, reflinkSearch: Ve, tag: Je, text: Ze, url: _ }, Ye = { ...X, link: u(/^!?\[(label)\]\((.*?)\)/).replace("label", I).getRegex(), reflink: u(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", I).getRegex() }, M = { ...X, emStrongRDelimAst: Ge, emStrongLDelim: Qe, url: u(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ }, et = { ...M, br: u(pe).replace("{2,}", "*").getRegex(), text: u(M.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, P = { normal: F, gfm: Le, pedantic: Ee }, T = { normal: X, gfm: M, breaks: et, pedantic: Ye }, tt = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, te = (r) => tt[r];
|
|
47
47
|
function m(r, e) {
|
|
48
48
|
if (e) {
|
|
49
49
|
if (x.escapeTest.test(r)) return r.replace(x.escapeReplace, te);
|
|
@@ -109,7 +109,7 @@ var v = class {
|
|
|
109
109
|
rules;
|
|
110
110
|
lexer;
|
|
111
111
|
constructor(r) {
|
|
112
|
-
this.options = r ||
|
|
112
|
+
this.options = r || $;
|
|
113
113
|
}
|
|
114
114
|
space(r) {
|
|
115
115
|
let e = this.rules.block.newline.exec(r);
|
|
@@ -384,25 +384,25 @@ ${h}` : h;
|
|
|
384
384
|
return { type: "text", raw: e[0], text: e[0], escaped: n };
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
}, w = class
|
|
387
|
+
}, w = class D {
|
|
388
388
|
tokens;
|
|
389
389
|
options;
|
|
390
390
|
state;
|
|
391
391
|
tokenizer;
|
|
392
392
|
inlineQueue;
|
|
393
393
|
constructor(e) {
|
|
394
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
395
|
-
let n = { other: x, block:
|
|
396
|
-
this.options.pedantic ? (n.block =
|
|
394
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || $, this.options.tokenizer = this.options.tokenizer || new v(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
395
|
+
let n = { other: x, block: P.normal, inline: T.normal };
|
|
396
|
+
this.options.pedantic ? (n.block = P.pedantic, n.inline = T.pedantic) : this.options.gfm && (n.block = P.gfm, this.options.breaks ? n.inline = T.breaks : n.inline = T.gfm), this.tokenizer.rules = n;
|
|
397
397
|
}
|
|
398
398
|
static get rules() {
|
|
399
|
-
return { block:
|
|
399
|
+
return { block: P, inline: T };
|
|
400
400
|
}
|
|
401
401
|
static lex(e, n) {
|
|
402
|
-
return new
|
|
402
|
+
return new D(n).lex(e);
|
|
403
403
|
}
|
|
404
404
|
static lexInline(e, n) {
|
|
405
|
-
return new
|
|
405
|
+
return new D(n).inlineTokens(e);
|
|
406
406
|
}
|
|
407
407
|
lex(e) {
|
|
408
408
|
e = e.replace(x.carriageReturn, `
|
|
@@ -519,6 +519,7 @@ ${h}` : h;
|
|
|
519
519
|
}
|
|
520
520
|
for (; (t = this.tokenizer.rules.inline.anyPunctuation.exec(s)) != null; ) s = s.slice(0, t.index) + "++" + s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
521
521
|
for (; (t = this.tokenizer.rules.inline.blockSkip.exec(s)) != null; ) s = s.slice(0, t.index) + "[" + "a".repeat(t[0].length - 2) + "]" + s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
522
|
+
s = this.options.hooks?.emStrongMask?.call({ lexer: this }, s) ?? s;
|
|
522
523
|
let i = !1, l = "";
|
|
523
524
|
for (; e; ) {
|
|
524
525
|
i || (l = ""), i = !1;
|
|
@@ -593,7 +594,7 @@ ${h}` : h;
|
|
|
593
594
|
options;
|
|
594
595
|
parser;
|
|
595
596
|
constructor(r) {
|
|
596
|
-
this.options = r ||
|
|
597
|
+
this.options = r || $;
|
|
597
598
|
}
|
|
598
599
|
space(r) {
|
|
599
600
|
return "";
|
|
@@ -739,18 +740,18 @@ ${r}</tr>
|
|
|
739
740
|
br() {
|
|
740
741
|
return "";
|
|
741
742
|
}
|
|
742
|
-
}, y = class
|
|
743
|
+
}, y = class H {
|
|
743
744
|
options;
|
|
744
745
|
renderer;
|
|
745
746
|
textRenderer;
|
|
746
747
|
constructor(e) {
|
|
747
|
-
this.options = e ||
|
|
748
|
+
this.options = e || $, this.options.renderer = this.options.renderer || new L(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new U();
|
|
748
749
|
}
|
|
749
750
|
static parse(e, n) {
|
|
750
|
-
return new
|
|
751
|
+
return new H(n).parse(e);
|
|
751
752
|
}
|
|
752
753
|
static parseInline(e, n) {
|
|
753
|
-
return new
|
|
754
|
+
return new H(n).parseInline(e);
|
|
754
755
|
}
|
|
755
756
|
parse(e, n = !0) {
|
|
756
757
|
let s = "";
|
|
@@ -883,13 +884,14 @@ ${r}</tr>
|
|
|
883
884
|
}
|
|
884
885
|
return s;
|
|
885
886
|
}
|
|
886
|
-
},
|
|
887
|
+
}, A = class {
|
|
887
888
|
options;
|
|
888
889
|
block;
|
|
889
890
|
constructor(r) {
|
|
890
|
-
this.options = r ||
|
|
891
|
+
this.options = r || $;
|
|
891
892
|
}
|
|
892
|
-
static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
|
|
893
|
+
static passThroughHooks = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"]);
|
|
894
|
+
static passThroughHooksRespectAsync = /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"]);
|
|
893
895
|
preprocess(r) {
|
|
894
896
|
return r;
|
|
895
897
|
}
|
|
@@ -899,6 +901,9 @@ ${r}</tr>
|
|
|
899
901
|
processAllTokens(r) {
|
|
900
902
|
return r;
|
|
901
903
|
}
|
|
904
|
+
emStrongMask(r) {
|
|
905
|
+
return r;
|
|
906
|
+
}
|
|
902
907
|
provideLexer() {
|
|
903
908
|
return this.block ? w.lex : w.lexInline;
|
|
904
909
|
}
|
|
@@ -906,7 +911,7 @@ ${r}</tr>
|
|
|
906
911
|
return this.block ? y.parse : y.parseInline;
|
|
907
912
|
}
|
|
908
913
|
}, st = class {
|
|
909
|
-
defaults =
|
|
914
|
+
defaults = N();
|
|
910
915
|
options = this.setOptions;
|
|
911
916
|
parse = this.parseMarkdown(!0);
|
|
912
917
|
parseInline = this.parseMarkdown(!1);
|
|
@@ -915,7 +920,7 @@ ${r}</tr>
|
|
|
915
920
|
TextRenderer = U;
|
|
916
921
|
Lexer = w;
|
|
917
922
|
Tokenizer = v;
|
|
918
|
-
Hooks =
|
|
923
|
+
Hooks = A;
|
|
919
924
|
constructor(...r) {
|
|
920
925
|
this.use(...r);
|
|
921
926
|
}
|
|
@@ -989,13 +994,13 @@ ${r}</tr>
|
|
|
989
994
|
s.tokenizer = t;
|
|
990
995
|
}
|
|
991
996
|
if (n.hooks) {
|
|
992
|
-
let t = this.defaults.hooks || new
|
|
997
|
+
let t = this.defaults.hooks || new A();
|
|
993
998
|
for (let i in n.hooks) {
|
|
994
999
|
if (!(i in t)) throw new Error(`hook '${i}' does not exist`);
|
|
995
1000
|
if (["options", "block"].includes(i)) continue;
|
|
996
1001
|
let l = i, a = n.hooks[l], o = t[l];
|
|
997
|
-
|
|
998
|
-
if (this.defaults.async) return Promise.resolve(a.call(t, c)).then((k) => o.call(t, k));
|
|
1002
|
+
A.passThroughHooks.has(i) ? t[l] = (c) => {
|
|
1003
|
+
if (this.defaults.async && A.passThroughHooksRespectAsync.has(i)) return Promise.resolve(a.call(t, c)).then((k) => o.call(t, k));
|
|
999
1004
|
let h = a.call(t, c);
|
|
1000
1005
|
return o.call(t, h);
|
|
1001
1006
|
} : t[l] = (...c) => {
|
|
@@ -1055,22 +1060,22 @@ Please report this to https://github.com/markedjs/marked.`, r) {
|
|
|
1055
1060
|
throw n;
|
|
1056
1061
|
};
|
|
1057
1062
|
}
|
|
1058
|
-
},
|
|
1063
|
+
}, S = new st();
|
|
1059
1064
|
function p(r, e) {
|
|
1060
|
-
return
|
|
1065
|
+
return S.parse(r, e);
|
|
1061
1066
|
}
|
|
1062
1067
|
p.options = p.setOptions = function(r) {
|
|
1063
|
-
return
|
|
1068
|
+
return S.setOptions(r), p.defaults = S.defaults, ae(p.defaults), p;
|
|
1064
1069
|
};
|
|
1065
|
-
p.getDefaults =
|
|
1066
|
-
p.defaults =
|
|
1070
|
+
p.getDefaults = N;
|
|
1071
|
+
p.defaults = $;
|
|
1067
1072
|
p.use = function(...r) {
|
|
1068
|
-
return
|
|
1073
|
+
return S.use(...r), p.defaults = S.defaults, ae(p.defaults), p;
|
|
1069
1074
|
};
|
|
1070
1075
|
p.walkTokens = function(r, e) {
|
|
1071
|
-
return
|
|
1076
|
+
return S.walkTokens(r, e);
|
|
1072
1077
|
};
|
|
1073
|
-
p.parseInline =
|
|
1078
|
+
p.parseInline = S.parseInline;
|
|
1074
1079
|
p.Parser = y;
|
|
1075
1080
|
p.parser = y.parse;
|
|
1076
1081
|
p.Renderer = L;
|
|
@@ -1078,7 +1083,7 @@ p.TextRenderer = U;
|
|
|
1078
1083
|
p.Lexer = w;
|
|
1079
1084
|
p.lexer = w.lex;
|
|
1080
1085
|
p.Tokenizer = v;
|
|
1081
|
-
p.Hooks =
|
|
1086
|
+
p.Hooks = A;
|
|
1082
1087
|
p.parse = p;
|
|
1083
1088
|
p.options;
|
|
1084
1089
|
p.setOptions;
|
|
@@ -1103,7 +1108,7 @@ function ut(r) {
|
|
|
1103
1108
|
}
|
|
1104
1109
|
export {
|
|
1105
1110
|
ct as a,
|
|
1106
|
-
|
|
1111
|
+
Se as b,
|
|
1107
1112
|
ut as c,
|
|
1108
1113
|
ht as g,
|
|
1109
1114
|
pt as o
|
|
@@ -6,7 +6,7 @@ import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
|
6
6
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
-
v4.34.0-next.
|
|
9
|
+
v4.34.0-next.134 */
|
|
10
10
|
function $(e, n, l, i) {
|
|
11
11
|
if (!n)
|
|
12
12
|
return [];
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -3,7 +3,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
|
|
|
3
3
|
import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
6
|
-
v4.34.0-next.
|
|
6
|
+
v4.34.0-next.134 */
|
|
7
7
|
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
|
|
8
8
|
t.t = s;
|
|
9
9
|
t.o = r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import w from "@arcgis/core/request.js";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.134 */
|
|
5
5
|
function d() {
|
|
6
6
|
return !!window.MonacoEnvironment?.getWorker;
|
|
7
7
|
}
|
|
@@ -9,7 +9,7 @@ import { a as n } from "./sql-expr-defaults.js";
|
|
|
9
9
|
import { g as m } from "./sql-expr-service-accessors.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
12
|
-
v4.34.0-next.
|
|
12
|
+
v4.34.0-next.134 */
|
|
13
13
|
const s = /* @__PURE__ */ new Set();
|
|
14
14
|
function g(e, o) {
|
|
15
15
|
return () => {
|
|
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
|
|
|
4
4
|
import { g as b } from "./runtime.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.134 */
|
|
8
8
|
const x = (r) => {
|
|
9
9
|
const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
|
|
10
10
|
return {
|
|
@@ -9,7 +9,7 @@ import { debounce as N } from "@arcgis/toolkit/function";
|
|
|
9
9
|
import { g as f } from "./sql-expr-service-accessors.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
12
|
-
v4.34.0-next.
|
|
12
|
+
v4.34.0-next.134 */
|
|
13
13
|
let h = new _();
|
|
14
14
|
class k {
|
|
15
15
|
constructor(e) {
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/lumina/controllers";
|
|
|
2
2
|
import { g as t } from "./runtime.js";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
5
|
-
v4.34.0-next.
|
|
5
|
+
v4.34.0-next.134 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
|
@@ -14,14 +14,22 @@ import { PropertyValues } from 'lit';
|
|
|
14
14
|
export declare class ArcgisArcadeCodingAssistant extends LitElement {
|
|
15
15
|
closePanel?: (e: Event) => void;
|
|
16
16
|
insertText?: (text: string) => void;
|
|
17
|
+
/** @default "" */
|
|
17
18
|
helpBase?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether ai assistants are enabled in the organization's settings.
|
|
21
|
+
*
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
18
24
|
assistantsEnabled: boolean;
|
|
19
25
|
layer: __esri.CatalogFootprintLayer | __esri.CSVLayer | __esri.FeatureLayer | __esri.GeoJSONLayer | __esri.OGCFeatureLayer | __esri.OrientedImageryLayer | __esri.SceneLayer | __esri.Sublayer | __esri.SubtypeSublayer | __esri.VoxelLayer | __esri.WFSLayer;
|
|
20
26
|
portalUrl: string;
|
|
21
27
|
serviceUrl: string;
|
|
28
|
+
/** @default false */
|
|
22
29
|
closed: boolean;
|
|
23
30
|
editorRef: ArcgisArcadeEditor;
|
|
24
31
|
feedbackServiceUrl?: string;
|
|
25
32
|
appVersion?: string;
|
|
33
|
+
/** Permanently destroy the component */
|
|
26
34
|
destroy(): Promise<void>;
|
|
27
35
|
}
|
|
@@ -17,7 +17,7 @@ import X from "@arcgis/core/Graphic.js";
|
|
|
17
17
|
import { b as Z } from "../../chunks/language-defaults-base.js";
|
|
18
18
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
19
19
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
20
|
-
v4.34.0-next.
|
|
20
|
+
v4.34.0-next.134 */
|
|
21
21
|
const ee = W`:host(:not([closed])){--calcite-block-border-color: var(--calcite-color-transparent);flex:1 0 auto;border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box;max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);.submission-actions-wrapper{display:flex;flex-direction:column;width:100%;gap:.75rem}.submission-actions{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}.gaps{display:flex;gap:.25rem}.align-inline-end{margin-inline-start:auto}.action .error-display{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}.context-popover p{padding:0 .5rem;font-size:var(--calcite-font-size-sm)}.feedback-content{padding:1rem;display:flex;flex-direction:column;gap:.75rem;max-height:30vh;overflow-y:auto}.feedback-sheet{--calcite-sheet-height: auto;--calcite-sheet-max-height: 100%;--calcite-sheet-min-height: auto}calcite-chip[slot=header-actions-end]{align-self:center;margin-inline-end:.5rem}calcite-flow-item calcite-shell{background:transparent}calcite-block{width:100%;max-width:100%;align-self:flex-end;background-color:transparent;margin-block:0}calcite-sheet{--calcite-sheet-scrim-background: rgba(200, 200, 200, .5)}.type-suggestion{--calcite-color-foreground-1: var(--calcite-color-foreground-current);--calcite-color-text-3: var(--calcite-color-text-2);--calcite-icon-color: var(--calcite-color-brand)}.type-history{--calcite-icon-color: var(--calcite-color-text-2)}.type-response{--calcite-icon-color: var(--calcite-color-brand);--calcite-font-family: monospace}.block-response{align-self:flex-start;margin-block-end:4rem;border-block-end:0;--calcite-block-text-color: var(--calcite-color-brand)}calcite-list-item calcite-button{margin-inline-end:.25rem}.type-docs{--calcite-color-foreground-1: var(--calcite-color-foreground-3);--calcite-icon-color: var(--calcite-color-text-1)}.type-error{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-font-family: monospace;border:1px solid var(--calcite-color-status-danger)}#thumbs-up{margin-inline-start:auto;--calcite-icon-color: var(--calcite-color-border-input)}#thumbs-down{--calcite-icon-color: var(--calcite-color-border-input)}calcite-flow-item calcite-shell calcite-notice{margin-block:1rem}.no-space-block,.no-space-block[open]{margin:0}calcite-block[open]:last-of-type{border-block-end:0}.text-area-wrapper{display:flex;border-radius:var(--calcite-corner-radius-round);margin:.75rem;overflow:hidden;--calcite-color-border-input: transparent;position:sticky;box-shadow:var(--calcite-shadow-sm);flex:none}calcite-text-area{height:auto;min-height:5.75rem;overflow:hidden;border-radius:var(--calcite-corner-radius-round) var(--calcite-corner-radius-round) 0 0;--calcite-font-weight-normal: 500;font-weight:500;line-height:1.2}calcite-tooltip{--calcite-tooltip-z-index: 1000}.standalone-list{margin:1rem;width:calc(100% - 2rem)}.result-disclaimer{display:block;width:24rem;max-width:90%;margin:1rem auto;text-align:center;line-height:1.125rem;font-size:.875rem;font-style:italic}calcite-flow{height:100%}calcite-popover calcite-list{--calcite-list-background-color: transparent;--calcite-input-border-color: transparent}calcite-popover calcite-list calcite-filter{--calcite-spacing-sm: 0}.break-spaces{white-space:break-spaces}.feedback-button-container{margin-inline-start:auto;gap:0}.info-heading{font-size:var(--calcite-font-size-1);color:var(--calcite-color-text-1)}.unstyled-h3{margin:unset;font-size:var(--calcite-font-size-md)}.unstyled-shell{position:unset;inset:unset;display:unset;block-size:unset;inline-size:unset}.suggestion-button{font-weight:var(--calcite-font-weight-medium)}.info-block{max-width:450px}#result-block{calcite-card-group{--calcite-card-group-gap: 1.25rem}calcite-card{--calcite-card-corner-radius: var(--calcite-corner-radius-round);--calcite-card-border-color: transparent;width:100%}.positioned-code-content{display:flex;flex-direction:row;gap:.5rem;padding:.5rem}calcite-card [slot=title] calcite-chip{margin-block-start:.25rem}.code-response-wrapper{position:relative;background:var(--calcite-color-foreground-2);border-radius:var(--calcite-corner-radius-round);margin-top:-1.5rem}.prior-prompt{display:flex;flex-direction:row;padding:0;overflow-y:hidden;overflow-x:auto;margin:.25rem 0 .75rem;align-items:center;max-width:100%;span{overflow-x:auto;overflow-y:hidden}}.copy-feedback{display:none}.copy-prompt-button{align-self:flex-start;margin-inline-start:auto}.response-secondary-action-button[data-copied]+.copy-feedback,.copy-prompt-button[data-copied]+.copy-feedback{display:block;span{padding:.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text--2);font-weight:var(--calcite-font-weight-medium)}}.copy-prompt-button[data-copied]~.copy-tooltip,.response-secondary-action-button[data-copied]~.copy-tooltip{display:none}code{white-space:pre;font-size:12px;margin:0;overflow-x:auto;font-family:Fira Mono,Consolas,Menlo,monospace;display:block;max-height:12rem;position:relative;padding:.5rem}.code-collapse{margin-inline-start:auto}.response-secondary-action-button{margin-left:.5rem}.add-to-editor-button{--calcite-internal-button-border-color: unset}}.collapsible-code{padding:.5rem}.collapsible-code summary{cursor:pointer;font-weight:500;color:var(--calcite-color-brand);outline:none;padding:.25rem 0}.collapsible-code[open] summary{color:var(--calcite-color-text-2)}.collapsible-error{padding:.5rem}.collapsible-error summary{cursor:pointer;font-weight:500;color:var(--calcite-color-status-danger);outline:none;padding:.25rem 0}.collapsible-error[open] summary{color:var(--calcite-color-text-2)}.response-error-container{padding:.5rem;background:color-mix(in srgb,var(--calcite-color-status-warning) 10%,transparent);border-radius:var(--calcite-corner-radius-round);margin:1rem 0;font-size:var(--calcite-font-size--2);--calcite-input-message-icon-color: var(--calcite-color-status-warning)}.response-error-chip{--calcite-internal-chip-background-color: var(--calcite-color-status-warning);--calcite-chip-icon-color: var(--calcite-color-foreground-1);--calcite-chip-border-color: var(--calcite-color-transparent)}.feedback-actions{gap:unset}}:host([closed]){display:none}`;
|
|
22
22
|
class y extends Error {
|
|
23
23
|
constructor({
|
|
@@ -39,22 +39,93 @@ type WithCustomPanels = {
|
|
|
39
39
|
* [Read more...](https://developers.arcgis.com/javascript/latest/references/coding-components/arcgis-arcade-editor/)
|
|
40
40
|
*/
|
|
41
41
|
export declare class ArcgisArcadeEditor<T extends WithCustomPanels = object> extends LitElement {
|
|
42
|
+
/**
|
|
43
|
+
* Options to update on the editor.
|
|
44
|
+
* For example:
|
|
45
|
+
* ```json
|
|
46
|
+
* {
|
|
47
|
+
* "fontSize": 18
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* To get the full list of available options, see the Monaco Editor options [documentation](https://microsoft.github.io/monaco-editor/typedoc/variables/editor.EditorOptions.html) for more details.
|
|
52
|
+
*/
|
|
42
53
|
editorOptions?: Editor.IEditorOptions & Editor.IGlobalEditorOptions;
|
|
54
|
+
/**
|
|
55
|
+
* If true, it will hide the documentation action in the side panel
|
|
56
|
+
*
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
43
59
|
hideDocumentationActions: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* If true, it will hide the side actions bar. The editor will be in a minimalistic UX.
|
|
62
|
+
*
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
44
65
|
hideSideBar: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The name of the opened side panel. 'none' means 'no panel opened'.
|
|
68
|
+
*
|
|
69
|
+
* @default "none"
|
|
70
|
+
*/
|
|
45
71
|
openedSidePanel: T extends Required<WithCustomPanels> ? SidePanelName : string;
|
|
72
|
+
/**
|
|
73
|
+
* The profile contains metadata used by the editor for editing context and help.
|
|
74
|
+
* Example:
|
|
75
|
+
* ```
|
|
76
|
+
* {
|
|
77
|
+
* bundles: ["core", "dataAccess", "geometry", "portal-access"],
|
|
78
|
+
* variables: [
|
|
79
|
+
* {
|
|
80
|
+
* name: "$feature",
|
|
81
|
+
* description: "The feature passed to the script during execution.",
|
|
82
|
+
* definition: aFeatureLayerInstance
|
|
83
|
+
* }
|
|
84
|
+
* ]
|
|
85
|
+
* }
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
46
88
|
profile?: IEditorProfileDefinition | IPredefinedProfile;
|
|
89
|
+
/**
|
|
90
|
+
* The arcade script. Use this property to define or update the script.
|
|
91
|
+
*
|
|
92
|
+
* @default ""
|
|
93
|
+
*/
|
|
47
94
|
script: string;
|
|
95
|
+
/**
|
|
96
|
+
* If true, the side action bar will be expanded
|
|
97
|
+
*
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
48
100
|
sideActionBarExpanded: boolean;
|
|
101
|
+
/** Collection of snippets */
|
|
49
102
|
snippets?: ApiSnippet[];
|
|
103
|
+
/** Collection of suggestions */
|
|
50
104
|
suggestions?: IEditorCodeSuggestion[] | IEditorCodeSuggestionGroup[];
|
|
105
|
+
/** Test data used to execute the script in the editor. If undefined the execute script UX will be hidden. */
|
|
51
106
|
testData?: IEditorTestContext;
|
|
107
|
+
/**
|
|
108
|
+
* Custom panels to be displayed in the side panel.
|
|
109
|
+
* Will be placed below the default panels but above the help panel.
|
|
110
|
+
*
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
52
113
|
customPanels?: ICustomPanel[];
|
|
114
|
+
/**
|
|
115
|
+
* enables and configures the arcade assistant
|
|
116
|
+
*
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
53
119
|
arcadeAssistant?: ArcadeAssistantConfig;
|
|
120
|
+
/** @deprecated **Deprecated** since 4.30. Use `script` property instead. */
|
|
54
121
|
getScript(): Promise<string | undefined>;
|
|
122
|
+
/** Returns the Arcade result for the script for the provided test data. */
|
|
55
123
|
getTestResult(): Promise<ArcadeResult>;
|
|
124
|
+
/** Set the focus on the element. */
|
|
56
125
|
setFocus(): Promise<void>;
|
|
126
|
+
/** Emitted when the diagnostics collection has changed. */
|
|
57
127
|
readonly arcgisDiagnosticsChange: TargetedEvent<this, Diagnostic[]>;
|
|
128
|
+
/** Emitted when the script string has changed. */
|
|
58
129
|
readonly arcgisScriptChange: TargetedEvent<this, string>;
|
|
59
130
|
}
|
|
60
131
|
export {};
|
|
@@ -17,7 +17,7 @@ import { s as F } from "../../chunks/editor.js";
|
|
|
17
17
|
import U from "@arcgis/core/identity/IdentityManager.js";
|
|
18
18
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
19
19
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
20
|
-
v4.34.0-next.
|
|
20
|
+
v4.34.0-next.134 */
|
|
21
21
|
const j = E`@layer{arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border)!important;box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.main-action-bar{border-bottom:var(--arcgis-coding-components-border)!important;flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border)!important;box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}.hidden{display:none}}}`, z = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", N = (i) => {
|
|
22
22
|
const { aiAssistantsEnabled: e } = i;
|
|
23
23
|
return e === void 0 ? (console.warn("areAiAssistantsEnabled is not defined in the organizations settings."), !1) : e;
|