fis-component 0.0.4 → 0.0.5
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/dist/cjs/index.js +10 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/components/MyComponent/index.d.ts +2 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/components/MyComponent/index.d.ts +2 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +5 -0
- package/package.json +56 -10
- package/.babelrc +0 -3
- package/dist/bundle.js +0 -120
- package/src/components/MyComponent.js +0 -7
- package/webpack.config.js +0 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/components/MyComponent/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;AAEM,MAAA,WAAW,GAAG,MAAK;AACvB,IAAA,OAAOA,qEAAyC,CAAC;AACnD;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MyComponent } from "./components/MyComponent";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/components/MyComponent/index.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;AAEM,MAAA,WAAW,GAAG,MAAK;AACvB,IAAA,OAAOA,0DAAyC,CAAC;AACnD;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MyComponent } from "./components/MyComponent";
|
package/dist/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fis-component",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"main": "dist/bundle.js",
|
|
3
|
+
"version": "0.0.5",
|
|
5
4
|
"description": "",
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
6
11
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
12
|
+
"build": "rollup -c",
|
|
13
|
+
"dev": "rollup -c -w",
|
|
14
|
+
"test": "jest",
|
|
15
|
+
"storybook": "storybook dev -p 6006",
|
|
16
|
+
"build-storybook": "storybook build",
|
|
17
|
+
"prepare": "husky",
|
|
18
|
+
"lint": "eslint ./src/ --ext .ts,.tsx",
|
|
19
|
+
"lint:fix": "eslint ./src --ext .ts,.tsx --fix",
|
|
20
|
+
"release": "standard-version"
|
|
9
21
|
},
|
|
10
22
|
"peerDependencies": {
|
|
11
23
|
"react": "^18.0.0"
|
|
@@ -18,10 +30,44 @@
|
|
|
18
30
|
"license": "ISC",
|
|
19
31
|
"devDependencies": {
|
|
20
32
|
"@babel/core": "^7.25.2",
|
|
21
|
-
"@babel/preset-env": "^7.
|
|
22
|
-
"@babel/preset-react": "^7.
|
|
23
|
-
"babel-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
33
|
+
"@babel/preset-env": "^7.23.9",
|
|
34
|
+
"@babel/preset-react": "^7.23.3",
|
|
35
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
36
|
+
"@commitlint/cli": "^18.6.0",
|
|
37
|
+
"@commitlint/config-conventional": "^18.6.0",
|
|
38
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
39
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
40
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
41
|
+
"@storybook/addon-essentials": "^7.6.13",
|
|
42
|
+
"@storybook/addon-interactions": "^7.6.13",
|
|
43
|
+
"@storybook/addon-links": "^7.6.13",
|
|
44
|
+
"@storybook/addon-onboarding": "^1.0.11",
|
|
45
|
+
"@storybook/blocks": "^7.6.13",
|
|
46
|
+
"@storybook/react": "^7.6.13",
|
|
47
|
+
"@storybook/react-vite": "^7.6.13",
|
|
48
|
+
"@storybook/test": "^7.6.13",
|
|
49
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
50
|
+
"@testing-library/react": "^14.2.1",
|
|
51
|
+
"@types/jest": "^29.5.12",
|
|
52
|
+
"@types/react": "^18.2.55",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
54
|
+
"eslint": "^8.56.0",
|
|
55
|
+
"eslint-config-standard-with-typescript": "^43.0.1",
|
|
56
|
+
"eslint-plugin-import": "^2.29.1",
|
|
57
|
+
"eslint-plugin-n": "^16.6.2",
|
|
58
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
59
|
+
"eslint-plugin-react": "^7.33.2",
|
|
60
|
+
"husky": "^9.0.10",
|
|
61
|
+
"jest": "^29.7.0",
|
|
62
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
63
|
+
"react": "^18.2.0",
|
|
64
|
+
"react-dom": "^18.2.0",
|
|
65
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
66
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
67
|
+
"standard-version": "^9.5.0",
|
|
68
|
+
"storybook": "^7.6.13",
|
|
69
|
+
"styled-components": "^6.1.8",
|
|
70
|
+
"tslib": "^2.6.2",
|
|
71
|
+
"typescript": "^5.3.3"
|
|
26
72
|
}
|
|
27
|
-
}
|
|
73
|
+
}
|
package/.babelrc
DELETED
package/dist/bundle.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
3
|
-
* This devtool is neither made for production nor for readable output files.
|
|
4
|
-
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
5
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
6
|
-
* or disable the default devtool with "devtool: false".
|
|
7
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
8
|
-
*/
|
|
9
|
-
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
|
-
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
-
module.exports = factory(require("react"));
|
|
12
|
-
else if(typeof define === 'function' && define.amd)
|
|
13
|
-
define(["react"], factory);
|
|
14
|
-
else if(typeof exports === 'object')
|
|
15
|
-
exports["myLibrary"] = factory(require("react"));
|
|
16
|
-
else
|
|
17
|
-
root["myLibrary"] = factory(root["react"]);
|
|
18
|
-
})(this, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
19
|
-
return /******/ (() => { // webpackBootstrap
|
|
20
|
-
/******/ "use strict";
|
|
21
|
-
/******/ var __webpack_modules__ = ({
|
|
22
|
-
|
|
23
|
-
/***/ "./src/components/MyComponent.js":
|
|
24
|
-
/*!***************************************!*\
|
|
25
|
-
!*** ./src/components/MyComponent.js ***!
|
|
26
|
-
\***************************************/
|
|
27
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
28
|
-
|
|
29
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n\nvar MyComponent = function MyComponent() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, \"Hello from my React component!\");\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MyComponent);\n\n//# sourceURL=webpack://myLibrary/./src/components/MyComponent.js?");
|
|
30
|
-
|
|
31
|
-
/***/ }),
|
|
32
|
-
|
|
33
|
-
/***/ "react":
|
|
34
|
-
/*!************************!*\
|
|
35
|
-
!*** external "react" ***!
|
|
36
|
-
\************************/
|
|
37
|
-
/***/ ((module) => {
|
|
38
|
-
|
|
39
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
|
|
40
|
-
|
|
41
|
-
/***/ })
|
|
42
|
-
|
|
43
|
-
/******/ });
|
|
44
|
-
/************************************************************************/
|
|
45
|
-
/******/ // The module cache
|
|
46
|
-
/******/ var __webpack_module_cache__ = {};
|
|
47
|
-
/******/
|
|
48
|
-
/******/ // The require function
|
|
49
|
-
/******/ function __webpack_require__(moduleId) {
|
|
50
|
-
/******/ // Check if module is in cache
|
|
51
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
52
|
-
/******/ if (cachedModule !== undefined) {
|
|
53
|
-
/******/ return cachedModule.exports;
|
|
54
|
-
/******/ }
|
|
55
|
-
/******/ // Create a new module (and put it into the cache)
|
|
56
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
57
|
-
/******/ // no module.id needed
|
|
58
|
-
/******/ // no module.loaded needed
|
|
59
|
-
/******/ exports: {}
|
|
60
|
-
/******/ };
|
|
61
|
-
/******/
|
|
62
|
-
/******/ // Execute the module function
|
|
63
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
64
|
-
/******/
|
|
65
|
-
/******/ // Return the exports of the module
|
|
66
|
-
/******/ return module.exports;
|
|
67
|
-
/******/ }
|
|
68
|
-
/******/
|
|
69
|
-
/************************************************************************/
|
|
70
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
71
|
-
/******/ (() => {
|
|
72
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
73
|
-
/******/ __webpack_require__.n = (module) => {
|
|
74
|
-
/******/ var getter = module && module.__esModule ?
|
|
75
|
-
/******/ () => (module['default']) :
|
|
76
|
-
/******/ () => (module);
|
|
77
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
78
|
-
/******/ return getter;
|
|
79
|
-
/******/ };
|
|
80
|
-
/******/ })();
|
|
81
|
-
/******/
|
|
82
|
-
/******/ /* webpack/runtime/define property getters */
|
|
83
|
-
/******/ (() => {
|
|
84
|
-
/******/ // define getter functions for harmony exports
|
|
85
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
86
|
-
/******/ for(var key in definition) {
|
|
87
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
88
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
89
|
-
/******/ }
|
|
90
|
-
/******/ }
|
|
91
|
-
/******/ };
|
|
92
|
-
/******/ })();
|
|
93
|
-
/******/
|
|
94
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
95
|
-
/******/ (() => {
|
|
96
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
97
|
-
/******/ })();
|
|
98
|
-
/******/
|
|
99
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
100
|
-
/******/ (() => {
|
|
101
|
-
/******/ // define __esModule on exports
|
|
102
|
-
/******/ __webpack_require__.r = (exports) => {
|
|
103
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
104
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
105
|
-
/******/ }
|
|
106
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
107
|
-
/******/ };
|
|
108
|
-
/******/ })();
|
|
109
|
-
/******/
|
|
110
|
-
/************************************************************************/
|
|
111
|
-
/******/
|
|
112
|
-
/******/ // startup
|
|
113
|
-
/******/ // Load entry module and return exports
|
|
114
|
-
/******/ // This entry module can't be inlined because the eval devtool is used.
|
|
115
|
-
/******/ var __webpack_exports__ = __webpack_require__("./src/components/MyComponent.js");
|
|
116
|
-
/******/
|
|
117
|
-
/******/ return __webpack_exports__;
|
|
118
|
-
/******/ })()
|
|
119
|
-
;
|
|
120
|
-
});
|
package/webpack.config.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
mode: "development",
|
|
5
|
-
entry: "./src/components/MyComponent.js",
|
|
6
|
-
output: {
|
|
7
|
-
path: path.resolve(__dirname, "dist"),
|
|
8
|
-
filename: "bundle.js",
|
|
9
|
-
library: "myLibrary",
|
|
10
|
-
libraryTarget: "umd",
|
|
11
|
-
globalObject: "this",
|
|
12
|
-
},
|
|
13
|
-
module: {
|
|
14
|
-
rules: [
|
|
15
|
-
{
|
|
16
|
-
test: /\.js$/,
|
|
17
|
-
exclude: /node_modules/,
|
|
18
|
-
use: {
|
|
19
|
-
loader: "babel-loader",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
},
|
|
24
|
-
externals: {
|
|
25
|
-
react: "react",
|
|
26
|
-
},
|
|
27
|
-
};
|