@meowdown/core 0.70.0 → 0.70.1
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/index.js +1 -0
- package/dist/style.css +9 -51
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -7922,6 +7922,7 @@ var ImageMarkView = class {
|
|
|
7922
7922
|
const kind = matchPostEmbed(src);
|
|
7923
7923
|
if (kind) {
|
|
7924
7924
|
wrapper.dataset.testid = `${kind}-embed`;
|
|
7925
|
+
wrapper.dataset.postEmbed = kind;
|
|
7925
7926
|
wrapper.appendChild(this.#buildPostEmbed(kind, src));
|
|
7926
7927
|
return wrapper;
|
|
7927
7928
|
}
|
package/dist/style.css
CHANGED
|
@@ -188,10 +188,9 @@
|
|
|
188
188
|
--_hairline: var(--post-embed-border-color, color-mix(in srgb, currentColor 15%, transparent));
|
|
189
189
|
--_muted: var(--post-embed-muted-color, color-mix(in srgb, currentColor 58%, transparent));
|
|
190
190
|
--_link: var(--post-embed-link-color, #1d9bf0);
|
|
191
|
-
--_badge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.4 2 3.1-.5 1.1 3 2.9 1.3-.5 3.1 2 2.4-2 2.4.5 3.1-2.9 1.3-1.1 3-3.1-.5-2.4 2-2.4-2-3.1.5-1.1-3-2.9-1.3.5-3.1L1 12l2-2.4-.5-3.1 2.9-1.3 1.1-3 3.1.5z'/%3E%3C/svg%3E");
|
|
192
|
-
--_check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 12.5l3 3 6-6.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
193
191
|
font: inherit;
|
|
194
192
|
color: var(--post-embed-color, inherit);
|
|
193
|
+
text-decoration-skip-ink: none;
|
|
195
194
|
display: block;
|
|
196
195
|
|
|
197
196
|
& :where([data-root]) {
|
|
@@ -266,55 +265,6 @@
|
|
|
266
265
|
color: inherit;
|
|
267
266
|
}
|
|
268
267
|
|
|
269
|
-
& :where([data-verified]) {
|
|
270
|
-
color: #0000;
|
|
271
|
-
--_badge-color: #1d9bf0;
|
|
272
|
-
width: 1.2em;
|
|
273
|
-
height: 1.2em;
|
|
274
|
-
display: inline-block;
|
|
275
|
-
position: relative;
|
|
276
|
-
overflow: hidden;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
& :where([data-verified="business"]) {
|
|
280
|
-
--_badge-color: #e2b719;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
& :where([data-verified="government"]) {
|
|
284
|
-
--_badge-color: #829aab;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
& :where([data-verified]):before {
|
|
288
|
-
content: "";
|
|
289
|
-
background: var(--_badge-color);
|
|
290
|
-
mask: var(--_badge) center / contain no-repeat;
|
|
291
|
-
position: absolute;
|
|
292
|
-
inset: 0;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
& :where([data-verified]):after {
|
|
296
|
-
content: "";
|
|
297
|
-
mask: var(--_check) center / contain no-repeat;
|
|
298
|
-
background: #fff;
|
|
299
|
-
position: absolute;
|
|
300
|
-
inset: 0;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
& :where([data-label]) {
|
|
304
|
-
color: var(--_muted);
|
|
305
|
-
align-items: center;
|
|
306
|
-
gap: .25rem;
|
|
307
|
-
font-size: .8em;
|
|
308
|
-
font-weight: 500;
|
|
309
|
-
display: inline-flex;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
& :where([data-label] img) {
|
|
313
|
-
border-radius: 2px;
|
|
314
|
-
width: 1.1em;
|
|
315
|
-
height: 1.1em;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
268
|
& :where([data-reply-to]) {
|
|
319
269
|
color: var(--_muted);
|
|
320
270
|
margin-block-start: .75rem;
|
|
@@ -1095,6 +1045,10 @@
|
|
|
1095
1045
|
display: block;
|
|
1096
1046
|
}
|
|
1097
1047
|
|
|
1048
|
+
.ProseMirror .md-image-view-preview:has( > .md-embed-resizable:not([data-width])) {
|
|
1049
|
+
width: 550px;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1098
1052
|
.ProseMirror .md-embed-resizable {
|
|
1099
1053
|
isolation: isolate;
|
|
1100
1054
|
min-width: 2.5rem;
|
|
@@ -1254,6 +1208,10 @@
|
|
|
1254
1208
|
display: inline-block;
|
|
1255
1209
|
}
|
|
1256
1210
|
|
|
1211
|
+
& .md-image-view-preview[data-post-embed] {
|
|
1212
|
+
border-radius: var(--post-embed-radius, 1rem);
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1257
1215
|
& .md-image-resizable {
|
|
1258
1216
|
vertical-align: bottom;
|
|
1259
1217
|
isolation: isolate;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meowdown/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@floating-ui/dom": "^1.8.0",
|
|
27
27
|
"@lezer/highlight": "^1.2.3",
|
|
28
28
|
"@ocavue/utils": "^1.8.0",
|
|
29
|
-
"@post-embed/elements": "^0.
|
|
30
|
-
"@post-embed/exporter": "^0.
|
|
31
|
-
"@post-embed/schema": "^0.
|
|
32
|
-
"@post-embed/types": "^0.
|
|
29
|
+
"@post-embed/elements": "^0.3.0",
|
|
30
|
+
"@post-embed/exporter": "^0.3.0",
|
|
31
|
+
"@post-embed/schema": "^0.3.0",
|
|
32
|
+
"@post-embed/types": "^0.3.0",
|
|
33
33
|
"@prosekit/core": "^0.13.2",
|
|
34
34
|
"@prosekit/extensions": "^0.18.2",
|
|
35
35
|
"@prosekit/pm": "^0.1.19",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"remark-stringify": "^11.0.0",
|
|
49
49
|
"unicode-by-name": "^0.2.0",
|
|
50
50
|
"unified": "^11.0.5",
|
|
51
|
-
"valibot": "^1.
|
|
52
|
-
"@meowdown/markdown": "^0.70.
|
|
51
|
+
"valibot": "^1.5.0",
|
|
52
|
+
"@meowdown/markdown": "^0.70.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@ocavue/tsconfig": "^0.7.1",
|