Skip to content

Commit

Permalink
Update config
Browse files Browse the repository at this point in the history
  • Loading branch information
alizedebray committed Oct 31, 2024
1 parent 596f9a1 commit 8bf1875
Show file tree
Hide file tree
Showing 8 changed files with 234 additions and 162 deletions.
1 change: 1 addition & 0 deletions packages/components-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@swisspost/design-system-components": "workspace:9.0.0-next.3"
},
"devDependencies": {
"@stencil/react-output-target": "0.7.3",
"@types/node": "20.14.14",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
Expand Down
1 change: 0 additions & 1 deletion packages/components-react/src/components/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/components-react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
'use client';
export * from './components';
export * from './stencil-generated/components';
13 changes: 4 additions & 9 deletions packages/components-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"experimentalDecorators": true,
"esModuleInterop": true,
"lib": ["dom", "es2015"],
"module": "es2015",
"moduleResolution": "node",
"module": "esnext",
"moduleResolution": "bundler",
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
Expand All @@ -19,13 +19,8 @@
"jsx": "react",
"target": "es2015"
},
"include": [
"src/**/*.ts",
"src/**/*.tsx"
],
"exclude": [
"**/__tests__/**"
],
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["**/__tests__/**"],
"compileOnSave": false,
"buildOnSave": false
}
4 changes: 2 additions & 2 deletions packages/components/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ declare global {
new (): HTMLPostTabPanelElement;
};
interface HTMLPostTabsElementEventMap {
"postChange": HTMLPostTabPanelElement['name'];
"postChange": string;
}
interface HTMLPostTabsElement extends Components.PostTabs, HTMLStencilElement {
addEventListener<K extends keyof HTMLPostTabsElementEventMap>(type: K, listener: (this: HTMLPostTabsElement, ev: PostTabsCustomEvent<HTMLPostTabsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
Expand Down Expand Up @@ -871,7 +871,7 @@ declare namespace LocalJSX {
/**
* An event emitted after the active tab changes, when the fade in transition of its associated panel is finished. The payload is the name of the newly shown panel.
*/
"onPostChange"?: (event: PostTabsCustomEvent<HTMLPostTabPanelElement['name']>) => void;
"onPostChange"?: (event: PostTabsCustomEvent<string>) => void;
}
interface PostTag {
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/post-tabs/post-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class PostTabs {
* An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
* The payload is the name of the newly shown panel.
*/
@Event() postChange: EventEmitter<HTMLPostTabPanelElement['name']>;
@Event() postChange: EventEmitter<string>;

componentDidLoad() {
this.moveMisplacedTabs();
Expand Down
5 changes: 2 additions & 3 deletions packages/components/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ export const config: Config = {
file: 'dist/docs.json',
},
reactOutputTarget({
componentCorePackage: '@swisspost/design-system-components',
proxiesFile: '../components-react/src/components/stencil-generated/index.ts',
includeDefineCustomElements: true,
stencilPackageName: '@swisspost/design-system-components',
outDir: '../components-react/src/stencil-generated',
}),
angularOutputTarget({
componentCorePackage: '@swisspost/design-system-components',
Expand Down
Loading

0 comments on commit 8bf1875

Please sign in to comment.