Skip to content

Commit 127e036

Browse files
authored
Merge pull request #252 from umbraco/v1/release/rc1
Publish 1.0.0-rc.1
2 parents b03d833 + 419cb04 commit 127e036

File tree

233 files changed

+20024
-6348
lines changed

Some content is hidden

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

233 files changed

+20024
-6348
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Azure Static Web Apps CI/CD
33
on:
44
push:
55
branches:
6-
- main
6+
- storybook
77
# This is how azure builds staging environments
88
pull_request:
99
types: [opened, synchronize, reopened, closed]

.storybook/preview.js

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const parameters = {
2020
actions: { argTypesRegex: '^on[A-Z].*' },
2121
controls: {
2222
matchers: {
23-
color: /(background|color)$/i,
23+
color: /(background|color)/i,
2424
date: /Date$/,
2525
},
2626
},
@@ -31,19 +31,6 @@ export const parameters = {
3131
method: 'alphabetical',
3232
storySort: sort,
3333
},
34-
// Hides the CSS: [] property on the docs page.
35-
argTypes: {
36-
styles: {
37-
table: {
38-
disable: true,
39-
},
40-
},
41-
formAssociated: {
42-
table: {
43-
disable: true,
44-
},
45-
},
46-
},
4734
};
4835

4936
WebComponentFormatter(customElements);
@@ -52,16 +39,39 @@ setCustomElements(customElements);
5239

5340
function WebComponentFormatter(customElements) {
5441
for (let tag of customElements.tags || []) {
42+
// Hide all attributes, since we only use props for storybook
43+
tag.attributes = [];
44+
45+
// Hide all 'styles' and 'formAssociated' entries for properties
46+
for (let prop in tag.properties || []) {
47+
if (
48+
tag.properties[prop].name === 'styles' ||
49+
tag.properties[prop].name === 'formAssociated'
50+
) {
51+
delete tag.properties[prop];
52+
}
53+
}
54+
55+
// Run through all CSS Custom Properties and clean them a bit
56+
for (let cssProp of tag.cssProperties || []) {
57+
// If the property does not have a type, set it to string
58+
if (!cssProp.type) {
59+
cssProp.type = 'string';
60+
}
61+
}
62+
5563
// Find all names of properties
5664
const propertyNames = (tag.properties || []).map(p => p.name);
5765

66+
// Run through all slots to clean them up a bit
5867
for (let slot of tag.slots || []) {
5968
// Replace the name of the default slot so Storybook will show it
6069
if (typeof slot.name === 'string' && slot.name.length === 0) {
6170
slot.name = 'slot';
6271
}
6372

6473
// If the slot has the same name as a property, then add the word 'slot' to the name
74+
// Bug reported to Storybook here: https://github.com/storybookjs/storybook/issues/17733
6575
if (propertyNames.includes(slot.name)) {
6676
slot.name = `${slot.name} slot`;
6777
}

lerna.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "independent",
44
"npmClient": "npm",
55
"useWorkspaces": true,
6-
"granularPathspec": false,
76
"command": {
87
"publish": {
98
"verifyAccess": false

0 commit comments

Comments
 (0)