@prokodo/ui 0.0.53 → 0.0.54

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 (61) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +9 -0
  2. package/dist/_virtual/common.js +7 -0
  3. package/dist/components/post-item/PostItem.client.js +3 -4
  4. package/dist/components/post-item/PostItem.server.js +3 -4
  5. package/dist/components/post-item/PostItem.view.js +2 -2
  6. package/dist/components/post-teaser/PostTeaser.client.js +5 -6
  7. package/dist/components/post-teaser/PostTeaser.server.js +3 -4
  8. package/dist/components/post-teaser/PostTeaser.view.js +4 -4
  9. package/dist/components/rich-text/RichText.client.js +175 -10
  10. package/dist/components/rich-text/RichText.module.scss.js +1 -1
  11. package/dist/constants/project.js +1 -1
  12. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
  13. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +90 -0
  14. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1629 -0
  15. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +407 -0
  16. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +307 -0
  17. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +556 -0
  18. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +413 -0
  19. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +950 -0
  20. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +66 -0
  21. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +167 -0
  22. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +83 -0
  23. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +129 -0
  24. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +268 -0
  25. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +715 -0
  26. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +53 -0
  27. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +268 -0
  28. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +1031 -0
  29. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +74 -0
  30. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +84 -0
  31. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +245 -0
  32. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +256 -0
  33. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +498 -0
  34. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +59 -0
  35. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +614 -0
  36. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +25 -0
  37. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +38 -0
  38. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +428 -0
  39. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +223 -0
  40. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +426 -0
  41. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +326 -0
  42. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +935 -0
  43. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +37 -0
  44. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +658 -0
  45. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +893 -0
  46. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +829 -0
  47. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +146 -0
  48. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +134 -0
  49. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +239 -0
  50. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +214 -0
  51. package/dist/node_modules/.pnpm/marked-highlight@2.2.2_marked@15.0.12/node_modules/marked-highlight/src/index.js +93 -0
  52. package/dist/tsconfig.build.tsbuildinfo +1 -1
  53. package/dist/types/components/post-item/PostItem.model.d.ts +1 -1
  54. package/dist/types/components/post-teaser/PostTeaser.model.d.ts +1 -1
  55. package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
  56. package/dist/types/components/rich-text/RichText.d.ts +5 -0
  57. package/dist/types/components/rich-text/RichText.lazy.d.ts +5 -0
  58. package/dist/types/components/rich-text/RichText.model.d.ts +5 -0
  59. package/dist/ui.css +38 -30
  60. package/package.json +3 -1
  61. package/dist/helpers/calculation.js +0 -6
@@ -0,0 +1,498 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var perl_1;
4
+ var hasRequiredPerl;
5
+ function requirePerl() {
6
+ if (hasRequiredPerl) return perl_1;
7
+ hasRequiredPerl = 1;
8
+ function perl(hljs) {
9
+ const regex = hljs.regex;
10
+ const KEYWORDS = [
11
+ "abs",
12
+ "accept",
13
+ "alarm",
14
+ "and",
15
+ "atan2",
16
+ "bind",
17
+ "binmode",
18
+ "bless",
19
+ "break",
20
+ "caller",
21
+ "chdir",
22
+ "chmod",
23
+ "chomp",
24
+ "chop",
25
+ "chown",
26
+ "chr",
27
+ "chroot",
28
+ "class",
29
+ "close",
30
+ "closedir",
31
+ "connect",
32
+ "continue",
33
+ "cos",
34
+ "crypt",
35
+ "dbmclose",
36
+ "dbmopen",
37
+ "defined",
38
+ "delete",
39
+ "die",
40
+ "do",
41
+ "dump",
42
+ "each",
43
+ "else",
44
+ "elsif",
45
+ "endgrent",
46
+ "endhostent",
47
+ "endnetent",
48
+ "endprotoent",
49
+ "endpwent",
50
+ "endservent",
51
+ "eof",
52
+ "eval",
53
+ "exec",
54
+ "exists",
55
+ "exit",
56
+ "exp",
57
+ "fcntl",
58
+ "field",
59
+ "fileno",
60
+ "flock",
61
+ "for",
62
+ "foreach",
63
+ "fork",
64
+ "format",
65
+ "formline",
66
+ "getc",
67
+ "getgrent",
68
+ "getgrgid",
69
+ "getgrnam",
70
+ "gethostbyaddr",
71
+ "gethostbyname",
72
+ "gethostent",
73
+ "getlogin",
74
+ "getnetbyaddr",
75
+ "getnetbyname",
76
+ "getnetent",
77
+ "getpeername",
78
+ "getpgrp",
79
+ "getpriority",
80
+ "getprotobyname",
81
+ "getprotobynumber",
82
+ "getprotoent",
83
+ "getpwent",
84
+ "getpwnam",
85
+ "getpwuid",
86
+ "getservbyname",
87
+ "getservbyport",
88
+ "getservent",
89
+ "getsockname",
90
+ "getsockopt",
91
+ "given",
92
+ "glob",
93
+ "gmtime",
94
+ "goto",
95
+ "grep",
96
+ "gt",
97
+ "hex",
98
+ "if",
99
+ "index",
100
+ "int",
101
+ "ioctl",
102
+ "join",
103
+ "keys",
104
+ "kill",
105
+ "last",
106
+ "lc",
107
+ "lcfirst",
108
+ "length",
109
+ "link",
110
+ "listen",
111
+ "local",
112
+ "localtime",
113
+ "log",
114
+ "lstat",
115
+ "lt",
116
+ "ma",
117
+ "map",
118
+ "method",
119
+ "mkdir",
120
+ "msgctl",
121
+ "msgget",
122
+ "msgrcv",
123
+ "msgsnd",
124
+ "my",
125
+ "ne",
126
+ "next",
127
+ "no",
128
+ "not",
129
+ "oct",
130
+ "open",
131
+ "opendir",
132
+ "or",
133
+ "ord",
134
+ "our",
135
+ "pack",
136
+ "package",
137
+ "pipe",
138
+ "pop",
139
+ "pos",
140
+ "print",
141
+ "printf",
142
+ "prototype",
143
+ "push",
144
+ "q|0",
145
+ "qq",
146
+ "quotemeta",
147
+ "qw",
148
+ "qx",
149
+ "rand",
150
+ "read",
151
+ "readdir",
152
+ "readline",
153
+ "readlink",
154
+ "readpipe",
155
+ "recv",
156
+ "redo",
157
+ "ref",
158
+ "rename",
159
+ "require",
160
+ "reset",
161
+ "return",
162
+ "reverse",
163
+ "rewinddir",
164
+ "rindex",
165
+ "rmdir",
166
+ "say",
167
+ "scalar",
168
+ "seek",
169
+ "seekdir",
170
+ "select",
171
+ "semctl",
172
+ "semget",
173
+ "semop",
174
+ "send",
175
+ "setgrent",
176
+ "sethostent",
177
+ "setnetent",
178
+ "setpgrp",
179
+ "setpriority",
180
+ "setprotoent",
181
+ "setpwent",
182
+ "setservent",
183
+ "setsockopt",
184
+ "shift",
185
+ "shmctl",
186
+ "shmget",
187
+ "shmread",
188
+ "shmwrite",
189
+ "shutdown",
190
+ "sin",
191
+ "sleep",
192
+ "socket",
193
+ "socketpair",
194
+ "sort",
195
+ "splice",
196
+ "split",
197
+ "sprintf",
198
+ "sqrt",
199
+ "srand",
200
+ "stat",
201
+ "state",
202
+ "study",
203
+ "sub",
204
+ "substr",
205
+ "symlink",
206
+ "syscall",
207
+ "sysopen",
208
+ "sysread",
209
+ "sysseek",
210
+ "system",
211
+ "syswrite",
212
+ "tell",
213
+ "telldir",
214
+ "tie",
215
+ "tied",
216
+ "time",
217
+ "times",
218
+ "tr",
219
+ "truncate",
220
+ "uc",
221
+ "ucfirst",
222
+ "umask",
223
+ "undef",
224
+ "unless",
225
+ "unlink",
226
+ "unpack",
227
+ "unshift",
228
+ "untie",
229
+ "until",
230
+ "use",
231
+ "utime",
232
+ "values",
233
+ "vec",
234
+ "wait",
235
+ "waitpid",
236
+ "wantarray",
237
+ "warn",
238
+ "when",
239
+ "while",
240
+ "write",
241
+ "x|0",
242
+ "xor",
243
+ "y|0"
244
+ ];
245
+ const REGEX_MODIFIERS = /[dualxmsipngr]{0,12}/;
246
+ const PERL_KEYWORDS = {
247
+ $pattern: /[\w.]+/,
248
+ keyword: KEYWORDS.join(" ")
249
+ };
250
+ const SUBST = {
251
+ className: "subst",
252
+ begin: "[$@]\\{",
253
+ end: "\\}",
254
+ keywords: PERL_KEYWORDS
255
+ };
256
+ const METHOD = {
257
+ begin: /->\{/,
258
+ end: /\}/
259
+ // contains defined later
260
+ };
261
+ const ATTR = {
262
+ scope: "attr",
263
+ match: /\s+:\s*\w+(\s*\(.*?\))?/
264
+ };
265
+ const VAR = {
266
+ scope: "variable",
267
+ variants: [
268
+ { begin: /\$\d/ },
269
+ {
270
+ begin: regex.concat(
271
+ /[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,
272
+ // negative look-ahead tries to avoid matching patterns that are not
273
+ // Perl at all like $ident$, @ident@, etc.
274
+ `(?![A-Za-z])(?![@$%])`
275
+ )
276
+ },
277
+ {
278
+ // Only $= is a special Perl variable and one can't declare @= or %=.
279
+ begin: /[$%@](?!")[^\s\w{=]|\$=/,
280
+ relevance: 0
281
+ }
282
+ ],
283
+ contains: [ATTR]
284
+ };
285
+ const NUMBER = {
286
+ className: "number",
287
+ variants: [
288
+ // decimal numbers:
289
+ // include the case where a number starts with a dot (eg. .9), and
290
+ // the leading 0? avoids mixing the first and second match on 0.x cases
291
+ { match: /0?\.[0-9][0-9_]+\b/ },
292
+ // include the special versioned number (eg. v5.38)
293
+ { match: /\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/ },
294
+ // non-decimal numbers:
295
+ { match: /\b0[0-7][0-7_]*\b/ },
296
+ { match: /\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/ },
297
+ { match: /\b0b[0-1][0-1_]*\b/ }
298
+ ],
299
+ relevance: 0
300
+ };
301
+ const STRING_CONTAINS = [
302
+ hljs.BACKSLASH_ESCAPE,
303
+ SUBST,
304
+ VAR
305
+ ];
306
+ const REGEX_DELIMS = [
307
+ /!/,
308
+ /\//,
309
+ /\|/,
310
+ /\?/,
311
+ /'/,
312
+ /"/,
313
+ // valid but infrequent and weird
314
+ /#/
315
+ // valid but infrequent and weird
316
+ ];
317
+ const PAIRED_DOUBLE_RE = /* @__PURE__ */ __name((prefix, open, close = "\\1") => {
318
+ const middle = close === "\\1" ? close : regex.concat(close, open);
319
+ return regex.concat(
320
+ regex.concat("(?:", prefix, ")"),
321
+ open,
322
+ /(?:\\.|[^\\\/])*?/,
323
+ middle,
324
+ /(?:\\.|[^\\\/])*?/,
325
+ close,
326
+ REGEX_MODIFIERS
327
+ );
328
+ }, "PAIRED_DOUBLE_RE");
329
+ const PAIRED_RE = /* @__PURE__ */ __name((prefix, open, close) => {
330
+ return regex.concat(
331
+ regex.concat("(?:", prefix, ")"),
332
+ open,
333
+ /(?:\\.|[^\\\/])*?/,
334
+ close,
335
+ REGEX_MODIFIERS
336
+ );
337
+ }, "PAIRED_RE");
338
+ const PERL_DEFAULT_CONTAINS = [
339
+ VAR,
340
+ hljs.HASH_COMMENT_MODE,
341
+ hljs.COMMENT(
342
+ /^=\w/,
343
+ /=cut/,
344
+ { endsWithParent: true }
345
+ ),
346
+ METHOD,
347
+ {
348
+ className: "string",
349
+ contains: STRING_CONTAINS,
350
+ variants: [
351
+ {
352
+ begin: "q[qwxr]?\\s*\\(",
353
+ end: "\\)",
354
+ relevance: 5
355
+ },
356
+ {
357
+ begin: "q[qwxr]?\\s*\\[",
358
+ end: "\\]",
359
+ relevance: 5
360
+ },
361
+ {
362
+ begin: "q[qwxr]?\\s*\\{",
363
+ end: "\\}",
364
+ relevance: 5
365
+ },
366
+ {
367
+ begin: "q[qwxr]?\\s*\\|",
368
+ end: "\\|",
369
+ relevance: 5
370
+ },
371
+ {
372
+ begin: "q[qwxr]?\\s*<",
373
+ end: ">",
374
+ relevance: 5
375
+ },
376
+ {
377
+ begin: "qw\\s+q",
378
+ end: "q",
379
+ relevance: 5
380
+ },
381
+ {
382
+ begin: "'",
383
+ end: "'",
384
+ contains: [hljs.BACKSLASH_ESCAPE]
385
+ },
386
+ {
387
+ begin: '"',
388
+ end: '"'
389
+ },
390
+ {
391
+ begin: "`",
392
+ end: "`",
393
+ contains: [hljs.BACKSLASH_ESCAPE]
394
+ },
395
+ {
396
+ begin: /\{\w+\}/,
397
+ relevance: 0
398
+ },
399
+ {
400
+ begin: "-?\\w+\\s*=>",
401
+ relevance: 0
402
+ }
403
+ ]
404
+ },
405
+ NUMBER,
406
+ {
407
+ // regexp container
408
+ begin: "(\\/\\/|" + hljs.RE_STARTERS_RE + "|\\b(split|return|print|reverse|grep)\\b)\\s*",
409
+ keywords: "split return print reverse grep",
410
+ relevance: 0,
411
+ contains: [
412
+ hljs.HASH_COMMENT_MODE,
413
+ {
414
+ className: "regexp",
415
+ variants: [
416
+ // allow matching common delimiters
417
+ { begin: PAIRED_DOUBLE_RE("s|tr|y", regex.either(...REGEX_DELIMS, { capture: true })) },
418
+ // and then paired delmis
419
+ { begin: PAIRED_DOUBLE_RE("s|tr|y", "\\(", "\\)") },
420
+ { begin: PAIRED_DOUBLE_RE("s|tr|y", "\\[", "\\]") },
421
+ { begin: PAIRED_DOUBLE_RE("s|tr|y", "\\{", "\\}") }
422
+ ],
423
+ relevance: 2
424
+ },
425
+ {
426
+ className: "regexp",
427
+ variants: [
428
+ {
429
+ // could be a comment in many languages so do not count
430
+ // as relevant
431
+ begin: /(m|qr)\/\//,
432
+ relevance: 0
433
+ },
434
+ // prefix is optional with /regex/
435
+ { begin: PAIRED_RE("(?:m|qr)?", /\//, /\//) },
436
+ // allow matching common delimiters
437
+ { begin: PAIRED_RE("m|qr", regex.either(...REGEX_DELIMS, { capture: true }), /\1/) },
438
+ // allow common paired delmins
439
+ { begin: PAIRED_RE("m|qr", /\(/, /\)/) },
440
+ { begin: PAIRED_RE("m|qr", /\[/, /\]/) },
441
+ { begin: PAIRED_RE("m|qr", /\{/, /\}/) }
442
+ ]
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ className: "function",
448
+ beginKeywords: "sub method",
449
+ end: "(\\s*\\(.*?\\))?[;{]",
450
+ excludeEnd: true,
451
+ relevance: 5,
452
+ contains: [hljs.TITLE_MODE, ATTR]
453
+ },
454
+ {
455
+ className: "class",
456
+ beginKeywords: "class",
457
+ end: "[;{]",
458
+ excludeEnd: true,
459
+ relevance: 5,
460
+ contains: [hljs.TITLE_MODE, ATTR, NUMBER]
461
+ },
462
+ {
463
+ begin: "-\\w\\b",
464
+ relevance: 0
465
+ },
466
+ {
467
+ begin: "^__DATA__$",
468
+ end: "^__END__$",
469
+ subLanguage: "mojolicious",
470
+ contains: [
471
+ {
472
+ begin: "^@@.*",
473
+ end: "$",
474
+ className: "comment"
475
+ }
476
+ ]
477
+ }
478
+ ];
479
+ SUBST.contains = PERL_DEFAULT_CONTAINS;
480
+ METHOD.contains = PERL_DEFAULT_CONTAINS;
481
+ return {
482
+ name: "Perl",
483
+ aliases: [
484
+ "pl",
485
+ "pm"
486
+ ],
487
+ keywords: PERL_KEYWORDS,
488
+ contains: PERL_DEFAULT_CONTAINS
489
+ };
490
+ }
491
+ __name(perl, "perl");
492
+ perl_1 = perl;
493
+ return perl_1;
494
+ }
495
+ __name(requirePerl, "requirePerl");
496
+ export {
497
+ requirePerl as __require
498
+ };
@@ -0,0 +1,59 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ var phpTemplate_1;
4
+ var hasRequiredPhpTemplate;
5
+ function requirePhpTemplate() {
6
+ if (hasRequiredPhpTemplate) return phpTemplate_1;
7
+ hasRequiredPhpTemplate = 1;
8
+ function phpTemplate(hljs) {
9
+ return {
10
+ name: "PHP template",
11
+ subLanguage: "xml",
12
+ contains: [
13
+ {
14
+ begin: /<\?(php|=)?/,
15
+ end: /\?>/,
16
+ subLanguage: "php",
17
+ contains: [
18
+ // We don't want the php closing tag ?> to close the PHP block when
19
+ // inside any of the following blocks:
20
+ {
21
+ begin: "/\\*",
22
+ end: "\\*/",
23
+ skip: true
24
+ },
25
+ {
26
+ begin: 'b"',
27
+ end: '"',
28
+ skip: true
29
+ },
30
+ {
31
+ begin: "b'",
32
+ end: "'",
33
+ skip: true
34
+ },
35
+ hljs.inherit(hljs.APOS_STRING_MODE, {
36
+ illegal: null,
37
+ className: null,
38
+ contains: null,
39
+ skip: true
40
+ }),
41
+ hljs.inherit(hljs.QUOTE_STRING_MODE, {
42
+ illegal: null,
43
+ className: null,
44
+ contains: null,
45
+ skip: true
46
+ })
47
+ ]
48
+ }
49
+ ]
50
+ };
51
+ }
52
+ __name(phpTemplate, "phpTemplate");
53
+ phpTemplate_1 = phpTemplate;
54
+ return phpTemplate_1;
55
+ }
56
+ __name(requirePhpTemplate, "requirePhpTemplate");
57
+ export {
58
+ requirePhpTemplate as __require
59
+ };