@mgdis/stencil-helpers 1.1.7 → 1.1.8

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,5 +1,6 @@
1
1
  import { VNode } from '@stencil/core';
2
2
  import { ArgsType } from './index.conf';
3
+ import { JsonDocs } from '@stencil/core/internal';
3
4
 
4
5
  /**
5
6
  * Filter default argument on component argument to prevent them to be rendered
@@ -46,4 +47,31 @@ export declare const stencilWrapper: (storyFn: (ctx: any) => void, context: Args
46
47
  * ```
47
48
  */
48
49
  export declare const getStoryHTML: ({ $tag$, $attrs$, $children$, $text$ }: VNode) => string;
50
+ /**
51
+ * Retrieve Component Storybook URL from file path
52
+ * @param storybookBaseUrl - Storybook Base URL
53
+ * @param filePath - Component file path
54
+ * @returns Component Storybook URL
55
+ */
56
+ export declare const getStorybookUrl: (storybookBaseUrl: string, filePath: string | undefined) => string | undefined;
57
+ export declare class StorybookPreview {
58
+ #private;
59
+ /**
60
+ * JsonDocs
61
+ */
62
+ jsonDoc: JsonDocs;
63
+ constructor(jsonDoc: JsonDocs);
64
+ /**
65
+ * Extract component arg types from the component data
66
+ * @param tagName - tag name we want to extract the arg types from
67
+ * @returns component arg types
68
+ */
69
+ extractArgTypes: (tagName: string) => {};
70
+ /**
71
+ * Extract component description from the component data
72
+ * @param tagName - tag name we want to extract the description from
73
+ * @returns component description
74
+ */
75
+ extractComponentDescription: (tagName: string) => string | undefined;
76
+ }
49
77
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storybook/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA6CxC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAG,CAgB1D,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,cAAc,YAAa,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,WAAW,QAAQ,KAAG,OAAO,GAAG,SAqBzF,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,YAAY,2CAA4C,KAAK,KAAG,MAM5E,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/storybook/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAmC,MAAM,wBAAwB,CAAC;AA6CnF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAG,CAgB1D,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,cAAc,YAAa,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,WAAW,QAAQ,KAAG,OAAO,GAAG,SAqBzF,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,YAAY,2CAA4C,KAAK,KAAG,MAM5E,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,qBAAsB,MAAM,YAAY,MAAM,GAAG,SAAS,KAAG,MAAM,GAAG,SAMjG,CAAC;AAEF,qBAAa,gBAAgB;;IAC3B;;OAEG;IACH,OAAO,EAAE,QAAQ,CAAC;gBAEN,OAAO,EAAE,QAAQ;IAmD7B;;;;OAIG;IACH,eAAe,YAAa,MAAM,QAkIhC;IAEF;;;;OAIG;IACH,2BAA2B,YAAa,MAAM,wBAG5C;CACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgdis/stencil-helpers",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "license": "ISC",
5
5
  "author": "Nicolas Jouanno <jouanno-n@mgdis.fr>",
6
6
  "maintainers": [
@@ -24,24 +24,24 @@
24
24
  "@stencil/core": "4.19.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@types/node": "20.14.10",
27
+ "@types/node": "20.14.13",
28
28
  "@vitest/coverage-istanbul": "1.6.0",
29
29
  "@vitest/coverage-v8": "1.6.0",
30
30
  "typedoc": "0.25.13",
31
31
  "typedoc-plugin-markdown": "4.0.3",
32
- "typescript": "5.5.3",
33
- "vite": "5.3.3",
32
+ "typescript": "5.5.4",
33
+ "vite": "5.3.5",
34
34
  "vite-plugin-dts": "3.9.1",
35
35
  "vitest": "1.6.0",
36
- "eslint-config-custom": "1.0.10",
36
+ "eslint-config-custom": "1.0.11",
37
37
  "prettier-config": "1.0.2",
38
38
  "tsconfig": "1.0.3",
39
39
  "vitest-config": "1.0.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsc --noEmit && vite build && typedoc",
43
- "test": "vitest",
44
- "coverage": "vitest run --coverage",
43
+ "test": "TZ=UTC vitest",
44
+ "coverage": "TZ=UTC vitest run --coverage",
45
45
  "lint": "pnpm lint:es && pnpm lint:prettier",
46
46
  "lint:fix": "pnpm lint:es:fix && pnpm lint:prettier:fix",
47
47
  "lint:es": "eslint '**/*.{ts,tsx}' --ignore-path ../../.gitignore",