@macrostrat/feedback-components 1.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/README.md +3 -0
- package/dist/edit-state.e8edb13a.js +251 -0
- package/dist/edit-state.e8edb13a.js.map +1 -0
- package/dist/extractions.54be85f8.js +177 -0
- package/dist/extractions.54be85f8.js.map +1 -0
- package/dist/feedback.46c2b5c4.js +252 -0
- package/dist/feedback.46c2b5c4.js.map +1 -0
- package/dist/feedback.module.7e16830e.css +44 -0
- package/dist/feedback.module.7e16830e.css.map +1 -0
- package/dist/feedback.module.c28cbac7.js +28 -0
- package/dist/feedback.module.c28cbac7.js.map +1 -0
- package/dist/graph.cb42b871.js +83 -0
- package/dist/graph.cb42b871.js.map +1 -0
- package/dist/index.d.ts +145 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/main.module.21bbfaf4.js +19 -0
- package/dist/main.module.21bbfaf4.js.map +1 -0
- package/dist/main.module.ca3db294.js +16 -0
- package/dist/main.module.ca3db294.js.map +1 -0
- package/dist/main.module.d6508c0e.css +14 -0
- package/dist/main.module.d6508c0e.css.map +1 -0
- package/dist/main.module.f9f92ece.css +17 -0
- package/dist/main.module.f9f92ece.css.map +1 -0
- package/dist/node.30d0b8c3.js +59 -0
- package/dist/node.30d0b8c3.js.map +1 -0
- package/dist/text-visualizer.77af0d24.js +101 -0
- package/dist/text-visualizer.77af0d24.js.map +1 -0
- package/dist/type-selector.e75dd247.js +62 -0
- package/dist/type-selector.e75dd247.js.map +1 -0
- package/package.json +48 -0
- package/src/extractions/index.ts +219 -0
- package/src/extractions/main.module.sass +10 -0
- package/src/extractions/types.ts +30 -0
- package/src/feedback/edit-state.ts +311 -0
- package/src/feedback/feedback.module.sass +37 -0
- package/src/feedback/graph.ts +98 -0
- package/src/feedback/index.ts +271 -0
- package/src/feedback/node.ts +65 -0
- package/src/feedback/text-visualizer.ts +116 -0
- package/src/feedback/type-selector/index.ts +75 -0
- package/src/feedback/type-selector/main.module.sass +13 -0
- package/src/feedback/types.ts +76 -0
- package/src/index.ts +2 -0
- package/stories/feedback.stories.ts +40 -0
- package/stories/test-data.ts +330 -0
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
export const data = {
|
|
2
|
+
entities: [
|
|
3
|
+
{
|
|
4
|
+
id: 433864,
|
|
5
|
+
name: "Serpent",
|
|
6
|
+
type: {
|
|
7
|
+
id: 1,
|
|
8
|
+
name: "strat_name",
|
|
9
|
+
description: "Test 2",
|
|
10
|
+
color: "rgb(115, 66, 255)",
|
|
11
|
+
},
|
|
12
|
+
match: {
|
|
13
|
+
name: "Serpent",
|
|
14
|
+
rank: "Fm",
|
|
15
|
+
strat_name_id: 5894,
|
|
16
|
+
},
|
|
17
|
+
indices: [368, 375],
|
|
18
|
+
children: [
|
|
19
|
+
{
|
|
20
|
+
id: 433865,
|
|
21
|
+
name: "Sandstone",
|
|
22
|
+
type: {
|
|
23
|
+
id: 2,
|
|
24
|
+
name: "lith",
|
|
25
|
+
description: "Test",
|
|
26
|
+
color: "rgb(107, 255, 91)",
|
|
27
|
+
},
|
|
28
|
+
match: {
|
|
29
|
+
name: "sandstone",
|
|
30
|
+
color: "#FFD500",
|
|
31
|
+
lith_id: 10,
|
|
32
|
+
},
|
|
33
|
+
indices: [78, 87],
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 433886,
|
|
39
|
+
name: "Serpent Formation CAssHYAP",
|
|
40
|
+
type: {
|
|
41
|
+
id: 44,
|
|
42
|
+
name: "strat_proper_noun",
|
|
43
|
+
description: null,
|
|
44
|
+
color: "rgb(255, 255, 255)",
|
|
45
|
+
},
|
|
46
|
+
indices: [368, 394],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 433880,
|
|
50
|
+
name: "muddy sandstone",
|
|
51
|
+
type: {
|
|
52
|
+
id: 1,
|
|
53
|
+
name: "strat_name",
|
|
54
|
+
description: "Test 2",
|
|
55
|
+
color: "rgb(115, 66, 255)",
|
|
56
|
+
},
|
|
57
|
+
match: {
|
|
58
|
+
name: "Muddy Sandstone",
|
|
59
|
+
rank: "Fm",
|
|
60
|
+
concept_id: 9450,
|
|
61
|
+
strat_name_id: 72335,
|
|
62
|
+
},
|
|
63
|
+
indices: [72, 87],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 433881,
|
|
67
|
+
name: "S. M. CASSHYAP",
|
|
68
|
+
type: {
|
|
69
|
+
id: 44,
|
|
70
|
+
name: "strat_proper_noun",
|
|
71
|
+
description: null,
|
|
72
|
+
color: "rgb(255, 255, 255)",
|
|
73
|
+
},
|
|
74
|
+
indices: [147, 161],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 433882,
|
|
78
|
+
name: "Cobalt",
|
|
79
|
+
type: {
|
|
80
|
+
id: 44,
|
|
81
|
+
name: "strat_proper_noun",
|
|
82
|
+
description: null,
|
|
83
|
+
color: "rgb(255, 255, 255)",
|
|
84
|
+
},
|
|
85
|
+
indices: [169, 175],
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: 433883,
|
|
89
|
+
name: "EspanolaWillisville",
|
|
90
|
+
type: {
|
|
91
|
+
id: 44,
|
|
92
|
+
name: "strat_proper_noun",
|
|
93
|
+
description: null,
|
|
94
|
+
color: "rgb(255, 255, 255)",
|
|
95
|
+
},
|
|
96
|
+
indices: [231, 250],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: 433888,
|
|
100
|
+
name: "Espanola Formation Fig.2",
|
|
101
|
+
type: {
|
|
102
|
+
id: 44,
|
|
103
|
+
name: "strat_proper_noun",
|
|
104
|
+
description: null,
|
|
105
|
+
color: "rgb(255, 255, 255)",
|
|
106
|
+
},
|
|
107
|
+
indices: [526, 550],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: 433884,
|
|
111
|
+
name: "Quirke Elliot Lake",
|
|
112
|
+
type: {
|
|
113
|
+
id: 44,
|
|
114
|
+
name: "strat_proper_noun",
|
|
115
|
+
description: null,
|
|
116
|
+
color: "rgb(255, 255, 255)",
|
|
117
|
+
},
|
|
118
|
+
indices: [267, 285],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: 433885,
|
|
122
|
+
name: "RoscoE",
|
|
123
|
+
type: {
|
|
124
|
+
id: 44,
|
|
125
|
+
name: "strat_proper_noun",
|
|
126
|
+
description: null,
|
|
127
|
+
color: "rgb(255, 255, 255)",
|
|
128
|
+
},
|
|
129
|
+
indices: [291, 297],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
id: 433887,
|
|
133
|
+
name: "Gowganda Formation",
|
|
134
|
+
type: {
|
|
135
|
+
id: 44,
|
|
136
|
+
name: "strat_proper_noun",
|
|
137
|
+
description: null,
|
|
138
|
+
color: "rgb(255, 255, 255)",
|
|
139
|
+
},
|
|
140
|
+
indices: [407, 425],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: 433866,
|
|
144
|
+
name: "Bruce Formation",
|
|
145
|
+
type: {
|
|
146
|
+
id: 1,
|
|
147
|
+
name: "strat_name",
|
|
148
|
+
description: "Test 2",
|
|
149
|
+
color: "rgb(179, 116, 255)",
|
|
150
|
+
},
|
|
151
|
+
indices: [587, 602],
|
|
152
|
+
children: [
|
|
153
|
+
{
|
|
154
|
+
id: 433867,
|
|
155
|
+
name: "structure",
|
|
156
|
+
type: {
|
|
157
|
+
id: 2,
|
|
158
|
+
name: "lith",
|
|
159
|
+
description: "Test",
|
|
160
|
+
color: "rgb(165, 255, 142)",
|
|
161
|
+
},
|
|
162
|
+
indices: [656, 665],
|
|
163
|
+
children: [
|
|
164
|
+
{
|
|
165
|
+
id: 433869,
|
|
166
|
+
name: "sedimentary",
|
|
167
|
+
type: {
|
|
168
|
+
id: 3,
|
|
169
|
+
name: "lith_att",
|
|
170
|
+
description: "Test",
|
|
171
|
+
color: "rgb(255, 144, 255)",
|
|
172
|
+
},
|
|
173
|
+
indices: [644, 655],
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: 433873,
|
|
177
|
+
name: "muddy",
|
|
178
|
+
type: {
|
|
179
|
+
id: 3,
|
|
180
|
+
name: "lith_att",
|
|
181
|
+
description: "Test",
|
|
182
|
+
color: "rgb(216, 93, 231)",
|
|
183
|
+
},
|
|
184
|
+
match: {
|
|
185
|
+
name: "muddy",
|
|
186
|
+
lith_att_id: 154,
|
|
187
|
+
},
|
|
188
|
+
indices: [72, 77],
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
id: 433875,
|
|
192
|
+
name: "massive",
|
|
193
|
+
type: {
|
|
194
|
+
id: 3,
|
|
195
|
+
name: "lith_att",
|
|
196
|
+
description: "Test",
|
|
197
|
+
color: "rgb(216, 93, 231)",
|
|
198
|
+
},
|
|
199
|
+
match: {
|
|
200
|
+
name: "massive ",
|
|
201
|
+
lith_att_id: 9,
|
|
202
|
+
},
|
|
203
|
+
indices: [41, 48],
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
id: 433871,
|
|
207
|
+
name: "Conglomeratic",
|
|
208
|
+
type: {
|
|
209
|
+
id: 3,
|
|
210
|
+
name: "lith_att",
|
|
211
|
+
description: "Test",
|
|
212
|
+
color: "rgb(216, 93, 231)",
|
|
213
|
+
},
|
|
214
|
+
match: {
|
|
215
|
+
name: "conglomeratic",
|
|
216
|
+
lith_att_id: 67,
|
|
217
|
+
},
|
|
218
|
+
indices: [58, 71],
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
id: 433876,
|
|
226
|
+
name: "The Gowganda Formation in this area",
|
|
227
|
+
type: {
|
|
228
|
+
id: 1,
|
|
229
|
+
name: "strat_name",
|
|
230
|
+
description: "Test 2",
|
|
231
|
+
color: "rgb(179, 116, 255)",
|
|
232
|
+
},
|
|
233
|
+
indices: [403, 438],
|
|
234
|
+
children: [
|
|
235
|
+
{
|
|
236
|
+
id: 433877,
|
|
237
|
+
name: "structures",
|
|
238
|
+
type: {
|
|
239
|
+
id: 2,
|
|
240
|
+
name: "lith",
|
|
241
|
+
description: "Test",
|
|
242
|
+
color: "rgb(165, 255, 142)",
|
|
243
|
+
},
|
|
244
|
+
indices: [713, 723],
|
|
245
|
+
children: [
|
|
246
|
+
{
|
|
247
|
+
id: 433869,
|
|
248
|
+
name: "sedimentary",
|
|
249
|
+
type: {
|
|
250
|
+
id: 3,
|
|
251
|
+
name: "lith_att",
|
|
252
|
+
description: "Test",
|
|
253
|
+
color: "rgb(255, 144, 255)",
|
|
254
|
+
},
|
|
255
|
+
indices: [644, 655],
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
paragraph_text:
|
|
263
|
+
"Fig.4. X ray radiograph of a specimen of massive Gowganda conglomeratic muddy sandstone. A sandstone interbed reveals ripple cross laminations.\n14 S. M. CASSHYAP in the Cobalt area THOMSON, 1957. Most evidence suggests that in the EspanolaWillisville area, as in the Quirke Elliot Lake area RoscoE, 1957, no erosional break occurred after deposition of the underlying Serpent Formation CAssHYAP, 1966b.\nThe Gowganda Formation in this area lies conformably abovethe Serpent Sandstone which in turn lies gradationally above the Espanola Formation Fig.2.\nConglomeratic muddy deposit of the Bruce Formation is essentially massive and does not show sedimentary structure of any kind. However, a variety of sedimentary structures occur in the various units of the Gowganda Formation.",
|
|
264
|
+
model_id: 5321,
|
|
265
|
+
version_id: 20504,
|
|
266
|
+
model: {
|
|
267
|
+
id: 5321,
|
|
268
|
+
name: "tree_based_span_bert",
|
|
269
|
+
description: null,
|
|
270
|
+
url: null,
|
|
271
|
+
first_run: "2024-10-14T14:39:49.425489",
|
|
272
|
+
last_run: "2024-11-18T18:33:45.320584",
|
|
273
|
+
n_runs: 7510,
|
|
274
|
+
n_entities: 96301,
|
|
275
|
+
n_matches: 16918,
|
|
276
|
+
n_strat_names: 4181,
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export const entityTypes = [
|
|
281
|
+
{
|
|
282
|
+
id: 2,
|
|
283
|
+
name: "lith",
|
|
284
|
+
description: "Test",
|
|
285
|
+
color: "rgb(33,208,35)",
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
id: 3,
|
|
289
|
+
name: "lith_att",
|
|
290
|
+
description: "Test",
|
|
291
|
+
color: "rgb(164,38,180)",
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
id: 1,
|
|
295
|
+
name: "strat_name",
|
|
296
|
+
description: "Test 2",
|
|
297
|
+
color: "rgb(13,0,255)",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
id: 10,
|
|
301
|
+
name: "location",
|
|
302
|
+
description: "A geographical location or area",
|
|
303
|
+
color: null,
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
id: 4,
|
|
307
|
+
name: "noun",
|
|
308
|
+
description: "A general noun of unknown type",
|
|
309
|
+
color: "rgb(113,112,217)",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
id: 8,
|
|
313
|
+
name: "form",
|
|
314
|
+
description:
|
|
315
|
+
"The form in which a lithology/rock body is expressed (e.g., boulders, lenses, interbedded packages, etc.)",
|
|
316
|
+
color: "rgb(173,225,0)",
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
id: 11,
|
|
320
|
+
name: "citation",
|
|
321
|
+
description: "Paper citation",
|
|
322
|
+
color: "rgb(190,156,156)",
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
id: 44,
|
|
326
|
+
name: "strat_proper_noun",
|
|
327
|
+
description: null,
|
|
328
|
+
color: null,
|
|
329
|
+
},
|
|
330
|
+
];
|