@newhighsco/storybook-preset 8.1.4 → 8.2.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/preset.js +1 -1
- package/dist/preset.js.map +1 -1
- package/package.json +7 -7
package/dist/preset.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var e=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(s,a)=>(typeof require<"u"?require:s)[a]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')});var t=o=>!o.startsWith("/"),r=(o=/\.css$/,s=[])=>(s=[{loader:e.resolve("postcss-loader"),options:{implementation:e.resolve("postcss")}},...s],{test:o,sideEffects:true,use:[e.resolve("style-loader"),{loader:e.resolve("css-loader"),options:{esModule:false,import:{filter:t},importLoaders:s.length,modules:{exportLocalsConvention:"as-is",localIdentName:"[name]_[local]__[hash:base64:5]"},url:{filter:t}}},...s]});var c=["@storybook/addon-webpack5-compiler-swc","@storybook/addon-a11y","@storybook/addon-docs",{name:"@storybook/addon-styling-webpack",options:{rules:[r(),r(/\.s[ac]ss$/,[{loader:e.resolve("sass-loader"),options:{implementation:e.resolve("sass")}}])]}},"@newhighsco/storybook-addon-svgr",{name:"@newhighsco/storybook-addon-transpile-modules",options:{transpileModules:["@newhighsco/chipset"]}}],p=o=>({...o,disableTelemetry:true,enableCrashReports:false});exports.addons=c;exports.core=p;//# sourceMappingURL=preset.js.map
|
|
1
|
+
'use strict';var e=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(s,a)=>(typeof require<"u"?require:s)[a]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')});var t=o=>!o.startsWith("/"),r=(o=/\.css$/,s=[])=>(s=[{loader:e.resolve("postcss-loader"),options:{implementation:e.resolve("postcss")}},...s],{test:o,sideEffects:true,use:[e.resolve("style-loader"),{loader:e.resolve("css-loader"),options:{esModule:false,import:{filter:t},importLoaders:s.length,modules:{exportLocalsConvention:"as-is",localIdentName:"[name]_[local]__[hash:base64:5]"},url:{filter:t}}},...s]});var c=["@storybook/addon-webpack5-compiler-swc","@storybook/addon-a11y","@storybook/addon-docs",{name:"@storybook/addon-styling-webpack",options:{rules:[r(),r(/\.s[ac]ss$/,[{loader:e.resolve("sass-loader"),options:{implementation:e.resolve("sass")}}])]}},"@newhighsco/storybook-addon-svgr",{name:"@newhighsco/storybook-addon-transpile-modules",options:{transpileModules:["@newhighsco/chipset","@newhighsco/press-start"]}}],p=o=>({...o,disableTelemetry:true,enableCrashReports:false});exports.addons=c;exports.core=p;//# sourceMappingURL=preset.js.map
|
|
2
2
|
//# sourceMappingURL=preset.js.map
|
package/dist/preset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/loaders.ts","../src/preset.ts"],"names":["filter","url","cssLoaders","test","importLoaders","__require","addons","core","config"],"mappings":"aAEA,IAAA,CAAA,CAAA,CAAA,CAAA,EAAA,OAAA,OAAA,CAAA,GAAA,CAAA,OAAA,CAAA,OAAA,KAAA,CAAA,GAAA,CAAA,IAAA,KAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,OAAA,OAAA,CAAA,GAAA,CAAA,OAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,SAAA,CAAA,CAAA,CAAA,GAAA,OAAA,OAAA,CAAA,GAAA,CAAA,OAAA,OAAA,CAAA,KAAA,CAAA,IAAA,CAAA,SAAA,CAAA,CAAA,MAAA,KAAA,CAAA,sBAAA,CAAA,CAAA,CAAA,oBAAA,CAAA,CAAA,CAAA,CAAA,IAAMA,CAAAA,CAAUC,CAAAA,EACV,CAAAA,CAAAA,CAAI,WAAW,GAAG,CAAA,CAKXC,CAAAA,CAAa,CACxBC,CAAAA,CAAO,QAAA,CACPC,CAAAA,CAAgB,MAEhBA,CAAAA,CAAgB,CACd,CACE,MAAA,CAAQC,CAAAA,CAAQ,OAAA,CAAQ,gBAAgB,CAAA,CACxC,QAAS,CAAE,cAAA,CAAgBA,CAAAA,CAAQ,OAAA,CAAQ,SAAS,CAAE,CACxD,CAAA,CACA,GAAGD,CACL,CAAA,CAEO,CACL,IAAA,CAAAD,CAAAA,CACA,WAAA,CAAa,IAAA,CACb,GAAA,CAAK,CACHE,CAAAA,CAAQ,OAAA,CAAQ,cAAc,CAAA,CAC9B,CACE,MAAA,CAAQA,CAAAA,CAAQ,OAAA,CAAQ,YAAY,CAAA,CACpC,OAAA,CAAS,CACP,QAAA,CAAU,KAAA,CACV,MAAA,CAAQ,CAAE,MAAA,CAAAL,CAAO,CAAA,CACjB,aAAA,CAAeI,CAAAA,CAAc,MAAA,CAC7B,OAAA,CAAS,CACP,sBAAA,CAAwB,OAAA,CACxB,eAAgB,iCAClB,CAAA,CACA,GAAA,CAAK,CAAE,MAAA,CAAAJ,CAAO,CAChB,CACF,EACA,GAAGI,CACL,CACF,CAAA,CAAA,CCpCK,IAAME,CAAAA,CAAoC,CAC/C,wCAAA,CACA,wBACA,uBAAA,CACA,CACE,IAAA,CAAM,kCAAA,CACN,OAAA,CAAS,CACP,KAAA,CAAO,CACLJ,GAAW,CACXA,CAAAA,CAAW,YAAA,CAAc,CACvB,CACE,MAAA,CAAQG,CAAAA,CAAQ,OAAA,CAAQ,aAAa,CAAA,CACrC,OAAA,CAAS,CAAE,cAAA,CAAgBA,CAAAA,CAAQ,OAAA,CAAQ,MAAM,CAAE,CACrD,CACF,CAAC,CACH,CACF,CACF,CAAA,CACA,kCAAA,CACA,CACE,KAAM,+CAAA,CACN,OAAA,CAAS,
|
|
1
|
+
{"version":3,"sources":["../src/loaders.ts","../src/preset.ts"],"names":["filter","url","cssLoaders","test","importLoaders","__require","addons","core","config"],"mappings":"aAEA,IAAA,CAAA,CAAA,CAAA,CAAA,EAA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CACL,CACF,CAAA,CAAA,CCpCK,IAAME,CAAAA,CAAoC,CAC/C,wCAAA,CACA,wBACA,uBAAA,CACA,CACE,IAAA,CAAM,kCAAA,CACN,OAAA,CAAS,CACP,KAAA,CAAO,CACLJ,GAAW,CACXA,CAAAA,CAAW,YAAA,CAAc,CACvB,CACE,MAAA,CAAQG,CAAAA,CAAQ,OAAA,CAAQ,aAAa,CAAA,CACrC,OAAA,CAAS,CAAE,cAAA,CAAgBA,CAAAA,CAAQ,OAAA,CAAQ,MAAM,CAAE,CACrD,CACF,CAAC,CACH,CACF,CACF,CAAA,CACA,kCAAA,CACA,CACE,KAAM,+CAAA,CACN,OAAA,CAAS,CACP,gBAAA,CAAkB,CAAC,qBAAA,CAAuB,yBAAyB,CACrE,CACF,CACF,CAAA,CAEaE,CAAAA,CAAgCC,CAAAA,GAAW,CACtD,GAAGA,CAAAA,CACH,gBAAA,CAAkB,IAAA,CAClB,mBAAoB,KACtB,CAAA","file":"preset.js","sourcesContent":["import { type RuleSetRule } from 'webpack'\n\nconst filter = (url: string): boolean => {\n if (url.startsWith('/')) return false\n\n return true\n}\n\nexport const cssLoaders = (\n test = /\\.css$/,\n importLoaders = []\n): RuleSetRule => {\n importLoaders = [\n {\n loader: require.resolve('postcss-loader'),\n options: { implementation: require.resolve('postcss') }\n },\n ...importLoaders\n ]\n\n return {\n test,\n sideEffects: true,\n use: [\n require.resolve('style-loader'),\n {\n loader: require.resolve('css-loader'),\n options: {\n esModule: false,\n import: { filter },\n importLoaders: importLoaders.length,\n modules: {\n exportLocalsConvention: 'as-is',\n localIdentName: '[name]_[local]__[hash:base64:5]'\n },\n url: { filter }\n }\n },\n ...importLoaders\n ]\n }\n}\n","import type { StorybookConfig } from '@storybook/react-webpack5'\n\nimport { cssLoaders } from './loaders'\n\nexport const addons: StorybookConfig['addons'] = [\n '@storybook/addon-webpack5-compiler-swc',\n '@storybook/addon-a11y',\n '@storybook/addon-docs',\n {\n name: '@storybook/addon-styling-webpack',\n options: {\n rules: [\n cssLoaders(),\n cssLoaders(/\\.s[ac]ss$/, [\n {\n loader: require.resolve('sass-loader'),\n options: { implementation: require.resolve('sass') }\n }\n ])\n ]\n }\n },\n '@newhighsco/storybook-addon-svgr',\n {\n name: '@newhighsco/storybook-addon-transpile-modules',\n options: {\n transpileModules: ['@newhighsco/chipset', '@newhighsco/press-start']\n }\n }\n]\n\nexport const core: StorybookConfig['core'] = config => ({\n ...config,\n disableTelemetry: true,\n enableCrashReports: false\n})\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newhighsco/storybook-preset",
|
|
3
3
|
"description": "New High Score shareable Storybook preset",
|
|
4
|
-
"version": "8.1
|
|
4
|
+
"version": "8.2.1",
|
|
5
5
|
"author": "New High Score",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"private": false,
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"build": "tsup --silent"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@newhighsco/storybook-addon-svgr": "3.0.
|
|
43
|
-
"@newhighsco/storybook-addon-transpile-modules": "3.0.
|
|
44
|
-
"@storybook/addon-a11y": "9.1.
|
|
45
|
-
"@storybook/addon-docs": "9.1.
|
|
42
|
+
"@newhighsco/storybook-addon-svgr": "3.0.3",
|
|
43
|
+
"@newhighsco/storybook-addon-transpile-modules": "3.0.3",
|
|
44
|
+
"@storybook/addon-a11y": "9.1.10",
|
|
45
|
+
"@storybook/addon-docs": "9.1.10",
|
|
46
46
|
"@storybook/addon-styling-webpack": "2.0.0",
|
|
47
47
|
"@storybook/addon-webpack5-compiler-swc": "4.0.1",
|
|
48
48
|
"css-loader": "7.1.2",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"style-loader": "4.0.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@storybook/react-webpack5": "9.1.
|
|
57
|
-
"storybook": "9.1.
|
|
56
|
+
"@storybook/react-webpack5": "9.1.10",
|
|
57
|
+
"storybook": "9.1.10"
|
|
58
58
|
}
|
|
59
59
|
}
|