@popmelt.com/core 0.20.0 → 0.20.2

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.
@@ -24,6 +24,13 @@ declare const MIX_BLEND_STEPS: readonly ["normal", "multiply", "screen", "overla
24
24
  type StickerStep = (typeof SPACING_STEPS)[number] | (typeof BORDER_STEPS)[number] | (typeof DIRECTION_STEPS)[number] | (typeof ALIGN_STEPS)[number] | (typeof JUSTIFY_STEPS)[number] | (typeof GRID_COUNT_STEPS)[number] | (typeof FONT_SIZE_STEPS)[number] | (typeof FONT_WEIGHT_STEPS)[number] | (typeof LINE_HEIGHT_STEPS)[number] | (typeof LETTER_SPACING_STEPS)[number] | (typeof TEXT_ALIGN_STEPS)[number] | (typeof TRANSLATE_STEPS)[number] | (typeof SCALE_STEPS)[number] | (typeof ROTATE_STEPS)[number] | (typeof OPACITY_STEPS)[number] | (typeof MIX_BLEND_STEPS)[number] | StickerColorStep;
25
25
  type StickerSubproperty = 'all' | 'x' | 'y' | 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left' | 'vertical' | 'horizontal' | 'direction' | 'gap' | 'align' | 'justify' | 'rows' | 'columns' | 'size' | 'weight' | 'line-height' | 'letter-spacing' | 'text-align' | 'color' | 'translate' | 'scale' | 'rotate' | 'opacity' | 'mix-blend' | StickerColorName;
26
26
 
27
+ type TargetFingerprint = {
28
+ tag: string;
29
+ attributes?: Record<string, string>;
30
+ heading?: string;
31
+ text?: string;
32
+ };
33
+
27
34
  type AnnotationLifecycleStatus = 'pending' | 'sending' | 'in_flight' | 'resolved' | 'needs_review' | 'dismissed' | 'waiting_input' | 'failed';
28
35
  type ScopeBreadth = 'instance' | 'pattern';
29
36
  type ScopeTarget = 'element' | 'component' | 'token';
@@ -101,6 +108,7 @@ type SubjectFeedbackAttachment = {
101
108
  warning?: string;
102
109
  };
103
110
  type ElementInfo = {
111
+ targetFingerprint?: TargetFingerprint;
104
112
  selector: string;
105
113
  tagName: string;
106
114
  /** Adapter-owned semantic name for a non-DOM subject. */
@@ -1,4 +1,4 @@
1
- import { P as PopmeltSubjectAdapter, f as PopmeltSubject, E as ElementInfo, h as PopmeltSubjectCreationSession, g as PopmeltSubjectBounds, i as PopmeltSubjectOutlinePoint, j as PopmeltSubjectTrackingAnchor } from './subjects-C6Bu8uSX.mjs';
1
+ import { P as PopmeltSubjectAdapter, f as PopmeltSubject, E as ElementInfo, h as PopmeltSubjectCreationSession, g as PopmeltSubjectBounds, i as PopmeltSubjectOutlinePoint, j as PopmeltSubjectTrackingAnchor } from './subjects-DzjWdlAk.mjs';
2
2
 
3
3
  /** Geometry is normalized against the loaded image, not its rendered size. */
4
4
  type ImageObjectBox = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popmelt.com/core",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "description": "A tiny, powerful design layer for humans and AI",
5
5
  "license": "PolyForm-Shield-1.0.0",
6
6
  "author": "Popmelt <reb@popmelt.com> (https://popmelt.com)",
@@ -24,24 +24,9 @@
24
24
  "popmelt": "dist/cli.mjs"
25
25
  },
26
26
  "sideEffects": false,
27
- "packageManager": "pnpm@9.12.0",
28
27
  "engines": {
29
28
  "node": ">=18.0.0"
30
29
  },
31
- "scripts": {
32
- "build": "tsup",
33
- "clean": "git clean -xdf .turbo node_modules dist",
34
- "format": "prettier --check \"**/*.{ts,tsx}\"",
35
- "lint": "eslint . && node scripts/check-eslint-suppressions.mjs",
36
- "pack:smoke": "node scripts/pack-smoke.mjs",
37
- "peer:smoke": "node scripts/peer-compat-smoke.mjs",
38
- "prepublishOnly": "pnpm run verify",
39
- "test": "vitest run",
40
- "test:coverage": "vitest run --coverage.enabled",
41
- "test:watch": "vitest",
42
- "typecheck": "tsc --noEmit --incremental false",
43
- "verify": "pnpm run typecheck && pnpm run format && pnpm run lint && pnpm run test:coverage && pnpm run build && pnpm run pack:smoke"
44
- },
45
30
  "exports": {
46
31
  ".": {
47
32
  "types": "./dist/index.d.mts",
@@ -126,7 +111,6 @@
126
111
  }
127
112
  },
128
113
  "devDependencies": {
129
- "@kit/eslint-config": "workspace:^",
130
114
  "@react-three/fiber": "9.7.0",
131
115
  "@tanstack/react-router": "1.120.5",
132
116
  "@types/react": "19.1.0",
@@ -147,6 +131,22 @@
147
131
  "tsup": "^8.5.1",
148
132
  "typescript": "^5.8.3",
149
133
  "vite": "7.3.6",
150
- "vitest": "3.2.4"
134
+ "vitest": "3.2.4",
135
+ "@kit/eslint-config": "^0.2.0"
136
+ },
137
+ "scripts": {
138
+ "build": "tsup",
139
+ "clean": "git clean -xdf .turbo node_modules dist",
140
+ "format": "prettier --check \"**/*.{ts,tsx}\"",
141
+ "lint": "eslint . && node scripts/check-eslint-suppressions.mjs",
142
+ "pack:smoke": "node scripts/pack-smoke.mjs",
143
+ "peer:smoke": "node scripts/peer-compat-smoke.mjs",
144
+ "test": "vitest run",
145
+ "test:coverage": "vitest run --coverage.enabled",
146
+ "test:browser": "pnpm run build && tsc --noEmit -p tsconfig.browser.json && vitest run --config vitest.browser.config.ts",
147
+ "test:browser:mutation": "node e2e/check-lifecycle-mutation.mjs",
148
+ "test:watch": "vitest",
149
+ "typecheck": "tsc --noEmit --incremental false",
150
+ "verify": "pnpm run typecheck && pnpm run format && pnpm run lint && pnpm run test:coverage && pnpm run build && pnpm run pack:smoke"
151
151
  }
152
- }
152
+ }