@willbooster/shared-lib-react 1.0.1 → 1.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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");exports.VersionOverlay=()=>e.jsxs("div",{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"]});
|
|
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
2
|
//# sourceMappingURL=VersionOverlay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VersionOverlay.js","sources":["../../src/VersionOverlay.tsx"],"sourcesContent":["import type React from 'react';\n\nexport const VersionOverlay: React.FC = () => (\n <div\n
|
|
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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e}from"react/jsx-runtime";const o=()=>e("div",{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_VERSION||process.env.VERSION||"dev"," on"," ",process.env.NEXT_PUBLIC_ENVIRONMENT||process.env.ENVIRONMENT||"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\nexport const VersionOverlay: React.FC = () => (\n <div\n
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/shared-lib-react",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "WillBooster Inc.",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"lint": "eslint --color \"./{scripts,src,tests}/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}\"",
|
|
28
28
|
"lint-fix": "yarn lint --fix --rule \"{ react-hooks/exhaustive-deps: 0 }\"",
|
|
29
29
|
"prettify": "prettier --cache --color --write \"**/{.*/,}*.{cjs,css,cts,htm,html,js,json,json5,jsx,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\"",
|
|
30
|
-
"storybook": "start-storybook -p 6006",
|
|
30
|
+
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
|
|
31
31
|
"test/ci": "yarn build-storybook",
|
|
32
32
|
"typecheck": "tsc --noEmit --Pretty"
|
|
33
33
|
},
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"prettier": "2.8.3",
|
|
71
71
|
"react": "18.2.0",
|
|
72
72
|
"react-dom": "18.2.0",
|
|
73
|
-
"sort-package-json": "2.
|
|
73
|
+
"sort-package-json": "2.4.0",
|
|
74
74
|
"typescript": "4.9.5",
|
|
75
75
|
"vitest": "0.28.3"
|
|
76
76
|
},
|