studiokit-scaffolding-js 7.0.7-alpha.1 → 7.0.7
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import ReactQuill from 'react-quill';
|
|
3
|
-
/** Options for Quill, used for defining options in the CustomToolbar, and for enabling
|
|
3
|
+
/** Options for Quill, used for defining options in the CustomToolbar, and for enabling formats in Quill */
|
|
4
4
|
export declare enum QUILL_OPTION {
|
|
5
5
|
HEADER = 2,
|
|
6
6
|
FONT = 4,
|
|
@@ -8,19 +8,19 @@ export declare enum QUILL_OPTION {
|
|
|
8
8
|
BOLD = 16,
|
|
9
9
|
ITALIC = 32,
|
|
10
10
|
UNDERLINE = 64,
|
|
11
|
-
/** NOTE: there is only a single "script"
|
|
11
|
+
/** NOTE: there is only a single "script" format, but there are separate options for the toolbar buttons */
|
|
12
12
|
SCRIPT_SUB = 128,
|
|
13
|
-
/** NOTE: there is only a single "script"
|
|
13
|
+
/** NOTE: there is only a single "script" format, but there are separate options for the toolbar buttons */
|
|
14
14
|
SCRIPT_SUPER = 256,
|
|
15
15
|
STRIKE_THROUGH = 512,
|
|
16
16
|
BLOCKQUOTE = 1024,
|
|
17
17
|
CODE_BLOCK = 2048,
|
|
18
18
|
ALIGN = 4096,
|
|
19
|
-
/** NOTE: there is only a single "list"
|
|
19
|
+
/** NOTE: there is only a single "list" format, but there are separate options for the toolbar buttons */
|
|
20
20
|
LIST_ORDERED = 8192,
|
|
21
|
-
/** NOTE: there is only a single "list"
|
|
21
|
+
/** NOTE: there is only a single "list" format, but there are separate options for the toolbar buttons */
|
|
22
22
|
LIST_BULLET = 16384,
|
|
23
|
-
/** NOTE: there is only a single "list"
|
|
23
|
+
/** NOTE: there is only a single "list" format, but there are separate options for the toolbar buttons */
|
|
24
24
|
LIST_ALPHA = 32768,
|
|
25
25
|
INDENT = 65536,
|
|
26
26
|
LINK = 131072,
|
|
@@ -30,7 +30,7 @@ export declare enum QUILL_OPTION {
|
|
|
30
30
|
TABLE = 2097152,
|
|
31
31
|
/** NOTE: variable support is not currently in scaffolding, just the toolbar option */
|
|
32
32
|
VARIABLE = 4194304,
|
|
33
|
-
/** NOTE: there is no "clean"
|
|
33
|
+
/** NOTE: there is no "clean" format, this is only used to display the toolbar button */
|
|
34
34
|
CLEAN = 8388608
|
|
35
35
|
}
|
|
36
36
|
/** Flatten the nested section options for the toolbar into a flat array of options. */
|
|
@@ -35,7 +35,7 @@ var IconTableInsertCol_1 = require("../Icons/IconTableInsertCol");
|
|
|
35
35
|
var IconTableInsertRow_1 = require("../Icons/IconTableInsertRow");
|
|
36
36
|
var accessibilityFix_1 = require("./accessibilityFix");
|
|
37
37
|
var constants_1 = require("./TableModule/constants");
|
|
38
|
-
/** Options for Quill, used for defining options in the CustomToolbar, and for enabling
|
|
38
|
+
/** Options for Quill, used for defining options in the CustomToolbar, and for enabling formats in Quill */
|
|
39
39
|
var QUILL_OPTION;
|
|
40
40
|
(function (QUILL_OPTION) {
|
|
41
41
|
QUILL_OPTION[QUILL_OPTION["HEADER"] = 2] = "HEADER";
|
|
@@ -44,19 +44,19 @@ var QUILL_OPTION;
|
|
|
44
44
|
QUILL_OPTION[QUILL_OPTION["BOLD"] = 16] = "BOLD";
|
|
45
45
|
QUILL_OPTION[QUILL_OPTION["ITALIC"] = 32] = "ITALIC";
|
|
46
46
|
QUILL_OPTION[QUILL_OPTION["UNDERLINE"] = 64] = "UNDERLINE";
|
|
47
|
-
/** NOTE: there is only a single "script"
|
|
47
|
+
/** NOTE: there is only a single "script" format, but there are separate options for the toolbar buttons */
|
|
48
48
|
QUILL_OPTION[QUILL_OPTION["SCRIPT_SUB"] = 128] = "SCRIPT_SUB";
|
|
49
|
-
/** NOTE: there is only a single "script"
|
|
49
|
+
/** NOTE: there is only a single "script" format, but there are separate options for the toolbar buttons */
|
|
50
50
|
QUILL_OPTION[QUILL_OPTION["SCRIPT_SUPER"] = 256] = "SCRIPT_SUPER";
|
|
51
51
|
QUILL_OPTION[QUILL_OPTION["STRIKE_THROUGH"] = 512] = "STRIKE_THROUGH";
|
|
52
52
|
QUILL_OPTION[QUILL_OPTION["BLOCKQUOTE"] = 1024] = "BLOCKQUOTE";
|
|
53
53
|
QUILL_OPTION[QUILL_OPTION["CODE_BLOCK"] = 2048] = "CODE_BLOCK";
|
|
54
54
|
QUILL_OPTION[QUILL_OPTION["ALIGN"] = 4096] = "ALIGN";
|
|
55
|
-
/** NOTE: there is only a single "list"
|
|
55
|
+
/** NOTE: there is only a single "list" format, but there are separate options for the toolbar buttons */
|
|
56
56
|
QUILL_OPTION[QUILL_OPTION["LIST_ORDERED"] = 8192] = "LIST_ORDERED";
|
|
57
|
-
/** NOTE: there is only a single "list"
|
|
57
|
+
/** NOTE: there is only a single "list" format, but there are separate options for the toolbar buttons */
|
|
58
58
|
QUILL_OPTION[QUILL_OPTION["LIST_BULLET"] = 16384] = "LIST_BULLET";
|
|
59
|
-
/** NOTE: there is only a single "list"
|
|
59
|
+
/** NOTE: there is only a single "list" format, but there are separate options for the toolbar buttons */
|
|
60
60
|
QUILL_OPTION[QUILL_OPTION["LIST_ALPHA"] = 32768] = "LIST_ALPHA";
|
|
61
61
|
QUILL_OPTION[QUILL_OPTION["INDENT"] = 65536] = "INDENT";
|
|
62
62
|
QUILL_OPTION[QUILL_OPTION["LINK"] = 131072] = "LINK";
|
|
@@ -66,7 +66,7 @@ var QUILL_OPTION;
|
|
|
66
66
|
QUILL_OPTION[QUILL_OPTION["TABLE"] = 2097152] = "TABLE";
|
|
67
67
|
/** NOTE: variable support is not currently in scaffolding, just the toolbar option */
|
|
68
68
|
QUILL_OPTION[QUILL_OPTION["VARIABLE"] = 4194304] = "VARIABLE";
|
|
69
|
-
/** NOTE: there is no "clean"
|
|
69
|
+
/** NOTE: there is no "clean" format, this is only used to display the toolbar button */
|
|
70
70
|
QUILL_OPTION[QUILL_OPTION["CLEAN"] = 8388608] = "CLEAN";
|
|
71
71
|
})(QUILL_OPTION = exports.QUILL_OPTION || (exports.QUILL_OPTION = {}));
|
|
72
72
|
var getNameForOption = function (option) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "studiokit-scaffolding-js",
|
|
3
|
-
"version": "7.0.7
|
|
3
|
+
"version": "7.0.7",
|
|
4
4
|
"description": "Common scaffolding for Studio apps at Purdue",
|
|
5
5
|
"repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
|
|
6
6
|
"license": "MIT",
|