@baseplate-dev/plugin-auth 0.6.14 → 0.6.16
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/CHANGELOG.md +42 -0
- package/dist/auth/core/components/auth-definition-editor.js +3 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.js +2 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -28
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -28
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -14
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -14
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -28
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -28
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -14
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -28
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -14
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +9 -2
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +6 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +16 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +8 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +8 -1
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +5 -1
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js +4 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/templates/src/prisma/seed-initial-user.ts +3 -2
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +7 -14
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +42 -84
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +7 -14
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +70 -140
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +14 -28
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +7 -14
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +7 -14
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +7 -14
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -28
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -28
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -14
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -14
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -28
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -28
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -14
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -28
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -14
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +2 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +6 -3
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +2 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +6 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +8 -5
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +8 -8
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +10 -2
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +27 -3
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +9 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +20 -3
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +18 -16
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +18 -16
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js +6 -6
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.ts +6 -6
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +7 -14
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +42 -84
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +7 -14
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +63 -126
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +14 -28
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +7 -14
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +14 -28
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +7 -14
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +4 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +2 -1
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +3 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.js +3 -1
- package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-3sV-KVGF.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-04_7KkB1.js} +15 -15
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-0m3QgjSy.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js} +5 -4
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-QrOyqu9V.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-DZIcwf2B.js} +1 -1
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-BTSgZGcl.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CXGct_48.js} +10053 -3750
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CJ027_El.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-Ci5_qYaj.js} +3823 -2545
- package/dist/web/assets/arduino-BP2nYunF.js +21 -0
- package/dist/web/assets/auth-8qJtXAgU.js +1 -0
- package/dist/web/assets/bash-Zh_IyzBN.js +192 -0
- package/dist/web/assets/basic-3mvohyEL.js +28 -0
- package/dist/web/assets/c-C7Ey31hW.js +74 -0
- package/dist/web/assets/clike-D9YNFwtw.js +41 -0
- package/dist/web/assets/{common-Aq-HXybV.js → common-23-wvKrM.js} +5 -5
- package/dist/web/assets/{common-7-ZtKO5B.js → common-B-NI9TR-.js} +2 -2
- package/dist/web/assets/{common-CDrUdhRf.js → common-BBriDRRy.js} +3 -3
- package/dist/web/assets/{common-BPbNs2A1.js → common-BvU-7KsV.js} +5 -5
- package/dist/web/assets/{common-B_XZ3l9w.js → common-DBBUvtGu.js} +2 -2
- package/dist/web/assets/{common-B8N9gx2s.js → common-eFh2vwGb.js} +3 -3
- package/dist/web/assets/cpp-_RjA_yNA.js +82 -0
- package/dist/web/assets/csharp-0LZzOc6Q.js +301 -0
- package/dist/web/assets/css-D7TbgetL.js +70 -0
- package/dist/web/assets/diff-CtSa_15w.js +54 -0
- package/dist/web/assets/{dist-D3CkiDKT.js → dist-BjxypexQ.js} +1672 -992
- package/dist/web/assets/{get-auth-plugin-definition-D3ocnNxw.js → get-auth-plugin-definition-x8oAsN1R.js} +2 -2
- package/dist/web/assets/go-CzER04EZ.js +36 -0
- package/dist/web/assets/{hostInit-D3RxwboF.js → hostInit-Bay0Y9UX.js} +1 -1
- package/dist/web/assets/{index-CozZxQl1.js → index-qso1IsKy.js} +2 -2
- package/dist/web/assets/ini-CU-wHLTy.js +51 -0
- package/dist/web/assets/java-HAvRESj1.js +116 -0
- package/dist/web/assets/javascript-BVAr0eZH.js +124 -0
- package/dist/web/assets/json-DN8T4yFI.js +38 -0
- package/dist/web/assets/kotlin-DkCMjTKK.js +83 -0
- package/dist/web/assets/less-ZXX1tgaG.js +42 -0
- package/dist/web/assets/lua-D9bD4wrb.js +28 -0
- package/dist/web/assets/makefile-CKoRpler.js +40 -0
- package/dist/web/assets/markdown-_2_uVr2L.js +278 -0
- package/dist/web/assets/markup-BVZ8HhdW.js +176 -0
- package/dist/web/assets/markup-templating-BDIRuVJH.js +94 -0
- package/dist/web/assets/{mf-entry-bootstrap-0-069a3ab2.js → mf-entry-bootstrap-0-659c976f.js} +2 -2
- package/dist/web/assets/{model-utils-CYaLYwoX.js → model-utils-dNFTOjqi.js} +305 -27
- package/dist/web/assets/{models-BX4xFiEn.js → models-BpslIbU7.js} +2 -2
- package/dist/web/assets/{models-k-iaCft-.js → models-CKab4MTC.js} +2 -2
- package/dist/web/assets/objectivec-DPgB68It.js +25 -0
- package/dist/web/assets/perl-Cul_ma_h.js +92 -0
- package/dist/web/assets/php-JTON0zp9.js +298 -0
- package/dist/web/assets/{plugin-definition-CI1aEVGv.js → plugin-definition-8Exesd6T.js} +2 -2
- package/dist/web/assets/{plugin-definition-BI565qFo.js → plugin-definition-ChBrbazJ.js} +2 -2
- package/dist/web/assets/python-CURlmZ7M.js +73 -0
- package/dist/web/assets/r-8lr7pbGm.js +30 -0
- package/dist/web/assets/regex-CxQ7DXCx.js +96 -0
- package/dist/web/assets/ruby-BoFHz67P.js +175 -0
- package/dist/web/assets/rust-CpZXpaj0.js +107 -0
- package/dist/web/assets/sass-DG0YAnL7.js +65 -0
- package/dist/web/assets/scss-BDRIqhak.js +70 -0
- package/dist/web/assets/sql-C-bL8_gT.js +40 -0
- package/dist/web/assets/{styles-f4jHVv0S.js → styles-Cuq4wgvD.js} +7 -7
- package/dist/web/assets/swift-rQ52kfab.js +107 -0
- package/dist/web/assets/typescript-CDkIWcT8.js +57 -0
- package/dist/web/assets/vbnet-_PL7-T9d.js +32 -0
- package/dist/web/assets/{virtualExposes-BHQhgLE-.js → virtualExposes-BwIds34r.js} +1 -1
- package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-aH8n-Nbe.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BBt5f0I7.js} +3 -3
- package/dist/web/assets/{virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-I_SxfvGj.js → virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-RzPgl37a.js} +13 -13
- package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-BQ0UMKSv.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DM6Ir1_S.js} +13 -13
- package/dist/web/assets/{web-DCK_tLVa.js → web-BZd3bM0n.js} +6 -6
- package/dist/web/assets/{web-CkbTu31Q.js → web-BgWG7dYl.js} +10 -10
- package/dist/web/assets/{web-Dh6pUTrF.js → web-CXHw8SK7.js} +13 -13
- package/dist/web/assets/{web-Cn3uvuFs.js → web-CnB-sqCR.js} +20 -18
- package/dist/web/assets/{web-BRvS0HRS.js → web-DHv2aVpi.js} +10 -10
- package/dist/web/assets/{web-YXVJWeXy.js → web-DNrWXjpS.js} +3 -3
- package/dist/web/assets/{web-nLSlkJy_.js → web-D_H-MoGI.js} +3 -3
- package/dist/web/assets/workerBundle-GFUata9j.js +10 -0
- package/dist/web/assets/yaml-C9m3vuV5.js +90 -0
- package/dist/web/index.html +2 -2
- package/dist/web/remoteEntry.js +1 -1
- package/dist/web/remoteEntry.ssr.js +1 -1
- package/package.json +18 -17
- package/dist/web/assets/auth-D8BnFQKk.js +0 -1
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import markupTemplating from "./markup-templating-BDIRuVJH.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {Refractor} from '../lib/core.js'
|
|
5
|
+
*/
|
|
6
|
+
php.displayName = "php";
|
|
7
|
+
php.aliases = [];
|
|
8
|
+
/** @param {Refractor} Prism */
|
|
9
|
+
function php(Prism) {
|
|
10
|
+
Prism.register(markupTemplating);
|
|
11
|
+
(function(Prism) {
|
|
12
|
+
var comment = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/;
|
|
13
|
+
var constant = [
|
|
14
|
+
{
|
|
15
|
+
pattern: /\b(?:false|true)\b/i,
|
|
16
|
+
alias: "boolean"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
pattern: /(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,
|
|
20
|
+
greedy: true,
|
|
21
|
+
lookbehind: true
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
pattern: /(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,
|
|
25
|
+
greedy: true,
|
|
26
|
+
lookbehind: true
|
|
27
|
+
},
|
|
28
|
+
/\b(?:null)\b/i,
|
|
29
|
+
/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/
|
|
30
|
+
];
|
|
31
|
+
var number = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i;
|
|
32
|
+
var operator = /<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/;
|
|
33
|
+
var punctuation = /[{}\[\](),:;]/;
|
|
34
|
+
Prism.languages.php = {
|
|
35
|
+
delimiter: {
|
|
36
|
+
pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
|
|
37
|
+
alias: "important"
|
|
38
|
+
},
|
|
39
|
+
comment,
|
|
40
|
+
variable: /\$+(?:\w+\b|(?=\{))/,
|
|
41
|
+
package: {
|
|
42
|
+
pattern: /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
|
|
43
|
+
lookbehind: true,
|
|
44
|
+
inside: { punctuation: /\\/ }
|
|
45
|
+
},
|
|
46
|
+
"class-name-definition": {
|
|
47
|
+
pattern: /(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,
|
|
48
|
+
lookbehind: true,
|
|
49
|
+
alias: "class-name"
|
|
50
|
+
},
|
|
51
|
+
"function-definition": {
|
|
52
|
+
pattern: /(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,
|
|
53
|
+
lookbehind: true,
|
|
54
|
+
alias: "function"
|
|
55
|
+
},
|
|
56
|
+
keyword: [
|
|
57
|
+
{
|
|
58
|
+
pattern: /(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,
|
|
59
|
+
alias: "type-casting",
|
|
60
|
+
greedy: true,
|
|
61
|
+
lookbehind: true
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
pattern: /([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,
|
|
65
|
+
alias: "type-hint",
|
|
66
|
+
greedy: true,
|
|
67
|
+
lookbehind: true
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,
|
|
71
|
+
alias: "return-type",
|
|
72
|
+
greedy: true,
|
|
73
|
+
lookbehind: true
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
pattern: /\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,
|
|
77
|
+
alias: "type-declaration",
|
|
78
|
+
greedy: true
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
pattern: /(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,
|
|
82
|
+
alias: "type-declaration",
|
|
83
|
+
greedy: true,
|
|
84
|
+
lookbehind: true
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
pattern: /\b(?:parent|self|static)(?=\s*::)/i,
|
|
88
|
+
alias: "static-context",
|
|
89
|
+
greedy: true
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
pattern: /(\byield\s+)from\b/i,
|
|
93
|
+
lookbehind: true
|
|
94
|
+
},
|
|
95
|
+
/\bclass\b/i,
|
|
96
|
+
{
|
|
97
|
+
pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,
|
|
98
|
+
lookbehind: true
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"argument-name": {
|
|
102
|
+
pattern: /([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,
|
|
103
|
+
lookbehind: true
|
|
104
|
+
},
|
|
105
|
+
"class-name": [
|
|
106
|
+
{
|
|
107
|
+
pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,
|
|
108
|
+
greedy: true,
|
|
109
|
+
lookbehind: true
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/i,
|
|
113
|
+
greedy: true,
|
|
114
|
+
lookbehind: true
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,
|
|
118
|
+
greedy: true
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,
|
|
122
|
+
alias: "class-name-fully-qualified",
|
|
123
|
+
greedy: true,
|
|
124
|
+
lookbehind: true,
|
|
125
|
+
inside: { punctuation: /\\/ }
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,
|
|
129
|
+
alias: "class-name-fully-qualified",
|
|
130
|
+
greedy: true,
|
|
131
|
+
inside: { punctuation: /\\/ }
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
|
|
135
|
+
alias: "class-name-fully-qualified",
|
|
136
|
+
greedy: true,
|
|
137
|
+
lookbehind: true,
|
|
138
|
+
inside: { punctuation: /\\/ }
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
pattern: /\b[a-z_]\w*(?=\s*\$)/i,
|
|
142
|
+
alias: "type-declaration",
|
|
143
|
+
greedy: true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
|
|
147
|
+
alias: ["class-name-fully-qualified", "type-declaration"],
|
|
148
|
+
greedy: true,
|
|
149
|
+
inside: { punctuation: /\\/ }
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
pattern: /\b[a-z_]\w*(?=\s*::)/i,
|
|
153
|
+
alias: "static-context",
|
|
154
|
+
greedy: true
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,
|
|
158
|
+
alias: ["class-name-fully-qualified", "static-context"],
|
|
159
|
+
greedy: true,
|
|
160
|
+
inside: { punctuation: /\\/ }
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,
|
|
164
|
+
alias: "type-hint",
|
|
165
|
+
greedy: true,
|
|
166
|
+
lookbehind: true
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,
|
|
170
|
+
alias: ["class-name-fully-qualified", "type-hint"],
|
|
171
|
+
greedy: true,
|
|
172
|
+
lookbehind: true,
|
|
173
|
+
inside: { punctuation: /\\/ }
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,
|
|
177
|
+
alias: "return-type",
|
|
178
|
+
greedy: true,
|
|
179
|
+
lookbehind: true
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
|
|
183
|
+
alias: ["class-name-fully-qualified", "return-type"],
|
|
184
|
+
greedy: true,
|
|
185
|
+
lookbehind: true,
|
|
186
|
+
inside: { punctuation: /\\/ }
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
constant,
|
|
190
|
+
function: {
|
|
191
|
+
pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
|
|
192
|
+
lookbehind: true,
|
|
193
|
+
inside: { punctuation: /\\/ }
|
|
194
|
+
},
|
|
195
|
+
property: {
|
|
196
|
+
pattern: /(->\s*)\w+/,
|
|
197
|
+
lookbehind: true
|
|
198
|
+
},
|
|
199
|
+
number,
|
|
200
|
+
operator,
|
|
201
|
+
punctuation
|
|
202
|
+
};
|
|
203
|
+
var string_interpolation = {
|
|
204
|
+
pattern: /\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,
|
|
205
|
+
lookbehind: true,
|
|
206
|
+
inside: Prism.languages.php
|
|
207
|
+
};
|
|
208
|
+
var string = [
|
|
209
|
+
{
|
|
210
|
+
pattern: /<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,
|
|
211
|
+
alias: "nowdoc-string",
|
|
212
|
+
greedy: true,
|
|
213
|
+
inside: { delimiter: {
|
|
214
|
+
pattern: /^<<<'[^']+'|[a-z_]\w*;$/i,
|
|
215
|
+
alias: "symbol",
|
|
216
|
+
inside: { punctuation: /^<<<'?|[';]$/ }
|
|
217
|
+
} }
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
pattern: /<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,
|
|
221
|
+
alias: "heredoc-string",
|
|
222
|
+
greedy: true,
|
|
223
|
+
inside: {
|
|
224
|
+
delimiter: {
|
|
225
|
+
pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,
|
|
226
|
+
alias: "symbol",
|
|
227
|
+
inside: { punctuation: /^<<<"?|[";]$/ }
|
|
228
|
+
},
|
|
229
|
+
interpolation: string_interpolation
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
pattern: /`(?:\\[\s\S]|[^\\`])*`/,
|
|
234
|
+
alias: "backtick-quoted-string",
|
|
235
|
+
greedy: true
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
pattern: /'(?:\\[\s\S]|[^\\'])*'/,
|
|
239
|
+
alias: "single-quoted-string",
|
|
240
|
+
greedy: true
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
pattern: /"(?:\\[\s\S]|[^\\"])*"/,
|
|
244
|
+
alias: "double-quoted-string",
|
|
245
|
+
greedy: true,
|
|
246
|
+
inside: { interpolation: string_interpolation }
|
|
247
|
+
}
|
|
248
|
+
];
|
|
249
|
+
Prism.languages.insertBefore("php", "variable", {
|
|
250
|
+
string,
|
|
251
|
+
attribute: {
|
|
252
|
+
pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,
|
|
253
|
+
greedy: true,
|
|
254
|
+
inside: {
|
|
255
|
+
"attribute-content": {
|
|
256
|
+
pattern: /^(#\[)[\s\S]+(?=\]$)/,
|
|
257
|
+
lookbehind: true,
|
|
258
|
+
inside: {
|
|
259
|
+
comment,
|
|
260
|
+
string,
|
|
261
|
+
"attribute-class-name": [{
|
|
262
|
+
pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/i,
|
|
263
|
+
alias: "class-name",
|
|
264
|
+
greedy: true,
|
|
265
|
+
lookbehind: true
|
|
266
|
+
}, {
|
|
267
|
+
pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/i,
|
|
268
|
+
alias: ["class-name", "class-name-fully-qualified"],
|
|
269
|
+
greedy: true,
|
|
270
|
+
lookbehind: true,
|
|
271
|
+
inside: { punctuation: /\\/ }
|
|
272
|
+
}],
|
|
273
|
+
constant,
|
|
274
|
+
number,
|
|
275
|
+
operator,
|
|
276
|
+
punctuation
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
delimiter: {
|
|
280
|
+
pattern: /^#\[|\]$/,
|
|
281
|
+
alias: "punctuation"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
Prism.hooks.add("before-tokenize", function(env) {
|
|
287
|
+
if (!/<\?/.test(env.code)) return;
|
|
288
|
+
Prism.languages["markup-templating"].buildPlaceholders(env, "php", /<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g);
|
|
289
|
+
});
|
|
290
|
+
Prism.hooks.add("after-tokenize", function(env) {
|
|
291
|
+
Prism.languages["markup-templating"].tokenizePlaceholders(env, "php");
|
|
292
|
+
});
|
|
293
|
+
})(Prism);
|
|
294
|
+
}
|
|
295
|
+
//#endregion
|
|
296
|
+
export { php as default };
|
|
297
|
+
|
|
298
|
+
//# sourceMappingURL=php-JTON0zp9.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js";
|
|
2
|
-
import { i as __mf_163, s as __mf_172, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-
|
|
2
|
+
import { i as __mf_163, s as __mf_172, y as __mf_59 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js";
|
|
3
3
|
//#region src/auth/core/schema/roles/constants.ts
|
|
4
4
|
var AUTH_DEFAULT_ROLES = [
|
|
5
5
|
{
|
|
@@ -75,4 +75,4 @@ var createAuthPluginDefinitionSchema = __mf_163((ctx) => __mf_0.object({
|
|
|
75
75
|
//#endregion
|
|
76
76
|
export { createAuthRoleSchema as n, createDefaultAuthRoles as r, createAuthPluginDefinitionSchema as t };
|
|
77
77
|
|
|
78
|
-
//# sourceMappingURL=plugin-definition-
|
|
78
|
+
//# sourceMappingURL=plugin-definition-8Exesd6T.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js";
|
|
2
|
-
import { i as __mf_163 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-
|
|
2
|
+
import { i as __mf_163 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js";
|
|
3
3
|
//#region src/placeholder-auth/constants/model-names.ts
|
|
4
4
|
var PLACEHOLDER_AUTH_MODELS = { user: "User" };
|
|
5
5
|
//#endregion
|
|
@@ -8,4 +8,4 @@ var createPlaceholderAuthPluginDefinitionSchema = __mf_163(() => __mf_0.object({
|
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PLACEHOLDER_AUTH_MODELS as n, createPlaceholderAuthPluginDefinitionSchema as t };
|
|
10
10
|
|
|
11
|
-
//# sourceMappingURL=plugin-definition-
|
|
11
|
+
//# sourceMappingURL=plugin-definition-ChBrbazJ.js.map
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Refractor} from '../lib/core.js'
|
|
4
|
+
*/
|
|
5
|
+
python.displayName = "python";
|
|
6
|
+
python.aliases = ["py"];
|
|
7
|
+
/** @param {Refractor} Prism */
|
|
8
|
+
function python(Prism) {
|
|
9
|
+
Prism.languages.python = {
|
|
10
|
+
comment: {
|
|
11
|
+
pattern: /(^|[^\\])#.*/,
|
|
12
|
+
lookbehind: true,
|
|
13
|
+
greedy: true
|
|
14
|
+
},
|
|
15
|
+
"string-interpolation": {
|
|
16
|
+
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
|
17
|
+
greedy: true,
|
|
18
|
+
inside: {
|
|
19
|
+
interpolation: {
|
|
20
|
+
pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
|
|
21
|
+
lookbehind: true,
|
|
22
|
+
inside: {
|
|
23
|
+
"format-spec": {
|
|
24
|
+
pattern: /(:)[^:(){}]+(?=\}$)/,
|
|
25
|
+
lookbehind: true
|
|
26
|
+
},
|
|
27
|
+
"conversion-option": {
|
|
28
|
+
pattern: //,
|
|
29
|
+
alias: "punctuation"
|
|
30
|
+
},
|
|
31
|
+
rest: null
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
string: /[\s\S]+/
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"triple-quoted-string": {
|
|
38
|
+
pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
|
|
39
|
+
greedy: true,
|
|
40
|
+
alias: "string"
|
|
41
|
+
},
|
|
42
|
+
string: {
|
|
43
|
+
pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
|
44
|
+
greedy: true
|
|
45
|
+
},
|
|
46
|
+
function: {
|
|
47
|
+
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
|
48
|
+
lookbehind: true
|
|
49
|
+
},
|
|
50
|
+
"class-name": {
|
|
51
|
+
pattern: /(\bclass\s+)\w+/i,
|
|
52
|
+
lookbehind: true
|
|
53
|
+
},
|
|
54
|
+
decorator: {
|
|
55
|
+
pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
|
|
56
|
+
lookbehind: true,
|
|
57
|
+
alias: ["annotation", "punctuation"],
|
|
58
|
+
inside: { punctuation: /\./ }
|
|
59
|
+
},
|
|
60
|
+
keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
|
61
|
+
builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
|
62
|
+
boolean: /\b(?:False|None|True)\b/,
|
|
63
|
+
number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
|
64
|
+
operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
|
65
|
+
punctuation: /[{}[\];(),.:]/
|
|
66
|
+
};
|
|
67
|
+
Prism.languages.python["string-interpolation"].inside["interpolation"].inside.rest = Prism.languages.python;
|
|
68
|
+
Prism.languages.py = Prism.languages.python;
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
export { python as default };
|
|
72
|
+
|
|
73
|
+
//# sourceMappingURL=python-CURlmZ7M.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Refractor} from '../lib/core.js'
|
|
4
|
+
*/
|
|
5
|
+
r.displayName = "r";
|
|
6
|
+
r.aliases = [];
|
|
7
|
+
/** @param {Refractor} Prism */
|
|
8
|
+
function r(Prism) {
|
|
9
|
+
Prism.languages.r = {
|
|
10
|
+
comment: /#.*/,
|
|
11
|
+
string: {
|
|
12
|
+
pattern: /(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
13
|
+
greedy: true
|
|
14
|
+
},
|
|
15
|
+
"percent-operator": {
|
|
16
|
+
pattern: /%[^%\s]*%/,
|
|
17
|
+
alias: "operator"
|
|
18
|
+
},
|
|
19
|
+
boolean: /\b(?:FALSE|TRUE)\b/,
|
|
20
|
+
ellipsis: /\.\.(?:\.|\d+)/,
|
|
21
|
+
number: [/\b(?:Inf|NaN)\b/, /(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],
|
|
22
|
+
keyword: /\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,
|
|
23
|
+
operator: /->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,
|
|
24
|
+
punctuation: /[(){}\[\],;]/
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { r as default };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=r-8lr7pbGm.js.map
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Refractor} from '../lib/core.js'
|
|
4
|
+
*/
|
|
5
|
+
regex.displayName = "regex";
|
|
6
|
+
regex.aliases = [];
|
|
7
|
+
/** @param {Refractor} Prism */
|
|
8
|
+
function regex(Prism) {
|
|
9
|
+
(function(Prism) {
|
|
10
|
+
var specialEscape = {
|
|
11
|
+
pattern: /\\[\\(){}[\]^$+*?|.]/,
|
|
12
|
+
alias: "escape"
|
|
13
|
+
};
|
|
14
|
+
var escape = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/;
|
|
15
|
+
var charSet = {
|
|
16
|
+
pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i,
|
|
17
|
+
alias: "class-name"
|
|
18
|
+
};
|
|
19
|
+
var charSetWithoutDot = {
|
|
20
|
+
pattern: /\\[wsd]|\\p\{[^{}]+\}/i,
|
|
21
|
+
alias: "class-name"
|
|
22
|
+
};
|
|
23
|
+
var rangeChar = "(?:[^\\\\-]|" + escape.source + ")";
|
|
24
|
+
var range = RegExp(rangeChar + "-" + rangeChar);
|
|
25
|
+
var groupName = {
|
|
26
|
+
pattern: /(<|')[^<>']+(?=[>']$)/,
|
|
27
|
+
lookbehind: true,
|
|
28
|
+
alias: "variable"
|
|
29
|
+
};
|
|
30
|
+
Prism.languages.regex = {
|
|
31
|
+
"char-class": {
|
|
32
|
+
pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,
|
|
33
|
+
lookbehind: true,
|
|
34
|
+
inside: {
|
|
35
|
+
"char-class-negation": {
|
|
36
|
+
pattern: /(^\[)\^/,
|
|
37
|
+
lookbehind: true,
|
|
38
|
+
alias: "operator"
|
|
39
|
+
},
|
|
40
|
+
"char-class-punctuation": {
|
|
41
|
+
pattern: /^\[|\]$/,
|
|
42
|
+
alias: "punctuation"
|
|
43
|
+
},
|
|
44
|
+
range: {
|
|
45
|
+
pattern: range,
|
|
46
|
+
inside: {
|
|
47
|
+
escape,
|
|
48
|
+
"range-punctuation": {
|
|
49
|
+
pattern: /-/,
|
|
50
|
+
alias: "operator"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"special-escape": specialEscape,
|
|
55
|
+
"char-set": charSetWithoutDot,
|
|
56
|
+
escape
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"special-escape": specialEscape,
|
|
60
|
+
"char-set": charSet,
|
|
61
|
+
backreference: [{
|
|
62
|
+
pattern: /\\(?![123][0-7]{2})[1-9]/,
|
|
63
|
+
alias: "keyword"
|
|
64
|
+
}, {
|
|
65
|
+
pattern: /\\k<[^<>']+>/,
|
|
66
|
+
alias: "keyword",
|
|
67
|
+
inside: { "group-name": groupName }
|
|
68
|
+
}],
|
|
69
|
+
anchor: {
|
|
70
|
+
pattern: /[$^]|\\[ABbGZz]/,
|
|
71
|
+
alias: "function"
|
|
72
|
+
},
|
|
73
|
+
escape,
|
|
74
|
+
group: [{
|
|
75
|
+
pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,
|
|
76
|
+
alias: "punctuation",
|
|
77
|
+
inside: { "group-name": groupName }
|
|
78
|
+
}, {
|
|
79
|
+
pattern: /\)/,
|
|
80
|
+
alias: "punctuation"
|
|
81
|
+
}],
|
|
82
|
+
quantifier: {
|
|
83
|
+
pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,
|
|
84
|
+
alias: "number"
|
|
85
|
+
},
|
|
86
|
+
alternation: {
|
|
87
|
+
pattern: /\|/,
|
|
88
|
+
alias: "keyword"
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
})(Prism);
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { regex as default };
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=regex-CxQ7DXCx.js.map
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { t as clike } from "./clike-D9YNFwtw.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {Refractor} from '../lib/core.js'
|
|
5
|
+
*/
|
|
6
|
+
ruby.displayName = "ruby";
|
|
7
|
+
ruby.aliases = ["rb"];
|
|
8
|
+
/** @param {Refractor} Prism */
|
|
9
|
+
function ruby(Prism) {
|
|
10
|
+
Prism.register(clike);
|
|
11
|
+
(function(Prism) {
|
|
12
|
+
Prism.languages.ruby = Prism.languages.extend("clike", {
|
|
13
|
+
comment: {
|
|
14
|
+
pattern: /#.*|^=begin\s[\s\S]*?^=end/m,
|
|
15
|
+
greedy: true
|
|
16
|
+
},
|
|
17
|
+
"class-name": {
|
|
18
|
+
pattern: /(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,
|
|
19
|
+
lookbehind: true,
|
|
20
|
+
inside: { punctuation: /[.\\]/ }
|
|
21
|
+
},
|
|
22
|
+
keyword: /\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,
|
|
23
|
+
operator: /\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,
|
|
24
|
+
punctuation: /[(){}[\].,;]/
|
|
25
|
+
});
|
|
26
|
+
Prism.languages.insertBefore("ruby", "operator", { "double-colon": {
|
|
27
|
+
pattern: /::/,
|
|
28
|
+
alias: "punctuation"
|
|
29
|
+
} });
|
|
30
|
+
var interpolation = {
|
|
31
|
+
pattern: /((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,
|
|
32
|
+
lookbehind: true,
|
|
33
|
+
inside: {
|
|
34
|
+
content: {
|
|
35
|
+
pattern: /^(#\{)[\s\S]+(?=\}$)/,
|
|
36
|
+
lookbehind: true,
|
|
37
|
+
inside: Prism.languages.ruby
|
|
38
|
+
},
|
|
39
|
+
delimiter: {
|
|
40
|
+
pattern: /^#\{|\}$/,
|
|
41
|
+
alias: "punctuation"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
delete Prism.languages.ruby.function;
|
|
46
|
+
var percentExpression = "(?:" + [
|
|
47
|
+
/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,
|
|
48
|
+
/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,
|
|
49
|
+
/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,
|
|
50
|
+
/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,
|
|
51
|
+
/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source
|
|
52
|
+
].join("|") + ")";
|
|
53
|
+
var symbolName = /(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;
|
|
54
|
+
Prism.languages.insertBefore("ruby", "keyword", {
|
|
55
|
+
"regex-literal": [{
|
|
56
|
+
pattern: RegExp(/%r/.source + percentExpression + /[egimnosux]{0,6}/.source),
|
|
57
|
+
greedy: true,
|
|
58
|
+
inside: {
|
|
59
|
+
interpolation,
|
|
60
|
+
regex: /[\s\S]+/
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
pattern: /(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,
|
|
64
|
+
lookbehind: true,
|
|
65
|
+
greedy: true,
|
|
66
|
+
inside: {
|
|
67
|
+
interpolation,
|
|
68
|
+
regex: /[\s\S]+/
|
|
69
|
+
}
|
|
70
|
+
}],
|
|
71
|
+
variable: /[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,
|
|
72
|
+
symbol: [{
|
|
73
|
+
pattern: RegExp(/(^|[^:]):/.source + symbolName),
|
|
74
|
+
lookbehind: true,
|
|
75
|
+
greedy: true
|
|
76
|
+
}, {
|
|
77
|
+
pattern: RegExp(/([\r\n{(,][ \t]*)/.source + symbolName + /(?=:(?!:))/.source),
|
|
78
|
+
lookbehind: true,
|
|
79
|
+
greedy: true
|
|
80
|
+
}],
|
|
81
|
+
"method-definition": {
|
|
82
|
+
pattern: /(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,
|
|
83
|
+
lookbehind: true,
|
|
84
|
+
inside: {
|
|
85
|
+
function: /\b\w+$/,
|
|
86
|
+
keyword: /^self\b/,
|
|
87
|
+
"class-name": /^\w+/,
|
|
88
|
+
punctuation: /\./
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
Prism.languages.insertBefore("ruby", "string", {
|
|
93
|
+
"string-literal": [
|
|
94
|
+
{
|
|
95
|
+
pattern: RegExp(/%[qQiIwWs]?/.source + percentExpression),
|
|
96
|
+
greedy: true,
|
|
97
|
+
inside: {
|
|
98
|
+
interpolation,
|
|
99
|
+
string: /[\s\S]+/
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
pattern: /("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,
|
|
104
|
+
greedy: true,
|
|
105
|
+
inside: {
|
|
106
|
+
interpolation,
|
|
107
|
+
string: /[\s\S]+/
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
pattern: /<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
|
|
112
|
+
alias: "heredoc-string",
|
|
113
|
+
greedy: true,
|
|
114
|
+
inside: {
|
|
115
|
+
delimiter: {
|
|
116
|
+
pattern: /^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,
|
|
117
|
+
inside: {
|
|
118
|
+
symbol: /\b\w+/,
|
|
119
|
+
punctuation: /^<<[-~]?/
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
interpolation,
|
|
123
|
+
string: /[\s\S]+/
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
pattern: /<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,
|
|
128
|
+
alias: "heredoc-string",
|
|
129
|
+
greedy: true,
|
|
130
|
+
inside: {
|
|
131
|
+
delimiter: {
|
|
132
|
+
pattern: /^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,
|
|
133
|
+
inside: {
|
|
134
|
+
symbol: /\b\w+/,
|
|
135
|
+
punctuation: /^<<[-~]?'|'$/
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
string: /[\s\S]+/
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"command-literal": [{
|
|
143
|
+
pattern: RegExp(/%x/.source + percentExpression),
|
|
144
|
+
greedy: true,
|
|
145
|
+
inside: {
|
|
146
|
+
interpolation,
|
|
147
|
+
command: {
|
|
148
|
+
pattern: /[\s\S]+/,
|
|
149
|
+
alias: "string"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}, {
|
|
153
|
+
pattern: /`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,
|
|
154
|
+
greedy: true,
|
|
155
|
+
inside: {
|
|
156
|
+
interpolation,
|
|
157
|
+
command: {
|
|
158
|
+
pattern: /[\s\S]+/,
|
|
159
|
+
alias: "string"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}]
|
|
163
|
+
});
|
|
164
|
+
delete Prism.languages.ruby.string;
|
|
165
|
+
Prism.languages.insertBefore("ruby", "number", {
|
|
166
|
+
builtin: /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,
|
|
167
|
+
constant: /\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/
|
|
168
|
+
});
|
|
169
|
+
Prism.languages.rb = Prism.languages.ruby;
|
|
170
|
+
})(Prism);
|
|
171
|
+
}
|
|
172
|
+
//#endregion
|
|
173
|
+
export { ruby as default };
|
|
174
|
+
|
|
175
|
+
//# sourceMappingURL=ruby-BoFHz67P.js.map
|