完成世界书、骰子、apiconfig页面处理
This commit is contained in:
73
frontend/node_modules/micromark/lib/constructs.d.ts
generated
vendored
Normal file
73
frontend/node_modules/micromark/lib/constructs.d.ts
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
/** @satisfies {Extension['document']} */
|
||||
export const document: {
|
||||
42: import("micromark-util-types").Construct;
|
||||
43: import("micromark-util-types").Construct;
|
||||
45: import("micromark-util-types").Construct;
|
||||
48: import("micromark-util-types").Construct;
|
||||
49: import("micromark-util-types").Construct;
|
||||
50: import("micromark-util-types").Construct;
|
||||
51: import("micromark-util-types").Construct;
|
||||
52: import("micromark-util-types").Construct;
|
||||
53: import("micromark-util-types").Construct;
|
||||
54: import("micromark-util-types").Construct;
|
||||
55: import("micromark-util-types").Construct;
|
||||
56: import("micromark-util-types").Construct;
|
||||
57: import("micromark-util-types").Construct;
|
||||
62: import("micromark-util-types").Construct;
|
||||
};
|
||||
/** @satisfies {Extension['contentInitial']} */
|
||||
export const contentInitial: {
|
||||
91: import("micromark-util-types").Construct;
|
||||
};
|
||||
/** @satisfies {Extension['flowInitial']} */
|
||||
export const flowInitial: {
|
||||
[-2]: import("micromark-util-types").Construct;
|
||||
[-1]: import("micromark-util-types").Construct;
|
||||
32: import("micromark-util-types").Construct;
|
||||
};
|
||||
/** @satisfies {Extension['flow']} */
|
||||
export const flow: {
|
||||
35: import("micromark-util-types").Construct;
|
||||
42: import("micromark-util-types").Construct;
|
||||
45: import("micromark-util-types").Construct[];
|
||||
60: import("micromark-util-types").Construct;
|
||||
61: import("micromark-util-types").Construct;
|
||||
95: import("micromark-util-types").Construct;
|
||||
96: import("micromark-util-types").Construct;
|
||||
126: import("micromark-util-types").Construct;
|
||||
};
|
||||
/** @satisfies {Extension['string']} */
|
||||
export const string: {
|
||||
38: import("micromark-util-types").Construct;
|
||||
92: import("micromark-util-types").Construct;
|
||||
};
|
||||
/** @satisfies {Extension['text']} */
|
||||
export const text: {
|
||||
[-5]: import("micromark-util-types").Construct;
|
||||
[-4]: import("micromark-util-types").Construct;
|
||||
[-3]: import("micromark-util-types").Construct;
|
||||
33: import("micromark-util-types").Construct;
|
||||
38: import("micromark-util-types").Construct;
|
||||
42: import("micromark-util-types").Construct;
|
||||
60: import("micromark-util-types").Construct[];
|
||||
91: import("micromark-util-types").Construct;
|
||||
92: import("micromark-util-types").Construct[];
|
||||
93: import("micromark-util-types").Construct;
|
||||
95: import("micromark-util-types").Construct;
|
||||
96: import("micromark-util-types").Construct;
|
||||
};
|
||||
export namespace insideSpan {
|
||||
let _null: (import("micromark-util-types").Construct | {
|
||||
resolveAll: import("micromark-util-types").Resolver;
|
||||
})[];
|
||||
export { _null as null };
|
||||
}
|
||||
export namespace attentionMarkers {
|
||||
let _null_1: (42 | 95)[];
|
||||
export { _null_1 as null };
|
||||
}
|
||||
export namespace disable {
|
||||
let _null_2: never[];
|
||||
export { _null_2 as null };
|
||||
}
|
||||
//# sourceMappingURL=constructs.d.ts.map
|
||||
1
frontend/node_modules/micromark/lib/initialize/document.d.ts.map
generated
vendored
Normal file
1
frontend/node_modules/micromark/lib/initialize/document.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["document.js"],"names":[],"mappings":"AAyBA,+BAA+B;AAC/B,uBADW,gBAAgB,CAC2B;;;;wBAXzC,CAAC,SAAS,EAAE,cAAc,CAAC;sCAJ9B,sBAAsB;+BAAtB,sBAAsB;oCAAtB,sBAAsB"}
|
||||
4
frontend/node_modules/micromark/lib/initialize/flow.d.ts
generated
vendored
Normal file
4
frontend/node_modules/micromark/lib/initialize/flow.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/** @type {InitialConstruct} */
|
||||
export const flow: InitialConstruct;
|
||||
import type { InitialConstruct } from 'micromark-util-types';
|
||||
//# sourceMappingURL=flow.d.ts.map
|
||||
1
frontend/node_modules/micromark/lib/initialize/flow.d.ts.map
generated
vendored
Normal file
1
frontend/node_modules/micromark/lib/initialize/flow.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["flow.js"],"names":[],"mappings":"AAeA,+BAA+B;AAC/B,mBADW,gBAAgB,CACmB;sCAVpC,sBAAsB"}
|
||||
58
frontend/node_modules/micromark/lib/initialize/flow.js
generated
vendored
Normal file
58
frontend/node_modules/micromark/lib/initialize/flow.js
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* @import {
|
||||
* InitialConstruct,
|
||||
* Initializer,
|
||||
* State,
|
||||
* TokenizeContext
|
||||
* } from 'micromark-util-types'
|
||||
*/
|
||||
|
||||
import { blankLine, content } from 'micromark-core-commonmark';
|
||||
import { factorySpace } from 'micromark-factory-space';
|
||||
import { markdownLineEnding } from 'micromark-util-character';
|
||||
/** @type {InitialConstruct} */
|
||||
export const flow = {
|
||||
tokenize: initializeFlow
|
||||
};
|
||||
|
||||
/**
|
||||
* @this {TokenizeContext}
|
||||
* Self.
|
||||
* @type {Initializer}
|
||||
* Initializer.
|
||||
*/
|
||||
function initializeFlow(effects) {
|
||||
const self = this;
|
||||
const initial = effects.attempt(
|
||||
// Try to parse a blank line.
|
||||
blankLine, atBlankEnding,
|
||||
// Try to parse initial flow (essentially, only code).
|
||||
effects.attempt(this.parser.constructs.flowInitial, afterConstruct, factorySpace(effects, effects.attempt(this.parser.constructs.flow, afterConstruct, effects.attempt(content, afterConstruct)), "linePrefix")));
|
||||
return initial;
|
||||
|
||||
/** @type {State} */
|
||||
function atBlankEnding(code) {
|
||||
if (code === null) {
|
||||
effects.consume(code);
|
||||
return;
|
||||
}
|
||||
effects.enter("lineEndingBlank");
|
||||
effects.consume(code);
|
||||
effects.exit("lineEndingBlank");
|
||||
self.currentConstruct = undefined;
|
||||
return initial;
|
||||
}
|
||||
|
||||
/** @type {State} */
|
||||
function afterConstruct(code) {
|
||||
if (code === null) {
|
||||
effects.consume(code);
|
||||
return;
|
||||
}
|
||||
effects.enter("lineEnding");
|
||||
effects.consume(code);
|
||||
effects.exit("lineEnding");
|
||||
self.currentConstruct = undefined;
|
||||
return initial;
|
||||
}
|
||||
}
|
||||
1
frontend/node_modules/micromark/lib/parse.d.ts.map
generated
vendored
Normal file
1
frontend/node_modules/micromark/lib/parse.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["parse.js"],"names":[],"mappings":"AAkBA;;;;;GAKG;AACH,gCALW,YAAY,GAAG,IAAI,GAAG,SAAS,GAE7B,YAAY,CAoCxB;kCAlDS,sBAAsB;kCAAtB,sBAAsB"}
|
||||
56
frontend/node_modules/micromark/lib/parse.js
generated
vendored
Normal file
56
frontend/node_modules/micromark/lib/parse.js
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* @import {
|
||||
* Create,
|
||||
* FullNormalizedExtension,
|
||||
* InitialConstruct,
|
||||
* ParseContext,
|
||||
* ParseOptions
|
||||
* } from 'micromark-util-types'
|
||||
*/
|
||||
|
||||
import { combineExtensions } from 'micromark-util-combine-extensions';
|
||||
import { content } from './initialize/content.js';
|
||||
import { document } from './initialize/document.js';
|
||||
import { flow } from './initialize/flow.js';
|
||||
import { string, text } from './initialize/text.js';
|
||||
import * as defaultConstructs from './constructs.js';
|
||||
import { createTokenizer } from './create-tokenizer.js';
|
||||
|
||||
/**
|
||||
* @param {ParseOptions | null | undefined} [options]
|
||||
* Configuration (optional).
|
||||
* @returns {ParseContext}
|
||||
* Parser.
|
||||
*/
|
||||
export function parse(options) {
|
||||
const settings = options || {};
|
||||
const constructs = /** @type {FullNormalizedExtension} */
|
||||
combineExtensions([defaultConstructs, ...(settings.extensions || [])]);
|
||||
|
||||
/** @type {ParseContext} */
|
||||
const parser = {
|
||||
constructs,
|
||||
content: create(content),
|
||||
defined: [],
|
||||
document: create(document),
|
||||
flow: create(flow),
|
||||
lazy: {},
|
||||
string: create(string),
|
||||
text: create(text)
|
||||
};
|
||||
return parser;
|
||||
|
||||
/**
|
||||
* @param {InitialConstruct} initial
|
||||
* Construct to start with.
|
||||
* @returns {Create}
|
||||
* Create a tokenizer.
|
||||
*/
|
||||
function create(initial) {
|
||||
return creator;
|
||||
/** @type {Create} */
|
||||
function creator(from) {
|
||||
return createTokenizer(parser, initial, from);
|
||||
}
|
||||
}
|
||||
}
|
||||
18
frontend/node_modules/micromark/lib/postprocess.js
generated
vendored
Normal file
18
frontend/node_modules/micromark/lib/postprocess.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @import {Event} from 'micromark-util-types'
|
||||
*/
|
||||
|
||||
import { subtokenize } from 'micromark-util-subtokenize';
|
||||
|
||||
/**
|
||||
* @param {Array<Event>} events
|
||||
* Events.
|
||||
* @returns {Array<Event>}
|
||||
* Events.
|
||||
*/
|
||||
export function postprocess(events) {
|
||||
while (!subtokenize(events)) {
|
||||
// Empty
|
||||
}
|
||||
return events;
|
||||
}
|
||||
Reference in New Issue
Block a user