Skip to content

Commit 9ed7860

Browse files
authored
Merge pull request #185 from umbraco/Release/2022-03-31
Release/2022 03 31
2 parents 3b7c6cf + f9c394d commit 9ed7860

File tree

366 files changed

+15242
-9628
lines changed

Some content is hidden

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

366 files changed

+15242
-9628
lines changed

.gitattributes

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.ts text eol=lf
7+
*.js text eol=lf
8+
*.cjs text eol=lf
9+
*.mjs text eol=lf
10+
*.json text eol=lf
11+
*.html text eol=lf
12+
*.md text eol=lf
13+
*.hbs text eol=lf
14+
15+
# Declare files that will always have CRLF line endings on checkout.
16+
# *.sln text eol=crlf
17+
18+
# Denote all files that are truly binary and should not be modified.
19+
*.png binary
20+
*.jpg binary
21+
*.gif binary
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: 🐛 Bug Report
3+
description: "File a bug report, if you've discovered a problem."
4+
labels:
5+
- 'bug'
6+
- 'needs triage'
7+
body:
8+
- type: input
9+
id: 'version'
10+
attributes:
11+
label: "Which *exact* UI Library version are you using? For example: 1.0.1 - don't just write v1."
12+
description: 'The number can usually be found in the package.json file or by writing `npm ls <package>`. Please also specify if you use the `uui` bundle or a specific package.'
13+
validations:
14+
required: true
15+
- type: textarea
16+
id: 'summary'
17+
attributes:
18+
label: 'Bug summary'
19+
description: 'Write a short summary of the bug.'
20+
placeholder: >
21+
Try to pinpoint it as much as possible.
22+
23+
Try to state the actual problem, and not just what you think the solution might be.
24+
validations:
25+
required: true
26+
- type: textarea
27+
attributes:
28+
label: 'Specifics'
29+
description: 'Remember that you can format code and logs nicely with the `<>` button'
30+
placeholder: >
31+
Mention the URL where this bug occurs, if applicable
32+
33+
Please mention if you've checked it in other browsers as well
34+
35+
Please include full error messages and screenshots, gifs or mp4 videos if applicable
36+
- type: textarea
37+
attributes:
38+
label: 'Steps to reproduce'
39+
description: 'How can we reproduce the problem?'
40+
placeholder: >
41+
Please include screenshots, gifs or mp4 videos if applicable
42+
validations:
43+
required: true
44+
- type: textarea
45+
attributes:
46+
label: 'Expected result / actual result'
47+
description: 'What did you expect that would happen and what is the actual result of the above steps?'
48+
placeholder: >
49+
Describe the intended/desired outcome after you did the steps mentioned.
50+
51+
Describe the behaviour of the bug

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💡 Features and ideas
4+
url: https://github.com/umbraco/Umbraco.UI/discussions/new?category=ideas
5+
about: Start a new discussion when you have ideas or feature requests, eventually discussions can turn into plans.
6+
- name: ⁉️ Support Question
7+
url: https://our.umbraco.com
8+
about: This issue tracker is NOT meant for support questions. If you have a question, please join us on the forum.
9+
- name: 🔐 Security Issue
10+
url: https://umbraco.com/about-us/trust-center/security-and-umbraco/how-to-report-a-vulnerability-in-umbraco/
11+
about: Learn more on how to report security issues.

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<!--- Go over all the following points, and put an `x` in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
2727

28-
- [ ] If my change required a change to the documentation, I have updated the documentation in this pull request.
28+
- [ ] If my change requires a change to the documentation, I have updated the documentation in this pull request.
2929
- [ ] I have read the **[CONTRIBUTING](<(https://github.com/umbraco/Umbraco.UI/blob/dev/docs/CONTRIBUTING.md)>)** document.
30+
- [ ] I confirm that to my knowledge the contribution looks original and that the [contributor is presumably allowed to share it](https://github.com/umbraco/Umbraco.UI/blob/dev/docs/CONTRIBUTING.md#ownership-and-copyright).
3031
- [ ] I have added tests to cover my changes.
31-
- [ ] All new and existing tests passed.

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,7 @@ on:
1111
- main
1212

1313
jobs:
14-
test:
15-
# The type of runner that the job will run on
16-
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
17-
runs-on: ubuntu-latest
18-
19-
strategy:
20-
matrix:
21-
node-version: [16.x]
22-
23-
# Steps represent a sequence of tasks that will be executed as part of the job
24-
steps:
25-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26-
- uses: actions/checkout@v2
27-
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v2
29-
with:
30-
node-version: ${{ matrix.node-version }}
31-
cache: 'npm'
32-
- run: npm install
33-
- run: npm run lint
34-
- run: npm run test
35-
- run: npm run build:prod
36-
3714
build_and_deploy_job:
38-
needs: test
3915
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
4016
runs-on: ubuntu-latest
4117
name: Build and Deploy Job

.github/workflows/chromatic.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# .github/workflows/chromatic.yml
2+
3+
# Workflow name
4+
name: 'Chromatic'
5+
6+
# Event for the workflow
7+
on:
8+
push:
9+
paths:
10+
- 'package.json'
11+
- 'package-lock.json'
12+
- '.github/workflows/chromatic.yml'
13+
- '.storybook/**'
14+
- '!packages/uui/**'
15+
- 'packages/*/package.json'
16+
- 'packages/*/lib/**'
17+
- 'packages/*/assets/**'
18+
branches-ignore:
19+
- 'dependabot/*'
20+
- 'release/*'
21+
- 'Release/*'
22+
- 'main'
23+
24+
# Allows you to run this workflow manually from the Actions tab
25+
workflow_dispatch:
26+
inputs:
27+
sha:
28+
description: The SHA-1 hash referring to the commit to check.
29+
required: true
30+
ref:
31+
description: The head branch associated with the pull request.
32+
required: true
33+
34+
# List of jobs
35+
jobs:
36+
chromatic-deployment:
37+
# Operating System
38+
runs-on: ubuntu-latest
39+
# Job steps
40+
steps:
41+
- uses: actions/checkout@v1
42+
- name: Use Node.js 16.x
43+
uses: actions/setup-node@v2
44+
with:
45+
node-version: 16.x
46+
cache: 'npm'
47+
- name: Install dependencies
48+
run: npm ci
49+
- name: Publish to Chromatic
50+
uses: chromaui/action@v1
51+
with:
52+
token: ${{ secrets.GITHUB_TOKEN }}
53+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
54+
buildScriptName: 'storybook:build'
55+
exitOnceUploaded: true
56+
onlyChanged: '!(dev)'
57+
externals: 'packages/uui-css/lib/**/*.css'
58+
untraced: '.storybook/images'

.github/workflows/codeql-analysis.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 'CodeQL'
2+
3+
on:
4+
push:
5+
branches: [dev, main]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [dev]
9+
schedule:
10+
- cron: '39 20 * * 3'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: ['typescript']
25+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
26+
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v2
30+
31+
# Initializes the CodeQL tools for scanning.
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v1
34+
with:
35+
languages: ${{ matrix.language }}
36+
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@v1

.github/workflows/publish.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
name: Publish
22

33
on:
4-
push:
4+
push:
55
branches:
66
- main
77

88
jobs:
99
build:
1010
# The type of runner that the job will run on
1111
runs-on: ubuntu-latest
12-
12+
1313
strategy:
1414
matrix:
1515
node-version: [16.x]
1616

1717
# Steps represent a sequence of tasks that will be executed as part of the job
1818
steps:
19-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2020
- uses: actions/checkout@v2
2121
with:
22-
# pulls all commits (needed for lerna / semantic release to correctly version)
23-
fetch-depth: "0"
24-
25-
22+
# pulls all commits (needed for lerna / semantic release to correctly version)
23+
fetch-depth: '0'
24+
2625
- name: Use Node.js ${{ matrix.node-version }}
2726
uses: actions/setup-node@v2
2827
with:
@@ -31,6 +30,7 @@ jobs:
3130
- run: npm -v
3231
- run: npm ci
3332

33+
- run: sudo npx playwright install-deps
3434
- run: npm run test
3535

3636
- name: Authenticate with Registry
@@ -46,4 +46,3 @@ jobs:
4646
run: npm run lerna:publish
4747
env:
4848
NPM_TOKEN: ${{ secrets.UMBRACO_PUBLISH_NPM_TOKEN}}
49-

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ jobs:
3333
cache: 'npm'
3434
- run: npm install
3535
- run: npm run lint
36+
- run: sudo npx playwright install-deps
3637
- run: npm run test
3738
- run: npm run build:prod

.storybook/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
const tsconfigPaths = require('vite-tsconfig-paths').default;
2-
const processLitCSSPlugin =
3-
require('../scripts/vite.processLitCSSPlugin').default;
42

53
module.exports = {
64
stories: ['../packages/**/*.story.ts'],
75
addons: [
86
'@storybook/addon-links',
97
'@storybook/addon-essentials',
108
'@storybook/addon-a11y',
9+
'../storyhelpers/storybook-readme/preset.js',
1110
],
1211
core: { builder: 'storybook-builder-vite' },
12+
staticDirs: ['./images'],
13+
1314
async viteFinal(config, { configType }) {
1415
// customize the Vite config here
1516

17+
const processLitCSSPlugin = (
18+
await import('../scripts/processLitCSSPlugin.mjs')
19+
).default;
1620
config.plugins.push(processLitCSSPlugin());
1721

1822
if (configType === 'DEVELOPMENT') {

0 commit comments

Comments
 (0)