@storybook/addon-interactions 8.5.0-beta.8 → 8.5.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.
- package/dist/preset.js +2 -2
- package/package.json +4 -4
- package/preset.js +1 -10
- package/dist/preset.d.ts +0 -4
- package/dist/preset.mjs +0 -11
package/dist/preset.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var path = require('path');
|
|
4
4
|
var common = require('storybook/internal/common');
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
function previewAnnotations(entry=[],options){return common.checkAddonOrder({before:{name:"@storybook/addon-actions",inEssentials:!0},after:{name:"@storybook/addon-interactions",inEssentials:!1},configFile:path.isAbsolute(options.configDir)?path.join(options.configDir,"main"):path.join(process.cwd(),options.configDir,"main"),getConfig:configFile=>common.serverRequire(configFile)}),entry}var ADDON_INTERACTIONS_IN_USE=!0;
|
|
7
7
|
|
|
8
8
|
exports.ADDON_INTERACTIONS_IN_USE = ADDON_INTERACTIONS_IN_USE;
|
|
9
|
-
exports.
|
|
9
|
+
exports.previewAnnotations = previewAnnotations;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-interactions",
|
|
3
|
-
"version": "8.5.0
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"description": "Automate, test and debug user interactions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook-addons",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@storybook/global": "^5.0.0",
|
|
56
|
-
"@storybook/instrumenter": "8.5.0
|
|
57
|
-
"@storybook/test": "8.5.0
|
|
56
|
+
"@storybook/instrumenter": "8.5.0",
|
|
57
|
+
"@storybook/test": "8.5.0",
|
|
58
58
|
"polished": "^4.2.2",
|
|
59
59
|
"ts-dedent": "^2.2.0"
|
|
60
60
|
},
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"typescript": "^5.3.2"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"storybook": "^8.5.0
|
|
72
|
+
"storybook": "^8.5.0"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
package/preset.js
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function previewAnnotations(entry = [], options) {
|
|
4
|
-
checkActionsLoaded(options.configDir);
|
|
5
|
-
return entry;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
module.exports = {
|
|
9
|
-
previewAnnotations,
|
|
10
|
-
};
|
|
1
|
+
module.exports = require('./dist/preset');
|
package/dist/preset.d.ts
DELETED
package/dist/preset.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import ESM_COMPAT_Module from 'node:module';
|
|
2
|
-
import { fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname, isAbsolute, join } from 'node:path';
|
|
4
|
-
import { checkAddonOrder, serverRequire } from 'storybook/internal/common';
|
|
5
|
-
|
|
6
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
-
dirname(__filename);
|
|
8
|
-
ESM_COMPAT_Module.createRequire(import.meta.url);
|
|
9
|
-
var checkActionsLoaded=configDir=>{checkAddonOrder({before:{name:"@storybook/addon-actions",inEssentials:!0},after:{name:"@storybook/addon-interactions",inEssentials:!1},configFile:isAbsolute(configDir)?join(configDir,"main"):join(process.cwd(),configDir,"main"),getConfig:configFile=>serverRequire(configFile)});},ADDON_INTERACTIONS_IN_USE=!0;
|
|
10
|
-
|
|
11
|
-
export { ADDON_INTERACTIONS_IN_USE, checkActionsLoaded };
|