Skip to content

Commit

Permalink
Merge branch 'master' into controller-value
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebriday committed Jun 1, 2023
2 parents 09a93b1 + 994f270 commit 03d9c04
Show file tree
Hide file tree
Showing 4 changed files with 2,303 additions and 1,323 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [3.4.0] - 2023-06-01

### Added

- Allow to use HTML for success content.
- Use a Stimulus controller value for success content.

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ <h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:t
</button>
</div>

<div data-controller="clipboard" data-clipboard-success-content-value="<strong>Copied!</strong>" class="relative mt-16">
<div data-controller="clipboard" data-clipboard-success-content="Copied!" class="relative mt-16">
<button
class="absolute top-2 right-2 p-2 bg-white hover:bg-gray-200 rounded"
type="button"
Expand Down
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "stimulus-clipboard",
"version": "3.3.0",
"version": "3.4.0",
"engines": {
"node": "18"
},
"description": "A Stimulus controller to copy text to clipboard.",
"keywords": [
"stimulus",
Expand Down Expand Up @@ -29,18 +32,18 @@
"np": "np --no-2fa --no-tests"
},
"devDependencies": {
"@babel/core": "7.20.7",
"@babel/core": "7.22.1",
"@babel/plugin-syntax-class-properties": "7.12.13",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@babel/preset-env": "^7.22.4",
"@babel/preset-typescript": "^7.21.5",
"@hotwired/stimulus": "^3.2.1",
"autoprefixer": "^10.4.13",
"np": "^7.6.2",
"postcss": "^8.4.20",
"autoprefixer": "^10.4.14",
"np": "^8.0.2",
"postcss": "^8.4.24",
"prettier-standard": "16.4.1",
"tailwindcss": "^3.2.4",
"typescript": "^4.9.4",
"vite": "^4.0.3"
"tailwindcss": "^3.3.2",
"typescript": "^5.0.4",
"vite": "^4.3.9"
},
"peerDependencies": {
"@hotwired/stimulus": "^3.2.1"
Expand Down
Loading

0 comments on commit 03d9c04

Please sign in to comment.