Commit Graph

308 Commits

Author SHA1 Message Date
0fcf8c9460 Update package.json (#532)
Correct module path
2018-04-29 16:14:20 -07:00
e1d571b3f3 Updates docs to use ClipboardJS 2.0 2018-03-01 09:07:10 -08:00
43beb07bac Release v2.0.0 v2.0.0 2018-02-28 21:56:32 -08:00
9086f3ed64 Updates demos to use new constructor 2018-02-28 21:46:48 -08:00
750cf124d7 Changes global variable from "Clipboard" to "ClipboardJS"
This was introduced in order to prevent a name conflict with the new `window.Clipboard` native function

For more info check:
* https://w3c.github.io/clipboard-apis/
* ac319a7ed3
2018-02-28 21:45:59 -08:00
d25dcac817 Migrates banner from Browserify to Webpack #372 2018-02-28 20:32:25 -08:00
f7e2f58c96 Create composer.json for instalation with composer (#467)
* Create composer.json for instalation with composer

The installation is much simpler with Composer and https://github.com/RobLoach/component-installer

After merged you can test it:
```
composer config repositories.zenorocha-clipboardjs vcs "https://github.com/zenorocha/clipboard.js/"
composer require zenorocha-clipboardjs:dev-master
```
Before merged you can test using my git fork.

Composer creates a "components" folder that contains the "clipboardjs" whith all files spec in "files" of composer.json.
You can then register the "package" at https://packagist.org In this way the installation would be simpler:
`composer require zenorocha-clipboardjs:dev-master`

* Remove icon
2018-02-28 17:05:21 -08:00
2d5b2df811 Migrate from Browserify to Webpack (#372)
* Migrate from Browserify to Webpack

close https://github.com/zenorocha/clipboard.js/issues/371

 Author:    Guillaume Vincent <guillaume@oslab.fr>

* remove browserify and associated modules and update tests
2018-02-28 17:03:39 -08:00
0c3bce265f Fix GitHub Primer tooltips link (#479) 2017-10-16 07:25:57 -07:00
3c0dfe5a38 Adds docs on tooltips #423 2017-06-30 16:30:30 -03:00
f960b0d20a use only ID name for DOM (#431) 2017-06-30 15:52:07 -03:00
b6e6b80ab0 Release v1.7.1 v1.7.1 2017-05-29 16:57:52 -07:00
a55c9ac513 Move focus to trigger instead of simply blur()ing (#419)
blur() results in a loss/reset of keyboard focus, meaning keyboard users usually get thrown right back to the start of the page. Instead, this moves focus back to the trigger (which had the focus when the trigger was activated).
As with the proposed fix in https://github.com/zenorocha/clipboard.js/pull/418 this obviously results in the focus styles (like the default outline, unless suppressed) being applied to the trigger (see the related PR for rationale and future fix using `:focus-ring`)
2017-05-29 16:54:55 -07:00
39e622456c Release v1.7.0 v1.7.0 2017-05-29 14:43:41 -07:00
f8c322f163 Reviews text from #368 2017-05-29 14:20:36 -07:00
f42b57067d Container option (#368)
* Allow container option to fix bugs related to bootstrap modals etc.

* Updated readme to reflect addition of container option

* Name link

* Removed test log

* Remove unwanted whitespace

* Refactored description
2017-05-29 14:17:26 -07:00
4065080a17 Removes bower notes from docs 2017-05-22 13:31:36 -07:00
5ab50475e0 ES6 refactor (#409)
* little fix

* little fix /2

* test/clipboard.js refactored

* emitter: emitter --> emitter

* Examples in ES6

* es6

* back to original code

* script > npm test

* script > npm test not necessary

* updating modules

* removing export default
2017-05-02 21:34:18 -07:00
e1394b3b8c Adds bonus section 2017-05-01 09:17:35 -07:00
f59d4e6b4d Release v1.6.1 v1.6.1 2017-02-28 09:58:40 -08:00
9ddff7e591 Prevents Node env from throwing an error 2017-02-28 09:57:36 -08:00
a00f1fe327 Release v1.6.0 v1.6.0 2017-02-08 00:02:14 -08:00
38ae5b34f3 Adds documentation about #355 2017-02-07 23:59:27 -08:00
41b7234d50 Prevents keyboard from opening on iOS when using "data-clipboard-target" 2017-02-07 23:41:46 -08:00
3696739e5e Prevents scroll jump on iOS when using "data-clipboard-text"
Thanks to @geraldarthur at #369
2017-02-07 23:37:43 -08:00
63d1b0f014 Add isSupported method #355 2017-02-07 23:36:29 -08:00
402c9ee17b Release v1.5.16 v1.5.16 2016-12-12 11:54:35 -02:00
0538f6e212 Ensures that event delegation works with multiple documents (a page with iframes) 2016-12-12 11:53:41 -02:00
8ad16a2c6c Release v1.5.15 v1.5.15 2016-10-22 19:44:43 -07:00
ce0829054b Updates dev dependencies 2016-10-22 19:37:37 -07:00
223d30c110 Removes babel loose mode 2016-10-22 19:37:18 -07:00
b1a68df6e9 Release v1.5.14 2016-10-22 19:36:49 -07:00
0149e1de5e Updates good-listener package which removes two dependencies v1.5.14 2016-10-22 19:10:44 -07:00
26a9e9d56c Release v1.5.13 v1.5.13 2016-10-16 22:44:03 -07:00
fce625f151 Fixes #320 2016-10-16 18:53:34 -07:00
f7040bae8a Adds meta viewport for all demos 2016-10-16 17:16:02 -07:00
9f9d03c927 Adds Edge version #316 2016-09-26 13:57:28 -05:00
e18c26ae07 Add Edge to the Browser Support section (#316)
Ref: https://github.com/zenorocha/clipboard.js/pull/267#issuecomment-249620994
2016-09-26 13:48:16 -05:00
70cfabec69 Update readme.md 2016-09-21 13:21:25 -07:00
f700a1b12e Moves URLs to HTTPS 2016-09-21 11:42:37 -07:00
9e3d662c4e Adjusts text based on #313 2016-09-21 11:04:07 -07:00
76b907949c issue #282 solution (#283)
* add selectedText

* better code

* remove dist folder

* Revert "remove dist folder"

This reverts commit 50e726c7a7.

* orogin dist source
2016-09-08 08:57:41 -07:00
60b6887100 Updates site preview 2016-06-17 14:49:39 -07:00
eb7418b51b Release v1.5.12 v1.5.12 2016-06-09 07:57:20 -07:00
869c4e3219 Fix bug that unable to remove fake event listener (#256)
* Fix bug that unable to remove fake event listener

* Update dist
2016-06-09 07:54:07 -07:00
a4ab305297 Release v1.5.11 v1.5.11 2016-06-08 21:46:20 -07:00
294e9fcb5d Fix fake element position from "fixed" to "absolute" #194 #250 2016-06-08 21:44:54 -07:00
79c3361ca4 Press Ctrl+C to copy -> Press Command+C to copy (#252)
As Safari users are mostly using mac, coping a text needs Command+C instead of Ctrl+C
2016-06-02 15:28:16 -07:00
c3fefc1fc0 Fix memory leak because of fakeHandlers (#243)
addEventListener always returns undefined by spec
https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-addEventListener
2016-05-26 11:35:18 -07:00
42bd266f0b Adds basic JSFiddle to help people reproduce their bugs 2016-05-01 16:14:51 -07:00