@salesforcedevs/dx-components 1.3.79 → 1.3.82
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/lwc.config.json +7 -3
- package/package.json +3 -2
- package/src/assets/shiki/languages/amp.tmLanguage.json +205 -0
- package/src/assets/shiki/themes/codey-highnoon.json +650 -0
- package/src/assets/shiki/themes/codey-midnight.json +622 -0
- package/src/modules/dx/audio/audio.css +16 -0
- package/src/modules/dx/audio/audio.html +8 -0
- package/src/modules/dx/audio/audio.ts +5 -0
- package/src/modules/dx/breadcrumbs/breadcrumbs.ts +8 -10
- package/src/modules/dx/cardContent/cardContent.html +4 -1
- package/src/modules/dx/cardDocs/cardDocs.html +4 -1
- package/src/modules/dx/codeBlock/codeBlock.css +23 -7
- package/src/modules/dx/codeBlock/codeBlock.html +0 -19
- package/src/modules/dx/codeBlock/codeBlock.ts +70 -110
- package/src/modules/dx/dropdown/dropdown.ts +2 -3
- package/src/modules/dx/filterMenu/filterMenu.html +7 -2
- package/src/modules/dx/filterMenu/filterMenu.ts +4 -3
- package/src/modules/dx/footer/links.ts +2 -4
- package/src/modules/dx/grid/grid.ts +3 -1
- package/src/modules/dx/popover/popover.ts +3 -3
- package/src/modules/dx/searchResults/searchResults.ts +1 -3
- package/src/modules/dx/select/select.ts +2 -3
- package/src/modules/dx/sidebar/sidebar.ts +7 -5
- package/src/modules/dx/sidebarSearch/sidebarSearch.ts +2 -5
- package/src/modules/dx/tabPanelList/tabPanelList.ts +2 -2
- package/src/modules/dxBaseElements/matchMediaElement/matchMediaElement.ts +2 -4
- package/src/modules/dxUtils/prismjs/prismjs.ts +287 -167
- package/src/modules/dxUtils/shiki/languages.ts +18 -0
- package/src/modules/dxUtils/shiki/shiki.ts +75 -0
- package/src/modules/dxHelpers/code/code.css +0 -296
- package/src/modules/dxUtils/prismjs/prismjs.html +0 -3
package/lwc.config.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"modules": [
|
|
3
|
-
{
|
|
4
|
-
|
|
3
|
+
{
|
|
4
|
+
"dir": "src/modules"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"npm": "@salesforcedevs/dw-components"
|
|
8
|
+
}
|
|
5
9
|
],
|
|
6
10
|
"expose": [
|
|
11
|
+
"dx/audio",
|
|
7
12
|
"dx/banner",
|
|
8
13
|
"dx/brandThemeProvider",
|
|
9
14
|
"dx/breadcrumbs",
|
|
@@ -89,7 +94,6 @@
|
|
|
89
94
|
"dxHelpers/animations",
|
|
90
95
|
"dxHelpers/button",
|
|
91
96
|
"dxHelpers/card",
|
|
92
|
-
"dxHelpers/code",
|
|
93
97
|
"dxHelpers/commonHeader",
|
|
94
98
|
"dxHelpers/reset",
|
|
95
99
|
"dxHelpers/scrollbar",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforcedevs/dx-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.82",
|
|
4
4
|
"description": "DX Lightning web components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"lodash.kebabcase": "^4.1.1",
|
|
25
25
|
"microtip": "0.2.2",
|
|
26
26
|
"salesforce-oauth2": "^0.2.0",
|
|
27
|
+
"shiki": "^0.11.1",
|
|
27
28
|
"throttle-debounce": "^5.0.0",
|
|
28
29
|
"uuid": "^9.0.0"
|
|
29
30
|
},
|
|
@@ -40,5 +41,5 @@
|
|
|
40
41
|
"eventsourcemock": "^2.0.0",
|
|
41
42
|
"luxon": "^3.1.0"
|
|
42
43
|
},
|
|
43
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "4ec94dfcdf554b9a6f7822044ed81fc8d761a990"
|
|
44
45
|
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0",
|
|
3
|
+
"name": "AMPScript",
|
|
4
|
+
"scopeName": "source.amp",
|
|
5
|
+
"keyEquivalent": "@A",
|
|
6
|
+
"foldingStartMarker": "%%\\[\\s*$",
|
|
7
|
+
"foldingStopMarker": "^\\s*\\]%%$",
|
|
8
|
+
"injections": {
|
|
9
|
+
"R:comment.block,comment.block.html,meta.attribute": {
|
|
10
|
+
"patterns": [
|
|
11
|
+
{
|
|
12
|
+
"include": "#ampscript"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"include": "#ampscript-substitutions"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"patterns": [
|
|
21
|
+
{
|
|
22
|
+
"include": "#ampscript"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"include": "#ampscript-substitutions"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"include": "text.html.basic"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"repository": {
|
|
32
|
+
"ampscript": {
|
|
33
|
+
"name": "meta.embedded.amp",
|
|
34
|
+
"begin": "(%%[=\\[])",
|
|
35
|
+
"end": "([\\]=]%%)",
|
|
36
|
+
"beginCaptures": {
|
|
37
|
+
"1": {
|
|
38
|
+
"name": "keyword.other.namespace.amp"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"endCaptures": {
|
|
42
|
+
"1": {
|
|
43
|
+
"name": "keyword.other.namespace.amp"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"patterns": [
|
|
47
|
+
{
|
|
48
|
+
"include": "#ampscript-comments"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"include": "#ampscript-functions"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"include": "#ampscript-numeric"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"include": "#ampscript-contstants"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"include": "#ampscript-language-elements"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"include": "#ampscript-strings"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"ampscript-comments": {
|
|
68
|
+
"patterns": [
|
|
69
|
+
{
|
|
70
|
+
"name": "comment.block.amp",
|
|
71
|
+
"begin": "/\\*",
|
|
72
|
+
"captures": {
|
|
73
|
+
"0": {
|
|
74
|
+
"name": "punctuation.definition.comment.amp"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"end": "\\*/"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"ampscript-functions": {
|
|
82
|
+
"name": "support.function.amp",
|
|
83
|
+
"match": "((?i:addobjectarrayitem|createobject|invokecreate|invokedelete|invokeexecute|invokeperform|invokeretrieve|invokeupdate|raiseerror|setobjectproperty|upsertcontact|attachfile|barcodeurl|beginimpressionregion|buildoptionlist|buildrowsetfromstring|buildrowsetfromxml|contentarea|contentblockbyid|contentareabyname|contentblockbyid|contentblockbykey|contentblockbyname|contentimagebyid|contentimagebykey|createsmsconversation|endimpressionregion|endsmsconversation|getportfolioitem|image|setsmsconversationnextkeyword|transformxml|treatascontent|treatascontentarea|wat|watp|claimrow|claimrowvalue|dataextensionrowcount|deletedata|deletede|executefilter|executefilterorderedrows|field|insertdata|insertde|lookup|lookuporderedrows|lookuprows|lookuprowscs|row|rowcount|updatedata|updatede|upsertdata|upsertde|dateadd|datediff|dateparse|datepart|formatdate|localdatetosystemdate|now|systemdatetolocaldate|base64decode|base64encode|decryptsymmetric|encryptsymmetric|guid|md5|sha1|sha256|sha512|httpget|httppost|httppost2|httprequestheader|ischtmlbrowser|redirectto|urlencode|wraplongurl|add|divide|formatcurrency|formatnumber|mod|multiply|random|subtract|addmscrmlistmember|createmscrmrecord|describemscrmentities|describemscrmentityattributes|retrievemscrmrecords|retrievemscrmrecordsfetchxml|setstatemscrmrecord|updatemscrmrecords|upsertmscrmrecord|createsalesforceobject|longsfid|retrievesalesforcejobsources|retrievesalesforceobjects|updatesinglesalesforceobject|authenticatedemployeeid|authenticatedemployeenotificationaddress|authenticatedemployeeusername|authenticatedenterpriseid|authenticatedmemberid|authenticatedmembername|cloudpagesurl|isnulldefault|livecontentmicrositeurl|micrositeurl|queryparameter|redirect|requestparameter|getpublishedsocialcontent|getsocialpublishurl|getsocialpublishurlbyname|char|concat|format|indexof|length|lowercase|propercase|regexmatch|replace|replacelist|stringtodate|stringtohex|substring|trim|uppercase|attributevalue|domain|empty|iif|isemailaddress|isnull|isphonenumber|output|outputline|v)\\b)(?=\\()"
|
|
84
|
+
},
|
|
85
|
+
"ampscript-numeric": {
|
|
86
|
+
"name": "constant.numeric.amp",
|
|
87
|
+
"match": "\\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))\\b"
|
|
88
|
+
},
|
|
89
|
+
"ampscript-contstants": {
|
|
90
|
+
"patterns": [
|
|
91
|
+
{
|
|
92
|
+
"name": "constant.language.boolean.true.amp",
|
|
93
|
+
"match": "((?i:true)\\b)"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "constant.language.boolean.false.amp",
|
|
97
|
+
"match": "((?i:false)\\b)"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "constant.language.boolean.null.amp",
|
|
101
|
+
"match": "((?i:null)\\b)"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"ampscript-language-elements": {
|
|
106
|
+
"patterns": [
|
|
107
|
+
{
|
|
108
|
+
"name": "keyword.control.amp",
|
|
109
|
+
"match": "((?i:do|else|elseif|for|if|endif|next|then|to|downto)\\b)"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "storage.type.amp",
|
|
113
|
+
"match": "((?i:var|set)\\b)"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "variable.parameter.amp",
|
|
117
|
+
"match": "\\@[a-zA-Z0-9_]+"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "variable.parameter.amp",
|
|
121
|
+
"match": "\\[[a-zA-Z0-9_]+\\]"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "variable.language.amp",
|
|
125
|
+
"match": "\\b((?i:xtmonth|xtmonthnumeric|xtday|xtdayofweek|xtyear|xtshortdate|xtlongdate|linkname|linkname|emailname_|_messagecontext|_messagetypepreference|_replycontent|_istestsend|jobid|_preheader|double_opt_in_url|emailaddr|fullname_|fullname|firstname_|firstname|lastname_|lastname|comment_|comment|subscriberid|_subscriberkey|listid|list_|listsubid|_messagetypepreference|mobile_number|short_code|_listname|_emailid|_jobsubscriberbatchid|_datasourcename|_impressionregionid|_impressionregionname|replyname|replyemailaddress|memberid|member_busname|member_addr|member_city|member_state|member_postalcode|member_country|view_email_url|ftaf_url|subscription_center_url|profile_center_url|unsub_center_url|mobile_number|short_code|line_address_id|line_job_id|line_subscriber_id|additionalinfo_|__additionalemailattribute1|__additionalemailattribute2|__additionalemailattribute3|__additionalemailattribute4|__additionalemailattribute5))\\b"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "support.class.amp",
|
|
129
|
+
"match": "((?i:and|or|not)\\b)"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "variable.operator.amp",
|
|
133
|
+
"match": "==|!=|>|<|>=|<=|="
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"ampscript-strings": {
|
|
138
|
+
"patterns": [
|
|
139
|
+
{
|
|
140
|
+
"name": "string.quoted.double.amp",
|
|
141
|
+
"begin": "\"",
|
|
142
|
+
"end": "\"",
|
|
143
|
+
"beginCaptures": {
|
|
144
|
+
"0": {
|
|
145
|
+
"name": "punctuation.definition.string.begin.amp"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"endCaptures": {
|
|
149
|
+
"0": {
|
|
150
|
+
"name": "punctuation.definition.string.end.amp"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"patterns": [
|
|
154
|
+
{
|
|
155
|
+
"name": "constant.character.escape.amp",
|
|
156
|
+
"match": "\"\""
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "string.quoted.single.amp",
|
|
162
|
+
"begin": "'",
|
|
163
|
+
"end": "'",
|
|
164
|
+
"beginCaptures": {
|
|
165
|
+
"0": {
|
|
166
|
+
"name": "punctuation.definition.string.begin.amp"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"endCaptures": {
|
|
170
|
+
"0": {
|
|
171
|
+
"name": "punctuation.definition.string.end.amp"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"patterns": [
|
|
175
|
+
{
|
|
176
|
+
"name": "constant.character.escape.amp",
|
|
177
|
+
"match": "''"
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"ampscript-substitutions": {
|
|
184
|
+
"name": "meta.embedded.amp",
|
|
185
|
+
"begin": "(%%)",
|
|
186
|
+
"end": "(%%)",
|
|
187
|
+
"beginCaptures": {
|
|
188
|
+
"1": {
|
|
189
|
+
"name": "keyword.other.namespace.amp"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"endCaptures": {
|
|
193
|
+
"1": {
|
|
194
|
+
"name": "keyword.other.namespace.amp"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"patterns": [
|
|
198
|
+
{
|
|
199
|
+
"name": "variable.parameter.amp",
|
|
200
|
+
"match": "[a-zA-Z0-9_]+"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|