@baseplate-dev/plugin-auth 0.6.15 → 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 +20 -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/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 +6 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +6 -3
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +3 -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 +6 -3
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +2 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +6 -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/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-D2O_GHnM.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-DPxqayXr.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-DGL7vJhO.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-IL2CfUDN.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} +10031 -3732
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-olZgW088.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-2sTWj7X2.js → common-23-wvKrM.js} +5 -5
- package/dist/web/assets/{common-D-CUPN3f.js → common-B-NI9TR-.js} +2 -2
- package/dist/web/assets/{common-BJslFOaI.js → common-BBriDRRy.js} +3 -3
- package/dist/web/assets/{common-2qsch56z.js → common-BvU-7KsV.js} +5 -5
- package/dist/web/assets/{common-DtVPzGI9.js → common-DBBUvtGu.js} +2 -2
- package/dist/web/assets/{common-BY8yEk1M.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-DiQ4J8N0.js → dist-BjxypexQ.js} +1397 -897
- package/dist/web/assets/{get-auth-plugin-definition-gCzcUybB.js → get-auth-plugin-definition-x8oAsN1R.js} +2 -2
- package/dist/web/assets/go-CzER04EZ.js +36 -0
- package/dist/web/assets/{hostInit-BPDI3Q4j.js → hostInit-Bay0Y9UX.js} +1 -1
- package/dist/web/assets/{index-BocHdii2.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-b337c957.js → mf-entry-bootstrap-0-659c976f.js} +2 -2
- package/dist/web/assets/{model-utils-BoeoBppL.js → model-utils-dNFTOjqi.js} +268 -25
- package/dist/web/assets/{models-CExR9mVk.js → models-BpslIbU7.js} +2 -2
- package/dist/web/assets/{models-Bb8Sa9xa.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-BSgRuyCf.js → plugin-definition-8Exesd6T.js} +2 -2
- package/dist/web/assets/{plugin-definition-DoLu-enC.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-DWNihayS.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-ZQ3-2Iup.js → virtualExposes-BwIds34r.js} +1 -1
- package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-joyeTHHj.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-Cxtxsg7w.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-BzJkYZS3.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DM6Ir1_S.js} +13 -13
- package/dist/web/assets/{web-CbftiK5A.js → web-BZd3bM0n.js} +6 -6
- package/dist/web/assets/{web-sVeHdqQo.js → web-BgWG7dYl.js} +10 -10
- package/dist/web/assets/{web-BbZNg5Ko.js → web-CXHw8SK7.js} +13 -13
- package/dist/web/assets/{web-DUQ-iyMI.js → web-CnB-sqCR.js} +18 -18
- package/dist/web/assets/{web-QvGnMr85.js → web-DHv2aVpi.js} +10 -10
- package/dist/web/assets/{web-pdVFZ-id.js → web-DNrWXjpS.js} +3 -3
- package/dist/web/assets/{web-BWF6Fc7g.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 +16 -16
- package/dist/web/assets/auth-BA-e6ORB.js +0 -1
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { t as markup } from "./markup-BVZ8HhdW.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {Refractor} from '../lib/core.js'
|
|
5
|
+
*/
|
|
6
|
+
markdown.displayName = "markdown";
|
|
7
|
+
markdown.aliases = ["md"];
|
|
8
|
+
/** @param {Refractor} Prism */
|
|
9
|
+
function markdown(Prism) {
|
|
10
|
+
Prism.register(markup);
|
|
11
|
+
(function(Prism) {
|
|
12
|
+
var inner = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
13
|
+
/**
|
|
14
|
+
* This function is intended for the creation of the bold or italic pattern.
|
|
15
|
+
*
|
|
16
|
+
* This also adds a lookbehind group to the given pattern to ensure that the pattern is not backslash-escaped.
|
|
17
|
+
*
|
|
18
|
+
* _Note:_ Keep in mind that this adds a capturing group.
|
|
19
|
+
*
|
|
20
|
+
* @param {string} pattern
|
|
21
|
+
* @returns {RegExp}
|
|
22
|
+
*/
|
|
23
|
+
function createInline(pattern) {
|
|
24
|
+
pattern = pattern.replace(/<inner>/g, function() {
|
|
25
|
+
return inner;
|
|
26
|
+
});
|
|
27
|
+
return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + pattern + ")");
|
|
28
|
+
}
|
|
29
|
+
var tableCell = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source;
|
|
30
|
+
var tableRow = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
|
31
|
+
return tableCell;
|
|
32
|
+
});
|
|
33
|
+
var tableLine = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
|
|
34
|
+
Prism.languages.markdown = Prism.languages.extend("markup", {});
|
|
35
|
+
Prism.languages.insertBefore("markdown", "prolog", {
|
|
36
|
+
"front-matter-block": {
|
|
37
|
+
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
|
38
|
+
lookbehind: true,
|
|
39
|
+
greedy: true,
|
|
40
|
+
inside: {
|
|
41
|
+
punctuation: /^---|---$/,
|
|
42
|
+
"front-matter": {
|
|
43
|
+
pattern: /\S+(?:\s+\S+)*/,
|
|
44
|
+
alias: ["yaml", "language-yaml"],
|
|
45
|
+
inside: Prism.languages.yaml
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
blockquote: {
|
|
50
|
+
pattern: /^>(?:[\t ]*>)*/m,
|
|
51
|
+
alias: "punctuation"
|
|
52
|
+
},
|
|
53
|
+
table: {
|
|
54
|
+
pattern: RegExp("^" + tableRow + tableLine + "(?:" + tableRow + ")*", "m"),
|
|
55
|
+
inside: {
|
|
56
|
+
"table-data-rows": {
|
|
57
|
+
pattern: RegExp("^(" + tableRow + tableLine + ")(?:" + tableRow + ")*$"),
|
|
58
|
+
lookbehind: true,
|
|
59
|
+
inside: {
|
|
60
|
+
"table-data": {
|
|
61
|
+
pattern: RegExp(tableCell),
|
|
62
|
+
inside: Prism.languages.markdown
|
|
63
|
+
},
|
|
64
|
+
punctuation: /\|/
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"table-line": {
|
|
68
|
+
pattern: RegExp("^(" + tableRow + ")" + tableLine + "$"),
|
|
69
|
+
lookbehind: true,
|
|
70
|
+
inside: { punctuation: /\||:?-{3,}:?/ }
|
|
71
|
+
},
|
|
72
|
+
"table-header-row": {
|
|
73
|
+
pattern: RegExp("^" + tableRow + "$"),
|
|
74
|
+
inside: {
|
|
75
|
+
"table-header": {
|
|
76
|
+
pattern: RegExp(tableCell),
|
|
77
|
+
alias: "important",
|
|
78
|
+
inside: Prism.languages.markdown
|
|
79
|
+
},
|
|
80
|
+
punctuation: /\|/
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
code: [{
|
|
86
|
+
pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
|
|
87
|
+
lookbehind: true,
|
|
88
|
+
alias: "keyword"
|
|
89
|
+
}, {
|
|
90
|
+
pattern: /^```[\s\S]*?^```$/m,
|
|
91
|
+
greedy: true,
|
|
92
|
+
inside: {
|
|
93
|
+
"code-block": {
|
|
94
|
+
pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
|
|
95
|
+
lookbehind: true
|
|
96
|
+
},
|
|
97
|
+
"code-language": {
|
|
98
|
+
pattern: /^(```).+/,
|
|
99
|
+
lookbehind: true
|
|
100
|
+
},
|
|
101
|
+
punctuation: /```/
|
|
102
|
+
}
|
|
103
|
+
}],
|
|
104
|
+
title: [{
|
|
105
|
+
pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
|
|
106
|
+
alias: "important",
|
|
107
|
+
inside: { punctuation: /==+$|--+$/ }
|
|
108
|
+
}, {
|
|
109
|
+
pattern: /(^\s*)#.+/m,
|
|
110
|
+
lookbehind: true,
|
|
111
|
+
alias: "important",
|
|
112
|
+
inside: { punctuation: /^#+|#+$/ }
|
|
113
|
+
}],
|
|
114
|
+
hr: {
|
|
115
|
+
pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
|
|
116
|
+
lookbehind: true,
|
|
117
|
+
alias: "punctuation"
|
|
118
|
+
},
|
|
119
|
+
list: {
|
|
120
|
+
pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
|
|
121
|
+
lookbehind: true,
|
|
122
|
+
alias: "punctuation"
|
|
123
|
+
},
|
|
124
|
+
"url-reference": {
|
|
125
|
+
pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
|
|
126
|
+
inside: {
|
|
127
|
+
variable: {
|
|
128
|
+
pattern: /^(!?\[)[^\]]+/,
|
|
129
|
+
lookbehind: true
|
|
130
|
+
},
|
|
131
|
+
string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
|
|
132
|
+
punctuation: /^[\[\]!:]|[<>]/
|
|
133
|
+
},
|
|
134
|
+
alias: "url"
|
|
135
|
+
},
|
|
136
|
+
bold: {
|
|
137
|
+
pattern: createInline(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),
|
|
138
|
+
lookbehind: true,
|
|
139
|
+
greedy: true,
|
|
140
|
+
inside: {
|
|
141
|
+
content: {
|
|
142
|
+
pattern: /(^..)[\s\S]+(?=..$)/,
|
|
143
|
+
lookbehind: true,
|
|
144
|
+
inside: {}
|
|
145
|
+
},
|
|
146
|
+
punctuation: /\*\*|__/
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
italic: {
|
|
150
|
+
pattern: createInline(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),
|
|
151
|
+
lookbehind: true,
|
|
152
|
+
greedy: true,
|
|
153
|
+
inside: {
|
|
154
|
+
content: {
|
|
155
|
+
pattern: /(^.)[\s\S]+(?=.$)/,
|
|
156
|
+
lookbehind: true,
|
|
157
|
+
inside: {}
|
|
158
|
+
},
|
|
159
|
+
punctuation: /[*_]/
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
strike: {
|
|
163
|
+
pattern: createInline(/(~~?)(?:(?!~)<inner>)+\2/.source),
|
|
164
|
+
lookbehind: true,
|
|
165
|
+
greedy: true,
|
|
166
|
+
inside: {
|
|
167
|
+
content: {
|
|
168
|
+
pattern: /(^~~?)[\s\S]+(?=\1$)/,
|
|
169
|
+
lookbehind: true,
|
|
170
|
+
inside: {}
|
|
171
|
+
},
|
|
172
|
+
punctuation: /~~?/
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"code-snippet": {
|
|
176
|
+
pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
|
|
177
|
+
lookbehind: true,
|
|
178
|
+
greedy: true,
|
|
179
|
+
alias: ["code", "keyword"]
|
|
180
|
+
},
|
|
181
|
+
url: {
|
|
182
|
+
pattern: createInline(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),
|
|
183
|
+
lookbehind: true,
|
|
184
|
+
greedy: true,
|
|
185
|
+
inside: {
|
|
186
|
+
operator: /^!/,
|
|
187
|
+
content: {
|
|
188
|
+
pattern: /(^\[)[^\]]+(?=\])/,
|
|
189
|
+
lookbehind: true,
|
|
190
|
+
inside: {}
|
|
191
|
+
},
|
|
192
|
+
variable: {
|
|
193
|
+
pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
|
|
194
|
+
lookbehind: true
|
|
195
|
+
},
|
|
196
|
+
url: {
|
|
197
|
+
pattern: /(^\]\()[^\s)]+/,
|
|
198
|
+
lookbehind: true
|
|
199
|
+
},
|
|
200
|
+
string: {
|
|
201
|
+
pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
|
|
202
|
+
lookbehind: true
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
[
|
|
208
|
+
"url",
|
|
209
|
+
"bold",
|
|
210
|
+
"italic",
|
|
211
|
+
"strike"
|
|
212
|
+
].forEach(function(token) {
|
|
213
|
+
[
|
|
214
|
+
"url",
|
|
215
|
+
"bold",
|
|
216
|
+
"italic",
|
|
217
|
+
"strike",
|
|
218
|
+
"code-snippet"
|
|
219
|
+
].forEach(function(inside) {
|
|
220
|
+
if (token !== inside) Prism.languages.markdown[token].inside.content.inside[inside] = Prism.languages.markdown[inside];
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
Prism.hooks.add("after-tokenize", function(env) {
|
|
224
|
+
if (env.language !== "markdown" && env.language !== "md") return;
|
|
225
|
+
function walkTokens(tokens) {
|
|
226
|
+
if (!tokens || typeof tokens === "string") return;
|
|
227
|
+
for (var i = 0, l = tokens.length; i < l; i++) {
|
|
228
|
+
var token = tokens[i];
|
|
229
|
+
if (token.type !== "code") {
|
|
230
|
+
walkTokens(token.content);
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
var codeLang = token.content[1];
|
|
234
|
+
var codeBlock = token.content[3];
|
|
235
|
+
if (codeLang && codeBlock && codeLang.type === "code-language" && codeBlock.type === "code-block" && typeof codeLang.content === "string") {
|
|
236
|
+
var lang = codeLang.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
237
|
+
lang = (/[a-z][\w-]*/i.exec(lang) || [""])[0].toLowerCase();
|
|
238
|
+
var alias = "language-" + lang;
|
|
239
|
+
if (!codeBlock.alias) codeBlock.alias = [alias];
|
|
240
|
+
else if (typeof codeBlock.alias === "string") codeBlock.alias = [codeBlock.alias, alias];
|
|
241
|
+
else codeBlock.alias.push(alias);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
walkTokens(env.tokens);
|
|
246
|
+
});
|
|
247
|
+
Prism.hooks.add("wrap", function(env) {
|
|
248
|
+
if (env.type !== "code-block") return;
|
|
249
|
+
var codeLang = "";
|
|
250
|
+
for (var i = 0, l = env.classes.length; i < l; i++) {
|
|
251
|
+
var cls = env.classes[i];
|
|
252
|
+
var match = /language-(.+)/.exec(cls);
|
|
253
|
+
if (match) {
|
|
254
|
+
codeLang = match[1];
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
var grammar = Prism.languages[codeLang];
|
|
259
|
+
if (!grammar) {
|
|
260
|
+
if (codeLang && codeLang !== "none" && Prism.plugins.autoloader) {
|
|
261
|
+
var id = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 0x2386f26fc10000);
|
|
262
|
+
env.attributes["id"] = id;
|
|
263
|
+
Prism.plugins.autoloader.loadLanguages(codeLang, function() {
|
|
264
|
+
var ele = document.getElementById(id);
|
|
265
|
+
if (ele) ele.innerHTML = Prism.highlight(ele.textContent, Prism.languages[codeLang], codeLang);
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
} else env.content = Prism.highlight(env.content.value, grammar, codeLang);
|
|
269
|
+
});
|
|
270
|
+
RegExp(Prism.languages.markup.tag.pattern.source, "gi");
|
|
271
|
+
String.fromCodePoint || String.fromCharCode;
|
|
272
|
+
Prism.languages.md = Prism.languages.markdown;
|
|
273
|
+
})(Prism);
|
|
274
|
+
}
|
|
275
|
+
//#endregion
|
|
276
|
+
export { markdown as default };
|
|
277
|
+
|
|
278
|
+
//# sourceMappingURL=markdown-_2_uVr2L.js.map
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { r as __exportAll } from "./rolldown-runtime-FZ4Itg2g.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.js
|
|
3
|
+
var markup_exports = /* @__PURE__ */ __exportAll({ default: () => markup });
|
|
4
|
+
/**
|
|
5
|
+
* @import {Refractor} from '../lib/core.js'
|
|
6
|
+
*/
|
|
7
|
+
markup.displayName = "markup";
|
|
8
|
+
markup.aliases = [
|
|
9
|
+
"atom",
|
|
10
|
+
"html",
|
|
11
|
+
"mathml",
|
|
12
|
+
"rss",
|
|
13
|
+
"ssml",
|
|
14
|
+
"svg",
|
|
15
|
+
"xml"
|
|
16
|
+
];
|
|
17
|
+
/** @param {Refractor} Prism */
|
|
18
|
+
function markup(Prism) {
|
|
19
|
+
Prism.languages.markup = {
|
|
20
|
+
comment: {
|
|
21
|
+
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
22
|
+
greedy: true
|
|
23
|
+
},
|
|
24
|
+
prolog: {
|
|
25
|
+
pattern: /<\?[\s\S]+?\?>/,
|
|
26
|
+
greedy: true
|
|
27
|
+
},
|
|
28
|
+
doctype: {
|
|
29
|
+
pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
|
|
30
|
+
greedy: true,
|
|
31
|
+
inside: {
|
|
32
|
+
"internal-subset": {
|
|
33
|
+
pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
|
|
34
|
+
lookbehind: true,
|
|
35
|
+
greedy: true,
|
|
36
|
+
inside: null
|
|
37
|
+
},
|
|
38
|
+
string: {
|
|
39
|
+
pattern: /"[^"]*"|'[^']*'/,
|
|
40
|
+
greedy: true
|
|
41
|
+
},
|
|
42
|
+
punctuation: /^<!|>$|[[\]]/,
|
|
43
|
+
"doctype-tag": /^DOCTYPE/i,
|
|
44
|
+
name: /[^\s<>'"]+/
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
cdata: {
|
|
48
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
49
|
+
greedy: true
|
|
50
|
+
},
|
|
51
|
+
tag: {
|
|
52
|
+
pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
|
|
53
|
+
greedy: true,
|
|
54
|
+
inside: {
|
|
55
|
+
tag: {
|
|
56
|
+
pattern: /^<\/?[^\s>\/]+/,
|
|
57
|
+
inside: {
|
|
58
|
+
punctuation: /^<\/?/,
|
|
59
|
+
namespace: /^[^\s>\/:]+:/
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"special-attr": [],
|
|
63
|
+
"attr-value": {
|
|
64
|
+
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
|
|
65
|
+
inside: { punctuation: [{
|
|
66
|
+
pattern: /^=/,
|
|
67
|
+
alias: "attr-equals"
|
|
68
|
+
}, {
|
|
69
|
+
pattern: /^(\s*)["']|["']$/,
|
|
70
|
+
lookbehind: true
|
|
71
|
+
}] }
|
|
72
|
+
},
|
|
73
|
+
punctuation: /\/?>/,
|
|
74
|
+
"attr-name": {
|
|
75
|
+
pattern: /[^\s>\/]+/,
|
|
76
|
+
inside: { namespace: /^[^\s>\/:]+:/ }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
entity: [{
|
|
81
|
+
pattern: /&[\da-z]{1,8};/i,
|
|
82
|
+
alias: "named-entity"
|
|
83
|
+
}, /&#x?[\da-f]{1,8};/i]
|
|
84
|
+
};
|
|
85
|
+
Prism.languages.markup["tag"].inside["attr-value"].inside["entity"] = Prism.languages.markup["entity"];
|
|
86
|
+
Prism.languages.markup["doctype"].inside["internal-subset"].inside = Prism.languages.markup;
|
|
87
|
+
Prism.hooks.add("wrap", function(env) {
|
|
88
|
+
if (env.type === "entity") env.attributes["title"] = env.content.value.replace(/&/, "&");
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
|
|
91
|
+
/**
|
|
92
|
+
* Adds an inlined language to markup.
|
|
93
|
+
*
|
|
94
|
+
* An example of an inlined language is CSS with `<style>` tags.
|
|
95
|
+
*
|
|
96
|
+
* @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
|
|
97
|
+
* case insensitive.
|
|
98
|
+
* @param {string} lang The language key.
|
|
99
|
+
* @example
|
|
100
|
+
* addInlined('style', 'css');
|
|
101
|
+
*/
|
|
102
|
+
value: function addInlined(tagName, lang) {
|
|
103
|
+
var includedCdataInside = {};
|
|
104
|
+
includedCdataInside["language-" + lang] = {
|
|
105
|
+
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
106
|
+
lookbehind: true,
|
|
107
|
+
inside: Prism.languages[lang]
|
|
108
|
+
};
|
|
109
|
+
includedCdataInside["cdata"] = /^<!\[CDATA\[|\]\]>$/i;
|
|
110
|
+
var inside = { "included-cdata": {
|
|
111
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
112
|
+
inside: includedCdataInside
|
|
113
|
+
} };
|
|
114
|
+
inside["language-" + lang] = {
|
|
115
|
+
pattern: /[\s\S]+/,
|
|
116
|
+
inside: Prism.languages[lang]
|
|
117
|
+
};
|
|
118
|
+
var def = {};
|
|
119
|
+
def[tagName] = {
|
|
120
|
+
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
121
|
+
return tagName;
|
|
122
|
+
}), "i"),
|
|
123
|
+
lookbehind: true,
|
|
124
|
+
greedy: true,
|
|
125
|
+
inside
|
|
126
|
+
};
|
|
127
|
+
Prism.languages.insertBefore("markup", "cdata", def);
|
|
128
|
+
} });
|
|
129
|
+
Object.defineProperty(Prism.languages.markup.tag, "addAttribute", {
|
|
130
|
+
/**
|
|
131
|
+
* Adds an pattern to highlight languages embedded in HTML attributes.
|
|
132
|
+
*
|
|
133
|
+
* An example of an inlined language is CSS with `style` attributes.
|
|
134
|
+
*
|
|
135
|
+
* @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
|
|
136
|
+
* case insensitive.
|
|
137
|
+
* @param {string} lang The language key.
|
|
138
|
+
* @example
|
|
139
|
+
* addAttribute('style', 'css');
|
|
140
|
+
*/
|
|
141
|
+
value: function(attrName, lang) {
|
|
142
|
+
Prism.languages.markup.tag.inside["special-attr"].push({
|
|
143
|
+
pattern: RegExp(/(^|["'\s])/.source + "(?:" + attrName + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"),
|
|
144
|
+
lookbehind: true,
|
|
145
|
+
inside: {
|
|
146
|
+
"attr-name": /^[^\s=]+/,
|
|
147
|
+
"attr-value": {
|
|
148
|
+
pattern: /=[\s\S]+/,
|
|
149
|
+
inside: {
|
|
150
|
+
value: {
|
|
151
|
+
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
152
|
+
lookbehind: true,
|
|
153
|
+
alias: [lang, "language-" + lang],
|
|
154
|
+
inside: Prism.languages[lang]
|
|
155
|
+
},
|
|
156
|
+
punctuation: [{
|
|
157
|
+
pattern: /^=/,
|
|
158
|
+
alias: "attr-equals"
|
|
159
|
+
}, /"|'/]
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
} });
|
|
165
|
+
Prism.languages.html = Prism.languages.markup;
|
|
166
|
+
Prism.languages.mathml = Prism.languages.markup;
|
|
167
|
+
Prism.languages.svg = Prism.languages.markup;
|
|
168
|
+
Prism.languages.xml = Prism.languages.extend("markup", {});
|
|
169
|
+
Prism.languages.ssml = Prism.languages.xml;
|
|
170
|
+
Prism.languages.atom = Prism.languages.xml;
|
|
171
|
+
Prism.languages.rss = Prism.languages.xml;
|
|
172
|
+
}
|
|
173
|
+
//#endregion
|
|
174
|
+
export { markup_exports as n, markup as t };
|
|
175
|
+
|
|
176
|
+
//# sourceMappingURL=markup-BVZ8HhdW.js.map
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { t as markup } from "./markup-BVZ8HhdW.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.js
|
|
3
|
+
/**
|
|
4
|
+
* @import {Refractor} from '../lib/core.js'
|
|
5
|
+
*/
|
|
6
|
+
markupTemplating.displayName = "markup-templating";
|
|
7
|
+
markupTemplating.aliases = [];
|
|
8
|
+
/** @param {Refractor} Prism */
|
|
9
|
+
function markupTemplating(Prism) {
|
|
10
|
+
Prism.register(markup);
|
|
11
|
+
(function(Prism) {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the placeholder for the given language id and index.
|
|
14
|
+
*
|
|
15
|
+
* @param {string} language
|
|
16
|
+
* @param {string|number} index
|
|
17
|
+
* @returns {string}
|
|
18
|
+
*/
|
|
19
|
+
function getPlaceholder(language, index) {
|
|
20
|
+
return "___" + language.toUpperCase() + index + "___";
|
|
21
|
+
}
|
|
22
|
+
Object.defineProperties(Prism.languages["markup-templating"] = {}, {
|
|
23
|
+
buildPlaceholders: {
|
|
24
|
+
/**
|
|
25
|
+
* Tokenize all inline templating expressions matching `placeholderPattern`.
|
|
26
|
+
*
|
|
27
|
+
* If `replaceFilter` is provided, only matches of `placeholderPattern` for which `replaceFilter` returns
|
|
28
|
+
* `true` will be replaced.
|
|
29
|
+
*
|
|
30
|
+
* @param {object} env The environment of the `before-tokenize` hook.
|
|
31
|
+
* @param {string} language The language id.
|
|
32
|
+
* @param {RegExp} placeholderPattern The matches of this pattern will be replaced by placeholders.
|
|
33
|
+
* @param {(match: string) => boolean} [replaceFilter]
|
|
34
|
+
*/
|
|
35
|
+
value: function(env, language, placeholderPattern, replaceFilter) {
|
|
36
|
+
if (env.language !== language) return;
|
|
37
|
+
var tokenStack = env.tokenStack = [];
|
|
38
|
+
env.code = env.code.replace(placeholderPattern, function(match) {
|
|
39
|
+
if (typeof replaceFilter === "function" && !replaceFilter(match)) return match;
|
|
40
|
+
var i = tokenStack.length;
|
|
41
|
+
var placeholder;
|
|
42
|
+
while (env.code.indexOf(placeholder = getPlaceholder(language, i)) !== -1) ++i;
|
|
43
|
+
tokenStack[i] = match;
|
|
44
|
+
return placeholder;
|
|
45
|
+
});
|
|
46
|
+
env.grammar = Prism.languages.markup;
|
|
47
|
+
} },
|
|
48
|
+
tokenizePlaceholders: {
|
|
49
|
+
/**
|
|
50
|
+
* Replace placeholders with proper tokens after tokenizing.
|
|
51
|
+
*
|
|
52
|
+
* @param {object} env The environment of the `after-tokenize` hook.
|
|
53
|
+
* @param {string} language The language id.
|
|
54
|
+
*/
|
|
55
|
+
value: function(env, language) {
|
|
56
|
+
if (env.language !== language || !env.tokenStack) return;
|
|
57
|
+
env.grammar = Prism.languages[language];
|
|
58
|
+
var j = 0;
|
|
59
|
+
var keys = Object.keys(env.tokenStack);
|
|
60
|
+
function walkTokens(tokens) {
|
|
61
|
+
for (var i = 0; i < tokens.length; i++) {
|
|
62
|
+
if (j >= keys.length) break;
|
|
63
|
+
var token = tokens[i];
|
|
64
|
+
if (typeof token === "string" || token.content && typeof token.content === "string") {
|
|
65
|
+
var k = keys[j];
|
|
66
|
+
var t = env.tokenStack[k];
|
|
67
|
+
var s = typeof token === "string" ? token : token.content;
|
|
68
|
+
var placeholder = getPlaceholder(language, k);
|
|
69
|
+
var index = s.indexOf(placeholder);
|
|
70
|
+
if (index > -1) {
|
|
71
|
+
++j;
|
|
72
|
+
var before = s.substring(0, index);
|
|
73
|
+
var middle = new Prism.Token(language, Prism.tokenize(t, env.grammar), "language-" + language, t);
|
|
74
|
+
var after = s.substring(index + placeholder.length);
|
|
75
|
+
var replacement = [];
|
|
76
|
+
if (before) replacement.push.apply(replacement, walkTokens([before]));
|
|
77
|
+
replacement.push(middle);
|
|
78
|
+
if (after) replacement.push.apply(replacement, walkTokens([after]));
|
|
79
|
+
if (typeof token === "string") tokens.splice.apply(tokens, [i, 1].concat(replacement));
|
|
80
|
+
else token.content = replacement;
|
|
81
|
+
}
|
|
82
|
+
} else if (token.content) walkTokens(token.content);
|
|
83
|
+
}
|
|
84
|
+
return tokens;
|
|
85
|
+
}
|
|
86
|
+
walkTokens(env.tokens);
|
|
87
|
+
} }
|
|
88
|
+
});
|
|
89
|
+
})(Prism);
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
export { markupTemplating as default };
|
|
93
|
+
|
|
94
|
+
//# sourceMappingURL=markup-templating-BDIRuVJH.js.map
|
package/dist/web/assets/{mf-entry-bootstrap-0-b337c957.js → mf-entry-bootstrap-0-659c976f.js}
RENAMED
|
@@ -25,11 +25,11 @@ const __mfImport = (src) =>
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
(async () => {
|
|
28
|
-
const __mfHostInit = await __mfImport("./hostInit-
|
|
28
|
+
const __mfHostInit = await __mfImport("./hostInit-Bay0Y9UX.js");
|
|
29
29
|
await __mfHostInit.__tla;
|
|
30
30
|
const { initHost } = __mfHostInit;
|
|
31
31
|
await initHost();
|
|
32
32
|
if (__mfModuleCache.pendingShareLoads) {
|
|
33
33
|
await Promise.all(__mfModuleCache.pendingShareLoads);
|
|
34
34
|
}
|
|
35
|
-
})().then(() => __mfImport("./index-
|
|
35
|
+
})().then(() => __mfImport("./index-qso1IsKy.js"));
|