Skip to content

Commit 727a13e

Browse files
authored
Merge branch 'skyra-project:main' into main
2 parents 2205d19 + 49764a9 commit 727a13e

File tree

115 files changed

+5663
-130
lines changed

Some content is hidden

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

115 files changed

+5663
-130
lines changed

.eslintrc

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,9 @@
102102
},
103103
"overrides": [
104104
{
105-
"files": ["**/test/**/*.{html,js,mjs,ts}", "**/demo/**/*.{html,js,mjs,ts}", "**/stories/**/*.{html,js,mjs,ts}"],
105+
"files": ["packages/documentation/src/env.d.ts"],
106106
"rules": {
107-
"no-console": "off",
108-
"no-unused-expressions": "off",
109-
"class-methods-use-this": "off",
110-
111-
// loosen templating restrictions in tests and demos
112-
"lit/no-template-bind": "off",
113-
"lit/no-duplicate-template-bindings": "off",
114-
"lit/no-useless-template-literals": "off",
115-
"lit/binding-positions": "off",
116-
"lit/no-invalid-html": "off",
117-
"lit/no-private-properties": "off"
107+
"@typescript-eslint/triple-slash-reference": "off"
118108
}
119109
}
120110
]

.github/workflows/publish-demo.yml renamed to .github/workflows/publish-documentation.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy demo content to Pages
1+
name: Deploy documentation
22

33
on:
44
push:
@@ -36,20 +36,12 @@ jobs:
3636
run: yarn --immutable
3737
- name: Build code
3838
run: yarn build
39-
- name: Copy demo files
40-
run: cp packages/core/demo/* docs/
41-
- name: Replace path of entrypoint file
42-
run: sed -i 's/..\/src\/index.ts/\/src\/main.ts/' docs/index.html
43-
- name: Copy LICENSE and README
44-
run: |
45-
cp LICENSE.md docs/public/
46-
cp README.md docs/public/
47-
- name: Bundle with vite
48-
run: yarn workspace docs run build
39+
- name: Build docs
40+
run: yarn build:documentation
4941
- name: Upload artifact
5042
uses: actions/upload-pages-artifact@v3
5143
with:
52-
path: docs/dist/
44+
path: packages/documentation/dist
5345
- name: Deploy to GitHub Pages
5446
id: deployment
5547
uses: actions/deploy-pages@v4

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [4.0.0-alpha.24](https://github.com/skyra-project/discord-components/compare/v4.0.0-alpha.23...v4.0.0-alpha.24) (2024-07-31)
7+
8+
### Bug Fixes
9+
10+
* add skiping one line ([#427](https://github.com/skyra-project/discord-components/issues/427)) ([0de39d7](https://github.com/skyra-project/discord-components/commit/0de39d7437e088f8c227359ec2a0c102cb9ef4bd)) (@eumarciel404)
11+
* added the possibility of skipping lines for discord-embed titles ([#426](https://github.com/skyra-project/discord-components/issues/426)) ([bc62ed5](https://github.com/skyra-project/discord-components/commit/bc62ed58b21b06270aff7c633f461bb01103c94b)) (@favna)
12+
* added the possibility of skipping lines for discord-embed-field titles ([#428](https://github.com/skyra-project/discord-components/issues/428)) ([67b0ab9](https://github.com/skyra-project/discord-components/commit/67b0ab9229307c6423b91c7b8f28479d36aba0ba)) (@eumarciel404)
13+
* **discord-button:** fixed button type checking to be null safe ([7d99d99](https://github.com/skyra-project/discord-components/commit/7d99d99cb6ff9f3d2ad060b49305da4049958e19)) (@favna)
14+
* **discord-embed-field:** fixed inline-index checking to be null safe ([84e5bc4](https://github.com/skyra-project/discord-components/commit/84e5bc46305abb880fd6243c028c8dfa23295390)) (@favna)
15+
16+
### Features
17+
18+
* add `dismissMessageClicked` to `discord-message` ([c7f6b51](https://github.com/skyra-project/discord-components/commit/c7f6b51dc5d3079ae9e9e31417cdb8068b6e9d60)) (@favna)
19+
620
# [4.0.0-alpha.23](https://github.com/skyra-project/discord-components/compare/v4.0.0-alpha.22...v4.0.0-alpha.23) (2024-07-18)
721

822
### Bug Fixes
Binary file not shown.
127 KB
Binary file not shown.
Binary file not shown.

docs/.gitignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/package.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/src/main.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/tsconfig.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/tsconfig.node.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/vite.config.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"packages": ["packages/*"],
44
"npmClient": "yarn",
55
"useWorkspaces": true,
6-
"version": "4.0.0-alpha.23",
6+
"version": "4.0.0-alpha.24",
77
"command": {
88
"publish": {
99
"conventionalCommits": true,

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"start": "yarn workspace @skyra/discord-components-core start",
2020
"build": "yarn clean && yarn build:core && yarn build:react && yarn lint && yarn format",
2121
"build:core": "yarn workspace @skyra/discord-components-core build",
22-
"build:react": "yarn workspace @skyra/discord-components-react build"
22+
"build:react": "yarn workspace @skyra/discord-components-react build",
23+
"build:documentation": "yarn workspace documentation build"
2324
},
2425
"devDependencies": {
2526
"@commitlint/cli": "^19.3.0",
@@ -29,7 +30,7 @@
2930
"@lerna-lite/run": "^3.7.1",
3031
"@sapphire/prettier-config": "^2.0.0",
3132
"@sapphire/ts-config": "^5.0.1",
32-
"@types/node": "^20.14.12",
33+
"@types/node": "^20.14.13",
3334
"eslint": "^8.57.0",
3435
"eslint-config-neon": "^0.1.62",
3536
"eslint-config-prettier": "^9.1.0",

packages/core/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [4.0.0-alpha.24](https://github.com/skyra-project/discord-components/compare/v4.0.0-alpha.23...v4.0.0-alpha.24) (2024-07-31)
7+
8+
### Bug Fixes
9+
10+
* add skiping one line ([#427](https://github.com/skyra-project/discord-components/issues/427)) ([0de39d7](https://github.com/skyra-project/discord-components/commit/0de39d7437e088f8c227359ec2a0c102cb9ef4bd)) (@eumarciel404)
11+
* added the possibility of skipping lines for discord-embed titles ([#426](https://github.com/skyra-project/discord-components/issues/426)) ([bc62ed5](https://github.com/skyra-project/discord-components/commit/bc62ed58b21b06270aff7c633f461bb01103c94b)) (@favna)
12+
* added the possibility of skipping lines for discord-embed-field titles ([#428](https://github.com/skyra-project/discord-components/issues/428)) ([67b0ab9](https://github.com/skyra-project/discord-components/commit/67b0ab9229307c6423b91c7b8f28479d36aba0ba)) (@eumarciel404)
13+
* **discord-button:** fixed button type checking to be null safe ([7d99d99](https://github.com/skyra-project/discord-components/commit/7d99d99cb6ff9f3d2ad060b49305da4049958e19)) (@favna)
14+
* **discord-embed-field:** fixed inline-index checking to be null safe ([84e5bc4](https://github.com/skyra-project/discord-components/commit/84e5bc46305abb880fd6243c028c8dfa23295390)) (@favna)
15+
16+
### Features
17+
18+
* add `dismissMessageClicked` to `discord-message` ([c7f6b51](https://github.com/skyra-project/discord-components/commit/c7f6b51dc5d3079ae9e9e31417cdb8068b6e9d60)) (@favna)
19+
620
# [4.0.0-alpha.23](https://github.com/skyra-project/discord-components/compare/v4.0.0-alpha.22...v4.0.0-alpha.23) (2024-07-18)
721

822
### Bug Fixes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@skyra/discord-components-core",
3-
"version": "4.0.0-alpha.23",
3+
"version": "4.0.0-alpha.24",
44
"description": "Web components to easily build and display fake Discord messages on your webpages.",
55
"author": "@skyra",
66
"license": "MIT",

packages/core/src/components/_private/DiscordMediaAttachmentStyles.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { css } from 'lit';
22

3+
/**
4+
* @internal
5+
*/
36
export const DiscordMediaAttachmentStyles = css`
47
.discord-media-attachment-non-visual-media-item-container {
58
justify-self: start;

packages/core/src/components/discord-action-row/DiscordActionRow.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { customElement } from 'lit/decorators.js';
33

44
@customElement('discord-action-row')
55
export class DiscordActionRow extends LitElement {
6+
/**
7+
* @internal
8+
*/
69
public static override readonly styles = css`
710
:host {
811
display: flex;

packages/core/src/components/discord-attachments/DiscordAttachments.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { customElement } from 'lit/decorators.js';
33

44
@customElement('discord-attachments')
55
export class DiscordAttachments extends LitElement {
6+
/**
7+
* @internal
8+
*/
69
public static override readonly styles = css`
710
:host {
811
display: grid;

packages/core/src/components/discord-author-info/DiscordAuthorInfo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import VerifiedTick from '../svgs/VerifiedTick.js';
99

1010
@customElement('discord-author-info')
1111
export class DiscordAuthorInfo extends LitElement {
12+
/**
13+
* @internal
14+
*/
1215
public static override readonly styles = css`
1316
:host {
1417
display: inline-flex;

packages/core/src/components/discord-button/DiscordButton.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import LaunchIcon from '../svgs/LaunchIcon.js';
88

99
@customElement('discord-button')
1010
export class DiscordButton extends LitElement implements DiscordButtonProps {
11+
/**
12+
* @internal
13+
*/
1114
public static override readonly styles = css`
1215
:host > *:first-child {
1316
display: flex;

packages/core/src/components/discord-code/DiscordCode.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { messagesLightTheme } from '../discord-messages/DiscordMessages.js';
66

77
@customElement('discord-code')
88
export class DiscordCode extends LitElement implements LightTheme {
9+
/**
10+
* @internal
11+
*/
912
public static override readonly styles = css`
1013
:host {
1114
background-color: #2f3136;

packages/core/src/components/discord-custom-emoji/DiscordCustomEmoji.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { getGlobalEmojiUrl } from '../../util.js';
66

77
@customElement('discord-custom-emoji')
88
export class DiscordCustomEmoji extends LitElement {
9+
/**
10+
* @internal
11+
*/
912
public static override readonly styles = css`
1013
.discord-custom-emoji {
1114
display: inline-block;

packages/core/src/components/discord-embed-description/DiscordEmbedDescription.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { customElement } from 'lit/decorators.js';
33

44
@customElement('discord-embed-description')
55
export class DiscordEmbedDescription extends LitElement {
6+
/**
7+
* @internal
8+
*/
69
public static override readonly styles = css`
710
:host {
811
font-size: 0.875rem;

packages/core/src/components/discord-embed-field/DiscordEmbedField.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import { messagesLightTheme } from '../discord-messages/DiscordMessages.js';
1010

1111
@customElement('discord-embed-field')
1212
export class DiscordEmbedField extends LitElement implements LightTheme {
13+
/**
14+
* @internal
15+
*/
1316
public static override readonly styles = css`
1417
:host {
1518
font-size: 0.875rem;

packages/core/src/components/discord-embed-fields/DiscordEmbedFields.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { customElement } from 'lit/decorators.js';
33

44
@customElement('discord-embed-fields')
55
export class DiscordEmbedFields extends LitElement {
6+
/**
7+
* @internal
8+
*/
69
public static override readonly styles = css`
710
:host {
811
display: grid;

packages/core/src/components/discord-embed-footer/DiscordEmbedFooter.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import { messagesLightTheme } from '../discord-messages/DiscordMessages.js';
99

1010
@customElement('discord-embed-footer')
1111
export class DiscordEmbedFooter extends LitElement implements LightTheme {
12+
/**
13+
* @internal
14+
*/
1215
public static override readonly styles = css`
1316
:host {
1417
-webkit-box-align: center;

packages/core/src/components/discord-embed/DiscordEmbed.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import { messagesLightTheme } from '../discord-messages/DiscordMessages.js';
1212

1313
@customElement('discord-embed')
1414
export class DiscordEmbed extends LitElement implements DiscordEmbedProps, LightTheme {
15+
/**
16+
* @internal
17+
*/
1518
public static override readonly styles = css`
1619
:host {
1720
color: #dcddde;

packages/core/src/components/discord-file-attachment/DiscordFileAttachment.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import FileAttachment from '../svgs/FileAttachment.js';
1111

1212
@customElement('discord-file-attachment')
1313
export class DiscordFileAttachment extends LitElement implements LightTheme {
14+
/**
15+
* @internal
16+
*/
1417
public static override readonly styles = css`
1518
:host {
1619
display: grid;

packages/core/src/components/discord-header/DiscordHeader.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { choose } from 'lit/directives/choose.js';
44

55
@customElement('discord-header')
66
export class DiscordHeader extends LitElement {
7+
/**
8+
* @internal
9+
*/
710
public static override readonly styles = css`
811
:host > * {
912
margin: 16px 0 8px;

packages/core/src/components/discord-image-attachment/DiscordImageAttachment.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import { validateImageExtension } from '../../util.js';
77

88
@customElement('discord-image-attachment')
99
export class DiscordImageAttachment extends LitElement {
10+
/**
11+
* @internal
12+
*/
1013
public static override readonly styles = css`
1114
:host {
1215
display: block;

packages/core/src/components/discord-invite/DiscordInvite.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import VerifiedBadgeOverlay from '../svgs/VerifiedBadgeOverlay.js';
1212

1313
@customElement('discord-invite')
1414
export class DiscordInvite extends LitElement implements LightTheme {
15+
/**
16+
* @internal
17+
*/
1518
public static override readonly styles = css`
1619
:host {
1720
background-color: #2f3136;

packages/core/src/components/discord-link/DiscordLink.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import { messagesLightTheme } from '../discord-messages/DiscordMessages.js';
88

99
@customElement('discord-link')
1010
export class DiscordLink extends LitElement implements LightTheme {
11+
/**
12+
* @internal
13+
*/
1114
public static override readonly styles = css`
1215
a {
1316
color: #00aff4;

packages/core/src/components/discord-list-item/DiscordListItem.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { DiscordComponentsError } from '../../util.js';
44

55
@customElement('discord-list-item')
66
export class DiscordListItem extends LitElement {
7+
/**
8+
* @internal
9+
*/
710
public static override readonly styles = css`
811
:host > li {
912
white-space: break-spaces;

packages/core/src/components/discord-mention/DiscordMention.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ import VoiceChannel from '../svgs/VoiceChannel.js';
1616

1717
@customElement('discord-mention')
1818
export class DiscordMention extends LitElement implements LightTheme {
19+
/**
20+
* @internal
21+
*/
1922
public static override readonly styles = css`
2023
:host {
2124
color: #e3e7f8;

0 commit comments

Comments
 (0)