Skip to content

Commit

Permalink
Deploying to gh-pages from @ 4dfe534 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
blokhin committed Jul 29, 2024
1 parent b82dd69 commit 5aca4a5
Show file tree
Hide file tree
Showing 17 changed files with 1,547 additions and 881 deletions.
553 changes: 317 additions & 236 deletions node.d.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion node.d.ts.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion node.deps.json

Large diffs are not rendered by default.

140 changes: 132 additions & 8 deletions node.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,12 @@ var $;
var $;
(function ($) {
function $mol_promise_like(val) {
return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
try {
return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
}
catch {
return false;
}
}
$.$mol_promise_like = $mol_promise_like;
})($ || ($ = {}));
Expand Down Expand Up @@ -6327,6 +6332,7 @@ var $;
(function ($) {
$.$mol_syntax2_md_flow = new $mol_syntax2({
'quote': /^((?:(?:[>"] )(?:[^]*?)$(\r?\n?))+)([\n\r]*)/,
'spoiler': /^((?:(?:[\?] )(?:[^]*?)$(\r?\n?))+)([\n\r]*)/,
'header': /^([#=]+)(\s+)(.*?)$([\n\r]*)/,
'list': /^((?:(?: ?([*+-])|(?:\d+[\.\)])+) +(?:[^]*?)$(?:\r?\n?)(?: (?:[^]*?)$(?:\r?\n?))*)+)((?:\r?\n)*)/,
'code': /^(```\s*)([\w.-]*)[\r\n]+([^]*?)^(```)$([\n\r]*)/,
Expand Down Expand Up @@ -7009,11 +7015,6 @@ var $;
Rows: {
padding: $mol_gap.text,
},
Row: {
font: {
family: 'inherit',
},
},
Copy: {
alignSelf: 'flex-start',
justifySelf: 'flex-start',
Expand Down Expand Up @@ -9500,7 +9501,7 @@ var $;
"use strict";
var $;
(function ($) {
$mol_style_attach("mol/check/expand/expand.view.css", "[mol_check_expand] {\n\tmin-width: 20px;\n}\n\n:where([mol_check_expand][disabled]) [mol_check_expand_icon] {\n\tvisibility: hidden;\n}\n\n[mol_check_expand_icon] {\n\tbox-shadow: none;\n}\n[mol_check_expand_icon] {\n\ttransform: rotateZ(0deg);\n}\n\n:where([mol_check_checked]) [mol_check_expand_icon] {\n\ttransform: rotateZ(90deg);\n}\n\n[mol_check_expand_icon] {\n\tvertical-align: text-top;\n}\n\n[mol_check_expand_label] {\n\tmargin-left: 0;\n}\n");
$mol_style_attach("mol/check/expand/expand.view.css", "[mol_check_expand] {\n\tmin-width: 20px;\n}\n\n:where([mol_check_expand][disabled]) [mol_check_expand_icon] {\n\tvisibility: hidden;\n}\n\n[mol_check_expand_icon] {\n\tbox-shadow: none;\n\tmargin-left: -0.375rem;\n}\n[mol_check_expand_icon] {\n\ttransform: rotateZ(0deg);\n}\n\n:where([mol_check_checked]) [mol_check_expand_icon] {\n\ttransform: rotateZ(90deg);\n}\n\n[mol_check_expand_icon] {\n\tvertical-align: text-top;\n}\n\n[mol_check_expand_label] {\n\tmargin-left: 0;\n}\n");
})($ || ($ = {}));

;
Expand Down Expand Up @@ -10243,6 +10244,85 @@ var $;
})($$ = $.$$ || ($.$$ = {}));
})($ || ($ = {}));

;
($.$mol_expander) = class $mol_expander extends ($.$mol_list) {
expanded(next){
if(next !== undefined) return next;
return false;
}
expandable(){
return true;
}
label(){
return [(this?.title())];
}
Trigger(){
const obj = new this.$.$mol_check_expand();
(obj.checked) = (next) => ((this?.expanded(next)));
(obj.expandable) = () => ((this?.expandable()));
(obj.label) = () => ((this?.label()));
return obj;
}
Tools(){
return null;
}
Label(){
const obj = new this.$.$mol_view();
(obj.sub) = () => ([(this?.Trigger()), (this?.Tools())]);
return obj;
}
content(){
return [];
}
Content(){
const obj = new this.$.$mol_list();
(obj.rows) = () => ((this?.content()));
return obj;
}
rows(){
return [(this?.Label()), (this?.Content())];
}
};
($mol_mem(($.$mol_expander.prototype), "expanded"));
($mol_mem(($.$mol_expander.prototype), "Trigger"));
($mol_mem(($.$mol_expander.prototype), "Label"));
($mol_mem(($.$mol_expander.prototype), "Content"));


;
"use strict";

;
"use strict";
var $;
(function ($) {
var $$;
(function ($$) {
class $mol_expander extends $.$mol_expander {
rows() {
return [
this.Label(),
...this.expanded() ? [this.Content()] : []
];
}
expandable() {
return this.content().length > 0;
}
}
__decorate([
$mol_mem
], $mol_expander.prototype, "rows", null);
$$.$mol_expander = $mol_expander;
})($$ = $.$$ || ($.$$ = {}));
})($ || ($ = {}));

;
"use strict";
var $;
(function ($) {
$mol_style_attach("mol/expander/expander.view.css", "[mol_expander] {\n\tflex-direction: column;\n}\n\n[mol_expander_label] {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tborder-radius: var(--mol_gap_round);\n}\n\n[mol_expander_trigger] {\n\tflex: auto;\n\tposition: relative;\n}\n");
})($ || ($ = {}));

;
($.$mol_text) = class $mol_text extends ($.$mol_list) {
auto_scroll(){
Expand Down Expand Up @@ -10320,6 +10400,22 @@ var $;
link_host(id){
return "";
}
spoiler_label(id){
return "";
}
Spoiler_label(id){
const obj = new this.$.$mol_text();
(obj.text) = () => ((this?.spoiler_label(id)));
return obj;
}
spoiler_content(id){
return "";
}
Spoiler_content(id){
const obj = new this.$.$mol_text();
(obj.text) = () => ((this?.spoiler_content(id)));
return obj;
}
uri_base(){
return "";
}
Expand Down Expand Up @@ -10461,7 +10557,15 @@ var $;
(obj.title) = () => ((this?.line_text(id)));
return obj;
}
Spoiler(id){
const obj = new this.$.$mol_expander();
(obj.label) = () => ([(this?.Spoiler_label(id))]);
(obj.content) = () => ([(this?.Spoiler_content(id))]);
return obj;
}
};
($mol_mem_key(($.$mol_text.prototype), "Spoiler_label"));
($mol_mem_key(($.$mol_text.prototype), "Spoiler_content"));
($mol_mem_key(($.$mol_text.prototype), "Paragraph"));
($mol_mem_key(($.$mol_text.prototype), "Quote"));
($mol_mem_key(($.$mol_text.prototype), "List"));
Expand All @@ -10480,6 +10584,7 @@ var $;
($mol_mem_key(($.$mol_text.prototype), "Link"));
($mol_mem_key(($.$mol_text.prototype), "Link_http"));
($mol_mem_key(($.$mol_text.prototype), "Embed"));
($mol_mem_key(($.$mol_text.prototype), "Spoiler"));
($.$mol_text_header) = class $mol_text_header extends ($.$mol_paragraph) {
arg(){
return {};
Expand Down Expand Up @@ -10537,6 +10642,7 @@ var $;
return this.flow_tokens().map(({ name }, index) => {
switch (name) {
case 'quote': return this.Quote(index);
case 'spoiler': return this.Spoiler(index);
case 'header': return this.Header(index);
case 'list': return this.List(index);
case 'code': return this.Pre(index);
Expand Down Expand Up @@ -10722,6 +10828,15 @@ var $;
new $mol_after_tick(() => this.ensure_visible(header));
}
}
spoiler_rows(index) {
return this.flow_tokens()[index].chunks[0].replace(/^[\?] /mg, '').split('\n');
}
spoiler_label(index) {
return this.spoiler_rows(index)[0];
}
spoiler_content(index) {
return this.spoiler_rows(index).slice(1).join('\n');
}
}
__decorate([
$mol_mem
Expand Down Expand Up @@ -10810,6 +10925,15 @@ var $;
__decorate([
$mol_mem
], $mol_text.prototype, "auto_scroll", null);
__decorate([
$mol_mem_key
], $mol_text.prototype, "spoiler_rows", null);
__decorate([
$mol_mem_key
], $mol_text.prototype, "spoiler_label", null);
__decorate([
$mol_mem_key
], $mol_text.prototype, "spoiler_content", null);
$$.$mol_text = $mol_text;
class $mol_text_header extends $.$mol_text_header {
dom_name() {
Expand All @@ -10824,7 +10948,7 @@ var $;
"use strict";
var $;
(function ($) {
$mol_style_attach("mol/text/text/text.view.css", "[mol_text] {\n\tline-height: 1.5em;\n\tbox-sizing: border-box;\n\tborder-radius: var(--mol_gap_round);\n\twhite-space: pre-line;\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex: 0 0 auto;\n\ttab-size: 4;\n}\n\n[mol_text_paragraph] {\n\tpadding: var(--mol_gap_text);\n\toverflow: auto;\n\toverflow-x: overlay;\n\tmax-width: 100%;\n\tdisplay: block;\n\tmax-width: 60rem;\n}\n\n[mol_text_span] {\n\tdisplay: inline;\n}\n\n[mol_text_string] {\n\tdisplay: inline;\n\tflex: 0 1 auto;\n\twhite-space: normal;\n}\n\n[mol_text_quote] {\n\tmargin: var(--mol_gap_block);\n\tpadding: var(--mol_gap_block);\n\tbackground: var(--mol_theme_card);\n\tbox-shadow: 0 0 0 1px var(--mol_theme_back);\n}\n\n[mol_text_header] {\n\tdisplay: block;\n\ttext-shadow: 0 0;\n\tfont-weight: normal;\n}\n\n* + [mol_text_header] {\n\tmargin-top: 0.75rem;\n}\n\nh1[mol_text_header] {\n\tfont-size: 1.5rem;\n}\n\nh2[mol_text_header] {\n\tfont-size: 1.5rem;\n\tfont-style: italic;\n}\n\nh3[mol_text_header] {\n\tfont-size: 1.25rem;\n}\n\nh4[mol_text_header] {\n\tfont-size: 1.25em;\n\tfont-style: italic;\n}\n\nh5[mol_text_header] {\n\tfont-size: 1rem;\n}\n\nh6[mol_text_header] {\n\tfont-size: 1rem;\n\tfont-style: italic;\n}\n\n[mol_text_header_link] {\n\tcolor: inherit;\n}\n\n[mol_text_table_cell] {\n\twidth: auto;\n\tdisplay: table-cell;\n\tvertical-align: baseline;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n[mol_text_grid_cell] {\n\twidth: auto;\n\tdisplay: table-cell;\n\tvertical-align: top;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n[mol_text_cut] {\n\tborder: none;\n\twidth: 100%;\n\tbox-shadow: 0 0 0 1px var(--mol_theme_line);\n}\n\n[mol_text_link_http],\n[mol_text_link] {\n\tpadding: 0;\n\tdisplay: inline;\n\twhite-space: nowrap;\n}\n\n[mol_text_link_icon] + [mol_text_embed] {\n\tmargin-left: -1.5rem;\n}\n\n[mol_text_embed_youtube] {\n\tdisplay: inline;\n}\n\n[mol_text_embed_youtube_image],\n[mol_text_embed_youtube_frame],\n[mol_text_embed_object] {\n\tobject-fit: contain;\n\tobject-position: center;\n\tdisplay: inline;\n\twidth: 100vw;\n\tmax-height: calc( 100vh - 6rem );\n\tvertical-align: top;\n}\n[mol_text_embed_object_fallback] {\n\tpadding: 0;\n}\n[mol_text_embed_image] {\n\tobject-fit: contain;\n\tobject-position: center;\n\tdisplay: inline;\n\t/* max-height: calc( 100vh - 6rem ); */\n\tvertical-align: top;\n}\n\n[mol_text_pre] {\n\twhite-space: pre;\n\toverflow-x: auto;\n\toverflow-x: overlay;\n\ttab-size: 2;\n}\n\n[mol_text_code_line] {\n\tdisplay: inline-block;\n\twhite-space: nowrap;\n}\n\n[mol_text_type=\"strong\"] {\n\ttext-shadow: 0 0;\n\tfilter: contrast(1.5);\n}\n\n[mol_text_type=\"emphasis\"] {\n\tfont-style: italic;\n}\n\n[mol_text_type=\"insert\"] {\n\tcolor: var(--mol_theme_special);\n}\n\n[mol_text_type=\"delete\"] {\n\tcolor: var(--mol_theme_shade);\n}\n\n[mol_text_type=\"remark\"] {\n\tcolor: var(--mol_theme_shade);\n}\n\n[mol_text_type=\"quote\"] {\n\tfont-style: italic;\n}\n");
$mol_style_attach("mol/text/text/text.view.css", "[mol_text] {\n\tline-height: 1.5em;\n\tbox-sizing: border-box;\n\tborder-radius: var(--mol_gap_round);\n\twhite-space: pre-line;\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex: 0 0 auto;\n\ttab-size: 4;\n}\n\n[mol_text_paragraph] {\n\tpadding: var(--mol_gap_text);\n\toverflow: auto;\n\toverflow-x: overlay;\n\tmax-width: 100%;\n\tdisplay: block;\n\tmax-width: 60rem;\n}\n\n[mol_text_spoiler_label_paragraph] {\n\tpadding: 0;\n}\n\n[mol_text_span] {\n\tdisplay: inline;\n}\n\n[mol_text_string] {\n\tdisplay: inline;\n\tflex: 0 1 auto;\n\twhite-space: normal;\n}\n\n[mol_text_quote] {\n\tmargin: var(--mol_gap_block);\n\tpadding: var(--mol_gap_block);\n\tbackground: var(--mol_theme_card);\n\tbox-shadow: 0 0 0 1px var(--mol_theme_back);\n}\n\n[mol_text_header] {\n\tdisplay: block;\n\ttext-shadow: 0 0;\n\tfont-weight: normal;\n}\n\n* + [mol_text_header] {\n\tmargin-top: 0.75rem;\n}\n\nh1[mol_text_header] {\n\tfont-size: 1.5rem;\n}\n\nh2[mol_text_header] {\n\tfont-size: 1.5rem;\n\tfont-style: italic;\n}\n\nh3[mol_text_header] {\n\tfont-size: 1.25rem;\n}\n\nh4[mol_text_header] {\n\tfont-size: 1.25em;\n\tfont-style: italic;\n}\n\nh5[mol_text_header] {\n\tfont-size: 1rem;\n}\n\nh6[mol_text_header] {\n\tfont-size: 1rem;\n\tfont-style: italic;\n}\n\n[mol_text_header_link] {\n\tcolor: inherit;\n}\n\n[mol_text_table_cell] {\n\twidth: auto;\n\tdisplay: table-cell;\n\tvertical-align: baseline;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n[mol_text_grid_cell] {\n\twidth: auto;\n\tdisplay: table-cell;\n\tvertical-align: top;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n[mol_text_cut] {\n\tborder: none;\n\twidth: 100%;\n\tbox-shadow: 0 0 0 1px var(--mol_theme_line);\n}\n\n[mol_text_link_http],\n[mol_text_link] {\n\tpadding: 0;\n\tdisplay: inline;\n\twhite-space: nowrap;\n}\n\n[mol_text_link_icon] + [mol_text_embed] {\n\tmargin-left: -1.5rem;\n}\n\n[mol_text_embed_youtube] {\n\tdisplay: inline;\n}\n\n[mol_text_embed_youtube_image],\n[mol_text_embed_youtube_frame],\n[mol_text_embed_object] {\n\tobject-fit: contain;\n\tobject-position: center;\n\tdisplay: inline;\n\twidth: 100vw;\n\tmax-height: calc( 100vh - 6rem );\n\tvertical-align: top;\n}\n[mol_text_embed_object_fallback] {\n\tpadding: 0;\n}\n[mol_text_embed_image] {\n\tobject-fit: contain;\n\tobject-position: center;\n\tdisplay: inline;\n\t/* max-height: calc( 100vh - 6rem ); */\n\tvertical-align: top;\n}\n\n[mol_text_pre] {\n\twhite-space: pre;\n\toverflow-x: auto;\n\toverflow-x: overlay;\n\ttab-size: 2;\n}\n\n[mol_text_code_line] {\n\tdisplay: inline-block;\n\twhite-space: nowrap;\n}\n\n[mol_text_type=\"strong\"] {\n\ttext-shadow: 0 0;\n\tfilter: contrast(1.5);\n}\n\n[mol_text_type=\"emphasis\"] {\n\tfont-style: italic;\n}\n\n[mol_text_type=\"insert\"] {\n\tcolor: var(--mol_theme_special);\n}\n\n[mol_text_type=\"delete\"] {\n\tcolor: var(--mol_theme_shade);\n}\n\n[mol_text_type=\"remark\"] {\n\tcolor: var(--mol_theme_shade);\n}\n\n[mol_text_type=\"quote\"] {\n\tfont-style: italic;\n}\n");
})($ || ($ = {}));

;
Expand Down
2 changes: 1 addition & 1 deletion node.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 5aca4a5

Please sign in to comment.