@bluepic/embed 0.5.1 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/bash-DI5WKoY1.cjs +1 -0
  2. package/dist/bash-SfqkqXwO.js +169 -0
  3. package/dist/bluepic-embed.iife.js +240 -271
  4. package/dist/bluepic-embed.umd.js +240 -271
  5. package/dist/c-Bwju34J8.js +176 -0
  6. package/dist/c-CxjdkDqU.cjs +1 -0
  7. package/dist/client-zip-Dl4jBUKQ.cjs +1 -0
  8. package/dist/client-zip-DscsL7SZ.js +254 -0
  9. package/dist/components/BxDatePickerPopover.vue.d.ts +1 -1
  10. package/dist/components/BxInput.vue.d.ts +1 -1
  11. package/dist/components/BxTag.vue.d.ts +1 -1
  12. package/dist/components/TemplateEditor/BatchEditor.vue.d.ts +14 -10
  13. package/dist/components/TemplateEditor/BxTemplateEditor.vue.d.ts +80 -64
  14. package/dist/components/TemplateEditor/TemplateView.vue.d.ts +20 -16
  15. package/dist/cpp-BNKWamrP.js +225 -0
  16. package/dist/cpp-BlYqzAb6.cjs +1 -0
  17. package/dist/css-C6p-exw3.cjs +1 -0
  18. package/dist/css-yWyfM7J9.js +140 -0
  19. package/dist/decompress-3ZSaG6Ii.cjs +15 -0
  20. package/dist/decompress-C88dmWOf.js +643 -0
  21. package/dist/embed/embed.d.ts +4416 -1454
  22. package/dist/go-DnIuztGs.js +140 -0
  23. package/dist/go-RBRkffhh.cjs +1 -0
  24. package/dist/java-CYbswnVa.js +169 -0
  25. package/dist/java-DiqBJCuC.cjs +1 -0
  26. package/dist/javascript-DaG6fU1i.js +436 -0
  27. package/dist/javascript-hWWC5YVO.cjs +1 -0
  28. package/dist/json-CW2SpMXu.cjs +1 -0
  29. package/dist/json-Cu6rbgWf.js +36 -0
  30. package/dist/main.cjs +118 -146
  31. package/dist/main.mjs +73680 -85828
  32. package/dist/markdown-BaDHGYjR.cjs +1 -0
  33. package/dist/markdown-D3Gs6FWn.js +181 -0
  34. package/dist/markdown-it-BOugFJd0.cjs +13 -0
  35. package/dist/markdown-it-bsR6HXzL.js +2875 -0
  36. package/dist/postal-mime-BnhFNwEJ.cjs +28 -0
  37. package/dist/postal-mime-Bsdi2kUR.js +3210 -0
  38. package/dist/python-D1ZXre9G.js +238 -0
  39. package/dist/python-DawLCmeM.cjs +1 -0
  40. package/dist/rolldown-runtime-CEFd7nDs.js +30 -0
  41. package/dist/rolldown-runtime-CPUxUITh.cjs +1 -0
  42. package/dist/rust-B47KpJg8.cjs +1 -0
  43. package/dist/rust-DV3X-6zd.js +169 -0
  44. package/dist/scss-BwEwJffF.cjs +1 -0
  45. package/dist/scss-DVPIh7kT.js +150 -0
  46. package/dist/sql-BsfEDS1M.cjs +1 -0
  47. package/dist/sql-CmVzGP4w.js +118 -0
  48. package/dist/style.css +2 -1
  49. package/dist/theme.cjs +1 -1
  50. package/dist/theme.mjs +1394 -1273
  51. package/dist/typescript-CjqyVRRm.cjs +1 -0
  52. package/dist/typescript-DbET6Hbh.js +521 -0
  53. package/dist/unzipit.module-CWI6YKpy.js +697 -0
  54. package/dist/unzipit.module-DLgVBmhU.cjs +1 -0
  55. package/dist/util/gallery.d.ts +21 -37
  56. package/dist/xlsx-Bm1OL5B8.js +16261 -0
  57. package/dist/xlsx-C9EeNB50.cjs +38 -0
  58. package/dist/xml-Bh8MwSUt.cjs +1 -0
  59. package/dist/xml-Bxh-tO8n.js +166 -0
  60. package/dist/yaml-CIP4hiwy.cjs +1 -0
  61. package/dist/yaml-DT7UV549.js +144 -0
  62. package/package.json +9 -5
  63. package/dist/bash-BHkfQ7MG.cjs +0 -1
  64. package/dist/bash-CPB87Egg.js +0 -377
  65. package/dist/c-B4BAHWS4.cjs +0 -1
  66. package/dist/c-C0DTNf68.js +0 -336
  67. package/dist/cpp-BfO2fOQK.cjs +0 -1
  68. package/dist/cpp-DxGBPWa5.js +0 -538
  69. package/dist/css-Cx1gP-zj.js +0 -934
  70. package/dist/css-DTF39MN3.cjs +0 -1
  71. package/dist/decompress-BGiydwyp.cjs +0 -15
  72. package/dist/decompress-D5RzmD-2.js +0 -566
  73. package/dist/go-By8nj0Vi.cjs +0 -1
  74. package/dist/go-C8VcBUsu.js +0 -156
  75. package/dist/index-C99_zLhc.js +0 -175
  76. package/dist/index-D8N6IfRw.cjs +0 -1
  77. package/dist/java-BoRJOXvw.js +0 -249
  78. package/dist/java-DFXAwvvK.cjs +0 -1
  79. package/dist/javascript-C2jY0XE6.cjs +0 -1
  80. package/dist/javascript-CgRUYx2b.js +0 -660
  81. package/dist/json-C4rahuoJ.cjs +0 -1
  82. package/dist/json-DYK-YbD3.js +0 -44
  83. package/dist/markdown-BmL9j9cU.cjs +0 -1
  84. package/dist/markdown-D19noYwn.js +0 -215
  85. package/dist/markdown-it-5-ieF6Bh.js +0 -3790
  86. package/dist/markdown-it-CLB5Jta6.cjs +0 -16
  87. package/dist/postal-mime-Df-WB8Vq.js +0 -3337
  88. package/dist/postal-mime-_7WF5UBe.cjs +0 -28
  89. package/dist/python-BBUuE3AY.js +0 -404
  90. package/dist/python-Clt6L10q.cjs +0 -1
  91. package/dist/rust-DY-oA2gr.js +0 -319
  92. package/dist/rust-_vvcEGSJ.cjs +0 -1
  93. package/dist/scss-BWo_aR1L.js +0 -919
  94. package/dist/scss-ex7iHSUb.cjs +0 -1
  95. package/dist/sql-BSlOauVK.cjs +0 -1
  96. package/dist/sql-IeKX8fQ8.js +0 -615
  97. package/dist/typescript-BHqLHF13.js +0 -755
  98. package/dist/typescript-DYRnLHqF.cjs +0 -1
  99. package/dist/unzipit.module-4zGfAuq6.cjs +0 -1
  100. package/dist/unzipit.module-qN5XWVVT.js +0 -649
  101. package/dist/xlsx-BopDBbWb.js +0 -24176
  102. package/dist/xlsx-qn1xoUuv.cjs +0 -105
  103. package/dist/xml-Bse49fPV.js +0 -212
  104. package/dist/xml-CVmug_x4.cjs +0 -1
  105. package/dist/yaml-BslECvWp.js +0 -183
  106. package/dist/yaml-C6zsmLZx.cjs +0 -1
@@ -1,404 +0,0 @@
1
- function u(e) {
2
- const g = e.regex, s = new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*", "u"), b = [
3
- "and",
4
- "as",
5
- "assert",
6
- "async",
7
- "await",
8
- "break",
9
- "case",
10
- "class",
11
- "continue",
12
- "def",
13
- "del",
14
- "elif",
15
- "else",
16
- "except",
17
- "finally",
18
- "for",
19
- "from",
20
- "global",
21
- "if",
22
- "import",
23
- "in",
24
- "is",
25
- "lambda",
26
- "lazy",
27
- "match",
28
- "nonlocal|10",
29
- "not",
30
- "or",
31
- "pass",
32
- "raise",
33
- "return",
34
- "try",
35
- "while",
36
- "with",
37
- "yield"
38
- ], r = {
39
- $pattern: /[A-Za-z]\w+|__\w+__/,
40
- keyword: b,
41
- built_in: [
42
- "__import__",
43
- "abs",
44
- "aiter",
45
- "all",
46
- "anext",
47
- "any",
48
- "ascii",
49
- "bin",
50
- "bool",
51
- "breakpoint",
52
- "bytearray",
53
- "bytes",
54
- "callable",
55
- "chr",
56
- "classmethod",
57
- "compile",
58
- "complex",
59
- "delattr",
60
- "dict",
61
- "dir",
62
- "divmod",
63
- "enumerate",
64
- "eval",
65
- "exec",
66
- "filter",
67
- "float",
68
- "format",
69
- "frozendict",
70
- "frozenset",
71
- "getattr",
72
- "globals",
73
- "hasattr",
74
- "hash",
75
- "help",
76
- "hex",
77
- "id",
78
- "input",
79
- "int",
80
- "isinstance",
81
- "issubclass",
82
- "iter",
83
- "len",
84
- "list",
85
- "locals",
86
- "map",
87
- "max",
88
- "memoryview",
89
- "min",
90
- "next",
91
- "object",
92
- "oct",
93
- "open",
94
- "ord",
95
- "pow",
96
- "print",
97
- "property",
98
- "range",
99
- "repr",
100
- "reversed",
101
- "round",
102
- "sentinel",
103
- "set",
104
- "setattr",
105
- "slice",
106
- "sorted",
107
- "staticmethod",
108
- "str",
109
- "sum",
110
- "super",
111
- "tuple",
112
- "type",
113
- "vars",
114
- "zip"
115
- ],
116
- literal: [
117
- "__debug__",
118
- "Ellipsis",
119
- "False",
120
- "None",
121
- "NotImplemented",
122
- "True"
123
- ],
124
- type: [
125
- "Any",
126
- "Callable",
127
- "Coroutine",
128
- "Dict",
129
- "List",
130
- "Literal",
131
- "Generic",
132
- "Optional",
133
- "Sequence",
134
- "Set",
135
- "Tuple",
136
- "Type",
137
- "Union"
138
- ]
139
- }, n = {
140
- className: "meta",
141
- begin: /^(>>>|\.\.\.) /
142
- }, i = {
143
- className: "subst",
144
- begin: /\{/,
145
- end: /\}/,
146
- keywords: r,
147
- illegal: /#/
148
- }, o = {
149
- begin: /\{\{/,
150
- relevance: 0
151
- }, c = {
152
- className: "string",
153
- contains: [e.BACKSLASH_ESCAPE],
154
- variants: [
155
- {
156
- begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,
157
- end: /'''/,
158
- contains: [
159
- e.BACKSLASH_ESCAPE,
160
- n
161
- ],
162
- relevance: 10
163
- },
164
- {
165
- begin: /([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,
166
- end: /"""/,
167
- contains: [
168
- e.BACKSLASH_ESCAPE,
169
- n
170
- ],
171
- relevance: 10
172
- },
173
- {
174
- begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,
175
- end: /'''/,
176
- contains: [
177
- e.BACKSLASH_ESCAPE,
178
- n,
179
- o,
180
- i
181
- ]
182
- },
183
- {
184
- begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,
185
- end: /"""/,
186
- contains: [
187
- e.BACKSLASH_ESCAPE,
188
- n,
189
- o,
190
- i
191
- ]
192
- },
193
- {
194
- begin: /([uU]|[rR])'/,
195
- end: /'/,
196
- relevance: 10
197
- },
198
- {
199
- begin: /([uU]|[rR])"/,
200
- end: /"/,
201
- relevance: 10
202
- },
203
- {
204
- begin: /([bB]|[bB][rR]|[rR][bB])'/,
205
- end: /'/
206
- },
207
- {
208
- begin: /([bB]|[bB][rR]|[rR][bB])"/,
209
- end: /"/
210
- },
211
- {
212
- begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'/,
213
- end: /'/,
214
- contains: [
215
- e.BACKSLASH_ESCAPE,
216
- o,
217
- i
218
- ]
219
- },
220
- {
221
- begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"/,
222
- end: /"/,
223
- contains: [
224
- e.BACKSLASH_ESCAPE,
225
- o,
226
- i
227
- ]
228
- },
229
- e.APOS_STRING_MODE,
230
- e.QUOTE_STRING_MODE
231
- ]
232
- }, t = "[0-9](_?[0-9])*", d = `(\\b(${t}))?\\.(${t})|\\b(${t})\\.`, a = `\\b|${b.join("|")}`, l = {
233
- className: "number",
234
- relevance: 0,
235
- variants: [
236
- // exponentfloat, pointfloat
237
- // https://docs.python.org/3.9/reference/lexical_analysis.html#floating-point-literals
238
- // optionally imaginary
239
- // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
240
- // Note: no leading \b because floats can start with a decimal point
241
- // and we don't want to mishandle e.g. `fn(.5)`,
242
- // no trailing \b for pointfloat because it can end with a decimal point
243
- // and we don't want to mishandle e.g. `0..hex()`; this should be safe
244
- // because both MUST contain a decimal point and so cannot be confused with
245
- // the interior part of an identifier
246
- {
247
- begin: `(\\b(${t})|(${d}))[eE][+-]?(${t})[jJ]?(?=${a})`
248
- },
249
- {
250
- begin: `(${d})[jJ]?`
251
- },
252
- // decinteger, bininteger, octinteger, hexinteger
253
- // https://docs.python.org/3.9/reference/lexical_analysis.html#integer-literals
254
- // optionally "long" in Python 2
255
- // https://docs.python.org/2.7/reference/lexical_analysis.html#integer-and-long-integer-literals
256
- // decinteger is optionally imaginary
257
- // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
258
- {
259
- begin: `\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${a})`
260
- },
261
- {
262
- begin: `\\b0[bB](_?[01])+[lL]?(?=${a})`
263
- },
264
- {
265
- begin: `\\b0[oO](_?[0-7])+[lL]?(?=${a})`
266
- },
267
- {
268
- begin: `\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${a})`
269
- },
270
- // imagnumber (digitpart-based)
271
- // https://docs.python.org/3.9/reference/lexical_analysis.html#imaginary-literals
272
- {
273
- begin: `\\b(${t})[jJ](?=${a})`
274
- }
275
- ]
276
- }, _ = {
277
- className: "comment",
278
- begin: g.lookahead(/# type:/),
279
- end: /$/,
280
- keywords: r,
281
- contains: [
282
- {
283
- // prevent keywords from coloring `type`
284
- begin: /# type:/
285
- },
286
- // comment within a datatype comment includes no keywords
287
- {
288
- begin: /#/,
289
- end: /\b\B/,
290
- endsWithParent: !0
291
- }
292
- ]
293
- }, p = {
294
- className: "params",
295
- variants: [
296
- // Exclude params in functions without params
297
- {
298
- className: "",
299
- begin: /\(\s*\)/,
300
- skip: !0
301
- },
302
- {
303
- begin: /\(/,
304
- end: /\)/,
305
- excludeBegin: !0,
306
- excludeEnd: !0,
307
- keywords: r,
308
- contains: [
309
- "self",
310
- n,
311
- l,
312
- c,
313
- e.HASH_COMMENT_MODE
314
- ]
315
- }
316
- ]
317
- };
318
- return i.contains = [
319
- c,
320
- l,
321
- n
322
- ], {
323
- name: "Python",
324
- aliases: [
325
- "py",
326
- "gyp",
327
- "ipython"
328
- ],
329
- unicodeRegex: !0,
330
- keywords: r,
331
- illegal: /(<\/|\?)|=>/,
332
- contains: [
333
- n,
334
- l,
335
- {
336
- // very common convention
337
- scope: "variable.language",
338
- match: /\bself\b/
339
- },
340
- {
341
- // eat "if" prior to string so that it won't accidentally be
342
- // labeled as an f-string
343
- beginKeywords: "if",
344
- relevance: 0
345
- },
346
- { match: /\bor\b/, scope: "keyword" },
347
- c,
348
- _,
349
- e.HASH_COMMENT_MODE,
350
- {
351
- match: [
352
- /\bdef/,
353
- /\s+/,
354
- s
355
- ],
356
- scope: {
357
- 1: "keyword",
358
- 3: "title.function"
359
- },
360
- contains: [p]
361
- },
362
- {
363
- variants: [
364
- {
365
- match: [
366
- /\bclass/,
367
- /\s+/,
368
- s,
369
- /\s*/,
370
- /\(\s*/,
371
- s,
372
- /\s*\)/
373
- ]
374
- },
375
- {
376
- match: [
377
- /\bclass/,
378
- /\s+/,
379
- s
380
- ]
381
- }
382
- ],
383
- scope: {
384
- 1: "keyword",
385
- 3: "title.class",
386
- 6: "title.class.inherited"
387
- }
388
- },
389
- {
390
- className: "meta",
391
- begin: /^[\t ]*@/,
392
- end: /(?=#)|$/,
393
- contains: [
394
- l,
395
- p,
396
- c
397
- ]
398
- }
399
- ]
400
- };
401
- }
402
- export {
403
- u as default
404
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(e){const p=e.regex,s=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),b=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],r={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:b,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},n={className:"meta",begin:/^(>>>|\.\.\.) /},i={className:"subst",begin:/\{/,end:/\}/,keywords:r,illegal:/#/},o={begin:/\{\{/,relevance:0},c={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n,o,i]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n,o,i]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,o,i]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,i]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},t="[0-9](_?[0-9])*",d=`(\\b(${t}))?\\.(${t})|\\b(${t})\\.`,a=`\\b|${b.join("|")}`,l={className:"number",relevance:0,variants:[{begin:`(\\b(${t})|(${d}))[eE][+-]?(${t})[jJ]?(?=${a})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${a})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${a})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${a})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${a})`},{begin:`\\b(${t})[jJ](?=${a})`}]},S={className:"comment",begin:p.lookahead(/# type:/),end:/$/,keywords:r,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},g={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:["self",n,l,c,e.HASH_COMMENT_MODE]}]};return i.contains=[c,l,n],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:r,illegal:/(<\/|\?)|=>/,contains:[n,l,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},c,S,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,s],scope:{1:"keyword",3:"title.function"},contains:[g]},{variants:[{match:[/\bclass/,/\s+/,s,/\s*/,/\(\s*/,s,/\s*\)/]},{match:[/\bclass/,/\s+/,s]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[l,g,c]}]}}exports.default=_;