@bluepic/embed 0.4.0-next.156 → 0.4.0-next.158

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 (52) hide show
  1. package/dist/bluepic-embed.iife.js +177 -181
  2. package/dist/bluepic-embed.umd.js +177 -181
  3. package/dist/{c-C0DTNf68.js → c-Bz1-FJiA.js} +63 -122
  4. package/dist/c-C_Sx7N-F.cjs +1 -0
  5. package/dist/components/BxDatePickerPopover.vue.d.ts +1 -1
  6. package/dist/components/BxInput.vue.d.ts +1 -1
  7. package/dist/components/BxTag.vue.d.ts +1 -1
  8. package/dist/components/TemplateEditor/BxTemplateEditor.vue.d.ts +80 -64
  9. package/dist/components/TemplateEditor/TemplateView.vue.d.ts +20 -16
  10. package/dist/{cpp-DxGBPWa5.js → cpp-Cx0NomaW.js} +48 -65
  11. package/dist/cpp-DaPzgJ_t.cjs +1 -0
  12. package/dist/{css-Cx1gP-zj.js → css-BCTOmdxR.js} +6 -17
  13. package/dist/css-UgpohNaw.cjs +1 -0
  14. package/dist/embed/embed.d.ts +4635 -1731
  15. package/dist/{go-By8nj0Vi.cjs → go-BpetKc7b.cjs} +1 -1
  16. package/dist/{go-C8VcBUsu.js → go-CkZ9_bn0.js} +2 -7
  17. package/dist/java-BIk0G-rH.cjs +1 -0
  18. package/dist/{java-BoRJOXvw.js → java-BicX26Pg.js} +39 -48
  19. package/dist/javascript-C_6NC1K7.cjs +1 -0
  20. package/dist/{javascript-CgRUYx2b.js → javascript-DII1YQGr.js} +2 -4
  21. package/dist/{json-DYK-YbD3.js → json-C_6Prymp.js} +9 -15
  22. package/dist/json-DEcHyC5F.cjs +1 -0
  23. package/dist/main.cjs +108 -112
  24. package/dist/main.mjs +22410 -24704
  25. package/dist/markdown-BbPYOuo6.cjs +1 -0
  26. package/dist/{markdown-D19noYwn.js → markdown-ga2-2-T7.js} +10 -9
  27. package/dist/python-B6_9AjJr.cjs +1 -0
  28. package/dist/{python-BBUuE3AY.js → python-CymlFLB0.js} +15 -20
  29. package/dist/{rust-DY-oA2gr.js → rust-BocnJ3Ns.js} +26 -40
  30. package/dist/rust-DKnYCg2f.cjs +1 -0
  31. package/dist/{scss-BWo_aR1L.js → scss-CknrYxoA.js} +25 -36
  32. package/dist/scss-DpqvoUEp.cjs +1 -0
  33. package/dist/typescript-Cjpf3bLL.cjs +1 -0
  34. package/dist/{typescript-BHqLHF13.js → typescript-SNUkGeOU.js} +2 -4
  35. package/dist/unzipit.module-B5yfSJfb.js +556 -0
  36. package/dist/unzipit.module-TGsYEkT7.cjs +1 -0
  37. package/dist/{xml-Bse49fPV.js → xml-B7THKYqr.js} +16 -9
  38. package/dist/{xml-CVmug_x4.cjs → xml-CII3FKiI.cjs} +1 -1
  39. package/package.json +2 -2
  40. package/dist/c-B4BAHWS4.cjs +0 -1
  41. package/dist/cpp-BfO2fOQK.cjs +0 -1
  42. package/dist/css-DTF39MN3.cjs +0 -1
  43. package/dist/java-DFXAwvvK.cjs +0 -1
  44. package/dist/javascript-C2jY0XE6.cjs +0 -1
  45. package/dist/json-C4rahuoJ.cjs +0 -1
  46. package/dist/markdown-BmL9j9cU.cjs +0 -1
  47. package/dist/python-Clt6L10q.cjs +0 -1
  48. package/dist/rust-_vvcEGSJ.cjs +0 -1
  49. package/dist/scss-ex7iHSUb.cjs +0 -1
  50. package/dist/typescript-DYRnLHqF.cjs +0 -1
  51. package/dist/unzipit.module-4zGfAuq6.cjs +0 -1
  52. package/dist/unzipit.module-qN5XWVVT.js +0 -649
@@ -1,72 +1,30 @@
1
- function S(t) {
2
- const n = t.regex, a = t.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), l = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", E = "(" + l + "|" + n.optional(r) + "[a-zA-Z_]\\w*" + n.optional("<[^<>]+>") + ")", f = n.concat(/\batomic_/, n.either(
3
- "bool",
4
- "char",
5
- "schar",
6
- "uchar",
7
- "short",
8
- "ushort",
9
- "int",
10
- "uint",
11
- "long",
12
- "ulong",
13
- "llong",
14
- "ullong",
15
- "char16_t",
16
- "char32_t",
17
- "wchar_t",
18
- "int_least8_t",
19
- "uint_least8_t",
20
- "int_least16_t",
21
- "uint_least16_t",
22
- "int_least32_t",
23
- "uint_least32_t",
24
- "int_least64_t",
25
- "uint_least64_t",
26
- "int_fast8_t",
27
- "uint_fast8_t",
28
- "int_fast16_t",
29
- "uint_fast16_t",
30
- "int_fast32_t",
31
- "uint_fast32_t",
32
- "int_fast64_t",
33
- "uint_fast64_t",
34
- "intptr_t",
35
- "uintptr_t",
36
- "size_t",
37
- "ptrdiff_t",
38
- "intmax_t",
39
- "uintmax_t"
40
- ), /\b/), i = {
1
+ function C(e) {
2
+ const s = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), _ = "decltype\\(auto\\)", o = "[a-zA-Z_]\\w*::", u = "(" + _ + "|" + s.optional(o) + "[a-zA-Z_]\\w*" + s.optional("<[^<>]+>") + ")", r = {
41
3
  className: "type",
42
4
  variants: [
43
5
  { begin: "\\b[a-z\\d_]*_t\\b" },
44
- { match: f }
6
+ { match: /\batomic_[a-z]{3,6}\b/ }
45
7
  ]
46
- }, s = {
8
+ }, a = {
47
9
  className: "string",
48
10
  variants: [
49
11
  {
50
12
  begin: '(u8?|U|L)?"',
51
13
  end: '"',
52
14
  illegal: "\\n",
53
- contains: [t.BACKSLASH_ESCAPE]
15
+ contains: [e.BACKSLASH_ESCAPE]
54
16
  },
55
17
  {
56
18
  begin: "(u8?|U|L)?'(" + "\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)" + "|.)",
57
19
  end: "'",
58
20
  illegal: "."
59
21
  },
60
- // https://en.cppreference.com/w/cpp/language/string_literal
61
- // a d-char-sequence never contains parentheses, backslashes or whitespace;
62
- // quotes are excluded as well so the closing delimiter cannot swallow the
63
- // quote that actually terminates the literal
64
- t.END_SAME_AS_BEGIN({
65
- begin: /(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,
66
- end: /\)([^()\\\s"]{0,16})"/
22
+ e.END_SAME_AS_BEGIN({
23
+ begin: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,
24
+ end: /\)([^()\\ ]{0,16})"/
67
25
  })
68
26
  ]
69
- }, o = {
27
+ }, c = {
70
28
  className: "number",
71
29
  variants: [
72
30
  { match: /\b(0b[01']+)/ },
@@ -75,25 +33,7 @@ function S(t) {
75
33
  { match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ }
76
34
  ],
77
35
  relevance: 0
78
- }, m = {
79
- scope: "meta",
80
- begin: /#\s*include\b/,
81
- end: /$/,
82
- keywords: { keyword: "include" },
83
- contains: [
84
- {
85
- // the `\` at the end of a line signaling continuation
86
- begin: /\\\n/
87
- },
88
- s,
89
- {
90
- scope: "string",
91
- begin: /<.*?>/
92
- },
93
- a,
94
- t.C_BLOCK_COMMENT_MODE
95
- ]
96
- }, u = {
36
+ }, i = {
97
37
  className: "meta",
98
38
  begin: /#\s*[a-z]+\b/,
99
39
  end: /$/,
@@ -103,18 +43,19 @@ function S(t) {
103
43
  begin: /\\\n/,
104
44
  relevance: 0
105
45
  },
106
- t.inherit(s, { className: "string" }),
107
- a,
108
- t.C_BLOCK_COMMENT_MODE
46
+ e.inherit(a, { className: "string" }),
47
+ {
48
+ className: "string",
49
+ begin: /<.*?>/
50
+ },
51
+ n,
52
+ e.C_BLOCK_COMMENT_MODE
109
53
  ]
110
- }, c = [
111
- m,
112
- u
113
- ], p = {
54
+ }, E = {
114
55
  className: "title",
115
- begin: n.optional(r) + t.IDENT_RE,
56
+ begin: s.optional(o) + e.IDENT_RE,
116
57
  relevance: 0
117
- }, d = n.optional(r) + t.IDENT_RE + "\\s*\\(", g = 12, e = {
58
+ }, d = s.optional(o) + e.IDENT_RE + "\\s*\\(", t = {
118
59
  keyword: [
119
60
  "asm",
120
61
  "auto",
@@ -198,14 +139,14 @@ function S(t) {
198
139
  literal: "true false NULL",
199
140
  // TODO: apply hinting work similar to what was done in cpp.js
200
141
  built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
201
- }, _ = [
202
- ...c,
142
+ }, l = [
203
143
  i,
204
- a,
205
- t.C_BLOCK_COMMENT_MODE,
206
- o,
207
- s
208
- ], C = {
144
+ r,
145
+ n,
146
+ e.C_BLOCK_COMMENT_MODE,
147
+ c,
148
+ a
149
+ ], m = {
209
150
  // This mode covers expression context where we can't expect a function
210
151
  // definition and shouldn't highlight anything that looks like one:
211
152
  // `return some()`, `else if()`, `(x*sum(1, 2))`
@@ -223,35 +164,35 @@ function S(t) {
223
164
  end: /;/
224
165
  }
225
166
  ],
226
- keywords: e,
227
- contains: _.concat([
167
+ keywords: t,
168
+ contains: l.concat([
228
169
  {
229
170
  begin: /\(/,
230
171
  end: /\)/,
231
- keywords: e,
232
- contains: _.concat(["self"]),
172
+ keywords: t,
173
+ contains: l.concat(["self"]),
233
174
  relevance: 0
234
175
  }
235
176
  ]),
236
177
  relevance: 0
237
- }, b = {
238
- begin: "(" + E + "[\\*&\\s]+){1," + g + "}" + d,
178
+ }, p = {
179
+ begin: "(" + u + "[\\*&\\s]+)+" + d,
239
180
  returnBegin: !0,
240
181
  end: /[{;=]/,
241
182
  excludeEnd: !0,
242
- keywords: e,
183
+ keywords: t,
243
184
  illegal: /[^\w\s\*&:<>.]/,
244
185
  contains: [
245
186
  {
246
187
  // to prevent it from being confused as the function title
247
- begin: l,
248
- keywords: e,
188
+ begin: _,
189
+ keywords: t,
249
190
  relevance: 0
250
191
  },
251
192
  {
252
193
  begin: d,
253
194
  returnBegin: !0,
254
- contains: [t.inherit(p, { className: "title.function" })],
195
+ contains: [e.inherit(E, { className: "title.function" })],
255
196
  relevance: 0
256
197
  },
257
198
  // allow for multiple declarations, e.g.:
@@ -264,54 +205,54 @@ function S(t) {
264
205
  className: "params",
265
206
  begin: /\(/,
266
207
  end: /\)/,
267
- keywords: e,
208
+ keywords: t,
268
209
  relevance: 0,
269
210
  contains: [
211
+ n,
212
+ e.C_BLOCK_COMMENT_MODE,
270
213
  a,
271
- t.C_BLOCK_COMMENT_MODE,
272
- s,
273
- o,
274
- i,
214
+ c,
215
+ r,
275
216
  // Count matching parentheses.
276
217
  {
277
218
  begin: /\(/,
278
219
  end: /\)/,
279
- keywords: e,
220
+ keywords: t,
280
221
  relevance: 0,
281
222
  contains: [
282
223
  "self",
224
+ n,
225
+ e.C_BLOCK_COMMENT_MODE,
283
226
  a,
284
- t.C_BLOCK_COMMENT_MODE,
285
- s,
286
- o,
287
- i
227
+ c,
228
+ r
288
229
  ]
289
230
  }
290
231
  ]
291
232
  },
292
- i,
293
- a,
294
- t.C_BLOCK_COMMENT_MODE,
295
- ...c
233
+ r,
234
+ n,
235
+ e.C_BLOCK_COMMENT_MODE,
236
+ i
296
237
  ]
297
238
  };
298
239
  return {
299
240
  name: "C",
300
241
  aliases: ["h"],
301
- keywords: e,
242
+ keywords: t,
302
243
  // Until differentiations are added between `c` and `cpp`, `c` will
303
244
  // not be auto-detected to avoid auto-detect conflicts between C and C++
304
245
  disableAutodetect: !0,
305
246
  illegal: "</",
306
247
  contains: [].concat(
307
- C,
308
- b,
309
- _,
248
+ m,
249
+ p,
250
+ l,
310
251
  [
311
- ...c,
252
+ i,
312
253
  {
313
- begin: t.IDENT_RE + "::",
314
- keywords: e
254
+ begin: e.IDENT_RE + "::",
255
+ keywords: t
315
256
  },
316
257
  {
317
258
  className: "class",
@@ -319,18 +260,18 @@ function S(t) {
319
260
  end: /[{;:<>=]/,
320
261
  contains: [
321
262
  { beginKeywords: "final class struct" },
322
- t.TITLE_MODE
263
+ e.TITLE_MODE
323
264
  ]
324
265
  }
325
266
  ]
326
267
  ),
327
268
  exports: {
328
- preprocessor: u,
329
- strings: s,
330
- keywords: e
269
+ preprocessor: i,
270
+ strings: a,
271
+ keywords: t
331
272
  }
332
273
  };
333
274
  }
334
275
  export {
335
- S as default
276
+ C as default
336
277
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function g(e){const s=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),_="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",u="("+_+"|"+s.optional(o)+"[a-zA-Z_]\\w*"+s.optional("<[^<>]+>")+")",r={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},i={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},E={className:"title",begin:s.optional(o)+e.IDENT_RE,relevance:0},d=s.optional(o)+e.IDENT_RE+"\\s*\\(",t={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},l=[i,r,n,e.C_BLOCK_COMMENT_MODE,c,a],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:t,contains:l.concat([{begin:/\(/,end:/\)/,keywords:t,contains:l.concat(["self"]),relevance:0}]),relevance:0},p={begin:"("+u+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:_,keywords:t,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(E,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,a,c,r,{begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,a,c,r]}]},r,n,e.C_BLOCK_COMMENT_MODE,i]};return{name:"C",aliases:["h"],keywords:t,disableAutodetect:!0,illegal:"</",contains:[].concat(m,p,l,[i,{begin:e.IDENT_RE+"::",keywords:t},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:i,strings:a,keywords:t}}}exports.default=g;
@@ -27,8 +27,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
27
27
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
28
  "onUpdate:value"?: ((value: number | [number, number] | null) => any) | undefined;
29
29
  }>, {
30
- type: BxDatePickerType;
31
30
  size: "small" | "medium" | "large";
31
+ type: BxDatePickerType;
32
32
  disabled: boolean;
33
33
  placeholder: string;
34
34
  clearable: boolean;
@@ -65,8 +65,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
65
65
  "onUpdate:modelValue"?: ((value: string | number | boolean | Template.Fields.RichTextFeature[]) => any) | undefined;
66
66
  onEnter?: ((event: KeyboardEvent) => any) | undefined;
67
67
  }>, {
68
- type: "text" | "password" | "number" | "email" | "tel" | "textarea";
69
68
  size: "tiny" | "small" | "medium" | "large";
69
+ type: "text" | "password" | "number" | "email" | "tel" | "textarea";
70
70
  round: boolean;
71
71
  disabled: boolean;
72
72
  loading: boolean;
@@ -23,8 +23,8 @@ declare const __VLS_component: import("vue").DefineComponent<BxTagProps, {}, {},
23
23
  }, string, import("vue").PublicProps, Readonly<BxTagProps> & Readonly<{
24
24
  onClose?: (() => any) | undefined;
25
25
  }>, {
26
- type: BxTagType;
27
26
  size: "tiny" | "small" | "medium" | "large";
27
+ type: BxTagType;
28
28
  round: boolean;
29
29
  disabled: boolean;
30
30
  closeable: boolean;