@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,301 @@
|
|
|
1
|
+
import { t as clike } from "./clike-D9YNFwtw.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {Refractor} from '../lib/core.js'
|
|
5
|
+
*/
|
|
6
|
+
csharp.displayName = "csharp";
|
|
7
|
+
csharp.aliases = ["cs", "dotnet"];
|
|
8
|
+
/** @param {Refractor} Prism */
|
|
9
|
+
function csharp(Prism) {
|
|
10
|
+
Prism.register(clike);
|
|
11
|
+
(function(Prism) {
|
|
12
|
+
/**
|
|
13
|
+
* Replaces all placeholders "<<n>>" of given pattern with the n-th replacement (zero based).
|
|
14
|
+
*
|
|
15
|
+
* Note: This is a simple text based replacement. Be careful when using backreferences!
|
|
16
|
+
*
|
|
17
|
+
* @param {string} pattern the given pattern.
|
|
18
|
+
* @param {string[]} replacements a list of replacement which can be inserted into the given pattern.
|
|
19
|
+
* @returns {string} the pattern with all placeholders replaced with their corresponding replacements.
|
|
20
|
+
* @example replace(/a<<0>>a/.source, [/b+/.source]) === /a(?:b+)a/.source
|
|
21
|
+
*/
|
|
22
|
+
function replace(pattern, replacements) {
|
|
23
|
+
return pattern.replace(/<<(\d+)>>/g, function(m, index) {
|
|
24
|
+
return "(?:" + replacements[+index] + ")";
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @param {string} pattern
|
|
29
|
+
* @param {string[]} replacements
|
|
30
|
+
* @param {string} [flags]
|
|
31
|
+
* @returns {RegExp}
|
|
32
|
+
*/
|
|
33
|
+
function re(pattern, replacements, flags) {
|
|
34
|
+
return RegExp(replace(pattern, replacements), flags || "");
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Creates a nested pattern where all occurrences of the string `<<self>>` are replaced with the pattern itself.
|
|
38
|
+
*
|
|
39
|
+
* @param {string} pattern
|
|
40
|
+
* @param {number} depthLog2
|
|
41
|
+
* @returns {string}
|
|
42
|
+
*/
|
|
43
|
+
function nested(pattern, depthLog2) {
|
|
44
|
+
for (var i = 0; i < depthLog2; i++) pattern = pattern.replace(/<<self>>/g, function() {
|
|
45
|
+
return "(?:" + pattern + ")";
|
|
46
|
+
});
|
|
47
|
+
return pattern.replace(/<<self>>/g, "[^\\s\\S]");
|
|
48
|
+
}
|
|
49
|
+
var keywordKinds = {
|
|
50
|
+
type: "bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",
|
|
51
|
+
typeDeclaration: "class enum interface record struct",
|
|
52
|
+
contextual: "add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",
|
|
53
|
+
other: "abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"
|
|
54
|
+
};
|
|
55
|
+
function keywordsToPattern(words) {
|
|
56
|
+
return "\\b(?:" + words.trim().replace(/ /g, "|") + ")\\b";
|
|
57
|
+
}
|
|
58
|
+
var typeDeclarationKeywords = keywordsToPattern(keywordKinds.typeDeclaration);
|
|
59
|
+
var keywords = RegExp(keywordsToPattern(keywordKinds.type + " " + keywordKinds.typeDeclaration + " " + keywordKinds.contextual + " " + keywordKinds.other));
|
|
60
|
+
var nonTypeKeywords = keywordsToPattern(keywordKinds.typeDeclaration + " " + keywordKinds.contextual + " " + keywordKinds.other);
|
|
61
|
+
var nonContextualKeywords = keywordsToPattern(keywordKinds.type + " " + keywordKinds.typeDeclaration + " " + keywordKinds.other);
|
|
62
|
+
var generic = nested(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2);
|
|
63
|
+
var nestedRound = nested(/\((?:[^()]|<<self>>)*\)/.source, 2);
|
|
64
|
+
var name = /@?\b[A-Za-z_]\w*\b/.source;
|
|
65
|
+
var genericName = replace(/<<0>>(?:\s*<<1>>)?/.source, [name, generic]);
|
|
66
|
+
var identifier = replace(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [nonTypeKeywords, genericName]);
|
|
67
|
+
var array = /\[\s*(?:,\s*)*\]/.source;
|
|
68
|
+
var typeExpressionWithoutTuple = replace(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source, [identifier, array]);
|
|
69
|
+
var tupleElement = replace(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source, [
|
|
70
|
+
generic,
|
|
71
|
+
nestedRound,
|
|
72
|
+
array
|
|
73
|
+
]);
|
|
74
|
+
var tuple = replace(/\(<<0>>+(?:,<<0>>+)+\)/.source, [tupleElement]);
|
|
75
|
+
var typeExpression = replace(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source, [
|
|
76
|
+
tuple,
|
|
77
|
+
identifier,
|
|
78
|
+
array
|
|
79
|
+
]);
|
|
80
|
+
var typeInside = {
|
|
81
|
+
keyword: keywords,
|
|
82
|
+
punctuation: /[<>()?,.:[\]]/
|
|
83
|
+
};
|
|
84
|
+
var character = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source;
|
|
85
|
+
var regularString = /"(?:\\.|[^\\"\r\n])*"/.source;
|
|
86
|
+
var verbatimString = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
87
|
+
Prism.languages.csharp = Prism.languages.extend("clike", {
|
|
88
|
+
string: [{
|
|
89
|
+
pattern: re(/(^|[^$\\])<<0>>/.source, [verbatimString]),
|
|
90
|
+
lookbehind: true,
|
|
91
|
+
greedy: true
|
|
92
|
+
}, {
|
|
93
|
+
pattern: re(/(^|[^@$\\])<<0>>/.source, [regularString]),
|
|
94
|
+
lookbehind: true,
|
|
95
|
+
greedy: true
|
|
96
|
+
}],
|
|
97
|
+
"class-name": [
|
|
98
|
+
{
|
|
99
|
+
pattern: re(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source, [identifier]),
|
|
100
|
+
lookbehind: true,
|
|
101
|
+
inside: typeInside
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
pattern: re(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source, [name, typeExpression]),
|
|
105
|
+
lookbehind: true,
|
|
106
|
+
inside: typeInside
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
pattern: re(/(\busing\s+)<<0>>(?=\s*=)/.source, [name]),
|
|
110
|
+
lookbehind: true
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
pattern: re(/(\b<<0>>\s+)<<1>>/.source, [typeDeclarationKeywords, genericName]),
|
|
114
|
+
lookbehind: true,
|
|
115
|
+
inside: typeInside
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
pattern: re(/(\bcatch\s*\(\s*)<<0>>/.source, [identifier]),
|
|
119
|
+
lookbehind: true,
|
|
120
|
+
inside: typeInside
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
pattern: re(/(\bwhere\s+)<<0>>/.source, [name]),
|
|
124
|
+
lookbehind: true
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
pattern: re(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [typeExpressionWithoutTuple]),
|
|
128
|
+
lookbehind: true,
|
|
129
|
+
inside: typeInside
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
pattern: re(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source, [
|
|
133
|
+
typeExpression,
|
|
134
|
+
nonContextualKeywords,
|
|
135
|
+
name
|
|
136
|
+
]),
|
|
137
|
+
inside: typeInside
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
keyword: keywords,
|
|
141
|
+
number: /(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,
|
|
142
|
+
operator: />>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,
|
|
143
|
+
punctuation: /\?\.?|::|[{}[\];(),.:]/
|
|
144
|
+
});
|
|
145
|
+
Prism.languages.insertBefore("csharp", "number", { range: {
|
|
146
|
+
pattern: /\.\./,
|
|
147
|
+
alias: "operator"
|
|
148
|
+
} });
|
|
149
|
+
Prism.languages.insertBefore("csharp", "punctuation", { "named-parameter": {
|
|
150
|
+
pattern: re(/([(,]\s*)<<0>>(?=\s*:)/.source, [name]),
|
|
151
|
+
lookbehind: true,
|
|
152
|
+
alias: "punctuation"
|
|
153
|
+
} });
|
|
154
|
+
Prism.languages.insertBefore("csharp", "class-name", {
|
|
155
|
+
namespace: {
|
|
156
|
+
pattern: re(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source, [name]),
|
|
157
|
+
lookbehind: true,
|
|
158
|
+
inside: { punctuation: /\./ }
|
|
159
|
+
},
|
|
160
|
+
"type-expression": {
|
|
161
|
+
pattern: re(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source, [nestedRound]),
|
|
162
|
+
lookbehind: true,
|
|
163
|
+
alias: "class-name",
|
|
164
|
+
inside: typeInside
|
|
165
|
+
},
|
|
166
|
+
"return-type": {
|
|
167
|
+
pattern: re(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source, [typeExpression, identifier]),
|
|
168
|
+
inside: typeInside,
|
|
169
|
+
alias: "class-name"
|
|
170
|
+
},
|
|
171
|
+
"constructor-invocation": {
|
|
172
|
+
pattern: re(/(\bnew\s+)<<0>>(?=\s*[[({])/.source, [typeExpression]),
|
|
173
|
+
lookbehind: true,
|
|
174
|
+
inside: typeInside,
|
|
175
|
+
alias: "class-name"
|
|
176
|
+
},
|
|
177
|
+
"generic-method": {
|
|
178
|
+
pattern: re(/<<0>>\s*<<1>>(?=\s*\()/.source, [name, generic]),
|
|
179
|
+
inside: {
|
|
180
|
+
function: re(/^<<0>>/.source, [name]),
|
|
181
|
+
generic: {
|
|
182
|
+
pattern: RegExp(generic),
|
|
183
|
+
alias: "class-name",
|
|
184
|
+
inside: typeInside
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"type-list": {
|
|
189
|
+
pattern: re(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source, [
|
|
190
|
+
typeDeclarationKeywords,
|
|
191
|
+
genericName,
|
|
192
|
+
name,
|
|
193
|
+
typeExpression,
|
|
194
|
+
keywords.source,
|
|
195
|
+
nestedRound,
|
|
196
|
+
/\bnew\s*\(\s*\)/.source
|
|
197
|
+
]),
|
|
198
|
+
lookbehind: true,
|
|
199
|
+
inside: {
|
|
200
|
+
"record-arguments": {
|
|
201
|
+
pattern: re(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source, [genericName, nestedRound]),
|
|
202
|
+
lookbehind: true,
|
|
203
|
+
greedy: true,
|
|
204
|
+
inside: Prism.languages.csharp
|
|
205
|
+
},
|
|
206
|
+
keyword: keywords,
|
|
207
|
+
"class-name": {
|
|
208
|
+
pattern: RegExp(typeExpression),
|
|
209
|
+
greedy: true,
|
|
210
|
+
inside: typeInside
|
|
211
|
+
},
|
|
212
|
+
punctuation: /[,()]/
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
preprocessor: {
|
|
216
|
+
pattern: /(^[\t ]*)#.*/m,
|
|
217
|
+
lookbehind: true,
|
|
218
|
+
alias: "property",
|
|
219
|
+
inside: { directive: {
|
|
220
|
+
pattern: /(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,
|
|
221
|
+
lookbehind: true,
|
|
222
|
+
alias: "keyword"
|
|
223
|
+
} }
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
var regularStringOrCharacter = regularString + "|" + character;
|
|
227
|
+
var regularStringCharacterOrComment = replace(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source, [regularStringOrCharacter]);
|
|
228
|
+
var roundExpression = nested(replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [regularStringCharacterOrComment]), 2);
|
|
229
|
+
var attrTarget = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source;
|
|
230
|
+
var attr = replace(/<<0>>(?:\s*\(<<1>>*\))?/.source, [identifier, roundExpression]);
|
|
231
|
+
Prism.languages.insertBefore("csharp", "class-name", { attribute: {
|
|
232
|
+
pattern: re(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source, [attrTarget, attr]),
|
|
233
|
+
lookbehind: true,
|
|
234
|
+
greedy: true,
|
|
235
|
+
inside: {
|
|
236
|
+
target: {
|
|
237
|
+
pattern: re(/^<<0>>(?=\s*:)/.source, [attrTarget]),
|
|
238
|
+
alias: "keyword"
|
|
239
|
+
},
|
|
240
|
+
"attribute-arguments": {
|
|
241
|
+
pattern: re(/\(<<0>>*\)/.source, [roundExpression]),
|
|
242
|
+
inside: Prism.languages.csharp
|
|
243
|
+
},
|
|
244
|
+
"class-name": {
|
|
245
|
+
pattern: RegExp(identifier),
|
|
246
|
+
inside: { punctuation: /\./ }
|
|
247
|
+
},
|
|
248
|
+
punctuation: /[:,]/
|
|
249
|
+
}
|
|
250
|
+
} });
|
|
251
|
+
var formatString = /:[^}\r\n]+/.source;
|
|
252
|
+
var mInterpolationRound = nested(replace(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [regularStringCharacterOrComment]), 2);
|
|
253
|
+
var mInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [mInterpolationRound, formatString]);
|
|
254
|
+
var sInterpolationRound = nested(replace(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source, [regularStringOrCharacter]), 2);
|
|
255
|
+
var sInterpolation = replace(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [sInterpolationRound, formatString]);
|
|
256
|
+
function createInterpolationInside(interpolation, interpolationRound) {
|
|
257
|
+
return {
|
|
258
|
+
interpolation: {
|
|
259
|
+
pattern: re(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [interpolation]),
|
|
260
|
+
lookbehind: true,
|
|
261
|
+
inside: {
|
|
262
|
+
"format-string": {
|
|
263
|
+
pattern: re(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source, [interpolationRound, formatString]),
|
|
264
|
+
lookbehind: true,
|
|
265
|
+
inside: { punctuation: /^:/ }
|
|
266
|
+
},
|
|
267
|
+
punctuation: /^\{|\}$/,
|
|
268
|
+
expression: {
|
|
269
|
+
pattern: /[\s\S]+/,
|
|
270
|
+
alias: "language-csharp",
|
|
271
|
+
inside: Prism.languages.csharp
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
string: /[\s\S]+/
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
Prism.languages.insertBefore("csharp", "string", {
|
|
279
|
+
"interpolation-string": [{
|
|
280
|
+
pattern: re(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source, [mInterpolation]),
|
|
281
|
+
lookbehind: true,
|
|
282
|
+
greedy: true,
|
|
283
|
+
inside: createInterpolationInside(mInterpolation, mInterpolationRound)
|
|
284
|
+
}, {
|
|
285
|
+
pattern: re(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [sInterpolation]),
|
|
286
|
+
lookbehind: true,
|
|
287
|
+
greedy: true,
|
|
288
|
+
inside: createInterpolationInside(sInterpolation, sInterpolationRound)
|
|
289
|
+
}],
|
|
290
|
+
char: {
|
|
291
|
+
pattern: RegExp(character),
|
|
292
|
+
greedy: true
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
Prism.languages.dotnet = Prism.languages.cs = Prism.languages.csharp;
|
|
296
|
+
})(Prism);
|
|
297
|
+
}
|
|
298
|
+
//#endregion
|
|
299
|
+
export { csharp as default };
|
|
300
|
+
|
|
301
|
+
//# sourceMappingURL=csharp-0LZzOc6Q.js.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Refractor} from '../lib/core.js'
|
|
4
|
+
*/
|
|
5
|
+
css.displayName = "css";
|
|
6
|
+
css.aliases = [];
|
|
7
|
+
/** @param {Refractor} Prism */
|
|
8
|
+
function css(Prism) {
|
|
9
|
+
(function(Prism) {
|
|
10
|
+
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
11
|
+
Prism.languages.css = {
|
|
12
|
+
comment: /\/\*[\s\S]*?\*\//,
|
|
13
|
+
atrule: {
|
|
14
|
+
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + string.source + ")*?" + /(?:;|(?=\s*\{))/.source),
|
|
15
|
+
inside: {
|
|
16
|
+
rule: /^@[\w-]+/,
|
|
17
|
+
"selector-function-argument": {
|
|
18
|
+
pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,
|
|
19
|
+
lookbehind: true,
|
|
20
|
+
alias: "selector"
|
|
21
|
+
},
|
|
22
|
+
keyword: {
|
|
23
|
+
pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/,
|
|
24
|
+
lookbehind: true
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
url: {
|
|
29
|
+
pattern: RegExp("\\burl\\((?:" + string.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
|
|
30
|
+
greedy: true,
|
|
31
|
+
inside: {
|
|
32
|
+
function: /^url/i,
|
|
33
|
+
punctuation: /^\(|\)$/,
|
|
34
|
+
string: {
|
|
35
|
+
pattern: RegExp("^" + string.source + "$"),
|
|
36
|
+
alias: "url"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
selector: {
|
|
41
|
+
pattern: RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|" + string.source + ")*(?=\\s*\\{)"),
|
|
42
|
+
lookbehind: true
|
|
43
|
+
},
|
|
44
|
+
string: {
|
|
45
|
+
pattern: string,
|
|
46
|
+
greedy: true
|
|
47
|
+
},
|
|
48
|
+
property: {
|
|
49
|
+
pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,
|
|
50
|
+
lookbehind: true
|
|
51
|
+
},
|
|
52
|
+
important: /!important\b/i,
|
|
53
|
+
function: {
|
|
54
|
+
pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,
|
|
55
|
+
lookbehind: true
|
|
56
|
+
},
|
|
57
|
+
punctuation: /[(){};:,]/
|
|
58
|
+
};
|
|
59
|
+
Prism.languages.css["atrule"].inside.rest = Prism.languages.css;
|
|
60
|
+
var markup = Prism.languages.markup;
|
|
61
|
+
if (markup) {
|
|
62
|
+
markup.tag.addInlined("style", "css");
|
|
63
|
+
markup.tag.addAttribute("style", "css");
|
|
64
|
+
}
|
|
65
|
+
})(Prism);
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { css as default };
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=css-D7TbgetL.js.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.js
|
|
2
|
+
/**
|
|
3
|
+
* @import {Refractor} from '../lib/core.js'
|
|
4
|
+
*/
|
|
5
|
+
diff.displayName = "diff";
|
|
6
|
+
diff.aliases = [];
|
|
7
|
+
/** @param {Refractor} Prism */
|
|
8
|
+
function diff(Prism) {
|
|
9
|
+
(function(Prism) {
|
|
10
|
+
Prism.languages.diff = { coord: [
|
|
11
|
+
/^(?:\*{3}|-{3}|\+{3}).*$/m,
|
|
12
|
+
/^@@.*@@$/m,
|
|
13
|
+
/^\d.*$/m
|
|
14
|
+
] };
|
|
15
|
+
/**
|
|
16
|
+
* A map from the name of a block to its line prefix.
|
|
17
|
+
*
|
|
18
|
+
* @type {Object<string, string>}
|
|
19
|
+
*/
|
|
20
|
+
var PREFIXES = {
|
|
21
|
+
"deleted-sign": "-",
|
|
22
|
+
"deleted-arrow": "<",
|
|
23
|
+
"inserted-sign": "+",
|
|
24
|
+
"inserted-arrow": ">",
|
|
25
|
+
unchanged: " ",
|
|
26
|
+
diff: "!"
|
|
27
|
+
};
|
|
28
|
+
Object.keys(PREFIXES).forEach(function(name) {
|
|
29
|
+
var prefix = PREFIXES[name];
|
|
30
|
+
var alias = [];
|
|
31
|
+
if (!/^\w+$/.test(name)) alias.push(/\w+/.exec(name)[0]);
|
|
32
|
+
if (name === "diff") alias.push("bold");
|
|
33
|
+
Prism.languages.diff[name] = {
|
|
34
|
+
pattern: RegExp("^(?:[" + prefix + "].*(?:\r\n?|\n|(?![\\s\\S])))+", "m"),
|
|
35
|
+
alias,
|
|
36
|
+
inside: {
|
|
37
|
+
line: {
|
|
38
|
+
pattern: /(.)(?=[\s\S]).*(?:\r\n?|\n)?/,
|
|
39
|
+
lookbehind: true
|
|
40
|
+
},
|
|
41
|
+
prefix: {
|
|
42
|
+
pattern: /[\s\S]/,
|
|
43
|
+
alias: /\w+/.exec(name)[0]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(Prism.languages.diff, "PREFIXES", { value: PREFIXES });
|
|
49
|
+
})(Prism);
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { diff as default };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=diff-CtSa_15w.js.map
|