mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
chore(code-snippet): preserve custom copy event type (#1375)
This commit is contained in:
parent
45627aad1f
commit
5a8bd9ca57
4 changed files with 5 additions and 8 deletions
|
@ -567,12 +567,12 @@ None.
|
|||
| :----------- | :--------- | :---------------- |
|
||||
| expand | dispatched | <code>null</code> |
|
||||
| collapse | dispatched | <code>null</code> |
|
||||
| copy | dispatched | <code>null</code> |
|
||||
| click | forwarded | -- |
|
||||
| mouseover | forwarded | -- |
|
||||
| mouseenter | forwarded | -- |
|
||||
| mouseleave | forwarded | -- |
|
||||
| animationend | forwarded | -- |
|
||||
| copy | dispatched | <code>null</code> |
|
||||
|
||||
## `CodeSnippetSkeleton`
|
||||
|
||||
|
|
|
@ -1235,6 +1235,7 @@
|
|||
"events": [
|
||||
{ "type": "dispatched", "name": "expand", "detail": "null" },
|
||||
{ "type": "dispatched", "name": "collapse", "detail": "null" },
|
||||
{ "type": "dispatched", "name": "copy", "detail": "null" },
|
||||
{
|
||||
"type": "forwarded",
|
||||
"name": "click",
|
||||
|
@ -1255,12 +1256,7 @@
|
|||
"name": "mouseleave",
|
||||
"element": "CodeSnippetSkeleton"
|
||||
},
|
||||
{
|
||||
"type": "forwarded",
|
||||
"name": "animationend",
|
||||
"element": "CopyButton"
|
||||
},
|
||||
{ "type": "dispatched", "name": "copy", "detail": "null" }
|
||||
{ "type": "forwarded", "name": "animationend", "element": "CopyButton" }
|
||||
],
|
||||
"typedefs": [],
|
||||
"rest_props": { "type": "InlineComponent", "name": "CodeSnippetSkeleton" }
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
/**
|
||||
* @event {null} expand
|
||||
* @event {null} collapse
|
||||
* @event {null} copy
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
2
types/CodeSnippet/CodeSnippet.svelte.d.ts
vendored
2
types/CodeSnippet/CodeSnippet.svelte.d.ts
vendored
|
@ -122,12 +122,12 @@ export default class CodeSnippet extends SvelteComponentTyped<
|
|||
{
|
||||
expand: CustomEvent<null>;
|
||||
collapse: CustomEvent<null>;
|
||||
copy: CustomEvent<null>;
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
animationend: WindowEventMap["animationend"];
|
||||
copy: CustomEvent<null>;
|
||||
},
|
||||
{ default: {} }
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue