@semiont/react-ui 0.2.35 → 0.2.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semiont/react-ui",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "description": "React components and hooks for Semiont",
5
5
  "main": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.mts",
@@ -47,7 +47,7 @@
47
47
  "audit:compliance:tests": "./scripts/generate-test-compliance-report.sh",
48
48
  "test": "npm run test:split",
49
49
  "test:watch": "vitest",
50
- "test:coverage": "npm run test:split:coverage",
50
+ "test:coverage": "NODE_OPTIONS=--max-old-space-size=8192 vitest run --coverage",
51
51
  "test:a11y": "NODE_OPTIONS=--max-old-space-size=8192 vitest run -t \"Accessibility\"",
52
52
  "test:a11y:watch": "vitest -t \"Accessibility\"",
53
53
  "test:components": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/components",
@@ -65,7 +65,7 @@
65
65
  "test:features": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/features",
66
66
  "test:other": "NODE_OPTIONS=--max-old-space-size=8192 vitest run src/contexts src/hooks src/lib src/assets",
67
67
  "test:split": "npm run test:components:panels && npm run test:components:navigation && npm run test:components:layout && npm run test:components:states && npm run test:components:modals && npm run test:components:other && npm run test:features && npm run test:other",
68
- "test:split:coverage": "NODE_OPTIONS=--max-old-space-size=8192 vitest run --coverage src/components/resource/panels && NODE_OPTIONS=--max-old-space-size=8192 vitest run --coverage src/components/navigation && NODE_OPTIONS=--max-old-space-size=8192 vitest run --coverage src/components/layout src/components/branding && NODE_OPTIONS=--max-old-space-size=8192 vitest run --coverage src/components/error-states src/components/loading-states && NODE_OPTIONS=--max-old-space-size=8192 vitest run --coverage src/components/modals && NODE_OPTIONS=--max-old-space-size=8192 vitest run --coverage src/components/annotation src/components/Button src/components/resource/__tests__ src/components/__tests__ && NODE_OPTIONS=--max-old-space-size=8192 vitest run --coverage src/features && NODE_OPTIONS=--max-old-space-size=8192 vitest run --coverage src/contexts src/hooks src/lib src/assets"
68
+ "test:split:coverage": "npm run test:coverage"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "@tanstack/react-query": "^5.0.0",
@@ -157,10 +157,12 @@ describe('PdfAnnotationCanvas', () => {
157
157
  });
158
158
 
159
159
  test('emits annotate:requested via eventBus when drawing with sufficient drag', async () => {
160
+ const mockSubject = { next: vi.fn(), subscribe: vi.fn() };
160
161
  const mockEventBus = {
161
162
  emit: vi.fn(),
162
163
  on: vi.fn(),
163
164
  off: vi.fn(),
165
+ get: vi.fn().mockReturnValue(mockSubject),
164
166
  };
165
167
 
166
168
  render(