@salesforcedevs/dx-components 1.3.34 → 1.3.35-toc

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "1.3.34",
3
+ "version": "1.3.35-toc",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -37,6 +37,5 @@
37
37
  "@types/vimeo__player": "^2.16.2",
38
38
  "eventsourcemock": "^2.0.0",
39
39
  "luxon": "^3.1.0"
40
- },
41
- "gitHead": "22c3895712dcf631814b72cfa61940917c0e9a61"
40
+ }
42
41
  }
@@ -48,13 +48,8 @@ export default class CodeBlock extends LightningElement {
48
48
  { label: "Kotlin", id: "kotlin" },
49
49
  { label: "Python", id: "python" },
50
50
  { label: "Bash", id: "bash" },
51
- { label: "Shell", id: "shell" },
52
- { label: "Shell", id: "sh" },
53
51
  { label: "SQL", id: "sql" },
54
- { label: "YAML", id: "yaml" },
55
- { label: "Markdown", id: "markdown" },
56
- { label: "Markdown", id: "md" },
57
- { label: "JSX", id: "jsx" }
52
+ { label: "YAML", id: "yaml" }
58
53
  ];
59
54
 
60
55
  connectedCallback() {
@@ -54,14 +54,6 @@
54
54
  color: var(--dx-g-purple-vibrant-70);
55
55
  }
56
56
 
57
- .dx-theme-dark .token.atrule {
58
- color: var(--dx-g-purple-vibrant-70);
59
- }
60
-
61
- .dx-theme-dark .token.builtin {
62
- color: var(--dx-g-purple-vibrant-70);
63
- }
64
-
65
57
  .dx-theme-dark .token.entity {
66
58
  color: #fff;
67
59
  background: var(--dx-g-blue-vibrant-10);
@@ -76,6 +68,7 @@
76
68
  .dx-theme-dark .token.deleted,
77
69
  .dx-theme-dark .token.constant,
78
70
  .dx-theme-dark .token.number,
71
+ .dx-theme-dark .token.builtin,
79
72
  .dx-theme-dark .token.important .dx-theme-dark .token.boolean,
80
73
  .dx-theme-dark .token.symbol,
81
74
  .dx-theme-dark .token.inserted,
@@ -30,14 +30,6 @@
30
30
  color: var(--dx-g-teal-vibrant-40);
31
31
  }
32
32
 
33
- .dx-theme-light .token.atrule {
34
- color: var(--dx-g-pink-vibrant-40);
35
- }
36
-
37
- .dx-theme-light .token.builtin {
38
- color: var(--dx-g-pink-vibrant-40);
39
- }
40
-
41
33
  .dx-theme-light .token.tag {
42
34
  color: rgb(75, 36, 219);
43
35
  }
@@ -63,7 +55,9 @@
63
55
  .dx-theme-light .token.deleted,
64
56
  .dx-theme-light .token.string,
65
57
  .dx-theme-light .token.char,
58
+ .dx-theme-light .token.builtin,
66
59
  .dx-theme-light .token.inserted,
60
+ .dx-theme-light .token.atrule,
67
61
  .dx-theme-light .token.regex,
68
62
  .dx-theme-light .token.important {
69
63
  color: var(--dx-g-gray-10);
@@ -97,10 +97,18 @@ export default class TreeItem extends LightningElement {
97
97
  this.sendGtm(event);
98
98
  }
99
99
 
100
- private onLinkClick(event: Event): void {
101
- if (!(this._treeNode.link && this._treeNode.link.href)) {
100
+ private preventDefaultLinkBehavior(event: Event) {
101
+ // prevent page refresh if href isn't present or link is already active
102
+ if (
103
+ !this._treeNode.link?.href ||
104
+ this._treeNode.link?.href === window.location.pathname
105
+ ) {
102
106
  event.preventDefault();
103
107
  }
108
+ }
109
+
110
+ private onLinkClick(event: Event): void {
111
+ this.preventDefaultLinkBehavior(event);
104
112
 
105
113
  if (this.isParent) {
106
114
  const isSelectAction = true;
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable */
2
- /* prettier-ignore */
3
2
  var commonjsGlobal =
4
3
  typeof globalThis !== "undefined"
5
4
  ? globalThis
@@ -33,10 +32,11 @@ function commonjsRequire() {
33
32
  "Dynamic requires are not currently supported by @rollup/plugin-commonjs"
34
33
  );
35
34
  }
35
+ /* eslint-disable */
36
36
  //Start autogenerated code
37
37
  var prism = createCommonjsModule(function (module) {
38
- /* PrismJS 1.29.0
39
- https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+apex+aspnet+bash+basic+c+csharp+cpp+css-extras+java+javadoc+javadoclike+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+kotlin+markdown+markup-templating+php+phpdoc+php-extras+plsql+python+jsx+regex+sql+swift+typescript+typoscript+uri+vbnet+yaml&plugins=line-numbers+unescaped-markup+match-braces */
38
+ /* PrismJS 1.28.0
39
+ https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+apex+aspnet+bash+basic+c+csharp+cpp+css-extras+java+javadoc+javadoclike+jsdoc+js-extras+json+json5+jsonp+jsstacktrace+kotlin+markdown+markup-templating+php+phpdoc+php-extras+plsql+python+regex+sql+swift+typescript+typoscript+uri+vbnet+yaml&plugins=line-numbers+unescaped-markup+match-braces */
40
40
  var _self =
41
41
  "undefined" != typeof window
42
42
  ? window
@@ -1332,14 +1332,14 @@ https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javasc
1332
1332
  !(function (e) {
1333
1333
  var t =
1334
1334
  "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",
1335
- a = {
1335
+ n = {
1336
1336
  pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
1337
1337
  lookbehind: !0,
1338
1338
  alias: "punctuation",
1339
1339
  inside: null
1340
1340
  },
1341
- n = {
1342
- bash: a,
1341
+ a = {
1342
+ bash: n,
1343
1343
  environment: { pattern: RegExp("\\$" + t), alias: "constant" },
1344
1344
  variable: [
1345
1345
  {
@@ -1419,31 +1419,31 @@ https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javasc
1419
1419
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
1420
1420
  lookbehind: !0,
1421
1421
  greedy: !0,
1422
- inside: n
1422
+ inside: a
1423
1423
  },
1424
1424
  {
1425
1425
  pattern:
1426
1426
  /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
1427
1427
  lookbehind: !0,
1428
1428
  greedy: !0,
1429
- inside: { bash: a }
1429
+ inside: { bash: n }
1430
1430
  },
1431
1431
  {
1432
1432
  pattern:
1433
1433
  /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
1434
1434
  lookbehind: !0,
1435
1435
  greedy: !0,
1436
- inside: n
1436
+ inside: a
1437
1437
  },
1438
1438
  { pattern: /(^|[^$\\])'[^']*'/, lookbehind: !0, greedy: !0 },
1439
1439
  {
1440
1440
  pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
1441
1441
  greedy: !0,
1442
- inside: { entity: n.entity }
1442
+ inside: { entity: a.entity }
1443
1443
  }
1444
1444
  ],
1445
1445
  environment: { pattern: RegExp("\\$?" + t), alias: "constant" },
1446
- variable: n.variable,
1446
+ variable: a.variable,
1447
1447
  function: {
1448
1448
  pattern:
1449
1449
  /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
@@ -1478,7 +1478,7 @@ https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javasc
1478
1478
  lookbehind: !0
1479
1479
  }
1480
1480
  }),
1481
- (a.inside = e.languages.bash);
1481
+ (n.inside = e.languages.bash);
1482
1482
  for (
1483
1483
  var s = [
1484
1484
  "comment",
@@ -1497,14 +1497,13 @@ https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javasc
1497
1497
  "punctuation",
1498
1498
  "number"
1499
1499
  ],
1500
- o = n.variable[1].inside,
1500
+ o = a.variable[1].inside,
1501
1501
  i = 0;
1502
1502
  i < s.length;
1503
1503
  i++
1504
1504
  )
1505
1505
  o[s[i]] = e.languages.bash[s[i]];
1506
- (e.languages.sh = e.languages.bash),
1507
- (e.languages.shell = e.languages.bash);
1506
+ e.languages.shell = e.languages.bash;
1508
1507
  })(Prism);
1509
1508
  Prism.languages.basic = {
1510
1509
  comment: { pattern: /(?:!|REM\b).+/i, inside: { keyword: /^REM/i } },
@@ -3206,123 +3205,6 @@ https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javasc
3206
3205
  "string-interpolation"
3207
3206
  ].inside.interpolation.inside.rest = Prism.languages.python),
3208
3207
  (Prism.languages.py = Prism.languages.python);
3209
- !(function (t) {
3210
- var n = t.util.clone(t.languages.javascript),
3211
- e = "(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})";
3212
- function a(t, n) {
3213
- return (
3214
- (t = t
3215
- .replace(/<S>/g, function () {
3216
- return "(?:\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))\\*/)";
3217
- })
3218
- .replace(/<BRACES>/g, function () {
3219
- return "(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})";
3220
- })
3221
- .replace(/<SPREAD>/g, function () {
3222
- return e;
3223
- })),
3224
- RegExp(t, n)
3225
- );
3226
- }
3227
- (e = a(e).source),
3228
- (t.languages.jsx = t.languages.extend("markup", n)),
3229
- (t.languages.jsx.tag.pattern = a(
3230
- "</?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:\"(?:\\\\[^]|[^\\\\\"])*\"|'(?:\\\\[^]|[^\\\\'])*'|[^\\s{'\"/>=]+|<BRACES>))?|<SPREAD>))*<S>*/?)?>"
3231
- )),
3232
- (t.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/),
3233
- (t.languages.jsx.tag.inside["attr-value"].pattern =
3234
- /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/),
3235
- (t.languages.jsx.tag.inside.tag.inside["class-name"] =
3236
- /^[A-Z]\w*(?:\.[A-Z]\w*)*$/),
3237
- (t.languages.jsx.tag.inside.comment = n.comment),
3238
- t.languages.insertBefore(
3239
- "inside",
3240
- "attr-name",
3241
- { spread: { pattern: a("<SPREAD>"), inside: t.languages.jsx } },
3242
- t.languages.jsx.tag
3243
- ),
3244
- t.languages.insertBefore(
3245
- "inside",
3246
- "special-attr",
3247
- {
3248
- script: {
3249
- pattern: a("=<BRACES>"),
3250
- alias: "language-javascript",
3251
- inside: {
3252
- "script-punctuation": {
3253
- pattern: /^=(?=\{)/,
3254
- alias: "punctuation"
3255
- },
3256
- rest: t.languages.jsx
3257
- }
3258
- }
3259
- },
3260
- t.languages.jsx.tag
3261
- );
3262
- var s = function (t) {
3263
- return t
3264
- ? "string" == typeof t
3265
- ? t
3266
- : "string" == typeof t.content
3267
- ? t.content
3268
- : t.content.map(s).join("")
3269
- : "";
3270
- },
3271
- g = function (n) {
3272
- for (var e = [], a = 0; a < n.length; a++) {
3273
- var o = n[a],
3274
- i = !1;
3275
- if (
3276
- ("string" != typeof o &&
3277
- ("tag" === o.type &&
3278
- o.content[0] &&
3279
- "tag" === o.content[0].type
3280
- ? "</" === o.content[0].content[0].content
3281
- ? e.length > 0 &&
3282
- e[e.length - 1].tagName ===
3283
- s(o.content[0].content[1]) &&
3284
- e.pop()
3285
- : "/>" ===
3286
- o.content[o.content.length - 1]
3287
- .content ||
3288
- e.push({
3289
- tagName: s(o.content[0].content[1]),
3290
- openedBraces: 0
3291
- })
3292
- : e.length > 0 &&
3293
- "punctuation" === o.type &&
3294
- "{" === o.content
3295
- ? e[e.length - 1].openedBraces++
3296
- : e.length > 0 &&
3297
- e[e.length - 1].openedBraces > 0 &&
3298
- "punctuation" === o.type &&
3299
- "}" === o.content
3300
- ? e[e.length - 1].openedBraces--
3301
- : (i = !0)),
3302
- (i || "string" == typeof o) &&
3303
- e.length > 0 &&
3304
- 0 === e[e.length - 1].openedBraces)
3305
- ) {
3306
- var r = s(o);
3307
- a < n.length - 1 &&
3308
- ("string" == typeof n[a + 1] ||
3309
- "plain-text" === n[a + 1].type) &&
3310
- ((r += s(n[a + 1])), n.splice(a + 1, 1)),
3311
- a > 0 &&
3312
- ("string" == typeof n[a - 1] ||
3313
- "plain-text" === n[a - 1].type) &&
3314
- ((r = s(n[a - 1]) + r),
3315
- n.splice(a - 1, 1),
3316
- a--),
3317
- (n[a] = new t.Token("plain-text", r, null, r));
3318
- }
3319
- o.content && "string" != typeof o.content && g(o.content);
3320
- }
3321
- };
3322
- t.hooks.add("after-tokenize", function (t) {
3323
- ("jsx" !== t.language && "tsx" !== t.language) || g(t.tokens);
3324
- });
3325
- })(Prism);
3326
3208
  !(function (a) {
3327
3209
  var e = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" },
3328
3210
  n =
package/LICENSE DELETED
@@ -1,12 +0,0 @@
1
- Copyright (c) 2020, Salesforce.com, Inc.
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
-
6
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
-
8
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
-
10
- * Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11
-
12
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.