@jupyterlab/apputils 4.4.0-beta.2 → 4.4.0-rc.0
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/lib/sanitizer.js +4 -4
- package/package.json +20 -20
- package/src/sanitizer.ts +4 -4
- package/style/dialog.css +1 -0
package/lib/sanitizer.js
CHANGED
|
@@ -47,7 +47,7 @@ CssProp.B = {
|
|
|
47
47
|
z_index: `[+-]?[0-9]{1,7}`
|
|
48
48
|
};
|
|
49
49
|
/*
|
|
50
|
-
* Atomic (i.e. not
|
|
50
|
+
* Atomic (i.e. not dependent on other regular expressions) sub RegEx segments
|
|
51
51
|
*/
|
|
52
52
|
CssProp.A = {
|
|
53
53
|
absolute_size: `xx-small|x-small|small|medium|large|x-large|xx-large`,
|
|
@@ -77,7 +77,7 @@ CssProp._COLOR = {
|
|
|
77
77
|
rgba: String.raw `rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(${CssProp.N.integer_zero_ff}|${CssProp.N.number_zero_one}|${CssProp.B.percentage_zero_hundred})\s*\)`
|
|
78
78
|
};
|
|
79
79
|
/*
|
|
80
|
-
* Compound (i.e.
|
|
80
|
+
* Compound (i.e. dependent on other (sub) regular expressions) sub RegEx segments
|
|
81
81
|
*/
|
|
82
82
|
CssProp._C = {
|
|
83
83
|
alpha: `${CssProp.N.integer_zero_ff}|${CssProp.N.number_zero_one}|${CssProp.B.percentage_zero_hundred}`,
|
|
@@ -127,7 +127,7 @@ CssProp.C = {
|
|
|
127
127
|
...CssProp._C4
|
|
128
128
|
};
|
|
129
129
|
/*
|
|
130
|
-
* Property value regular expressions not
|
|
130
|
+
* Property value regular expressions not dependent on other sub expressions
|
|
131
131
|
*/
|
|
132
132
|
CssProp.AP = {
|
|
133
133
|
border_collapse: `collapse|separate`,
|
|
@@ -167,7 +167,7 @@ CssProp.AP = {
|
|
|
167
167
|
word_break: `normal|keep-all|break-all`
|
|
168
168
|
};
|
|
169
169
|
/*
|
|
170
|
-
* Compound propertiy value regular expressions (i.e.
|
|
170
|
+
* Compound propertiy value regular expressions (i.e. dependent on other sub expressions)
|
|
171
171
|
*/
|
|
172
172
|
CssProp._CP = {
|
|
173
173
|
background_attachment: `${CssProp.A.attachment}(,\\s*${CssProp.A.attachment})*`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/apputils",
|
|
3
|
-
"version": "4.4.0-
|
|
3
|
+
"version": "4.4.0-rc.0",
|
|
4
4
|
"description": "JupyterLab - Application Utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -44,30 +44,30 @@
|
|
|
44
44
|
"watch": "tsc -b --watch"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@jupyterlab/coreutils": "^6.3.0-
|
|
48
|
-
"@jupyterlab/observables": "^5.3.0-
|
|
49
|
-
"@jupyterlab/rendermime-interfaces": "^3.11.0-
|
|
50
|
-
"@jupyterlab/services": "^7.3.0-
|
|
51
|
-
"@jupyterlab/settingregistry": "^4.3.0-
|
|
52
|
-
"@jupyterlab/statedb": "^4.3.0-
|
|
53
|
-
"@jupyterlab/statusbar": "^4.3.0-
|
|
54
|
-
"@jupyterlab/translation": "^4.3.0-
|
|
55
|
-
"@jupyterlab/ui-components": "^4.3.0-
|
|
56
|
-
"@lumino/algorithm": "^2.0.
|
|
57
|
-
"@lumino/commands": "^2.3.
|
|
58
|
-
"@lumino/coreutils": "^2.
|
|
59
|
-
"@lumino/disposable": "^2.1.
|
|
60
|
-
"@lumino/domutils": "^2.0.
|
|
61
|
-
"@lumino/messaging": "^2.0.
|
|
62
|
-
"@lumino/signaling": "^2.1.
|
|
63
|
-
"@lumino/virtualdom": "^2.0.
|
|
64
|
-
"@lumino/widgets": "^2.
|
|
47
|
+
"@jupyterlab/coreutils": "^6.3.0-rc.0",
|
|
48
|
+
"@jupyterlab/observables": "^5.3.0-rc.0",
|
|
49
|
+
"@jupyterlab/rendermime-interfaces": "^3.11.0-rc.0",
|
|
50
|
+
"@jupyterlab/services": "^7.3.0-rc.0",
|
|
51
|
+
"@jupyterlab/settingregistry": "^4.3.0-rc.0",
|
|
52
|
+
"@jupyterlab/statedb": "^4.3.0-rc.0",
|
|
53
|
+
"@jupyterlab/statusbar": "^4.3.0-rc.0",
|
|
54
|
+
"@jupyterlab/translation": "^4.3.0-rc.0",
|
|
55
|
+
"@jupyterlab/ui-components": "^4.3.0-rc.0",
|
|
56
|
+
"@lumino/algorithm": "^2.0.2",
|
|
57
|
+
"@lumino/commands": "^2.3.1",
|
|
58
|
+
"@lumino/coreutils": "^2.2.0",
|
|
59
|
+
"@lumino/disposable": "^2.1.3",
|
|
60
|
+
"@lumino/domutils": "^2.0.2",
|
|
61
|
+
"@lumino/messaging": "^2.0.2",
|
|
62
|
+
"@lumino/signaling": "^2.1.3",
|
|
63
|
+
"@lumino/virtualdom": "^2.0.2",
|
|
64
|
+
"@lumino/widgets": "^2.5.0",
|
|
65
65
|
"@types/react": "^18.0.26",
|
|
66
66
|
"react": "^18.2.0",
|
|
67
67
|
"sanitize-html": "~2.12.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@jupyterlab/testing": "^4.3.0-
|
|
70
|
+
"@jupyterlab/testing": "^4.3.0-rc.0",
|
|
71
71
|
"@types/jest": "^29.2.0",
|
|
72
72
|
"@types/sanitize-html": "^2.11.0",
|
|
73
73
|
"jest": "^29.2.0",
|
package/src/sanitizer.ts
CHANGED
|
@@ -52,7 +52,7 @@ class CssProp {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
/*
|
|
55
|
-
* Atomic (i.e. not
|
|
55
|
+
* Atomic (i.e. not dependent on other regular expressions) sub RegEx segments
|
|
56
56
|
*/
|
|
57
57
|
private static readonly A = {
|
|
58
58
|
absolute_size: `xx-small|x-small|small|medium|large|x-large|xx-large`,
|
|
@@ -84,7 +84,7 @@ class CssProp {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
/*
|
|
87
|
-
* Compound (i.e.
|
|
87
|
+
* Compound (i.e. dependent on other (sub) regular expressions) sub RegEx segments
|
|
88
88
|
*/
|
|
89
89
|
private static readonly _C = {
|
|
90
90
|
alpha: `${CssProp.N.integer_zero_ff}|${CssProp.N.number_zero_one}|${CssProp.B.percentage_zero_hundred}`,
|
|
@@ -140,7 +140,7 @@ class CssProp {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
/*
|
|
143
|
-
* Property value regular expressions not
|
|
143
|
+
* Property value regular expressions not dependent on other sub expressions
|
|
144
144
|
*/
|
|
145
145
|
private static readonly AP = {
|
|
146
146
|
border_collapse: `collapse|separate`,
|
|
@@ -181,7 +181,7 @@ class CssProp {
|
|
|
181
181
|
};
|
|
182
182
|
|
|
183
183
|
/*
|
|
184
|
-
* Compound propertiy value regular expressions (i.e.
|
|
184
|
+
* Compound propertiy value regular expressions (i.e. dependent on other sub expressions)
|
|
185
185
|
*/
|
|
186
186
|
private static readonly _CP = {
|
|
187
187
|
background_attachment: `${CssProp.A.attachment}(,\\s*${CssProp.A.attachment})*`,
|