@macrostrat/feedback-components 1.1.9 → 2.0.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/CHANGELOG.md +10 -0
- package/dist/extractions/index.cjs +198 -0
- package/dist/extractions/index.cjs.map +1 -0
- package/dist/extractions/index.d.ts +30 -0
- package/dist/extractions/index.js +198 -0
- package/dist/extractions/index.js.map +1 -0
- package/dist/extractions/main.module.sass.cjs +12 -0
- package/dist/extractions/main.module.sass.cjs.map +1 -0
- package/dist/extractions/main.module.sass.js +12 -0
- package/dist/extractions/main.module.sass.js.map +1 -0
- package/dist/extractions/types.d.ts +32 -0
- package/dist/feedback/edit-state.cjs +382 -0
- package/dist/feedback/edit-state.cjs.map +1 -0
- package/dist/feedback/edit-state.d.ts +127 -0
- package/dist/feedback/edit-state.js +382 -0
- package/dist/feedback/edit-state.js.map +1 -0
- package/dist/feedback/feedback.module.sass.cjs +47 -0
- package/dist/feedback/feedback.module.sass.cjs.map +1 -0
- package/dist/feedback/feedback.module.sass.js +47 -0
- package/dist/feedback/feedback.module.sass.js.map +1 -0
- package/dist/feedback/graph.cjs +124 -0
- package/dist/feedback/graph.cjs.map +1 -0
- package/dist/feedback/graph.d.ts +9 -0
- package/dist/feedback/graph.js +124 -0
- package/dist/feedback/graph.js.map +1 -0
- package/dist/feedback/index.cjs +347 -0
- package/dist/feedback/index.cjs.map +1 -0
- package/dist/feedback/index.d.ts +15 -0
- package/dist/feedback/index.js +348 -0
- package/dist/feedback/index.js.map +1 -0
- package/dist/feedback/matches.cjs +244 -0
- package/dist/feedback/matches.cjs.map +1 -0
- package/dist/feedback/matches.d.ts +17 -0
- package/dist/feedback/matches.js +244 -0
- package/dist/feedback/matches.js.map +1 -0
- package/dist/feedback/node.cjs +63 -0
- package/dist/feedback/node.cjs.map +1 -0
- package/dist/feedback/node.d.ts +5 -0
- package/dist/feedback/node.js +63 -0
- package/dist/feedback/node.js.map +1 -0
- package/dist/feedback/text-visualizer.cjs +288 -0
- package/dist/feedback/text-visualizer.cjs.map +1 -0
- package/dist/feedback/text-visualizer.d.ts +36 -0
- package/dist/feedback/text-visualizer.js +288 -0
- package/dist/feedback/text-visualizer.js.map +1 -0
- package/dist/feedback/type-selector/index.cjs +47 -0
- package/dist/feedback/type-selector/index.cjs.map +1 -0
- package/dist/feedback/type-selector/index.d.ts +20 -0
- package/dist/feedback/type-selector/index.js +47 -0
- package/dist/feedback/type-selector/index.js.map +1 -0
- package/dist/feedback/type-selector/main.module.sass.cjs +13 -0
- package/dist/feedback/type-selector/main.module.sass.cjs.map +1 -0
- package/dist/feedback/type-selector/main.module.sass.js +13 -0
- package/dist/feedback/type-selector/main.module.sass.js.map +1 -0
- package/dist/feedback/typelist.cjs +293 -0
- package/dist/feedback/typelist.cjs.map +1 -0
- package/dist/feedback/typelist.d.ts +8 -0
- package/dist/feedback/typelist.js +293 -0
- package/dist/feedback/typelist.js.map +1 -0
- package/dist/feedback/types.d.ts +64 -0
- package/dist/feedback-components.css +343 -0
- package/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/package.json +43 -41
- package/src/extractions/index.ts +2 -2
- package/src/feedback/text-visualizer.ts +0 -1
- package/src/feedback/types.ts +2 -2
- package/dist/esm/feedback-components.2364179b.js +0 -287
- package/dist/esm/feedback-components.2364179b.js.map +0 -1
- package/dist/esm/feedback-components.6d32ee91.js +0 -16
- package/dist/esm/feedback-components.6d32ee91.js.map +0 -1
- package/dist/esm/feedback-components.7dd42a9f.js +0 -248
- package/dist/esm/feedback-components.7dd42a9f.js.map +0 -1
- package/dist/esm/feedback-components.7f72e5e9.js +0 -64
- package/dist/esm/feedback-components.7f72e5e9.js.map +0 -1
- package/dist/esm/feedback-components.ad9f284e.js +0 -63
- package/dist/esm/feedback-components.ad9f284e.js.map +0 -1
- package/dist/esm/feedback-components.ba79c0ef.js +0 -204
- package/dist/esm/feedback-components.ba79c0ef.js.map +0 -1
- package/dist/esm/feedback-components.bf93773c.css +0 -17
- package/dist/esm/feedback-components.bf93773c.css.map +0 -1
- package/dist/esm/feedback-components.c6e2c296.js +0 -148
- package/dist/esm/feedback-components.c6e2c296.js.map +0 -1
- package/dist/esm/feedback-components.ca78c2d4.js +0 -287
- package/dist/esm/feedback-components.ca78c2d4.js.map +0 -1
- package/dist/esm/feedback-components.d769ffa5.css +0 -205
- package/dist/esm/feedback-components.d769ffa5.css.map +0 -1
- package/dist/esm/feedback-components.e273ed5b.css +0 -14
- package/dist/esm/feedback-components.e273ed5b.css.map +0 -1
- package/dist/esm/feedback-components.e702eece.js +0 -97
- package/dist/esm/feedback-components.e702eece.js.map +0 -1
- package/dist/esm/feedback-components.edc606bb.js +0 -360
- package/dist/esm/feedback-components.edc606bb.js.map +0 -1
- package/dist/esm/feedback-components.f9850d85.js +0 -19
- package/dist/esm/feedback-components.f9850d85.js.map +0 -1
- package/dist/esm/feedback-components.fa847634.js +0 -453
- package/dist/esm/feedback-components.fa847634.js.map +0 -1
- package/dist/esm/index.d.ts +0 -96
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -9
- package/dist/esm/index.js.map +0 -1
- package/dist/node/feedback-components.1bd49bf0.js +0 -2
- package/dist/node/feedback-components.1bd49bf0.js.map +0 -1
- package/dist/node/feedback-components.2f391fa4.js +0 -2
- package/dist/node/feedback-components.2f391fa4.js.map +0 -1
- package/dist/node/feedback-components.6a4a1290.js +0 -2
- package/dist/node/feedback-components.6a4a1290.js.map +0 -1
- package/dist/node/feedback-components.70780da4.js +0 -2
- package/dist/node/feedback-components.70780da4.js.map +0 -1
- package/dist/node/feedback-components.794f429b.js +0 -2
- package/dist/node/feedback-components.794f429b.js.map +0 -1
- package/dist/node/feedback-components.83c21466.css +0 -2
- package/dist/node/feedback-components.83c21466.css.map +0 -1
- package/dist/node/feedback-components.97518e90.css +0 -2
- package/dist/node/feedback-components.97518e90.css.map +0 -1
- package/dist/node/feedback-components.9eb1d41a.css +0 -2
- package/dist/node/feedback-components.9eb1d41a.css.map +0 -1
- package/dist/node/feedback-components.acac789b.js +0 -2
- package/dist/node/feedback-components.acac789b.js.map +0 -1
- package/dist/node/feedback-components.c84ff10e.js +0 -2
- package/dist/node/feedback-components.c84ff10e.js.map +0 -1
- package/dist/node/feedback-components.db72d0e1.js +0 -2
- package/dist/node/feedback-components.db72d0e1.js.map +0 -1
- package/dist/node/feedback-components.dc76072c.js +0 -2
- package/dist/node/feedback-components.dc76072c.js.map +0 -1
- package/dist/node/feedback-components.ddd11fe8.js +0 -2
- package/dist/node/feedback-components.ddd11fe8.js.map +0 -1
- package/dist/node/feedback-components.e59a061f.js +0 -2
- package/dist/node/feedback-components.e59a061f.js.map +0 -1
- package/dist/node/feedback-components.feab0bd0.js +0 -2
- package/dist/node/feedback-components.feab0bd0.js.map +0 -1
- package/dist/node/index.js +0 -2
- package/dist/node/index.js.map +0 -1
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
._entities_m1o0j_1 {
|
|
2
|
+
list-style: none;
|
|
3
|
+
padding-left: 0;
|
|
4
|
+
}
|
|
5
|
+
._entities_m1o0j_1 ._entities_m1o0j_1 ul {
|
|
6
|
+
list-style: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
._entity_m1o0j_9 {
|
|
10
|
+
margin: 0.2em 0 0.5em;
|
|
11
|
+
padding-right: 3px;
|
|
12
|
+
}:root {
|
|
13
|
+
--text-line-height: 3em;
|
|
14
|
+
--main-extra-width: 200px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
._page-wrapper_65dbg_6 {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
position: relative;
|
|
21
|
+
gap: 2em;
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
._feedback-container_65dbg_14 {
|
|
26
|
+
flex: 4;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
._control-panel_65dbg_18 {
|
|
30
|
+
flex: 1;
|
|
31
|
+
height: auto;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
._control-content_65dbg_23 {
|
|
35
|
+
position: sticky;
|
|
36
|
+
top: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
._feedback-component_65dbg_28 {
|
|
40
|
+
position: relative;
|
|
41
|
+
width: 800px;
|
|
42
|
+
}
|
|
43
|
+
._feedback-component_65dbg_28 > svg {
|
|
44
|
+
width: 800px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
circle {
|
|
48
|
+
border: 1px solid black;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
._selected_65dbg_40 {
|
|
52
|
+
border: 1px solid white;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
._feedback-text_65dbg_44 {
|
|
56
|
+
margin-bottom: 2em;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
._entity-panel_65dbg_48 {
|
|
60
|
+
position: relative;
|
|
61
|
+
max-height: 600px;
|
|
62
|
+
width: calc(100% - 2em);
|
|
63
|
+
flex: 1;
|
|
64
|
+
min-height: 100px;
|
|
65
|
+
padding: 1em;
|
|
66
|
+
background: var(--panel-secondary-background-color);
|
|
67
|
+
border-radius: 4px;
|
|
68
|
+
box-shadow: 0 0 0 1px var(--panel-border-color) inset;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
._selection-tree_65dbg_60 {
|
|
72
|
+
margin: -1em 0;
|
|
73
|
+
padding: 1em 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
._type-list_65dbg_65 {
|
|
77
|
+
display: grid;
|
|
78
|
+
grid-auto-flow: column;
|
|
79
|
+
grid-template-rows: repeat(10, auto);
|
|
80
|
+
gap: 0.2em;
|
|
81
|
+
}
|
|
82
|
+
._type-list_65dbg_65 ._type-tag_65dbg_71 {
|
|
83
|
+
padding: 0.2em 0.5em;
|
|
84
|
+
border-radius: 0.2em;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
._description_65dbg_76 {
|
|
88
|
+
max-width: 300px;
|
|
89
|
+
padding: 0.5em;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
mark {
|
|
93
|
+
border-radius: 0.2em;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
color: black !important;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[role=treeitem] {
|
|
99
|
+
width: auto !important;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
._highlight_65dbg_91 {
|
|
103
|
+
padding: 0.2em 0;
|
|
104
|
+
border-radius: 0.2em;
|
|
105
|
+
position: relative;
|
|
106
|
+
zIndex: 10;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
._clickable_65dbg_98 {
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
._feedback-text-wrapper_65dbg_102 {
|
|
114
|
+
position: relative;
|
|
115
|
+
z-index: 0;
|
|
116
|
+
overflow: visible;
|
|
117
|
+
line-height: var(--text-line-height);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
._type-container_65dbg_109 {
|
|
121
|
+
display: flex;
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
align-items: center;
|
|
124
|
+
column-gap: 1em;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
._add-type_65dbg_116 {
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
display: flex;
|
|
130
|
+
justify-content: space-between;
|
|
131
|
+
padding: 0 0.5em;
|
|
132
|
+
align-items: center;
|
|
133
|
+
}
|
|
134
|
+
._add-type_65dbg_116 p {
|
|
135
|
+
margin: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
._overlay-container_65dbg_127 {
|
|
139
|
+
height: 80vh;
|
|
140
|
+
width: 100vw;
|
|
141
|
+
display: flex;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
align-items: center;
|
|
144
|
+
}
|
|
145
|
+
._overlay-container_65dbg_127 ._add-type-overlay_65dbg_134 {
|
|
146
|
+
background-color: var(--tertiary-background);
|
|
147
|
+
padding: 0.5em 1em;
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
gap: 1em;
|
|
151
|
+
border-radius: 0.2em;
|
|
152
|
+
}
|
|
153
|
+
._overlay-container_65dbg_127 ._add-type-overlay_65dbg_134 ._title_65dbg_142 {
|
|
154
|
+
display: flex;
|
|
155
|
+
justify-content: space-between;
|
|
156
|
+
align-items: center;
|
|
157
|
+
}
|
|
158
|
+
._overlay-container_65dbg_127 ._add-type-overlay_65dbg_134 h2 {
|
|
159
|
+
margin: 0;
|
|
160
|
+
}
|
|
161
|
+
._overlay-container_65dbg_127 ._add-type-overlay_65dbg_134 ._form-group_65dbg_150 {
|
|
162
|
+
display: flex;
|
|
163
|
+
gap: 3em;
|
|
164
|
+
}
|
|
165
|
+
._overlay-container_65dbg_127 ._add-type-overlay_65dbg_134 ._form-group_65dbg_150 ._text-inputs_65dbg_154 {
|
|
166
|
+
display: flex;
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
gap: 1em;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
._icons_65dbg_160 {
|
|
172
|
+
display: flex;
|
|
173
|
+
gap: 0.25em;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
._node-label_65dbg_165 {
|
|
177
|
+
fill: var(--text-emphasized-color);
|
|
178
|
+
fontSize: 10px;
|
|
179
|
+
pointerEvents: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
._match-item_65dbg_171 {
|
|
183
|
+
color: var(--text-emphasized-color);
|
|
184
|
+
padding: 0.1em 0.2em;
|
|
185
|
+
border-radius: 0.2em;
|
|
186
|
+
margin-bottom: 4px;
|
|
187
|
+
cursor: pointer;
|
|
188
|
+
}
|
|
189
|
+
._match-item_65dbg_171 ._match-label_65dbg_178 {
|
|
190
|
+
margin: 0;
|
|
191
|
+
color: var(--text-color);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
._match-container_65dbg_183 {
|
|
195
|
+
display: flex;
|
|
196
|
+
justify-content: space-between;
|
|
197
|
+
align-items: center;
|
|
198
|
+
}
|
|
199
|
+
._match-container_65dbg_183 ._close-btn_65dbg_188 {
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
._match-link_65dbg_192 {
|
|
204
|
+
padding: 0.5em;
|
|
205
|
+
}._item-container_fcffo_1 {
|
|
206
|
+
min-height: 40px;
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
gap: 1em;
|
|
210
|
+
}
|
|
211
|
+
._item-container_fcffo_1._selected_fcffo_7 {
|
|
212
|
+
background-color: var(--panel-background-color);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
._swatch_fcffo_11 {
|
|
216
|
+
width: 30px;
|
|
217
|
+
height: 30px;
|
|
218
|
+
border-radius: 4px;
|
|
219
|
+
}.bp6-multi-select{
|
|
220
|
+
min-width:150px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.bp6-multi-select-popover .bp6-popover-content{
|
|
224
|
+
padding:4px;
|
|
225
|
+
}
|
|
226
|
+
.bp6-multi-select-popover .bp6-multi-select-popover-default-width{
|
|
227
|
+
max-width:350px;
|
|
228
|
+
}
|
|
229
|
+
.bp6-multi-select-popover .bp6-multi-select-popover-tag-input-margin{
|
|
230
|
+
margin-bottom:1px;
|
|
231
|
+
}
|
|
232
|
+
.bp6-multi-select-popover .bp6-menu{
|
|
233
|
+
margin-left:-4px;
|
|
234
|
+
margin-right:-4px;
|
|
235
|
+
max-height:300px;
|
|
236
|
+
max-width:400px;
|
|
237
|
+
overflow:auto;
|
|
238
|
+
}
|
|
239
|
+
.bp6-multi-select-popover.bp6-popover-match-target-width{
|
|
240
|
+
width:100%;
|
|
241
|
+
}
|
|
242
|
+
.bp6-multi-select-popover.bp6-popover-match-target-width .bp6-menu{
|
|
243
|
+
max-width:none;
|
|
244
|
+
min-width:0;
|
|
245
|
+
}
|
|
246
|
+
.bp6-omnibar{
|
|
247
|
+
filter:blur(0);
|
|
248
|
+
opacity:1;
|
|
249
|
+
}
|
|
250
|
+
.bp6-omnibar.bp6-overlay-enter, .bp6-omnibar.bp6-overlay-appear{
|
|
251
|
+
filter:blur(20px);
|
|
252
|
+
opacity:0;
|
|
253
|
+
}
|
|
254
|
+
.bp6-omnibar.bp6-overlay-enter-active, .bp6-omnibar.bp6-overlay-appear-active{
|
|
255
|
+
filter:blur(0);
|
|
256
|
+
opacity:1;
|
|
257
|
+
transition-delay:0;
|
|
258
|
+
transition-duration:200ms;
|
|
259
|
+
transition-property:filter, opacity;
|
|
260
|
+
transition-timing-function:cubic-bezier(0.4, 1, 0.75, 0.9);
|
|
261
|
+
}
|
|
262
|
+
.bp6-omnibar.bp6-overlay-exit{
|
|
263
|
+
filter:blur(0);
|
|
264
|
+
opacity:1;
|
|
265
|
+
}
|
|
266
|
+
.bp6-omnibar.bp6-overlay-exit-active{
|
|
267
|
+
filter:blur(20px);
|
|
268
|
+
opacity:0;
|
|
269
|
+
transition-delay:0;
|
|
270
|
+
transition-duration:200ms;
|
|
271
|
+
transition-property:filter, opacity;
|
|
272
|
+
transition-timing-function:cubic-bezier(0.4, 1, 0.75, 0.9);
|
|
273
|
+
}
|
|
274
|
+
.bp6-omnibar{
|
|
275
|
+
background-color:#ffffff;
|
|
276
|
+
border-radius:4px;
|
|
277
|
+
box-shadow:0 0 0 1px rgba(17, 20, 24, 0.1), 0 4px 8px rgba(17, 20, 24, 0.2), 0 18px 46px 6px rgba(17, 20, 24, 0.2);
|
|
278
|
+
left:calc(50% - 250px);
|
|
279
|
+
top:20vh;
|
|
280
|
+
width:500px;
|
|
281
|
+
z-index:21;
|
|
282
|
+
}
|
|
283
|
+
.bp6-omnibar .bp6-input{
|
|
284
|
+
background-color:transparent;
|
|
285
|
+
border-radius:0;
|
|
286
|
+
}
|
|
287
|
+
.bp6-omnibar .bp6-input, .bp6-omnibar .bp6-input:focus{
|
|
288
|
+
box-shadow:none;
|
|
289
|
+
}
|
|
290
|
+
.bp6-omnibar .bp6-menu{
|
|
291
|
+
background-color:transparent;
|
|
292
|
+
border-radius:0;
|
|
293
|
+
box-shadow:inset 0 1px 0 rgba(17, 20, 24, 0.15);
|
|
294
|
+
max-height:calc(60vh - 40px);
|
|
295
|
+
overflow:auto;
|
|
296
|
+
}
|
|
297
|
+
.bp6-omnibar .bp6-menu:empty{
|
|
298
|
+
display:none;
|
|
299
|
+
}
|
|
300
|
+
.bp6-dark .bp6-omnibar, .bp6-omnibar.bp6-dark{
|
|
301
|
+
background-color:#2f343c;
|
|
302
|
+
box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 4px 8px rgba(17, 20, 24, 0.4), 0 18px 46px 6px rgba(17, 20, 24, 0.4);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.bp6-omnibar-overlay .bp6-overlay-backdrop{
|
|
306
|
+
background-color:rgba(17, 20, 24, 0.2);
|
|
307
|
+
}
|
|
308
|
+
.bp6-select-popover .bp6-popover-content{
|
|
309
|
+
padding:4px;
|
|
310
|
+
}
|
|
311
|
+
.bp6-select-popover .bp6-input-group{
|
|
312
|
+
margin-bottom:0;
|
|
313
|
+
}
|
|
314
|
+
.bp6-select-popover .bp6-menu{
|
|
315
|
+
margin-left:-4px;
|
|
316
|
+
margin-right:-4px;
|
|
317
|
+
max-height:300px;
|
|
318
|
+
max-width:400px;
|
|
319
|
+
overflow:auto;
|
|
320
|
+
padding:0 4px;
|
|
321
|
+
}
|
|
322
|
+
.bp6-select-popover .bp6-menu:not(:first-child){
|
|
323
|
+
padding-top:4px;
|
|
324
|
+
}
|
|
325
|
+
.bp6-select-popover.bp6-popover-match-target-width{
|
|
326
|
+
width:100%;
|
|
327
|
+
}
|
|
328
|
+
.bp6-select-popover.bp6-popover-match-target-width .bp6-menu{
|
|
329
|
+
max-width:none;
|
|
330
|
+
min-width:0;
|
|
331
|
+
}
|
|
332
|
+
.bp6-suggest-popover .bp6-menu{
|
|
333
|
+
max-height:300px;
|
|
334
|
+
max-width:400px;
|
|
335
|
+
overflow:auto;
|
|
336
|
+
}
|
|
337
|
+
.bp6-suggest-popover.bp6-popover-match-target-width{
|
|
338
|
+
width:100%;
|
|
339
|
+
}
|
|
340
|
+
.bp6-suggest-popover.bp6-popover-match-target-width .bp6-menu{
|
|
341
|
+
max-width:none;
|
|
342
|
+
min-width:0;
|
|
343
|
+
}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const index = require("./extractions/index.cjs");
|
|
4
|
+
const index$1 = require("./feedback/index.cjs");
|
|
5
|
+
const editState = require("./feedback/edit-state.cjs");
|
|
6
|
+
exports.EntityTag = index.EntityTag;
|
|
7
|
+
exports.ExtractionContext = index.ExtractionContext;
|
|
8
|
+
exports.ModelInfo = index.ModelInfo;
|
|
9
|
+
exports.buildHighlights = index.buildHighlights;
|
|
10
|
+
exports.enhanceData = index.enhanceData;
|
|
11
|
+
exports.getTagStyle = index.getTagStyle;
|
|
12
|
+
exports.FeedbackComponent = index$1.FeedbackComponent;
|
|
13
|
+
exports.treeToGraph = editState.treeToGraph;
|
|
14
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EntityTag, ExtractionContext, ModelInfo, buildHighlights, enhanceData, getTagStyle } from "./extractions/index.js";
|
|
2
|
+
import { FeedbackComponent } from "./feedback/index.js";
|
|
3
|
+
import { treeToGraph } from "./feedback/edit-state.js";
|
|
4
|
+
export {
|
|
5
|
+
EntityTag,
|
|
6
|
+
ExtractionContext,
|
|
7
|
+
FeedbackComponent,
|
|
8
|
+
ModelInfo,
|
|
9
|
+
buildHighlights,
|
|
10
|
+
enhanceData,
|
|
11
|
+
getTagStyle,
|
|
12
|
+
treeToGraph
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/package.json
CHANGED
|
@@ -1,46 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@macrostrat/feedback-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"node": "dist/node/index.js",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"source": "./src/index.ts",
|
|
13
|
-
"import": "./dist/esm/index.js",
|
|
14
|
-
"types": "./dist/esm/index.d.ts",
|
|
15
|
-
"node": "./dist/node/index.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"targets": {
|
|
19
|
-
"node": {
|
|
20
|
-
"engines": {
|
|
21
|
-
"node": ">=14"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/UW-Macrostrat/web-components.git",
|
|
8
|
+
"directory": "packages/feedback-components"
|
|
24
9
|
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"author": "Daven Quinn",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"source": "src/index.ts",
|
|
14
|
+
"main": "dist/index.js",
|
|
15
|
+
"node": "dist/index.cjs",
|
|
16
|
+
"types": "dist/index.d.ts",
|
|
17
|
+
"style": "dist/feedback-components.css",
|
|
25
18
|
"files": [
|
|
26
19
|
"src",
|
|
27
20
|
"dist"
|
|
28
21
|
],
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"**/*.css"
|
|
24
|
+
],
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"source": "./src/index.ts",
|
|
28
|
+
"import": "./dist/index.js",
|
|
29
|
+
"require": "./dist/index.cjs",
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"style": "./dist/feedback-components.css"
|
|
32
|
+
},
|
|
33
|
+
"./package.json": "./package.json",
|
|
34
|
+
"./style.css": "./dist/feedback-components.css",
|
|
35
|
+
"./dist/feedback-components.css": "./dist/feedback-components.css"
|
|
36
|
+
},
|
|
29
37
|
"scripts": {
|
|
30
|
-
"build": "
|
|
38
|
+
"build": "bundle-library ."
|
|
39
|
+
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"react": "^18.0.0||^19.0.0",
|
|
42
|
+
"react-dom": "^18.0.0||^19.0.0"
|
|
31
43
|
},
|
|
32
|
-
"author": "Daven Quinn",
|
|
33
|
-
"license": "ISC",
|
|
34
44
|
"dependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"@blueprintjs/
|
|
37
|
-
"@
|
|
38
|
-
"@macrostrat/
|
|
39
|
-
"@macrostrat/data-
|
|
40
|
-
"@macrostrat/data-sheet": "^2.1.1",
|
|
45
|
+
"@blueprintjs/core": "^6.6.1",
|
|
46
|
+
"@blueprintjs/select": "^6.0.13",
|
|
47
|
+
"@macrostrat/color-utils": "^1.2.0",
|
|
48
|
+
"@macrostrat/data-components": "^1.0.0",
|
|
49
|
+
"@macrostrat/data-sheet": "^3.0.0",
|
|
41
50
|
"@macrostrat/hyper": "^3.0.6",
|
|
42
|
-
"@macrostrat/ui-components": "^
|
|
43
|
-
"@xyflow/react": "^12.3.6",
|
|
51
|
+
"@macrostrat/ui-components": "^5.0.0",
|
|
44
52
|
"classnames": "^2.5.1",
|
|
45
53
|
"d3-force": "^3.0.0",
|
|
46
54
|
"immutability-helper": "^3.1.1",
|
|
@@ -48,16 +56,10 @@
|
|
|
48
56
|
"react-text-annotate-blend": "^1.2.0",
|
|
49
57
|
"use-element-dimensions": "^2.1.3"
|
|
50
58
|
},
|
|
51
|
-
"peerDependencies": {
|
|
52
|
-
"react": "^17||^18||^19",
|
|
53
|
-
"react-dom": "^17||^18||^19"
|
|
54
|
-
},
|
|
55
|
-
"repository": {
|
|
56
|
-
"type": "git",
|
|
57
|
-
"url": "https://github.com/UW-Macrostrat/web-components.git",
|
|
58
|
-
"directory": "packages/feedback-components"
|
|
59
|
-
},
|
|
60
59
|
"devDependencies": {
|
|
61
|
-
"
|
|
60
|
+
"@macrostrat/web-components-bundler": "1.0.0"
|
|
61
|
+
},
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public"
|
|
62
64
|
}
|
|
63
65
|
}
|
package/src/extractions/index.ts
CHANGED
|
@@ -141,7 +141,7 @@ export function ExtractionContext({
|
|
|
141
141
|
|
|
142
142
|
export function ModelInfo({ data }) {
|
|
143
143
|
if (!data) return null;
|
|
144
|
-
return h("p.model-name", ["Model: ", h("code.
|
|
144
|
+
return h("p.model-name", ["Model: ", h("code.bp6-code", data.name)]);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
export type MatchComponent = (props: { data: any }) => any;
|
|
@@ -182,7 +182,7 @@ export function EntityTag({
|
|
|
182
182
|
h("span.entity-name", name),
|
|
183
183
|
" ",
|
|
184
184
|
h(
|
|
185
|
-
"code.entity-type.
|
|
185
|
+
"code.entity-type.bp6-code",
|
|
186
186
|
{
|
|
187
187
|
onClick(evt) {
|
|
188
188
|
if (active && onClickType != null) {
|
|
@@ -8,7 +8,6 @@ import { Highlight } from "../extractions/types";
|
|
|
8
8
|
import { useEffect, useRef } from "react";
|
|
9
9
|
import { Popover } from "@blueprintjs/core";
|
|
10
10
|
import { MatchTag } from "./matches";
|
|
11
|
-
import { data } from "packages/feedback-components/stories/test-data";
|
|
12
11
|
|
|
13
12
|
const h = hyper.styled(styles);
|
|
14
13
|
|
package/src/feedback/types.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EntityExt } from "../extractions
|
|
1
|
+
import type { EntityExt } from "../extractions";
|
|
2
2
|
|
|
3
3
|
export interface InternalEntity extends EntityExt {
|
|
4
4
|
term_type: string;
|
|
5
5
|
txt_range: number[][];
|
|
6
6
|
children: InternalEntity[];
|
|
7
7
|
orig_id: number;
|
|
8
|
-
id:
|
|
8
|
+
id: number;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export interface TextData {
|