@promakeai/inspector 0.2.0 → 0.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,wBAAgB,eAAe,IAAI,MAAM,CAwvDxC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,wBAAgB,eAAe,IAAI,MAAM,CA2zDxC"}
package/dist/plugin.js CHANGED
@@ -228,7 +228,7 @@ export function inspectorPlugin() {
228
228
  if (scrollIntoView) {
229
229
  element.scrollIntoView({
230
230
  behavior: 'smooth',
231
- block: 'center',
231
+ block: 'nearest',
232
232
  inline: 'center'
233
233
  });
234
234
  }
@@ -478,53 +478,13 @@ export function inspectorPlugin() {
478
478
  controlBox.setAttribute('data-is-image-element', isImageElement);
479
479
  controlBox.setAttribute('data-current-image-url', currentImageUrl);
480
480
 
481
- // Calculate position with viewport bounds
482
- const viewportWidth = window.innerWidth;
483
- const viewportHeight = window.innerHeight;
484
- const padding = 10; // Minimum padding from viewport edges
485
-
486
- // Calculate box width (responsive, between 320 and 600px, but never wider than viewport)
487
- const maxWidth = Math.min(600, viewportWidth - (padding * 2));
488
- const minWidth = Math.min(320, maxWidth);
489
- const boxWidth = Math.max(minWidth, Math.min(rect.width, maxWidth));
490
-
491
- // Calculate horizontal position (centered on element, but within viewport)
492
- let centerLeft = rect.left + (rect.width / 2) - (boxWidth / 2);
493
- // Ensure box doesn't overflow left or right
494
- centerLeft = Math.max(padding, Math.min(centerLeft, viewportWidth - boxWidth - padding));
495
-
496
- // Calculate vertical position
497
- const spaceBelow = viewportHeight - rect.bottom;
498
- const spaceAbove = rect.top;
499
-
500
- // Estimate box height (only prompt input now, smaller)
501
- const estimatedBoxHeight = 100;
502
-
503
- // Calculate available space and max height
504
- const maxBoxHeight = Math.min(400, viewportHeight - (padding * 4)); // Max 400px or viewport - padding
505
-
506
- // Determine if box should be above or below element
507
- let topPosition;
508
- if (spaceBelow < estimatedBoxHeight + padding && spaceAbove > spaceBelow) {
509
- // Show above element
510
- topPosition = Math.max(padding, rect.top - maxBoxHeight - 10);
511
- controlBox.setAttribute('data-position', 'above');
512
- } else {
513
- // Show below element
514
- topPosition = rect.bottom + 10;
515
- // Ensure box fits in viewport
516
- if (topPosition + maxBoxHeight > viewportHeight - padding) {
517
- topPosition = Math.max(padding, viewportHeight - maxBoxHeight - padding);
518
- }
519
- controlBox.setAttribute('data-position', 'below');
520
- }
521
-
481
+ // Initial CSS (position will be calculated after render)
522
482
  controlBox.style.cssText = \`
523
483
  position: fixed;
524
- top: \${topPosition}px;
525
- left: \${centerLeft}px;
526
- width: \${boxWidth}px;
527
- max-height: \${maxBoxHeight}px;
484
+ top: 0px;
485
+ left: 0px;
486
+ width: 320px;
487
+ max-height: 400px;
528
488
  background: \${theme.backgroundColor};
529
489
  border: 1px solid #e5e7eb;
530
490
  border-radius: 14px;
@@ -537,6 +497,8 @@ export function inspectorPlugin() {
537
497
  flex-direction: column;
538
498
  gap: 0;
539
499
  overflow-y: auto;
500
+ opacity: 0;
501
+ pointer-events: none;
540
502
  \`;
541
503
 
542
504
  // Only prompt input and buttons (always shown)
@@ -622,8 +584,13 @@ export function inspectorPlugin() {
622
584
  unpauseInspection();
623
585
  });
624
586
 
625
- // Focus prompt input
626
- setTimeout(() => promptInput.focus(), 100);
587
+ // Calculate and set proper position after DOM render
588
+ setTimeout(() => {
589
+ adjustControlBoxPosition();
590
+ controlBox.style.opacity = '1';
591
+ controlBox.style.pointerEvents = 'auto';
592
+ promptInput.focus();
593
+ }, 10);
627
594
  }
628
595
 
629
596
  // Show or hide content input section
@@ -729,23 +696,23 @@ export function inspectorPlugin() {
729
696
  // Prevent input events from bubbling
730
697
  textInput.addEventListener('click', (e) => e.stopPropagation());
731
698
 
732
- // Focus text input
733
- setTimeout(() => textInput.focus(), 100);
734
-
735
- // Adjust box height
736
- adjustControlBoxPosition();
699
+ // Adjust box height and focus text input after DOM update
700
+ setTimeout(() => {
701
+ adjustControlBoxPosition();
702
+ textInput.focus();
703
+ }, 10);
737
704
  } else if (!show && contentSection) {
738
705
  // Remove content input section
739
706
  contentSection.remove();
740
707
 
741
- // Refocus prompt input
742
- const promptInput = controlBox.querySelector('#inspector-prompt-input');
743
- if (promptInput) {
744
- setTimeout(() => promptInput.focus(), 100);
745
- }
746
-
747
- // Adjust box height
748
- adjustControlBoxPosition();
708
+ // Adjust box height and refocus prompt input after DOM update
709
+ setTimeout(() => {
710
+ adjustControlBoxPosition();
711
+ const promptInput = controlBox.querySelector('#inspector-prompt-input');
712
+ if (promptInput) {
713
+ promptInput.focus();
714
+ }
715
+ }, 10);
749
716
  }
750
717
  }
751
718
 
@@ -956,20 +923,22 @@ export function inspectorPlugin() {
956
923
  toggleInspectMode(false);
957
924
  });
958
925
 
959
- // Adjust box height
960
- adjustControlBoxPosition();
926
+ // Adjust box height after DOM update
927
+ setTimeout(() => {
928
+ adjustControlBoxPosition();
929
+ }, 10);
961
930
  } else if (!show && imageSection) {
962
931
  // Remove image input section
963
932
  imageSection.remove();
964
933
 
965
- // Refocus prompt input
966
- const promptInput = controlBox.querySelector('#inspector-prompt-input');
967
- if (promptInput) {
968
- setTimeout(() => promptInput.focus(), 100);
969
- }
970
-
971
- // Adjust box height
972
- adjustControlBoxPosition();
934
+ // Adjust box height and refocus prompt input after DOM update
935
+ setTimeout(() => {
936
+ adjustControlBoxPosition();
937
+ const promptInput = controlBox.querySelector('#inspector-prompt-input');
938
+ if (promptInput) {
939
+ promptInput.focus();
940
+ }
941
+ }, 10);
973
942
  }
974
943
  }
975
944
 
@@ -995,22 +964,30 @@ export function inspectorPlugin() {
995
964
  const spaceBelow = viewportHeight - rect.bottom;
996
965
  const spaceAbove = rect.top;
997
966
 
998
- // Get actual box height and apply max height
967
+ // Get actual box height and calculate max height
999
968
  const boxHeight = controlBox.offsetHeight;
1000
969
  const maxBoxHeight = Math.min(400, viewportHeight - (padding * 4));
1001
970
 
971
+ // Use the smaller of actual height or max height
972
+ const effectiveHeight = Math.min(boxHeight, maxBoxHeight);
973
+
1002
974
  // Determine position with viewport bounds
1003
975
  let topPosition;
1004
- if (spaceBelow < boxHeight + padding && spaceAbove > spaceBelow) {
1005
- // Show above element
1006
- topPosition = Math.max(padding, rect.top - maxBoxHeight - 10);
976
+ if (spaceBelow < effectiveHeight + padding && spaceAbove > spaceBelow) {
977
+ // Show above element - use actual box height, not max
978
+ topPosition = rect.top - effectiveHeight - 10;
979
+ // Ensure it doesn't go above viewport
980
+ if (topPosition < padding) {
981
+ topPosition = padding;
982
+ }
1007
983
  controlBox.setAttribute('data-position', 'above');
1008
984
  } else {
1009
985
  // Show below element
1010
986
  topPosition = rect.bottom + 10;
1011
987
  // Ensure box fits in viewport
1012
- if (topPosition + maxBoxHeight > viewportHeight - padding) {
1013
- topPosition = Math.max(padding, viewportHeight - maxBoxHeight - padding);
988
+ if (topPosition + effectiveHeight > viewportHeight - padding) {
989
+ // If it doesn't fit below, try to fit it as much as possible
990
+ topPosition = Math.max(padding, viewportHeight - effectiveHeight - padding);
1014
991
  }
1015
992
  controlBox.setAttribute('data-position', 'below');
1016
993
  }
@@ -1256,7 +1233,8 @@ export function inspectorPlugin() {
1256
1233
  isImageNode: isImageNode,
1257
1234
  imageUrl: imageUrl,
1258
1235
  inspectorId: inspectorId,
1259
- selector: selector
1236
+ selector: selector,
1237
+ currentRoute: window.location.pathname
1260
1238
  };
1261
1239
 
1262
1240
  // Send info to parent window
@@ -1340,26 +1318,35 @@ export function inspectorPlugin() {
1340
1318
  const identifier = event.data.identifier;
1341
1319
  const options = event.data.options || {};
1342
1320
 
1343
- let element = null;
1344
-
1345
- if (typeof identifier === 'string') {
1346
- // Try as inspector ID first
1347
- element = elementTracker.findElementById(document, identifier);
1321
+ // Handle route navigation if needed
1322
+ (async () => {
1323
+ if (options.targetRoute && window.location.pathname !== options.targetRoute) {
1324
+ window.history.pushState(null, '', options.targetRoute);
1325
+ // Wait for route change to process
1326
+ await new Promise(resolve => setTimeout(resolve, 100));
1327
+ }
1328
+
1329
+ let element = null;
1348
1330
 
1349
- // Fallback to selector
1350
- if (!element) {
1351
- element = document.querySelector(identifier);
1331
+ if (typeof identifier === 'string') {
1332
+ // Try as inspector ID first
1333
+ element = elementTracker.findElementById(document, identifier);
1334
+
1335
+ // Fallback to selector
1336
+ if (!element) {
1337
+ element = document.querySelector(identifier);
1338
+ }
1339
+ } else {
1340
+ // Full identifier object with fallback
1341
+ element = elementTracker.findElementWithFallback(document, identifier);
1352
1342
  }
1353
- } else {
1354
- // Full identifier object with fallback
1355
- element = elementTracker.findElementWithFallback(document, identifier);
1356
- }
1357
-
1358
- if (element) {
1359
- elementHighlighter.highlight(element, options);
1360
- } else {
1361
- console.warn('[Inspector] Element not found for highlighting:', identifier);
1362
- }
1343
+
1344
+ if (element) {
1345
+ elementHighlighter.highlight(element, options);
1346
+ } else {
1347
+ console.warn('[Inspector] Element not found for highlighting:', identifier);
1348
+ }
1349
+ })();
1363
1350
  } else if (event.data.type === 'GET_ELEMENT_BY_ID') {
1364
1351
  // Handle get element by ID request
1365
1352
  const inspectorId = event.data.inspectorId;
@@ -1684,6 +1671,86 @@ export function inspectorPlugin() {
1684
1671
  originalConsoleError.apply(console, args);
1685
1672
  };
1686
1673
 
1674
+ // Track Vite error overlay
1675
+ function observeViteErrorOverlay() {
1676
+ const overlayObserver = new MutationObserver((mutations) => {
1677
+ mutations.forEach(mutation => {
1678
+ mutation.addedNodes.forEach(node => {
1679
+ if (node.nodeType === 1 && node.nodeName === 'VITE-ERROR-OVERLAY') {
1680
+ const errorOverlay = node;
1681
+
1682
+ // Parse overlay içeriği
1683
+ setTimeout(() => {
1684
+ try {
1685
+ const shadowRoot = errorOverlay.shadowRoot;
1686
+ if (!shadowRoot) return;
1687
+
1688
+ // Vite overlay'deki mesajı al
1689
+ const messageEl = shadowRoot.querySelector('.message');
1690
+ const frameEl = shadowRoot.querySelector('.frame');
1691
+ const pluginEl = shadowRoot.querySelector('.plugin');
1692
+ const fileEl = shadowRoot.querySelector('.file');
1693
+
1694
+ const errorMessage = messageEl?.textContent || 'Unknown Vite Error';
1695
+ const errorFrame = frameEl?.textContent || '';
1696
+ const errorPlugin = pluginEl?.textContent || '';
1697
+ const errorFile = fileEl?.textContent || '';
1698
+
1699
+ // Dosya bilgisini parse et
1700
+ let fileName = errorFile;
1701
+ let lineNumber;
1702
+ let columnNumber;
1703
+
1704
+ const fileMatch = errorFile.match(/(.+):(\\d+):(\\d+)/);
1705
+ if (fileMatch) {
1706
+ fileName = fileMatch[1];
1707
+ lineNumber = parseInt(fileMatch[2], 10);
1708
+ columnNumber = parseInt(fileMatch[3], 10);
1709
+ }
1710
+
1711
+ // Error'u gönder
1712
+ sendError({
1713
+ type: 'vite',
1714
+ message: errorMessage,
1715
+ frame: errorFrame,
1716
+ plugin: errorPlugin,
1717
+ fileName: fileName,
1718
+ lineNumber: lineNumber,
1719
+ columnNumber: columnNumber,
1720
+ timestamp: Date.now()
1721
+ });
1722
+
1723
+ originalConsoleError.call(console, '🔴 Vite Error Detected:', errorMessage);
1724
+ } catch (err) {
1725
+ originalConsoleError.call(console, 'Failed to parse Vite error:', err);
1726
+ }
1727
+ }, 100);
1728
+ }
1729
+ });
1730
+ });
1731
+ });
1732
+
1733
+ // Body'yi izle
1734
+ if (document.body) {
1735
+ overlayObserver.observe(document.body, {
1736
+ childList: true,
1737
+ subtree: false
1738
+ });
1739
+ } else {
1740
+ document.addEventListener('DOMContentLoaded', () => {
1741
+ if (document.body) {
1742
+ overlayObserver.observe(document.body, {
1743
+ childList: true,
1744
+ subtree: false
1745
+ });
1746
+ }
1747
+ });
1748
+ }
1749
+ }
1750
+
1751
+ // Vite error observer'ı başlat
1752
+ observeViteErrorOverlay();
1753
+
1687
1754
  // Auto-show badge in preview.promake.ai environment (when not in iframe)
1688
1755
  if (window.parent === window && window.location.href.includes('preview.promake.ai')) {
1689
1756
  // Not in iframe and in preview environment - show badge automatically
package/dist/types.d.ts CHANGED
@@ -28,6 +28,7 @@ export interface SelectedElementData {
28
28
  imageUrl?: string;
29
29
  inspectorId?: string;
30
30
  selector?: string;
31
+ currentRoute?: string;
31
32
  }
32
33
  export interface UrlChangeData {
33
34
  url: string;
@@ -55,13 +56,15 @@ export interface ImageUpdatedData {
55
56
  element: SelectedElementData;
56
57
  }
57
58
  export interface ErrorData {
58
- type: "javascript" | "promise" | "console";
59
+ type: "javascript" | "promise" | "console" | "vite";
59
60
  message: string;
60
61
  stack?: string;
61
62
  fileName?: string;
62
63
  lineNumber?: number;
63
64
  columnNumber?: number;
64
65
  timestamp: number;
66
+ frame?: string;
67
+ plugin?: string;
65
68
  }
66
69
  export interface ElementIdentifier {
67
70
  inspectorId: string;
@@ -80,7 +83,8 @@ export interface HighlightOptions {
80
83
  duration?: number;
81
84
  scrollIntoView?: boolean;
82
85
  color?: string;
83
- animation?: 'pulse' | 'fade' | 'none';
86
+ animation?: "pulse" | "fade" | "none";
87
+ targetRoute?: string;
84
88
  }
85
89
  export interface ElementInfoData {
86
90
  found: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAGD,MAAM,WAAW,eAAe;IAC9B,GAAG,E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ACxD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promakeai/inspector",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Visual element inspector for React apps in iframe with AI prompt support",
5
5
  "author": "Promake",
6
6
  "type": "module",
@@ -27,8 +27,7 @@
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "files": [
30
- "dist",
31
- "README.md"
30
+ "dist"
32
31
  ],
33
32
  "scripts": {
34
33
  "build": "tsc && tsc -p tsconfig.plugin.json",