@difizen/libro-common 0.1.0 → 0.1.2
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/es/array.d.ts +368 -0
- package/es/array.d.ts.map +1 -0
- package/es/display-wrapper.d.ts +6 -0
- package/es/display-wrapper.d.ts.map +1 -0
- package/es/dom.d.ts +3 -0
- package/es/dom.d.ts.map +1 -0
- package/es/dom.js +97 -0
- package/es/index.d.ts +12 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.js +2 -1
- package/es/iter.d.ts +147 -0
- package/es/iter.d.ts.map +1 -0
- package/es/json.d.ts +126 -0
- package/es/json.d.ts.map +1 -0
- package/es/path.d.ts +97 -0
- package/es/path.d.ts.map +1 -0
- package/es/polling/index.d.ts +3 -0
- package/es/polling/index.d.ts.map +1 -0
- package/es/polling/poll.d.ts +193 -0
- package/es/polling/poll.d.ts.map +1 -0
- package/es/polling/poll.js +1 -1
- package/es/polling/protocol.d.ts +120 -0
- package/es/polling/protocol.d.ts.map +1 -0
- package/es/posix.d.ts +2 -0
- package/es/posix.d.ts.map +1 -0
- package/es/protocol/cell-protocol.d.ts +181 -0
- package/es/protocol/cell-protocol.d.ts.map +1 -0
- package/es/protocol/index.d.ts +4 -0
- package/es/protocol/index.d.ts.map +1 -0
- package/es/protocol/notebook-protocol.d.ts +63 -0
- package/es/protocol/notebook-protocol.d.ts.map +1 -0
- package/es/protocol/output-protocol.d.ts +125 -0
- package/es/protocol/output-protocol.d.ts.map +1 -0
- package/es/sanitizer.d.ts +45 -0
- package/es/sanitizer.d.ts.map +1 -0
- package/es/url.d.ts +98 -0
- package/es/url.d.ts.map +1 -0
- package/es/url.js +1 -1
- package/es/utils.d.ts +57 -0
- package/es/utils.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/dom.ts +71 -0
- package/src/index.ts +1 -0
- package/src/iter.ts +2 -2
- package/src/polling/poll.ts +2 -2
- package/src/polling/protocol.ts +1 -1
- package/src/sanitizer.ts +15 -15
- package/src/url.ts +1 -1
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { PartialJSONObject } from '../json.js';
|
|
2
|
+
import type { ExecutionCount, IAttachments, MultilineString } from './notebook-protocol.js';
|
|
3
|
+
import type { IOutput } from './output-protocol.js';
|
|
4
|
+
/**
|
|
5
|
+
* A type which describes the type of cell.
|
|
6
|
+
*/
|
|
7
|
+
export type CellType = 'code' | 'markdown' | 'raw' | string;
|
|
8
|
+
/**
|
|
9
|
+
* The Jupyter metadata namespace.
|
|
10
|
+
*/
|
|
11
|
+
export interface IBaseCellJupyterMetadata extends PartialJSONObject {
|
|
12
|
+
/**
|
|
13
|
+
* Whether the source is hidden.
|
|
14
|
+
*/
|
|
15
|
+
source_hidden: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Cell-level metadata.
|
|
19
|
+
*/
|
|
20
|
+
export interface IBaseCellMetadata extends PartialJSONObject {
|
|
21
|
+
/**
|
|
22
|
+
* Whether the cell is trusted.
|
|
23
|
+
*
|
|
24
|
+
* #### Notes
|
|
25
|
+
* This is not strictly part of the nbformat spec, but it is added by
|
|
26
|
+
* the contents manager.
|
|
27
|
+
*
|
|
28
|
+
* See https://jupyter-server.readthedocs.io/en/latest/operators/security.html.
|
|
29
|
+
*/
|
|
30
|
+
trusted: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The cell's name. If present, must be a non-empty string.
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* The Jupyter metadata namespace
|
|
37
|
+
*/
|
|
38
|
+
jupyter: Partial<IBaseCellJupyterMetadata>;
|
|
39
|
+
/**
|
|
40
|
+
* The cell's tags. Tags must be unique, and must not contain commas.
|
|
41
|
+
*/
|
|
42
|
+
tags: string[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The base cell interface.
|
|
46
|
+
*/
|
|
47
|
+
export interface IBaseCell extends PartialJSONObject {
|
|
48
|
+
/**
|
|
49
|
+
* String identifying the type of cell.
|
|
50
|
+
*/
|
|
51
|
+
cell_type: string;
|
|
52
|
+
/**
|
|
53
|
+
* Contents of the cell, represented as an array of lines.
|
|
54
|
+
*/
|
|
55
|
+
source: MultilineString;
|
|
56
|
+
/**
|
|
57
|
+
* Cell-level metadata.
|
|
58
|
+
*/
|
|
59
|
+
metadata: Partial<ICellMetadata>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Metadata for the raw cell.
|
|
63
|
+
*/
|
|
64
|
+
export interface IRawCellMetadata extends IBaseCellMetadata {
|
|
65
|
+
/**
|
|
66
|
+
* Raw cell metadata format for nbconvert.
|
|
67
|
+
*/
|
|
68
|
+
format: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A raw cell.
|
|
72
|
+
*/
|
|
73
|
+
export interface IRawCell extends IBaseCell {
|
|
74
|
+
/**
|
|
75
|
+
* A string field representing the identifier of this particular cell.
|
|
76
|
+
*
|
|
77
|
+
* Notebook format 4.4 requires no id field, but format 4.5 requires an id
|
|
78
|
+
* field. We need to handle both cases, so we make id optional here.
|
|
79
|
+
*/
|
|
80
|
+
id?: string | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* String identifying the type of cell.
|
|
83
|
+
*/
|
|
84
|
+
cell_type: 'raw';
|
|
85
|
+
/**
|
|
86
|
+
* Cell-level metadata.
|
|
87
|
+
*/
|
|
88
|
+
metadata: Partial<IRawCellMetadata>;
|
|
89
|
+
/**
|
|
90
|
+
* Cell attachments.
|
|
91
|
+
*/
|
|
92
|
+
attachments?: IAttachments | undefined;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* A markdown cell.
|
|
96
|
+
*/
|
|
97
|
+
export interface IMarkdownCell extends IBaseCell {
|
|
98
|
+
/**
|
|
99
|
+
* A string field representing the identifier of this particular cell.
|
|
100
|
+
*
|
|
101
|
+
* Notebook format 4.4 requires no id field, but format 4.5 requires an id
|
|
102
|
+
* field. We need to handle both cases, so we make id optional here.
|
|
103
|
+
*/
|
|
104
|
+
id?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* String identifying the type of cell.
|
|
107
|
+
*/
|
|
108
|
+
cell_type: 'markdown';
|
|
109
|
+
/**
|
|
110
|
+
* Cell attachments.
|
|
111
|
+
*/
|
|
112
|
+
attachments?: IAttachments | undefined;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The Jupyter metadata namespace for code cells.
|
|
116
|
+
*/
|
|
117
|
+
export interface ICodeCellJupyterMetadata extends IBaseCellJupyterMetadata {
|
|
118
|
+
/**
|
|
119
|
+
* Whether the outputs are hidden. See https://github.com/jupyter/nbformat/issues/137.
|
|
120
|
+
*/
|
|
121
|
+
outputs_hidden: boolean;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Metadata for a code cell.
|
|
125
|
+
*/
|
|
126
|
+
export interface ICodeCellMetadata extends IBaseCellMetadata {
|
|
127
|
+
/**
|
|
128
|
+
* Whether the cell is collapsed/expanded.
|
|
129
|
+
*/
|
|
130
|
+
collapsed: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* The Jupyter metadata namespace
|
|
133
|
+
*/
|
|
134
|
+
jupyter: Partial<ICodeCellJupyterMetadata>;
|
|
135
|
+
/**
|
|
136
|
+
* Whether the cell's output is scrolled, unscrolled, or autoscrolled.
|
|
137
|
+
*/
|
|
138
|
+
scrolled: boolean | 'auto';
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* A code cell.
|
|
142
|
+
*/
|
|
143
|
+
export interface ICodeCell extends IBaseCell {
|
|
144
|
+
/**
|
|
145
|
+
* A string field representing the identifier of this particular cell.
|
|
146
|
+
*
|
|
147
|
+
* Notebook format 4.4 requires no id field, but format 4.5 requires an id
|
|
148
|
+
* field. We need to handle both cases, so we make id optional here.
|
|
149
|
+
*/
|
|
150
|
+
id?: string | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* String identifying the type of cell.
|
|
153
|
+
* Changed in Libro: cell_type 不再限制只能是code,以便支持多种语言的cell
|
|
154
|
+
*/
|
|
155
|
+
cell_type: string;
|
|
156
|
+
/**
|
|
157
|
+
* Cell-level metadata.
|
|
158
|
+
*/
|
|
159
|
+
metadata: Partial<ICodeCellMetadata>;
|
|
160
|
+
/**
|
|
161
|
+
* Execution, display, or stream outputs.
|
|
162
|
+
*/
|
|
163
|
+
outputs: IOutput[];
|
|
164
|
+
/**
|
|
165
|
+
* The code cell's prompt number. Will be null if the cell has not been run.
|
|
166
|
+
*/
|
|
167
|
+
execution_count: ExecutionCount;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* An unrecognized cell.
|
|
171
|
+
*/
|
|
172
|
+
export type IUnrecognizedCell = IBaseCell;
|
|
173
|
+
/**
|
|
174
|
+
* A cell union type.
|
|
175
|
+
*/
|
|
176
|
+
export type ICell = IRawCell | IMarkdownCell | ICodeCell | IUnrecognizedCell;
|
|
177
|
+
/**
|
|
178
|
+
* A union metadata type.
|
|
179
|
+
*/
|
|
180
|
+
export type ICellMetadata = IBaseCellMetadata | IRawCellMetadata | ICodeCellMetadata;
|
|
181
|
+
//# sourceMappingURL=cell-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-protocol.d.ts","sourceRoot":"","sources":["../../src/protocol/cell-protocol.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { PartialJSONObject } from '../json.js';
|
|
2
|
+
import type { ICell } from './cell-protocol.js';
|
|
3
|
+
/**
|
|
4
|
+
* The earliest major version of the notebook format we support.
|
|
5
|
+
*/
|
|
6
|
+
export declare const MAJOR_VERSION = 4;
|
|
7
|
+
/**
|
|
8
|
+
* The earliest minor version of the notebook format we support.
|
|
9
|
+
*/
|
|
10
|
+
export declare const MINOR_VERSION = 4;
|
|
11
|
+
/**
|
|
12
|
+
* The kernelspec metadata.
|
|
13
|
+
*/
|
|
14
|
+
export interface IKernelspecMetadata extends PartialJSONObject {
|
|
15
|
+
name: string;
|
|
16
|
+
display_name: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The language info metadata
|
|
20
|
+
*/
|
|
21
|
+
export interface ILanguageInfoMetadata extends PartialJSONObject {
|
|
22
|
+
name: string;
|
|
23
|
+
codemirror_mode?: string | PartialJSONObject;
|
|
24
|
+
file_extension?: string;
|
|
25
|
+
mimetype?: string;
|
|
26
|
+
pygments_lexer?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The default metadata for the notebook.
|
|
30
|
+
*/
|
|
31
|
+
export interface INotebookMetadata extends PartialJSONObject {
|
|
32
|
+
kernelspec?: IKernelspecMetadata;
|
|
33
|
+
language_info?: ILanguageInfoMetadata;
|
|
34
|
+
orig_nbformat?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The notebook content.
|
|
38
|
+
*/
|
|
39
|
+
export interface INotebookContent extends PartialJSONObject {
|
|
40
|
+
metadata: INotebookMetadata;
|
|
41
|
+
nbformat_minor: number;
|
|
42
|
+
nbformat: number;
|
|
43
|
+
cells: ICell[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A multiline string.
|
|
47
|
+
*/
|
|
48
|
+
export type MultilineString = string | string[];
|
|
49
|
+
/**
|
|
50
|
+
* A mime-type keyed dictionary of data.
|
|
51
|
+
*/
|
|
52
|
+
export interface IMimeBundle extends PartialJSONObject {
|
|
53
|
+
[key: string]: MultilineString | PartialJSONObject;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Media attachments (e.g. inline images).
|
|
57
|
+
*/
|
|
58
|
+
export type IAttachments = Record<string, IMimeBundle | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* The code cell's prompt number. Will be null if the cell has not been run.
|
|
61
|
+
*/
|
|
62
|
+
export type ExecutionCount = number | null;
|
|
63
|
+
//# sourceMappingURL=notebook-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notebook-protocol.d.ts","sourceRoot":"","sources":["../../src/protocol/notebook-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,KAAK,EAAE,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,iBAAiB;IACpD,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,GAAG,iBAAiB,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { PartialJSONObject } from '../json.js';
|
|
2
|
+
import type { ExecutionCount, IMimeBundle, MultilineString } from './notebook-protocol.js';
|
|
3
|
+
/**
|
|
4
|
+
* Cell output metadata.
|
|
5
|
+
*/
|
|
6
|
+
export type OutputMetadata = PartialJSONObject;
|
|
7
|
+
/**
|
|
8
|
+
* The valid output types.
|
|
9
|
+
*/
|
|
10
|
+
export type OutputType = 'execute_result' | 'display_data' | 'stream' | 'error' | 'update_display_data';
|
|
11
|
+
/**
|
|
12
|
+
* The base output type.
|
|
13
|
+
*/
|
|
14
|
+
export interface IBaseOutput extends PartialJSONObject {
|
|
15
|
+
/**
|
|
16
|
+
* Type of cell output.
|
|
17
|
+
*/
|
|
18
|
+
output_type: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Result of executing a code cell.
|
|
22
|
+
*/
|
|
23
|
+
export interface IExecuteResult extends IBaseOutput {
|
|
24
|
+
/**
|
|
25
|
+
* Type of cell output.
|
|
26
|
+
*/
|
|
27
|
+
output_type: 'execute_result';
|
|
28
|
+
/**
|
|
29
|
+
* A result's prompt number.
|
|
30
|
+
*/
|
|
31
|
+
execution_count: ExecutionCount;
|
|
32
|
+
/**
|
|
33
|
+
* A mime-type keyed dictionary of data.
|
|
34
|
+
*/
|
|
35
|
+
data: IMimeBundle;
|
|
36
|
+
/**
|
|
37
|
+
* Cell output metadata.
|
|
38
|
+
*/
|
|
39
|
+
metadata: OutputMetadata;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Data displayed as a result of code cell execution.
|
|
43
|
+
*/
|
|
44
|
+
export interface IDisplayData extends IBaseOutput {
|
|
45
|
+
/**
|
|
46
|
+
* Type of cell output.
|
|
47
|
+
*/
|
|
48
|
+
output_type: 'display_data';
|
|
49
|
+
/**
|
|
50
|
+
* A mime-type keyed dictionary of data.
|
|
51
|
+
*/
|
|
52
|
+
data: IMimeBundle;
|
|
53
|
+
/**
|
|
54
|
+
* Cell output metadata.
|
|
55
|
+
*/
|
|
56
|
+
metadata: OutputMetadata;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Data displayed as an update to existing display data.
|
|
60
|
+
*/
|
|
61
|
+
export interface IDisplayUpdate extends IBaseOutput {
|
|
62
|
+
/**
|
|
63
|
+
* Type of cell output.
|
|
64
|
+
*/
|
|
65
|
+
output_type: 'update_display_data';
|
|
66
|
+
/**
|
|
67
|
+
* A mime-type keyed dictionary of data.
|
|
68
|
+
*/
|
|
69
|
+
data: IMimeBundle;
|
|
70
|
+
/**
|
|
71
|
+
* Cell output metadata.
|
|
72
|
+
*/
|
|
73
|
+
metadata: OutputMetadata;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Stream output from a code cell.
|
|
77
|
+
*/
|
|
78
|
+
export interface IStream extends IBaseOutput {
|
|
79
|
+
/**
|
|
80
|
+
* Type of cell output.
|
|
81
|
+
*/
|
|
82
|
+
output_type: 'stream';
|
|
83
|
+
/**
|
|
84
|
+
* The name of the stream.
|
|
85
|
+
*/
|
|
86
|
+
name: StreamType;
|
|
87
|
+
/**
|
|
88
|
+
* The stream's text output.
|
|
89
|
+
*/
|
|
90
|
+
text: MultilineString;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* An alias for a stream type.
|
|
94
|
+
*/
|
|
95
|
+
export type StreamType = 'stdout' | 'stderr';
|
|
96
|
+
/**
|
|
97
|
+
* Output of an error that occurred during code cell execution.
|
|
98
|
+
*/
|
|
99
|
+
export interface IError extends IBaseOutput {
|
|
100
|
+
/**
|
|
101
|
+
* Type of cell output.
|
|
102
|
+
*/
|
|
103
|
+
output_type: 'error';
|
|
104
|
+
/**
|
|
105
|
+
* The name of the error.
|
|
106
|
+
*/
|
|
107
|
+
ename: string;
|
|
108
|
+
/**
|
|
109
|
+
* The value, or message, of the error.
|
|
110
|
+
*/
|
|
111
|
+
evalue: string;
|
|
112
|
+
/**
|
|
113
|
+
* The error's traceback.
|
|
114
|
+
*/
|
|
115
|
+
traceback: string[];
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Unrecognized output.
|
|
119
|
+
*/
|
|
120
|
+
export type IUnrecognizedOutput = IBaseOutput;
|
|
121
|
+
/**
|
|
122
|
+
* An output union type.
|
|
123
|
+
*/
|
|
124
|
+
export type IOutput = IUnrecognizedOutput | IExecuteResult | IDisplayData | IStream | IError;
|
|
125
|
+
//# sourceMappingURL=output-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output-protocol.d.ts","sourceRoot":"","sources":["../../src/protocol/output-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,gBAAgB,GAChB,cAAc,GACd,QAAQ,GACR,OAAO,GACP,qBAAqB,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,iBAAiB;IACpD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD;;OAEG;IACH,WAAW,EAAE,gBAAgB,CAAC;IAE9B;;OAEG;IACH,eAAe,EAAE,cAAc,CAAC;IAEhC;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C;;OAEG;IACH,WAAW,EAAE,cAAc,CAAC;IAE5B;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD;;OAEG;IACH,WAAW,EAAE,qBAAqB,CAAC;IAEnC;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,OAAQ,SAAQ,WAAW;IAC1C;;OAEG;IACH,WAAW,EAAE,QAAQ,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,MAAO,SAAQ,WAAW;IACzC;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,OAAO,GACf,mBAAmB,GACnB,cAAc,GACd,YAAY,GACZ,OAAO,GACP,MAAM,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import sanitize from 'sanitize-html';
|
|
2
|
+
export interface ISanitizerOptions {
|
|
3
|
+
/**
|
|
4
|
+
* The allowed tags.
|
|
5
|
+
*/
|
|
6
|
+
allowedTags?: string[];
|
|
7
|
+
/**
|
|
8
|
+
* The allowed attributes for a given tag.
|
|
9
|
+
*/
|
|
10
|
+
allowedAttributes?: Record<string, string[]>;
|
|
11
|
+
/**
|
|
12
|
+
* The allowed style values for a given tag.
|
|
13
|
+
*/
|
|
14
|
+
allowedStyles?: Record<string, Record<string, RegExp[]>>;
|
|
15
|
+
}
|
|
16
|
+
export interface ISanitizer {
|
|
17
|
+
/**
|
|
18
|
+
* Sanitize an HTML string.
|
|
19
|
+
*
|
|
20
|
+
* @param dirty - The dirty text.
|
|
21
|
+
*
|
|
22
|
+
* @param options - The optional sanitization options.
|
|
23
|
+
*
|
|
24
|
+
* @returns The sanitized string.
|
|
25
|
+
*/
|
|
26
|
+
sanitize: (dirty: string, options?: ISanitizerOptions) => string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A class to sanitize HTML strings.
|
|
30
|
+
*/
|
|
31
|
+
export declare class Sanitizer implements ISanitizer {
|
|
32
|
+
/**
|
|
33
|
+
* Sanitize an HTML string.
|
|
34
|
+
*
|
|
35
|
+
* @param dirty - The dirty text.
|
|
36
|
+
*
|
|
37
|
+
* @param options - The optional sanitization options.
|
|
38
|
+
*
|
|
39
|
+
* @returns The sanitized string.
|
|
40
|
+
*/
|
|
41
|
+
sanitize(dirty: string, options?: ISanitizerOptions): string;
|
|
42
|
+
protected _options: sanitize.IOptions;
|
|
43
|
+
}
|
|
44
|
+
export declare const defaultSanitizer: ISanitizer;
|
|
45
|
+
//# sourceMappingURL=sanitizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitizer.d.ts","sourceRoot":"","sources":["../src/sanitizer.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AA4ZrC,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAEvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAE7C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;CAC1D;AACD,MAAM,WAAW,UAAU;IACzB;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,KAAK,MAAM,CAAC;CAClE;AAED;;GAEG;AACH,qBAAa,SAAU,YAAW,UAAU;IAC1C;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,MAAM;IAI5D,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAmenC;CACH;AACD,eAAO,MAAM,gBAAgB,EAAE,UAA4B,CAAC"}
|
package/es/url.d.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The namespace for URL-related functions.
|
|
3
|
+
*/
|
|
4
|
+
export declare class URL {
|
|
5
|
+
/**
|
|
6
|
+
* Parse URL and retrieve hostname
|
|
7
|
+
*
|
|
8
|
+
* @param url - The URL string to parse
|
|
9
|
+
*
|
|
10
|
+
* @returns a hostname string value
|
|
11
|
+
*/
|
|
12
|
+
static getHostName(url: string): string;
|
|
13
|
+
/**
|
|
14
|
+
* Normalize a url.
|
|
15
|
+
*/
|
|
16
|
+
static normalize(url: string): string;
|
|
17
|
+
static normalize(url: undefined): undefined;
|
|
18
|
+
static normalize(url: string | undefined): string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Join a sequence of url components and normalizes as in node `path.join`.
|
|
21
|
+
*
|
|
22
|
+
* @param parts - The url components.
|
|
23
|
+
*
|
|
24
|
+
* @returns the joined url.
|
|
25
|
+
*/
|
|
26
|
+
static join(...parts: string[]): string;
|
|
27
|
+
/**
|
|
28
|
+
* Encode the components of a multi-segment url.
|
|
29
|
+
*
|
|
30
|
+
* @param url - The url to encode.
|
|
31
|
+
*
|
|
32
|
+
* @returns the encoded url.
|
|
33
|
+
*
|
|
34
|
+
* #### Notes
|
|
35
|
+
* Preserves the `'/'` separators.
|
|
36
|
+
* Should not include the base url, since all parts are escaped.
|
|
37
|
+
*/
|
|
38
|
+
static encodeParts(url: string): string;
|
|
39
|
+
/**
|
|
40
|
+
* Parse a url into a URL object.
|
|
41
|
+
*
|
|
42
|
+
* @param urlString - The URL string to parse.
|
|
43
|
+
*
|
|
44
|
+
* @returns A URL object.
|
|
45
|
+
*/
|
|
46
|
+
static parse(url: string): IUrl;
|
|
47
|
+
/**
|
|
48
|
+
* Test whether the url is a local url.
|
|
49
|
+
*
|
|
50
|
+
* #### Notes
|
|
51
|
+
* This function returns `false` for any fully qualified url, including
|
|
52
|
+
* `data:`, `file:`, and `//` protocol URLs.
|
|
53
|
+
*/
|
|
54
|
+
static isLocal(url: string): boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The interface for a URL object
|
|
58
|
+
*/
|
|
59
|
+
export interface IUrl {
|
|
60
|
+
/**
|
|
61
|
+
* The full URL string that was parsed with both the protocol and host
|
|
62
|
+
* components converted to lower-case.
|
|
63
|
+
*/
|
|
64
|
+
href: string;
|
|
65
|
+
/**
|
|
66
|
+
* Identifies the URL's lower-cased protocol scheme.
|
|
67
|
+
*/
|
|
68
|
+
protocol: string;
|
|
69
|
+
/**
|
|
70
|
+
* The full lower-cased host portion of the URL, including the port if
|
|
71
|
+
* specified.
|
|
72
|
+
*/
|
|
73
|
+
host: string;
|
|
74
|
+
/**
|
|
75
|
+
* The lower-cased host name portion of the host component without the
|
|
76
|
+
* port included.
|
|
77
|
+
*/
|
|
78
|
+
hostname: string;
|
|
79
|
+
/**
|
|
80
|
+
* The numeric port portion of the host component.
|
|
81
|
+
*/
|
|
82
|
+
port: string;
|
|
83
|
+
/**
|
|
84
|
+
* The entire path section of the URL.
|
|
85
|
+
*/
|
|
86
|
+
pathname: string;
|
|
87
|
+
/**
|
|
88
|
+
* The "fragment" portion of the URL including the leading ASCII hash
|
|
89
|
+
* `(#)` character
|
|
90
|
+
*/
|
|
91
|
+
hash: string;
|
|
92
|
+
/**
|
|
93
|
+
* The search element, including leading question mark (`'?'`), if any,
|
|
94
|
+
* of the URL.
|
|
95
|
+
*/
|
|
96
|
+
search?: string;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=url.d.ts.map
|
package/es/url.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../src/url.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,qBAAa,GAAG;IACd;;;;;;OAMG;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAGvC;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IACrC,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS;IAC3C,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS;IAa7D;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;IAmBvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAGvC;;;;;;OAMG;IACH,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAQ/B;;;;;;OAMG;IACH,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;CAOrC;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/es/url.js
CHANGED
|
@@ -10,7 +10,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
10
10
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
11
11
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12
12
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
13
|
-
import { isWeb } from '@difizen/mana-
|
|
13
|
+
import { isWeb } from '@difizen/mana-app';
|
|
14
14
|
import { posix } from 'path-browserify';
|
|
15
15
|
import urlparse from 'url-parse';
|
|
16
16
|
|
package/es/utils.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { PartialJSONObject, PartialJSONValue } from './json.js';
|
|
2
|
+
import type { ICell, ICodeCell, IMarkdownCell, IRawCell } from './protocol/cell-protocol.js';
|
|
3
|
+
import type { MultilineString } from './protocol/notebook-protocol.js';
|
|
4
|
+
import type { IDisplayData, IDisplayUpdate, IError, IExecuteResult, IOutput, IStream } from './protocol/output-protocol.js';
|
|
5
|
+
/**
|
|
6
|
+
* Validate a mime type/value pair.
|
|
7
|
+
*
|
|
8
|
+
* @param type - The mimetype name.
|
|
9
|
+
*
|
|
10
|
+
* @param value - The value associated with the type.
|
|
11
|
+
*
|
|
12
|
+
* @returns Whether the type/value pair are valid.
|
|
13
|
+
*/
|
|
14
|
+
export declare function validateMimeValue(type: string, value: MultilineString | PartialJSONObject): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* join multiline string, normalizing line endings to \n
|
|
17
|
+
* @param value
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
export declare function concatMultilineString(value: MultilineString): string;
|
|
21
|
+
/**
|
|
22
|
+
* Test whether a cell is a raw cell.
|
|
23
|
+
*/
|
|
24
|
+
export declare function isRaw(cell: ICell): cell is IRawCell;
|
|
25
|
+
/**
|
|
26
|
+
* Test whether a cell is a markdown cell.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isMarkdown(cell: ICell): cell is IMarkdownCell;
|
|
29
|
+
/**
|
|
30
|
+
* Test whether a cell is a code cell.
|
|
31
|
+
*/
|
|
32
|
+
export declare function isCode(cell: ICell): cell is ICodeCell;
|
|
33
|
+
/**
|
|
34
|
+
* Test whether a cell is a code cell.
|
|
35
|
+
*/
|
|
36
|
+
export declare function isOutput(output: PartialJSONValue | IOutput[] | undefined): output is IOutput[];
|
|
37
|
+
/**
|
|
38
|
+
* Test whether an output is an execute result.
|
|
39
|
+
*/
|
|
40
|
+
export declare function isExecuteResult(output: IOutput): output is IExecuteResult;
|
|
41
|
+
/**
|
|
42
|
+
* Test whether an output is from display data.
|
|
43
|
+
*/
|
|
44
|
+
export declare function isDisplayData(output: IOutput): output is IDisplayData;
|
|
45
|
+
/**
|
|
46
|
+
* Test whether an output is from updated display data.
|
|
47
|
+
*/
|
|
48
|
+
export declare function isDisplayUpdate(output: IOutput): output is IDisplayUpdate;
|
|
49
|
+
/**
|
|
50
|
+
* Test whether an output is from a stream.
|
|
51
|
+
*/
|
|
52
|
+
export declare function isStream(output: IOutput): output is IStream;
|
|
53
|
+
/**
|
|
54
|
+
* Test whether an output is an error.
|
|
55
|
+
*/
|
|
56
|
+
export declare function isError(output: IOutput): output is IError;
|
|
57
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAErE,OAAO,KAAK,EACV,KAAK,EACL,SAAS,EACT,aAAa,EACb,QAAQ,EACT,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,MAAM,EACN,cAAc,EACd,OAAO,EACP,OAAO,EACR,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,eAAe,GAAG,iBAAiB,GACzC,OAAO,CAoCT;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,CAMpE;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,IAAI,QAAQ,CAEnD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,IAAI,aAAa,CAE7D;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,IAAI,SAAS,CAErD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EAAE,gBAAgB,GAAG,OAAO,EAAE,GAAG,SAAS,GAC/C,MAAM,IAAI,OAAO,EAAE,CAErB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,cAAc,CAEzE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,YAAY,CAErE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,cAAc,CAEzE;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,OAAO,CAE3D;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,MAAM,CAEzD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@difizen/libro-common",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libro",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"src"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@difizen/mana-
|
|
35
|
+
"@difizen/mana-app": "latest",
|
|
36
36
|
"path-browserify": "^1.0.0",
|
|
37
37
|
"sanitize-html": "^2.7.2",
|
|
38
38
|
"url-parse": "^1.5.10"
|