@willbooster/shared-lib-react 2.1.5 → 2.1.7

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VersionOverlay.cjs","sources":["../src/VersionOverlay.tsx"],"sourcesContent":["import type React from 'react';\n\nconst css = `\n@media print {\n .wb-shared-version {\n display: none;\n }\n}`;\n\nexport const VersionOverlay: React.FC = () => (\n <>\n <style type=\"text/css\">{css}</style>\n <div\n className=\"wb-shared-version\"\n style={{\n bottom: 4,\n left: 4,\n opacity: 0.5,\n pointerEvents: 'none',\n position: 'fixed',\n userSelect: 'none',\n fontSize: '0.75rem',\n }}\n >\n {process.env.NEXT_PUBLIC_WB_VERSION || process.env.WB_VERSION || 'dev'} on{' '}\n {process.env.NEXT_PUBLIC_WB_ENV || process.env.WB_ENV || 'local'}\n </div>\n </>\n);\n"],"names":["VersionOverlay","_jsxs","jsxs","_Fragment","children","_jsx","jsx","type","className","style","bottom","left","opacity","pointerEvents","position","userSelect","fontSize","process","env","NEXT_PUBLIC_WB_VERSION","WB_VERSION","NEXT_PUBLIC_WB_ENV","WB_ENV"],"mappings":"uEASwCA,IACtCC,EAAAC,KAAAC,WAAA,CAAAC,UACEC,EAAAC,IAAA,QAAA,CAAOC,KAAK,WAAUH,SATb,yEAUTH,EAAAC,KAAA,MAAA,CACEM,UAAU,oBACVC,MAAO,CACLC,OAAQ,EACRC,KAAM,EACNC,QAAS,GACTC,cAAe,OACfC,SAAU,QACVC,WAAY,OACZC,SAAU,WACVZ,SAEDa,CAAAA,QAAQC,IAAIC,wBAA0BF,QAAQC,IAAIE,YAAc,MAAM,MAAI,IAC1EH,QAAQC,IAAIG,oBAAsBJ,QAAQC,IAAII,QAAU"}
@@ -0,0 +1,2 @@
1
+ import type React from 'react';
2
+ export declare const VersionOverlay: React.FC;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VersionOverlay.js","sources":["../src/VersionOverlay.tsx"],"sourcesContent":["import type React from 'react';\n\nconst css = `\n@media print {\n .wb-shared-version {\n display: none;\n }\n}`;\n\nexport const VersionOverlay: React.FC = () => (\n <>\n <style type=\"text/css\">{css}</style>\n <div\n className=\"wb-shared-version\"\n style={{\n bottom: 4,\n left: 4,\n opacity: 0.5,\n pointerEvents: 'none',\n position: 'fixed',\n userSelect: 'none',\n fontSize: '0.75rem',\n }}\n >\n {process.env.NEXT_PUBLIC_WB_VERSION || process.env.WB_VERSION || 'dev'} on{' '}\n {process.env.NEXT_PUBLIC_WB_ENV || process.env.WB_ENV || 'local'}\n </div>\n </>\n);\n"],"names":["VersionOverlay","_jsxs","_Fragment","children","_jsx","type","className","style","bottom","left","opacity","pointerEvents","position","userSelect","fontSize","process","env","NEXT_PUBLIC_WB_VERSION","WB_VERSION","NEXT_PUBLIC_WB_ENV","WB_ENV"],"mappings":"gEAEA,MAOaA,EAA2BA,IACtCC,EAAAC,EAAA,CAAAC,UACEC,EAAA,QAAA,CAAOC,KAAK,WAAUF,SATb,yEAUTF,EAAA,MAAA,CACEK,UAAU,oBACVC,MAAO,CACLC,OAAQ,EACRC,KAAM,EACNC,QAAS,GACTC,cAAe,OACfC,SAAU,QACVC,WAAY,OACZC,SAAU,WACVX,SAEDY,CAAAA,QAAQC,IAAIC,wBAA0BF,QAAQC,IAAIE,YAAc,MAAM,MAAI,IAC1EH,QAAQC,IAAIG,oBAAsBJ,QAAQC,IAAII,QAAU"}
@@ -0,0 +1,5 @@
1
+ import type { Meta, StoryFn } from '@storybook/react';
2
+ import { VersionOverlay } from './VersionOverlay.jsx';
3
+ declare const meta: Meta<typeof VersionOverlay>;
4
+ export declare const Default: StoryFn<typeof VersionOverlay>;
5
+ export default meta;
@@ -0,0 +1 @@
1
+ export { VersionOverlay } from './VersionOverlay.jsx';
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@willbooster/shared-lib-react",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "license": "Apache-2.0",
5
5
  "author": "WillBooster Inc.",
6
6
  "sideEffects": false,
7
7
  "type": "module",
8
8
  "exports": {
9
9
  ".": {
10
- "require": "./dist/cjs/index.cjs",
11
- "import": "./dist/esm/index.js",
12
- "types": "./dist/esm/index.d.ts"
10
+ "require": "./dist/index.cjs",
11
+ "import": "./dist/index.js",
12
+ "types": "./dist/index.d.ts"
13
13
  }
14
14
  },
15
- "main": "dist/cjs/index.cjs",
16
- "module": "dist/esm/index.js",
17
- "types": "dist/esm/index.d.ts",
15
+ "main": "dist/index.cjs",
16
+ "module": "dist/index.js",
17
+ "types": "dist/index.d.ts",
18
18
  "files": [
19
19
  "bin/",
20
20
  "dist/"
@@ -33,28 +33,28 @@
33
33
  },
34
34
  "prettier": "@willbooster/prettier-config",
35
35
  "devDependencies": {
36
- "@babel/core": "7.22.10",
36
+ "@babel/core": "7.22.19",
37
37
  "@mdx-js/react": "2.3.0",
38
- "@storybook/addon-actions": "7.3.2",
39
- "@storybook/addon-docs": "7.3.2",
40
- "@storybook/addon-essentials": "7.3.2",
41
- "@storybook/addon-interactions": "7.3.2",
42
- "@storybook/addon-links": "7.3.2",
38
+ "@storybook/addon-actions": "7.4.2",
39
+ "@storybook/addon-docs": "7.4.2",
40
+ "@storybook/addon-essentials": "7.4.2",
41
+ "@storybook/addon-interactions": "7.4.2",
42
+ "@storybook/addon-links": "7.4.2",
43
43
  "@storybook/builder-webpack4": "6.5.16",
44
44
  "@storybook/manager-webpack4": "6.5.16",
45
- "@storybook/react": "7.3.2",
46
- "@storybook/testing-library": "0.2.0",
45
+ "@storybook/react": "7.4.2",
46
+ "@storybook/testing-library": "0.2.1",
47
47
  "@types/eslint": "8.44.2",
48
48
  "@types/micromatch": "4.0.2",
49
- "@types/react": "18.2.20",
49
+ "@types/react": "18.2.21",
50
50
  "@types/react-dom": "18.2.7",
51
- "@typescript-eslint/eslint-plugin": "6.4.1",
52
- "@typescript-eslint/parser": "6.4.1",
51
+ "@typescript-eslint/eslint-plugin": "6.7.0",
52
+ "@typescript-eslint/parser": "6.7.0",
53
53
  "@willbooster/eslint-config-ts-react": "10.1.7",
54
54
  "@willbooster/prettier-config": "9.1.1",
55
55
  "babel-loader": "9.1.3",
56
- "build-ts": "8.2.2",
57
- "eslint": "8.47.0",
56
+ "build-ts": "9.1.4",
57
+ "eslint": "8.49.0",
58
58
  "eslint-config-prettier": "9.0.0",
59
59
  "eslint-import-resolver-typescript": "3.6.0",
60
60
  "eslint-plugin-import": "2.28.1",
@@ -66,12 +66,12 @@
66
66
  "eslint-plugin-unicorn": "48.0.1",
67
67
  "lint-staged": "14.0.1",
68
68
  "micromatch": "4.0.5",
69
- "prettier": "3.0.2",
69
+ "prettier": "3.0.3",
70
70
  "react": "18.2.0",
71
71
  "react-dom": "18.2.0",
72
72
  "sort-package-json": "2.5.1",
73
- "typescript": "5.1.6",
74
- "vitest": "0.34.2"
73
+ "typescript": "5.2.2",
74
+ "vitest": "0.34.4"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "react": "~18.2.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"VersionOverlay.cjs","sources":["../../src/VersionOverlay.tsx"],"sourcesContent":["import type React from 'react';\n\nconst css = `\n@media print {\n .wb-shared-version {\n display: none;\n }\n}`;\n\nexport const VersionOverlay: React.FC = () => (\n <>\n <style type=\"text/css\">{css}</style>\n <div\n className=\"wb-shared-version\"\n style={{\n bottom: 4,\n left: 4,\n opacity: 0.5,\n pointerEvents: 'none',\n position: 'fixed',\n userSelect: 'none',\n fontSize: '0.75rem',\n }}\n >\n {process.env.NEXT_PUBLIC_WB_VERSION || process.env.WB_VERSION || 'dev'} on{' '}\n {process.env.NEXT_PUBLIC_WB_ENV || process.env.WB_ENV || 'local'}\n </div>\n </>\n);\n"],"names":["VersionOverlay","_jsxs","jsxs","_Fragment","children","_jsx","jsx","type","className","style","bottom","left","opacity","pointerEvents","position","userSelect","fontSize","process","env","NEXT_PUBLIC_WB_VERSION","WB_VERSION","NEXT_PUBLIC_WB_ENV","WB_ENV"],"mappings":"uEASwCA,IACtCC,EAAAC,KAAAC,WAAA,CAAAC,UACEC,EAAAC,IAAA,QAAA,CAAOC,KAAK,WAAUH,SATb,yEAUTH,EAAAC,KAAA,MAAA,CACEM,UAAU,oBACVC,MAAO,CACLC,OAAQ,EACRC,KAAM,EACNC,QAAS,GACTC,cAAe,OACfC,SAAU,QACVC,WAAY,OACZC,SAAU,WACVZ,SAEDa,CAAAA,QAAQC,IAAIC,wBAA0BF,QAAQC,IAAIE,YAAc,MAAM,MAAI,IAC1EH,QAAQC,IAAIG,oBAAsBJ,QAAQC,IAAII,QAAU"}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- declare const VersionOverlay: React.FC;
4
- export { VersionOverlay };
@@ -1 +0,0 @@
1
- export { VersionOverlay } from "./VersionOverlay.js";
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- declare const VersionOverlay: React.FC;
4
- export { VersionOverlay };
@@ -1 +0,0 @@
1
- {"version":3,"file":"VersionOverlay.js","sources":["../../src/VersionOverlay.tsx"],"sourcesContent":["import type React from 'react';\n\nconst css = `\n@media print {\n .wb-shared-version {\n display: none;\n }\n}`;\n\nexport const VersionOverlay: React.FC = () => (\n <>\n <style type=\"text/css\">{css}</style>\n <div\n className=\"wb-shared-version\"\n style={{\n bottom: 4,\n left: 4,\n opacity: 0.5,\n pointerEvents: 'none',\n position: 'fixed',\n userSelect: 'none',\n fontSize: '0.75rem',\n }}\n >\n {process.env.NEXT_PUBLIC_WB_VERSION || process.env.WB_VERSION || 'dev'} on{' '}\n {process.env.NEXT_PUBLIC_WB_ENV || process.env.WB_ENV || 'local'}\n </div>\n </>\n);\n"],"names":["VersionOverlay","_jsxs","_Fragment","children","_jsx","type","className","style","bottom","left","opacity","pointerEvents","position","userSelect","fontSize","process","env","NEXT_PUBLIC_WB_VERSION","WB_VERSION","NEXT_PUBLIC_WB_ENV","WB_ENV"],"mappings":"gEAEA,MAOaA,EAA2BA,IACtCC,EAAAC,EAAA,CAAAC,UACEC,EAAA,QAAA,CAAOC,KAAK,WAAUF,SATb,yEAUTF,EAAA,MAAA,CACEK,UAAU,oBACVC,MAAO,CACLC,OAAQ,EACRC,KAAM,EACNC,QAAS,GACTC,cAAe,OACfC,SAAU,QACVC,WAAY,OACZC,SAAU,WACVX,SAEDY,CAAAA,QAAQC,IAAIC,wBAA0BF,QAAQC,IAAIE,YAAc,MAAM,MAAI,IAC1EH,QAAQC,IAAIG,oBAAsBJ,QAAQC,IAAII,QAAU"}
@@ -1 +0,0 @@
1
- export { VersionOverlay } from "./VersionOverlay.js";
File without changes
File without changes
File without changes
File without changes