@d-i-t-a/reader 2.0.0-alpha.3 → 2.0.0-beta.3
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/dist/esm/index.js +48577 -39684
- package/dist/esm/index.js.map +3 -3
- package/dist/injectables/style/popup.css +121 -0
- package/dist/injectables/style/style.css +39 -0
- package/dist/reader.css +1 -4
- package/dist/reader.js +75 -518
- package/dist/reader.js.map +3 -3
- package/dist/reader.map.css +1 -1
- package/dist/types/model/Locator.d.ts +3 -18
- package/dist/types/model/Publication.d.ts +3 -0
- package/dist/types/modules/AnnotationModule.d.ts +16 -5
- package/dist/types/modules/BookmarkModule.d.ts +12 -1
- package/dist/types/modules/TTS/TTSModule.d.ts +3 -28
- package/dist/types/modules/TTS/TTSModule2.d.ts +73 -0
- package/dist/types/modules/TTS/TTSSettings.d.ts +29 -5
- package/dist/types/modules/highlight/TextHighlighter.d.ts +26 -7
- package/dist/types/modules/highlight/common/highlight.d.ts +53 -2
- package/dist/types/modules/highlight/common/rect-utils.d.ts +1 -1
- package/dist/types/modules/highlight/common/selection.d.ts +5 -0
- package/dist/types/modules/pagebreak/PageBreakModule.d.ts +23 -0
- package/dist/types/modules/sampleread/SampleReadEventHandler.d.ts +8 -0
- package/dist/types/modules/search/DefinitionsModule.d.ts +44 -0
- package/dist/types/modules/search/Popup.d.ts +8 -0
- package/dist/types/modules/search/SearchModule.d.ts +1 -1
- package/dist/types/navigator/IFrameNavigator.d.ts +42 -24
- package/dist/types/reader.d.ts +18 -2
- package/dist/types/store/Annotator.d.ts +1 -0
- package/dist/types/store/LocalAnnotator.d.ts +1 -0
- package/dist/types/utils/EventHandler.d.ts +5 -0
- package/dist/types/utils/IconLib.d.ts +1 -0
- package/dist/types/views/BookView.d.ts +5 -3
- package/dist/types/views/FixedBookView.d.ts +4 -1
- package/dist/types/views/ReflowableBookView.d.ts +2 -2
- package/package.json +3 -1
- package/CHANGELOG.md +0 -6
- package/NOTICE +0 -20
- package/dist/injectables/footnotes/footnotes.css +0 -53
- package/dist/injectables/footnotes/footnotes.js +0 -1828
- package/dist/injectables/footnotes/footnotes.js.map +0 -7
- package/dist/injectables/glossary/glossary.css +0 -27
- package/dist/injectables/glossary/glossary.js +0 -2814
- package/dist/injectables/glossary/glossary.js.map +0 -7
- package/dist/injectables/pagebreak/pagebreak.css +0 -59
- package/dist/types/modules/highlight/common/styles.d.ts +0 -35
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2018-2020 DITA (AM Consulting LLC)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*
|
|
16
|
+
* Developed on behalf of: DITA
|
|
17
|
+
* Licensed to: CAST under one or more contributor license agreements.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
.d2-popup {
|
|
21
|
+
position: fixed;
|
|
22
|
+
z-index: 10;
|
|
23
|
+
top: 0;
|
|
24
|
+
display: inline-block;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
max-width: 90%;
|
|
27
|
+
background: #fafafa;
|
|
28
|
+
opacity: 0;
|
|
29
|
+
border-radius: 0.5em;
|
|
30
|
+
border: 1px solid #c3c3c3;
|
|
31
|
+
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);
|
|
32
|
+
line-height: 0;
|
|
33
|
+
-webkit-transition-property: opacity, -webkit-transform;
|
|
34
|
+
transition-property: opacity, transform;
|
|
35
|
+
-webkit-transition-duration: 0.25s;
|
|
36
|
+
transition-duration: 0.25s;
|
|
37
|
+
-webkit-transition-timing-function: ease;
|
|
38
|
+
transition-timing-function: ease;
|
|
39
|
+
left: 50%;
|
|
40
|
+
transform: translateX(-50%) !important;
|
|
41
|
+
}
|
|
42
|
+
.d2-popup.is-active {
|
|
43
|
+
-webkit-transform: scale(1) translateZ(0);
|
|
44
|
+
transform: scale(1) translateZ(0);
|
|
45
|
+
opacity: 0.97;
|
|
46
|
+
}
|
|
47
|
+
.d2-popup.is-scrollable:after {
|
|
48
|
+
content: '';
|
|
49
|
+
position: absolute;
|
|
50
|
+
bottom: 0.3375em;
|
|
51
|
+
left: 0.3375em;
|
|
52
|
+
z-index: 14;
|
|
53
|
+
display: block;
|
|
54
|
+
height: 0.78125em;
|
|
55
|
+
width: 0.625em;
|
|
56
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxNXB4IiB2aWV3Qm94PSIwIDAgMTIgMTUiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pbllNaW4iPgogICAgPGcgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkFycm93IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjAwMDAwMCwgMS4wMDAwMDApIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiPgogICAgICAgICAgICA8cGF0aCBkPSJNNSwwIEw1LDExLjUiIGlkPSJMaW5lIj48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjUsNy41IEw1LjAyNzY5Mjc5LDEyLjAyNzY5MjgiIGlkPSJMaW5lIj48L3BhdGg+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik00LjUsNy41IEw5LjAyNzY5Mjc5LDEyLjAyNzY5MjgiIGlkPSJMaW5lLTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDcuMDAwMDAwLCAxMC4wMDAwMDApIHNjYWxlKC0xLCAxKSB0cmFuc2xhdGUoLTcuMDAwMDAwLCAtMTAuMDAwMDAwKSAiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo=");
|
|
57
|
+
background-size: cover;
|
|
58
|
+
opacity: 0.1;
|
|
59
|
+
transition-properties: opacity;
|
|
60
|
+
-webkit-transition-duration: 0.25s;
|
|
61
|
+
transition-duration: 0.25s;
|
|
62
|
+
-webkit-transition-timing-function: ease;
|
|
63
|
+
transition-timing-function: ease;
|
|
64
|
+
}
|
|
65
|
+
.d2-popup.is-scrollable .d2-popup__wrapper:before, .d2-popup.is-scrollable .d2-popup__wrapper:after {
|
|
66
|
+
content: '';
|
|
67
|
+
position: absolute;
|
|
68
|
+
width: 100%;
|
|
69
|
+
z-index: 12;
|
|
70
|
+
left: 0;
|
|
71
|
+
}
|
|
72
|
+
.d2-popup.is-scrollable .d2-popup__wrapper:before {
|
|
73
|
+
top: -1px;
|
|
74
|
+
height: 1.1em;
|
|
75
|
+
border-radius: 0.5em 0.5em 0 0;
|
|
76
|
+
background-image: -webkit-linear-gradient(top, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
77
|
+
background-image: linear-gradient(to bottom, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
78
|
+
}
|
|
79
|
+
.d2-popup.is-scrollable .d2-popup__wrapper:after {
|
|
80
|
+
bottom: -1px;
|
|
81
|
+
height: 1.2em;
|
|
82
|
+
border-radius: 0 0 0.5em 0.5em;
|
|
83
|
+
background-image: -webkit-linear-gradient(bottom, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
84
|
+
background-image: linear-gradient(to top, #fafafa 50%, rgba(250, 250, 250, 0) 100%);
|
|
85
|
+
}
|
|
86
|
+
.d2-popup.is-scrollable ::-webkit-scrollbar {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
.d2-popup.is-fully-scrolled:after, .d2-popup.is-fully-scrolled:before {
|
|
90
|
+
opacity: 0;
|
|
91
|
+
-webkit-transition-delay: 0;
|
|
92
|
+
transition-delay: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.d2-popup-wrapper {
|
|
96
|
+
position: relative;
|
|
97
|
+
z-index: 14;
|
|
98
|
+
width: 22em;
|
|
99
|
+
display: inline-block;
|
|
100
|
+
box-sizing: inherit;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
margin: 0;
|
|
103
|
+
background-color: #fafafa;
|
|
104
|
+
border-radius: 0.5em;
|
|
105
|
+
line-height: 0;
|
|
106
|
+
max-width: 353px;
|
|
107
|
+
}
|
|
108
|
+
.d2-popup-content {
|
|
109
|
+
position: relative;
|
|
110
|
+
z-index: 8;
|
|
111
|
+
display: inline-block;
|
|
112
|
+
max-height: 15em;
|
|
113
|
+
padding: 1.1em 1.3em 1.2em;
|
|
114
|
+
box-sizing: inherit;
|
|
115
|
+
overflow: auto;
|
|
116
|
+
-webkit-overflow-scrolling: touch;
|
|
117
|
+
background: #fafafa;
|
|
118
|
+
border-radius: 0.5em;
|
|
119
|
+
-webkit-font-smoothing: subpixel-antialiased;
|
|
120
|
+
line-height: normal;
|
|
121
|
+
}
|
|
@@ -185,3 +185,42 @@
|
|
|
185
185
|
z-index: 2;
|
|
186
186
|
position: relative;
|
|
187
187
|
}
|
|
188
|
+
|
|
189
|
+
.icon:hover .icon-tooltip {
|
|
190
|
+
display: block;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.icon-tooltip {
|
|
194
|
+
display: none;
|
|
195
|
+
position: absolute;
|
|
196
|
+
left: 50%;
|
|
197
|
+
/*top: 50%;*/
|
|
198
|
+
transform: translate(-50%, -105%);
|
|
199
|
+
background: #DADADA;
|
|
200
|
+
padding: 0.25rem 0.5rem;
|
|
201
|
+
text-overflow: ellipsis;
|
|
202
|
+
max-width: 22rem;
|
|
203
|
+
min-width: 100px;
|
|
204
|
+
font-size: small;
|
|
205
|
+
z-index: 1000;
|
|
206
|
+
border: 1px dotted #5b5852;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.icon-tooltip:before, .icon-tooltip:after {
|
|
210
|
+
content: '';
|
|
211
|
+
display: block;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.icon-tooltip:before {
|
|
215
|
+
content: " ";
|
|
216
|
+
display: block;
|
|
217
|
+
position: absolute;
|
|
218
|
+
top: 100%;
|
|
219
|
+
left: 50%;
|
|
220
|
+
width: 0;
|
|
221
|
+
height: 0;
|
|
222
|
+
border-left: 10px solid transparent;
|
|
223
|
+
border-right: 10px solid transparent;
|
|
224
|
+
border-top: 5px solid #5b5852;
|
|
225
|
+
margin-left: -10px;
|
|
226
|
+
}
|
package/dist/reader.css
CHANGED
|
@@ -847,9 +847,6 @@ a {
|
|
|
847
847
|
.highlight-toolbox > div > button {
|
|
848
848
|
display: inline-block; }
|
|
849
849
|
|
|
850
|
-
.color-option {
|
|
851
|
-
background-color: gainsboro; }
|
|
852
|
-
|
|
853
850
|
.color-option span {
|
|
854
851
|
display: inline-block;
|
|
855
852
|
border-radius: 50%;
|
|
@@ -1085,7 +1082,7 @@ input::-moz-focus-outer {
|
|
|
1085
1082
|
* Licensed to: Bibliotheca LLC, Bokbasen AS and CAST under one or more contributor license agreements.
|
|
1086
1083
|
*/
|
|
1087
1084
|
@media only screen and (max-width: 600px) {
|
|
1088
|
-
.timeline, .scrubber > input
|
|
1085
|
+
.timeline, .scrubber > input {
|
|
1089
1086
|
display: none; } }
|
|
1090
1087
|
|
|
1091
1088
|
.scrubber {
|