show-component 0.1.0
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/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/ShowComponent.d.ts +4 -0
- package/dist/ShowComponent.js +21 -0
- package/dist/esm/ShowComponent.d.ts +4 -0
- package/dist/esm/ShowComponent.js +19 -0
- package/dist/esm/hooks/useShowComponent.d.ts +3 -0
- package/dist/esm/hooks/useShowComponent.js +9 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/types.d.ts +6 -0
- package/dist/esm/types.js +1 -0
- package/dist/hooks/useShowComponent.d.ts +3 -0
- package/dist/hooks/useShowComponent.js +13 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +12 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +2 -0
- package/package.json +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Andrey Sidorov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
+
const ShowComponent = (_a) => {
|
|
16
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
17
|
+
// Placeholder implementation
|
|
18
|
+
// This component will help navigate to the line of code responsible for rendering
|
|
19
|
+
return (0, jsx_runtime_1.jsx)("div", Object.assign({}, props, { children: children }));
|
|
20
|
+
};
|
|
21
|
+
exports.default = ShowComponent;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
const ShowComponent = (_a) => {
|
|
14
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
15
|
+
// Placeholder implementation
|
|
16
|
+
// This component will help navigate to the line of code responsible for rendering
|
|
17
|
+
return _jsx("div", Object.assign({}, props, { children: children }));
|
|
18
|
+
};
|
|
19
|
+
export default ShowComponent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useCallback } from 'react';
|
|
2
|
+
export const useShowComponent = () => {
|
|
3
|
+
const showComponent = useCallback(() => {
|
|
4
|
+
// Placeholder implementation
|
|
5
|
+
// This hook will help with navigating to component source code
|
|
6
|
+
console.log('Navigate to component source');
|
|
7
|
+
}, []);
|
|
8
|
+
return { showComponent };
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useShowComponent = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const useShowComponent = () => {
|
|
6
|
+
const showComponent = (0, react_1.useCallback)(() => {
|
|
7
|
+
// Placeholder implementation
|
|
8
|
+
// This hook will help with navigating to component source code
|
|
9
|
+
console.log('Navigate to component source');
|
|
10
|
+
}, []);
|
|
11
|
+
return { showComponent };
|
|
12
|
+
};
|
|
13
|
+
exports.useShowComponent = useShowComponent;
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Placeholder for the main component/hook implementation
|
|
3
|
+
// This will be the entry point for the show-component package
|
|
4
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useShowComponent = exports.ShowComponent = void 0;
|
|
9
|
+
var ShowComponent_1 = require("./ShowComponent");
|
|
10
|
+
Object.defineProperty(exports, "ShowComponent", { enumerable: true, get: function () { return __importDefault(ShowComponent_1).default; } });
|
|
11
|
+
var useShowComponent_1 = require("./hooks/useShowComponent");
|
|
12
|
+
Object.defineProperty(exports, "useShowComponent", { enumerable: true, get: function () { return useShowComponent_1.useShowComponent; } });
|
package/dist/types.d.ts
ADDED
package/dist/types.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "show-component",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Quickly navigate to the line of code that is responsible for rendering a component",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/esm/index.js",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "npm run build:cjs && npm run build:esm && npm run build:types",
|
|
20
|
+
"build:cjs": "tsc",
|
|
21
|
+
"build:esm": "tsc --module es2015 --outDir dist/esm",
|
|
22
|
+
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
23
|
+
"lint": "biome check .",
|
|
24
|
+
"lint:fix": "biome check . --write",
|
|
25
|
+
"type-check": "tsc --noEmit",
|
|
26
|
+
"prepublishOnly": "npm run build"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"react",
|
|
30
|
+
"component",
|
|
31
|
+
"hook",
|
|
32
|
+
"development",
|
|
33
|
+
"debugging"
|
|
34
|
+
],
|
|
35
|
+
"author": "Andrey Sidorov",
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/sidorares/show-component.git"
|
|
40
|
+
},
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/sidorares/show-component/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/sidorares/show-component#readme",
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": ">=16.8.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@biomejs/biome": "^1.9.4",
|
|
50
|
+
"@types/react": "^18.3.12",
|
|
51
|
+
"typescript": "^5.6.3"
|
|
52
|
+
}
|
|
53
|
+
}
|