@willbooster/shared-lib-react 1.1.0 → 1.3.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.
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime");exports.VersionOverlay=()=>e.jsxs(e.Fragment,{children:[e.jsx("style",{type:"text/css",children:"\n@media print {\n .wb-shared-version {\n display: none;\n }\n}"}),e.jsxs("div",{className:"wb-shared-version",style:{bottom:4,left:4,opacity:.5,pointerEvents:"none",position:"fixed",userSelect:"none",fontSize:"0.75rem"},children:[process.env.NEXT_PUBLIC_VERSION||process.env.VERSION||"dev"," on"," ",process.env.NEXT_PUBLIC_ENVIRONMENT||process.env.ENVIRONMENT||"local"]})]});
2
- //# sourceMappingURL=VersionOverlay.js.map
1
+ "use strict";var e=require("react/jsx-runtime");exports.VersionOverlay=()=>e.jsxs(e.Fragment,{children:[e.jsx("style",{type:"text/css",children:"\n@media print {\n .wb-shared-version {\n display: none;\n }\n}"}),e.jsxs("div",{className:"wb-shared-version",style:{bottom:4,left:4,opacity:.5,pointerEvents:"none",position:"fixed",userSelect:"none",fontSize:"0.75rem"},children:[process.env.NEXT_PUBLIC_WB_VERSION||process.env.WB_VERSION||"dev"," on"," ",process.env.NEXT_PUBLIC_WB_ENV||process.env.WB_ENV||"local"]})]});
2
+ //# sourceMappingURL=VersionOverlay.cjs.map
@@ -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":["_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":"uEASwC,IACtCA,EAAAC,KAAAC,WAAA,CAAAC,SACE,CAAAC,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,SAAA,CAEDa,QAAQC,IAAIC,wBAA0BF,QAAQC,IAAIE,YAAc,MAAM,MAAI,IAC1EH,QAAQC,IAAIG,oBAAsBJ,QAAQC,IAAII,QAAU"}
@@ -0,0 +1,2 @@
1
+ "use strict";var r=require("./VersionOverlay.cjs");exports.VersionOverlay=r.VersionOverlay;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
File without changes
@@ -1,2 +1,2 @@
1
- import{jsxs as e,Fragment as n,jsx as s}from"react/jsx-runtime";const o=()=>e(n,{children:[s("style",{type:"text/css",children:"\n@media print {\n .wb-shared-version {\n display: none;\n }\n}"}),e("div",{className:"wb-shared-version",style:{bottom:4,left:4,opacity:.5,pointerEvents:"none",position:"fixed",userSelect:"none",fontSize:"0.75rem"},children:[process.env.NEXT_PUBLIC_VERSION||process.env.VERSION||"dev"," on"," ",process.env.NEXT_PUBLIC_ENVIRONMENT||process.env.ENVIRONMENT||"local"]})]});export{o as VersionOverlay};
1
+ import{jsxs as e,Fragment as n,jsx as s}from"react/jsx-runtime";const o=()=>e(n,{children:[s("style",{type:"text/css",children:"\n@media print {\n .wb-shared-version {\n display: none;\n }\n}"}),e("div",{className:"wb-shared-version",style:{bottom:4,left:4,opacity:.5,pointerEvents:"none",position:"fixed",userSelect:"none",fontSize:"0.75rem"},children:[process.env.NEXT_PUBLIC_WB_VERSION||process.env.WB_VERSION||"dev"," on"," ",process.env.NEXT_PUBLIC_WB_ENV||process.env.WB_ENV||"local"]})]});export{o as VersionOverlay};
2
2
  //# sourceMappingURL=VersionOverlay.js.map
@@ -1 +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_VERSION || process.env.VERSION || 'dev'} on{' '}\n {process.env.NEXT_PUBLIC_ENVIRONMENT || process.env.ENVIRONMENT || '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_VERSION","VERSION","NEXT_PUBLIC_ENVIRONMENT","ENVIRONMENT"],"mappings":"gEAEA,MAOaA,EAA2B,IACtCC,EAAAC,EAAA,CAAAC,SACE,CAAAC,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,SAAA,CAEDY,QAAQC,IAAIC,qBAAuBF,QAAQC,IAAIE,SAAW,MAAM,MAAI,IACpEH,QAAQC,IAAIG,yBAA2BJ,QAAQC,IAAII,aAAe"}
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,EAA2B,IACtCC,EAAAC,EAAA,CAAAC,SACE,CAAAC,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,SAAA,CAEDY,QAAQC,IAAIC,wBAA0BF,QAAQC,IAAIE,YAAc,MAAM,MAAI,IAC1EH,QAAQC,IAAIG,oBAAsBJ,QAAQC,IAAII,QAAU"}
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@willbooster/shared-lib-react",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
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
- "types": "./dist/esm/index.d.ts",
11
- "require": "./dist/cjs/index.js",
12
- "import": "./dist/esm/index.js"
10
+ "require": "./dist/cjs/index.cjs",
11
+ "import": "./dist/esm/index.js",
12
+ "types": "./dist/esm/index.d.ts"
13
13
  }
14
14
  },
15
- "main": "dist/cjs/index.js",
15
+ "main": "dist/cjs/index.cjs",
16
16
  "module": "dist/esm/index.js",
17
- "types": "dist/cjs/index.d.ts",
17
+ "types": "dist/esm/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.20.12",
37
- "@mdx-js/react": "^1.6.22",
38
- "@storybook/addon-actions": "^6.5.16",
39
- "@storybook/addon-docs": "^6.5.16",
40
- "@storybook/addon-essentials": "^6.5.16",
41
- "@storybook/addon-interactions": "^6.5.16",
42
- "@storybook/addon-links": "^6.5.16",
43
- "@storybook/builder-webpack4": "^6.5.16",
44
- "@storybook/manager-webpack4": "^6.5.16",
45
- "@storybook/react": "^6.5.16",
46
- "@storybook/testing-library": "^0.0.13",
47
- "@types/eslint": "8.4.10",
36
+ "@babel/core": "7.20.12",
37
+ "@mdx-js/react": "2.2.1",
38
+ "@storybook/addon-actions": "6.5.16",
39
+ "@storybook/addon-docs": "6.5.16",
40
+ "@storybook/addon-essentials": "6.5.16",
41
+ "@storybook/addon-interactions": "6.5.16",
42
+ "@storybook/addon-links": "6.5.16",
43
+ "@storybook/builder-webpack4": "6.5.16",
44
+ "@storybook/manager-webpack4": "6.5.16",
45
+ "@storybook/react": "6.5.16",
46
+ "@storybook/testing-library": "0.0.13",
47
+ "@types/eslint": "8.21.0",
48
48
  "@types/micromatch": "4.0.2",
49
49
  "@types/prettier": "2.7.2",
50
50
  "@types/react": "18.0.27",
51
51
  "@types/react-dom": "18.0.10",
52
- "@typescript-eslint/eslint-plugin": "5.50.0",
53
- "@typescript-eslint/parser": "5.50.0",
52
+ "@typescript-eslint/eslint-plugin": "5.51.0",
53
+ "@typescript-eslint/parser": "5.51.0",
54
54
  "@willbooster/eslint-config-ts-react": "10.1.0",
55
55
  "@willbooster/prettier-config": "9.1.1",
56
- "babel-loader": "^8.3.0",
57
- "build-ts": "5.3.2",
56
+ "babel-loader": "9.1.2",
57
+ "build-ts": "5.5.0",
58
58
  "eslint": "8.33.0",
59
59
  "eslint-config-prettier": "8.6.0",
60
60
  "eslint-import-resolver-typescript": "3.5.3",
@@ -65,14 +65,14 @@
65
65
  "eslint-plugin-sort-destructure-keys": "1.4.0",
66
66
  "eslint-plugin-storybook": "0.6.10",
67
67
  "eslint-plugin-unicorn": "45.0.2",
68
- "lint-staged": "13.1.0",
68
+ "lint-staged": "13.1.1",
69
69
  "micromatch": "4.0.5",
70
70
  "prettier": "2.8.3",
71
71
  "react": "18.2.0",
72
72
  "react-dom": "18.2.0",
73
- "sort-package-json": "2.4.0",
73
+ "sort-package-json": "2.4.1",
74
74
  "typescript": "4.9.5",
75
- "vitest": "0.28.3"
75
+ "vitest": "0.28.4"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "react": "~18.2.0",
@@ -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_VERSION || process.env.VERSION || 'dev'} on{' '}\n {process.env.NEXT_PUBLIC_ENVIRONMENT || process.env.ENVIRONMENT || 'local'}\n </div>\n </>\n);\n"],"names":["_jsxs","jsxs","_Fragment","children","_jsx","jsx","type","className","style","bottom","left","opacity","pointerEvents","position","userSelect","fontSize","process","env","NEXT_PUBLIC_VERSION","VERSION","NEXT_PUBLIC_ENVIRONMENT","ENVIRONMENT"],"mappings":"uEASwC,IACtCA,EAAAC,KAAAC,WAAA,CAAAC,SACE,CAAAC,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,SAAA,CAEDa,QAAQC,IAAIC,qBAAuBF,QAAQC,IAAIE,SAAW,MAAM,MAAI,IACpEH,QAAQC,IAAIG,yBAA2BJ,QAAQC,IAAII,aAAe"}
package/dist/cjs/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";var r=require("./VersionOverlay.js");exports.VersionOverlay=r.VersionOverlay;
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}