microfrontend-shared 1.0.0 → 1.0.1
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/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/package.json +11 -5
- package/src/index.tsx +0 -19
- package/tsconfig.json +0 -19
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,2CAgBrD"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SharedBadge = SharedBadge;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function SharedBadge({ text }) {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("span", { style: {
|
|
7
|
+
display: 'inline-block',
|
|
8
|
+
marginTop: 8,
|
|
9
|
+
fontSize: 12,
|
|
10
|
+
padding: '4px 10px',
|
|
11
|
+
borderRadius: '6px',
|
|
12
|
+
background: 'rgb(184, 78, 78)',
|
|
13
|
+
color: '#333',
|
|
14
|
+
}, children: text }));
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microfrontend-shared",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Shared UI and utilities for microfrontend apps",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"sideEffects": false,
|
|
6
11
|
"peerDependencies": {
|
|
7
12
|
"react": "^18.3.1"
|
|
8
13
|
},
|
|
@@ -11,6 +16,7 @@
|
|
|
11
16
|
"typescript": "^5.7.2"
|
|
12
17
|
},
|
|
13
18
|
"scripts": {
|
|
14
|
-
"build": "tsc"
|
|
19
|
+
"build": "tsc",
|
|
20
|
+
"prepublishOnly": "npm run build"
|
|
15
21
|
}
|
|
16
|
-
}
|
|
22
|
+
}
|
package/src/index.tsx
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export function SharedBadge({ text }: { text: string }) {
|
|
4
|
-
return (
|
|
5
|
-
<span
|
|
6
|
-
style={{
|
|
7
|
-
display: 'inline-block',
|
|
8
|
-
marginTop: 8,
|
|
9
|
-
fontSize: 12,
|
|
10
|
-
padding: '4px 10px',
|
|
11
|
-
borderRadius: 6,
|
|
12
|
-
background: '#e8e8e8',
|
|
13
|
-
color: '#333',
|
|
14
|
-
}}
|
|
15
|
-
>
|
|
16
|
-
{text}
|
|
17
|
-
</span>
|
|
18
|
-
);
|
|
19
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
-
"jsx": "react-jsx",
|
|
8
|
-
"strict": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"isolatedModules": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"allowSyntheticDefaultImports": true,
|
|
13
|
-
"forceConsistentCasingInFileNames": true,
|
|
14
|
-
"outDir": "./dist",
|
|
15
|
-
"rootDir": "./src",
|
|
16
|
-
"declaration": true
|
|
17
|
-
},
|
|
18
|
-
"include": ["src"]
|
|
19
|
-
}
|