mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +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> |
|
| expand | dispatched | <code>null</code> |
|
||||||
| collapse | dispatched | <code>null</code> |
|
| collapse | dispatched | <code>null</code> |
|
||||||
|
| copy | dispatched | <code>null</code> |
|
||||||
| click | forwarded | -- |
|
| click | forwarded | -- |
|
||||||
| mouseover | forwarded | -- |
|
| mouseover | forwarded | -- |
|
||||||
| mouseenter | forwarded | -- |
|
| mouseenter | forwarded | -- |
|
||||||
| mouseleave | forwarded | -- |
|
| mouseleave | forwarded | -- |
|
||||||
| animationend | forwarded | -- |
|
| animationend | forwarded | -- |
|
||||||
| copy | dispatched | <code>null</code> |
|
|
||||||
|
|
||||||
## `CodeSnippetSkeleton`
|
## `CodeSnippetSkeleton`
|
||||||
|
|
||||||
|
|
|
@ -1235,6 +1235,7 @@
|
||||||
"events": [
|
"events": [
|
||||||
{ "type": "dispatched", "name": "expand", "detail": "null" },
|
{ "type": "dispatched", "name": "expand", "detail": "null" },
|
||||||
{ "type": "dispatched", "name": "collapse", "detail": "null" },
|
{ "type": "dispatched", "name": "collapse", "detail": "null" },
|
||||||
|
{ "type": "dispatched", "name": "copy", "detail": "null" },
|
||||||
{
|
{
|
||||||
"type": "forwarded",
|
"type": "forwarded",
|
||||||
"name": "click",
|
"name": "click",
|
||||||
|
@ -1255,12 +1256,7 @@
|
||||||
"name": "mouseleave",
|
"name": "mouseleave",
|
||||||
"element": "CodeSnippetSkeleton"
|
"element": "CodeSnippetSkeleton"
|
||||||
},
|
},
|
||||||
{
|
{ "type": "forwarded", "name": "animationend", "element": "CopyButton" }
|
||||||
"type": "forwarded",
|
|
||||||
"name": "animationend",
|
|
||||||
"element": "CopyButton"
|
|
||||||
},
|
|
||||||
{ "type": "dispatched", "name": "copy", "detail": "null" }
|
|
||||||
],
|
],
|
||||||
"typedefs": [],
|
"typedefs": [],
|
||||||
"rest_props": { "type": "InlineComponent", "name": "CodeSnippetSkeleton" }
|
"rest_props": { "type": "InlineComponent", "name": "CodeSnippetSkeleton" }
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
/**
|
/**
|
||||||
* @event {null} expand
|
* @event {null} expand
|
||||||
* @event {null} collapse
|
* @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>;
|
expand: CustomEvent<null>;
|
||||||
collapse: CustomEvent<null>;
|
collapse: CustomEvent<null>;
|
||||||
|
copy: CustomEvent<null>;
|
||||||
click: WindowEventMap["click"];
|
click: WindowEventMap["click"];
|
||||||
mouseover: WindowEventMap["mouseover"];
|
mouseover: WindowEventMap["mouseover"];
|
||||||
mouseenter: WindowEventMap["mouseenter"];
|
mouseenter: WindowEventMap["mouseenter"];
|
||||||
mouseleave: WindowEventMap["mouseleave"];
|
mouseleave: WindowEventMap["mouseleave"];
|
||||||
animationend: WindowEventMap["animationend"];
|
animationend: WindowEventMap["animationend"];
|
||||||
copy: CustomEvent<null>;
|
|
||||||
},
|
},
|
||||||
{ default: {} }
|
{ default: {} }
|
||||||
> {}
|
> {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue