Kristján Oddsson
3847935589
reference typescript file in package.json
2019-07-30 10:25:12 +01:00
Kristján Oddsson
4b345c13a0
add typescript definition file
2019-07-30 10:25:12 +01:00
Kristján Oddsson
4a5ce9575a
1.0.3
2019-07-30 10:22:05 +01:00
Kristján Oddsson
a5fb22f073
Merge pull request #19 from github/update-deps
...
Update dependencies
2019-07-30 10:20:03 +01:00
Kristján Oddsson
0cc473a38f
run `npm audit fix`
2019-07-29 12:24:50 +01:00
Kristján Oddsson
f3a56242a9
update eslint-plugin-github, flow and karma-chrome-launcher to latest versions
2019-07-29 12:24:25 +01:00
Kristján Oddsson
e3a96e4502
run `npm update`
2019-07-29 12:23:05 +01:00
Kristján Oddsson
c68df8ac97
1.0.2
2019-07-22 16:15:01 +01:00
Kristján Oddsson
3355875977
Merge pull request #17 from github/update-deps
...
Update dependencies
2019-07-22 16:10:41 +01:00
Kristján Oddsson
186dbe6263
update eslint, eslint-plugin-github and flow-bin manually to latest versions
2019-07-05 11:46:28 +01:00
Kristján Oddsson
28f0ad6fbe
run `npm update`
2019-07-05 11:45:21 +01:00
Kristján Oddsson
003b465eeb
update package name in README.md
2019-05-23 12:29:40 +01:00
Kristján Oddsson
41fcc14b00
1.0.1
2019-05-23 12:26:09 +01:00
Kristján Oddsson
211ab230ca
Merge pull request #16 from github/move-package-under-scope
...
Rename package to include @github scope
2019-05-23 12:20:43 +01:00
Kristján Oddsson
b0c574d300
rename package to include @github scope
2019-05-21 10:44:10 +01:00
David Graham
98441f3726
1.0.0
2019-04-22 10:41:20 -06:00
David Graham
128ce255b9
Update development dependencies
2019-04-22 10:40:17 -06:00
Jorge del Casar
d584f92ccb
add suport for shadow dom
2019-04-08 10:50:41 +02:00
David Graham
0fa37fd41b
0.7.0
2019-03-29 09:57:37 -06:00
David Graham
d2b7ea59e2
Update development dependencies
2019-03-29 09:55:38 -06:00
David Graham
e160deb255
Merge pull request #13 from github/clipboard-copied-event
...
Dispatch clipboard-copy event
2019-03-29 09:51:48 -06:00
David Graham
684d29b8d5
clipboard-copied -> clipboard-copy
2019-03-28 10:48:08 -06:00
David Graham
9d177b92db
Update test for clipboard-copied event name
2019-03-28 09:53:34 -06:00
Mislav Marohnić
f30e32c37f
Fire a custom `clipboard-copied` event
...
This is more predictable than native `copy` event and guarantees that
the event will always be fired from the `<clipboard-copy>` element.
2019-03-28 09:50:33 -06:00
Mislav Marohnić
7343b2590a
Simplify `copyInput`, `copyNode`, `copyText` method signatures
...
They don't accept `button` as 1st argument anymore since that wouldn't
make much sense when these methods get exported. The `button` argument
was only used to eventually fire the synthetic `copy` event, which was
problematic for several reasons:
1. The native `copy` event is supposed to be fired *before* the
clipboard is modified and cancelling the event is supposed to cancel
the copy operation as well;
https://w3c.github.io/clipboard-apis/#clipboard-event-copy
2. The `copy` event is supposed to expose `clipboardData` property that
allows for modification of the data that gets copied;
https://w3c.github.io/clipboard-apis/#override-copy
3. The `clipboard.writeText()` function might trigger a `copy` event in
the future, so we might end up with double events;
4. The non-async fallback code using `execCommand('copy')` fires the
native `copy` event from different elements than the
`<clipboard-copy>` button itself.
For these reasons, I've opted to not simulate the synthetic `copy` event
at all.
The updated methods now also return a Promise, which allows the caller
to potentially react to `clipboard.writeText()` finishing.
2019-03-28 09:50:03 -06:00
Kristján Oddsson
74afacdf9a
0.6.0
2019-02-25 18:03:43 +00:00
Kristján Oddsson
75d3d29d05
Merge pull request #12 from github/remove-classes-transform
...
Remove classes transform
2019-02-25 15:54:27 +00:00
Kristján Oddsson
e96d82b006
make javascript flow strict
2019-02-25 09:51:18 +00:00
Kristján Oddsson
ce34f363de
drop ie11 support
2019-02-25 09:50:21 +00:00
Kristján Oddsson
5e1e627d26
inline test configuration to root eslint config
2019-02-25 09:50:21 +00:00
Kristján Oddsson
e839822c4b
ignore dist folder in eslint
2019-02-25 09:50:19 +00:00
Kristján Oddsson
957b1d3bc4
update rollup and babel
2019-02-25 09:40:11 +00:00
Kristján Oddsson
82a9e6bdca
update test, linting and flow dependencies
2019-02-25 09:38:50 +00:00
Kristján Oddsson
2b7ba8bf61
run github-lint as a lint command
2019-02-25 09:36:06 +00:00
Kristján Oddsson
c8fa9111b1
remove babel transforms
2019-02-25 09:35:00 +00:00
Kristján Oddsson
0f7f2b097c
use github babel preset
2019-02-25 09:34:45 +00:00
Kristján Oddsson
1fb6dc23c4
add babel-preset-github
2019-02-25 09:33:33 +00:00
David Graham
00aba161c6
Update rollup and babel plugins
2019-01-07 13:55:45 -07:00
David Graham
22989b7c69
Update testing dependencies
2019-01-07 13:35:11 -07:00
David Graham
6ffefa7b3e
Update Flow to include Clipboard interface
2019-01-07 13:33:34 -07:00
David Graham
08ca1e5d20
Update development dependencies
2018-08-21 15:04:38 -06:00
David Graham
42146eb74d
Link to web component support
2018-08-21 14:57:46 -06:00
Mislav Marohnić
84d0fec77a
Merge pull request #6 from github/target-href
...
Support copying href of target anchor element
2018-08-13 15:50:10 +02:00
Mislav Marohnić
e3da75c75b
Clarify what will be copied in hyperlink example
2018-08-13 11:14:28 +02:00
Mislav Marohnić
ab158b4f8a
Support copying href of target anchor element
2018-08-11 02:40:49 +02:00
Mislav Marohnić
65b3cb58d6
Add tests for `for="target-id"` behavior
2018-08-11 02:22:49 +02:00
David Graham
72947be712
Merge pull request #5 from github/async
...
Use asynchronous clipboard API if available
2018-05-18 13:31:37 -06:00
David Graham
e6091e805c
Use asynchronous clipboard API if available
...
- https://w3c.github.io/clipboard-apis/
- https://developers.google.com/web/updates/2018/03/clipboardapi
2018-05-18 11:08:30 -06:00
David Graham
b6da685a26
Add example demo page
2018-05-18 10:07:08 -06:00
David Graham
842797bd51
Update development dependencies
2018-05-18 09:51:44 -06:00