@threadlabs/looma 0.15.3 → 0.15.5

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,10 +1,10 @@
1
1
  import { Extension } from "@tiptap/core";
2
2
  /**
3
- * Interprets document markup copied from source-oriented tools before Tiptap's
4
- * generic VS Code handler can turn it into a literal code block.
3
+ * Interprets recognizable document markup before Tiptap's generic paste
4
+ * handling can turn preformatted clipboard HTML into a literal code block.
5
5
  *
6
- * Source-editor metadata remains authoritative for non-document languages.
7
- * Explicit code-block context is never reinterpreted.
6
+ * Document content is detected from text, not source-editor clipboard metadata.
7
+ * Unrecognized source code and explicit code-block context remain literal.
8
8
  *
9
9
  * @contract Recognized document markup is sanitized and dispatched as one paste
10
10
  * transaction; every unrecognized or code-oriented payload returns control to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.15.3",
3
+ "version": "0.15.5",
4
4
  "type": "module",
5
5
  "description": "Looma components as HTML, Vue, and plain DOM, with design tokens.",
6
6
  "license": "MIT",
@@ -78,6 +78,7 @@
78
78
  ],
79
79
  "dependencies": {
80
80
  "@nextwebwg/html-next": "1.0.0-alpha.7",
81
+ "dompurify": "3.4.15",
81
82
  "lowlight": "^3.3.0",
82
83
  "markdown-it": "14.3.1",
83
84
  "lucide": "~0.554.0"
package/tokens.css CHANGED
@@ -185,7 +185,8 @@
185
185
  --ui-warning-soft: color-mix(in srgb, var(--ui-warning) 8%, var(--ui-surface));
186
186
  --ui-warning-strong-surface: var(--ui-warning);
187
187
  --ui-warning-on-strong: var(--ui-on-accent);
188
- --ui-warning-subtle-text: color-mix(in srgb, var(--ui-warning) 85%, var(--ui-text));
188
+ /* Amber is the lightest intent: it takes more ink than the others to read at 4.5:1, even from a bright seed. */
189
+ --ui-warning-subtle-text: color-mix(in srgb, var(--ui-warning) 55%, var(--ui-text));
189
190
  --ui-info-solid: var(--ui-info);
190
191
  --ui-info-soft: color-mix(in srgb, var(--ui-info) 8%, var(--ui-surface));
191
192
  --ui-info-strong-surface: var(--ui-info);
@@ -8214,7 +8214,7 @@ html[data-ui-input-modality="touch"]
8214
8214
  position: relative;
8215
8215
  }
8216
8216
 
8217
- .looma-editor .ProseMirror > .looma-active-block::before {
8217
+ .looma-editor .ProseMirror > .looma-active-block:not(.is-editor-empty)::before {
8218
8218
  position: absolute;
8219
8219
  z-index: 1;
8220
8220
  inset-block: 0;