Skip to content

Commit 436dd8d

Browse files
authored
Merge pull request #294 from umbraco/v1/release/rc2
1.0.0-rc.2
2 parents 127e036 + e6aae13 commit 436dd8d

File tree

183 files changed

+6684
-9362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+6684
-9362
lines changed

.github/workflows/azure-static-web-apps-delightful-beach-055ecb503.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ name: Azure Static Web Apps CI/CD
33
on:
44
push:
55
branches:
6-
- storybook
6+
- main
7+
- 'v*/main'
8+
- 'v*/dev'
79
# This is how azure builds staging environments
810
pull_request:
911
types: [opened, synchronize, reopened, closed]
1012
branches:
1113
- main
1214
- 'v*/main'
15+
- 'v*/dev'
1316

1417
jobs:
1518
build_and_deploy_job:
@@ -34,6 +37,7 @@ jobs:
3437
app_build_command: 'npm run storybook:build'
3538
api_location: '' # Api source code path - optional
3639
output_location: '/storybook-static' # Built app content directory - optional
40+
production_branch: 'v1/main' # Production branch
3741
###### End of Repository/Build Configurations ######
3842

3943
close_pull_request_job:

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

.storybook/main.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ const tsconfigPaths = require('vite-tsconfig-paths').default;
33
module.exports = {
44
stories: ['../packages/**/*.story.ts', '../stories/**/*.story.ts'],
55
addons: [
6-
'@storybook/addon-links',
76
'@storybook/addon-essentials',
7+
'@storybook/addon-links',
88
'@storybook/addon-a11y',
99
'../storyhelpers/storybook-readme/preset.js',
1010
],
11+
framework: '@storybook/web-components',
12+
features: { storyStoreV7: false },
1113
core: { builder: '@storybook/builder-vite' },
1214
staticDirs: ['./images'],
1315

@@ -22,16 +24,6 @@ module.exports = {
2224
if (configType === 'DEVELOPMENT') {
2325
// add plugins
2426
config.plugins.push(tsconfigPaths());
25-
26-
// pre bundle dependencies for faster startup time
27-
config.optimizeDeps.include.push('@storybook/web-components');
28-
config.optimizeDeps.include.push('lit-html');
29-
config.optimizeDeps.include.push('lit');
30-
config.optimizeDeps.include.push('lit/decorators.js');
31-
config.optimizeDeps.include.push('lit/directives/style-map.js');
32-
config.optimizeDeps.include.push('lit/directives/if-defined.js');
33-
config.optimizeDeps.include.push('lit/directives/unsafe-html.js');
34-
config.optimizeDeps.include.push('element-internals-polyfill');
3527
}
3628

3729
return config;

.storybook/preview.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ import { setCustomElements } from '@storybook/web-components';
55

66
import customElements from '../custom-elements.json';
77

8-
const sort = (a, b) => {
9-
if (a[1].name === 'Overview') {
10-
return 0;
11-
}
12-
if (b[1].name === 'Overview') {
13-
return 1;
14-
}
15-
return a[0] > b[0];
16-
};
17-
188
export const parameters = {
199
layout: 'padded',
2010
actions: { argTypesRegex: '^on[A-Z].*' },
@@ -29,7 +19,16 @@ export const parameters = {
2919
},
3020
options: {
3121
method: 'alphabetical',
32-
storySort: sort,
22+
storySort: (a, b) => {
23+
//NOTE: This has to be an inline function for some reason
24+
if (a.title === 'Overview') {
25+
return 0;
26+
}
27+
if (b.title === 'Overview') {
28+
return 1;
29+
}
30+
return a.title > b.title;
31+
},
3332
},
3433
};
3534

0 commit comments

Comments
 (0)