@monoes/monodesign 1.2.9 → 1.2.11
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.
|
@@ -778,8 +778,8 @@ function checkBorders(tag, widths, colors, radius) {
|
|
|
778
778
|
// (plus whitespace / variation selectors). Emojis render as multicolor glyphs
|
|
779
779
|
// regardless of CSS `color`, so contrast checks against the element's text
|
|
780
780
|
// color are meaningless for these nodes.
|
|
781
|
-
const EMOJI_CHAR_RE = /[\u{1F1E6}-\u{1F1FF}\u{1F300}-\u{1F9FF}\u{1FA00}-\u{1FAFF}\u{2600}-\u{27BF}\u{2300}-\u{23FF}
|
|
782
|
-
const EMOJI_CHARS_GLOBAL = /[\u{1F1E6}-\u{1F1FF}\u{1F300}-\u{1F9FF}\u{1FA00}-\u{1FAFF}\u{2600}-\u{27BF}\u{2300}-\u{23FF}
|
|
781
|
+
const EMOJI_CHAR_RE = /(?:[\u{1F1E6}-\u{1F1FF}\u{1F300}-\u{1F9FF}\u{1FA00}-\u{1FAFF}\u{2600}-\u{27BF}\u{2300}-\u{23FF}]|\u{FE0F}|\u{200D}|[\u{1F3FB}-\u{1F3FF}])/u;
|
|
782
|
+
const EMOJI_CHARS_GLOBAL = /(?:[\u{1F1E6}-\u{1F1FF}\u{1F300}-\u{1F9FF}\u{1FA00}-\u{1FAFF}\u{2600}-\u{27BF}\u{2300}-\u{23FF}]|\u{FE0F}|\u{200D}|[\u{1F3FB}-\u{1F3FF}])/gu;
|
|
783
783
|
function isEmojiOnlyText(text) {
|
|
784
784
|
if (!text) return false;
|
|
785
785
|
if (!EMOJI_CHAR_RE.test(text)) return false;
|
|
@@ -55,8 +55,8 @@ function checkBorders(tag, widths, colors, radius) {
|
|
|
55
55
|
// (plus whitespace / variation selectors). Emojis render as multicolor glyphs
|
|
56
56
|
// regardless of CSS `color`, so contrast checks against the element's text
|
|
57
57
|
// color are meaningless for these nodes.
|
|
58
|
-
const EMOJI_CHAR_RE = /[\u{1F1E6}-\u{1F1FF}\u{1F300}-\u{1F9FF}\u{1FA00}-\u{1FAFF}\u{2600}-\u{27BF}\u{2300}-\u{23FF}
|
|
59
|
-
const EMOJI_CHARS_GLOBAL = /[\u{1F1E6}-\u{1F1FF}\u{1F300}-\u{1F9FF}\u{1FA00}-\u{1FAFF}\u{2600}-\u{27BF}\u{2300}-\u{23FF}
|
|
58
|
+
const EMOJI_CHAR_RE = /(?:[\u{1F1E6}-\u{1F1FF}\u{1F300}-\u{1F9FF}\u{1FA00}-\u{1FAFF}\u{2600}-\u{27BF}\u{2300}-\u{23FF}]|\u{FE0F}|\u{200D}|[\u{1F3FB}-\u{1F3FF}])/u;
|
|
59
|
+
const EMOJI_CHARS_GLOBAL = /(?:[\u{1F1E6}-\u{1F1FF}\u{1F300}-\u{1F9FF}\u{1FA00}-\u{1FAFF}\u{2600}-\u{27BF}\u{2300}-\u{23FF}]|\u{FE0F}|\u{200D}|[\u{1F3FB}-\u{1F3FF}])/gu;
|
|
60
60
|
function isEmojiOnlyText(text) {
|
|
61
61
|
if (!text) return false;
|
|
62
62
|
if (!EMOJI_CHAR_RE.test(text)) return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monoes/monodesign",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "Frontend design intelligence for AI agents — design tokens, antipattern detection, and the monodesign skill",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"marked": "^18.0.0"
|
|
45
45
|
},
|
|
46
46
|
"optionalDependencies": {
|
|
47
|
-
"
|
|
48
|
-
"
|
|
47
|
+
"puppeteer": "^25.1.0",
|
|
48
|
+
"@monoes/monobrowse": "1.0.13"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"prebuild": "node ../../../scripts/build-fs.mjs clean dist tsconfig.tsbuildinfo",
|
|
@@ -880,7 +880,7 @@ async function computeUpdateDirective(now = Date.now()) {
|
|
|
880
880
|
// there is no separate registry endpoint to poll. Kept as a stub so the boot
|
|
881
881
|
// path (and MONODESIGN_NO_UPDATE_CHECK-aware tests) stays unchanged.
|
|
882
882
|
return null;
|
|
883
|
-
//
|
|
883
|
+
// biome-ignore lint/correctness/noUnreachable: disabled on purpose (see above); kept to re-enable
|
|
884
884
|
try {
|
|
885
885
|
if (process.env.MONODESIGN_NO_UPDATE_CHECK) return null;
|
|
886
886
|
if (updateCheckDisabledByConfig()) return null;
|
|
@@ -1031,7 +1031,6 @@
|
|
|
1031
1031
|
position: 'fixed', zIndex: Z.bar,
|
|
1032
1032
|
display: 'none', opacity: '0',
|
|
1033
1033
|
transform: 'translateY(6px)',
|
|
1034
|
-
transition: 'opacity 0.25s ' + EASE + ', transform 0.3s ' + EASE,
|
|
1035
1034
|
background: BP.surface,
|
|
1036
1035
|
border: '1px solid ' + BP.border,
|
|
1037
1036
|
borderRadius: '8px',
|
|
@@ -3998,6 +3997,7 @@
|
|
|
3998
3997
|
console.error('[monodesign] commit failed:', err);
|
|
3999
3998
|
showToast('Apply failed - see console', 4000);
|
|
4000
3999
|
} finally {
|
|
4000
|
+
// biome-ignore lint/correctness/noUnsafeFinally: try/catch neither return a value nor rethrow, so this only skips the dock reset (source-pinned by live-browser-source.test.mjs)
|
|
4001
4001
|
if (waitForSseCompletion) return;
|
|
4002
4002
|
const remainingCount = parseInt(pendingPillEl?.dataset.count || '0', 10) || 0;
|
|
4003
4003
|
if (remainingCount > 0) setPendingApplyLoading(false);
|