@analogjs/storybook-angular 1.19.4 → 1.20.0-beta.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/package.json +7 -2
- package/src/lib/testing.d.ts +5 -0
- package/src/lib/testing.js +24 -0
- package/src/lib/testing.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@analogjs/storybook-angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0-beta.1",
|
|
4
4
|
"description": "Storybook Integration for Angular & Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -29,7 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"./preset": "./preset.mjs",
|
|
31
31
|
"./package.json": "./package.json",
|
|
32
|
-
"./*": "./src/*"
|
|
32
|
+
"./*": "./src/*",
|
|
33
|
+
"./testing": {
|
|
34
|
+
"types": "./src/lib/testing.d.ts",
|
|
35
|
+
"import": "./src/lib/testing.js",
|
|
36
|
+
"require": "./src/lib/testing.js"
|
|
37
|
+
}
|
|
33
38
|
},
|
|
34
39
|
"main": "src/index.js",
|
|
35
40
|
"dependencies": {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AngularRenderer } from '@storybook/angular';
|
|
2
|
+
import { NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, RenderContext } from 'storybook/internal/types';
|
|
3
|
+
export declare const render: any;
|
|
4
|
+
export declare function renderToCanvas(context: RenderContext<AngularRenderer>, element: HTMLElement): Promise<void>;
|
|
5
|
+
export declare function setProjectAnnotations(projectAnnotations: NamedOrDefaultProjectAnnotations<any> | NamedOrDefaultProjectAnnotations<any>[]): NormalizedProjectAnnotations<AngularRenderer>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.render = void 0;
|
|
4
|
+
exports.renderToCanvas = renderToCanvas;
|
|
5
|
+
exports.setProjectAnnotations = setProjectAnnotations;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const index_mjs_1 = require("@storybook/angular/dist/client/index.mjs");
|
|
8
|
+
const configAnnotations = tslib_1.__importStar(require("@storybook/angular/dist/client/config.mjs"));
|
|
9
|
+
exports.render = configAnnotations.render;
|
|
10
|
+
async function renderToCanvas(context, element) {
|
|
11
|
+
element.id = context.id;
|
|
12
|
+
await configAnnotations.renderToCanvas(context, element);
|
|
13
|
+
}
|
|
14
|
+
const renderAnnotations = {
|
|
15
|
+
render: exports.render,
|
|
16
|
+
renderToCanvas,
|
|
17
|
+
};
|
|
18
|
+
function setProjectAnnotations(projectAnnotations) {
|
|
19
|
+
return (0, index_mjs_1.setProjectAnnotations)([
|
|
20
|
+
renderAnnotations,
|
|
21
|
+
projectAnnotations,
|
|
22
|
+
]);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=testing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../../../packages/storybook-angular/src/lib/testing.ts"],"names":[],"mappings":";;;AAWA,wCAMC;AAOD,sDASC;;AAhCD,wEAAkH;AAMlH,qGAA+E;AAElE,QAAA,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC;AAExC,KAAK,UAAU,cAAc,CAClC,OAAuC,EACvC,OAAoB;IAEpB,OAAO,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;IACxB,MAAM,iBAAiB,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,iBAAiB,GAAG;IACxB,MAAM,EAAN,cAAM;IACN,cAAc;CACf,CAAC;AAEF,SAAgB,qBAAqB,CACnC,kBAE2C;IAE3C,OAAO,IAAA,iCAA6B,EAAC;QACnC,iBAAiB;QACjB,kBAAkB;KACnB,CAAkD,CAAC;AACtD,CAAC"}
|