@salesforcedevs/dx-components 1.3.71 → 1.3.73-alpha.0
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 +6 -3
- package/package.json +3 -3
- package/src/assets/icons/salesforcebrand-sprite/svg/symbols.svg +9 -0
- 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/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 +58 -119
- 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/header/header.html +4 -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/headerBase/headerBase.ts +2 -0
- 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 +74 -0
- package/LICENSE +0 -12
- package/src/modules/dxHelpers/code/code.css +0 -296
- package/src/modules/dxUtils/prismjs/prismjs.html +0 -3
package/lwc.config.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
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": [
|
|
7
11
|
"dx/banner",
|
|
@@ -89,7 +93,6 @@
|
|
|
89
93
|
"dxHelpers/animations",
|
|
90
94
|
"dxHelpers/button",
|
|
91
95
|
"dxHelpers/card",
|
|
92
|
-
"dxHelpers/code",
|
|
93
96
|
"dxHelpers/commonHeader",
|
|
94
97
|
"dxHelpers/reset",
|
|
95
98
|
"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.73-alpha.0",
|
|
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
|
},
|
|
@@ -39,6 +40,5 @@
|
|
|
39
40
|
"@types/vimeo__player": "^2.16.2",
|
|
40
41
|
"eventsourcemock": "^2.0.0",
|
|
41
42
|
"luxon": "^3.1.0"
|
|
42
|
-
}
|
|
43
|
-
"gitHead": "2189b873b414cccf79905cf0b1401db76abbd9d0"
|
|
43
|
+
}
|
|
44
44
|
}
|
|
@@ -763,4 +763,13 @@
|
|
|
763
763
|
d="M24.429 29.464h.098a1.786 1.786 0 1 0 0-3.571h-3.67a1.786 1.786 0 1 0-3.571 0h-3.572a1.786 1.786 0 1 0 0 3.571H24.43z"
|
|
764
764
|
fill="#fff" />
|
|
765
765
|
</symbol>
|
|
766
|
+
<symbol id="genie" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
767
|
+
<path
|
|
768
|
+
fill="#200d38"
|
|
769
|
+
d="M59.98,12.51c-.14-1.69-.93-4.19-3.89-6.54-2.55-2.03-6.57-2.19-8.65-1.81-.51,.09-2.77,.71-4.5,2-3.33,2.47-4.87,5.73-5.94,8.58-.97,2.58-1.6,7.22-2,10.5-.98-.16-1.98-.25-3-.25s-2,.09-2.97,.24c-.71-3.35-3.11-12.27-9.18-17.91-2.53-2.21-5.08-3.33-7.57-3.33-4.03,0-6.79,2.98-7.74,5.94-2.08,6.46,2.36,11.42,6.17,12.88,3.42,1.34,3.92,1.83,4.61,2.52,.19,.19,.38,.38,.61,.59,1.07,.98,2.05,2.61,2.83,4.22-4.76,4.11-7.75,10.05-7.75,15.5,0,8.99,7.85,14.36,21,14.36s21-5.37,21-14.36c0-5.51-3.06-11.53-7.91-15.64l.45-.95c1.73-3.05,3.71-6.38,5.19-8.74,.89,.12,1.67,.13,2.41,.04,2.29-.3,3.96-1.06,5.09-2.32,1.27-1.42,1.92-3.48,1.74-5.51Zm-4.73,2.84c-.46,.52-1.32,.85-2.62,1.02-.43,.06-.91,.04-1.53-.06-.23-.04-.48-.09-.75-.17-.85-.25-1.76,.09-2.24,.83-1.59,2.45-3.98,6.43-6.09,10.16-.02,.04-.05,.08-.07,.13l-.19,.4c-.92-.53-1.87-.98-2.87-1.37,.02-.14,.04-.33,.07-.56,.21-1.77,.86-7.16,1.77-9.58,1.25-3.32,2.58-5.29,4.59-6.78,1.02-.76,2.54-1.21,2.84-1.27,1.6-.3,4.22,.04,5.43,1.01,1.47,1.17,2.28,2.43,2.39,3.75,.1,1.21-.42,2.14-.74,2.5Zm-23.25,40.64c-3.99,0-17-.75-17-10.36,0-7.54,7.58-16.65,17-16.65s17,9.11,17,16.65c0,9.61-13.01,10.36-17,10.36ZM18.6,22.97c-.18-.17-.33-.32-.48-.46-1.11-1.1-2.06-1.88-5.99-3.42-1.85-.71-5.2-3.57-3.8-7.92,.47-1.46,1.78-3.16,3.94-3.16,1.48,0,3.19,.81,4.9,2.3,5.3,4.92,7.42,13.26,7.99,15.98-1.08,.41-2.12,.91-3.11,1.5-.9-1.74-2.05-3.55-3.44-4.81Z"
|
|
770
|
+
/>
|
|
771
|
+
<ellipse fill="#200d38" cx="23" cy="44" rx="2" ry="3"/>
|
|
772
|
+
<ellipse fill="#200d38" cx="41" cy="44" rx="2" ry="3"/>
|
|
773
|
+
<path fill="#200d38" d="M32,46c-1.38,0-2.5,.9-2.5,2,0,1.1,1.12,2,2.5,2s2.5-.9,2.5-2c0-1.1-1.12-2-2.5-2Z"/>
|
|
774
|
+
</symbol>
|
|
766
775
|
</svg>
|
|
@@ -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
|
+
}
|