Comparing version 0.17.0 to 0.17.1
@@ -13,2 +13,6 @@ # Changelog | ||
## [0.17.1](https://github.com/carbon-design-system/sveld/releases/tag/v0.17.1) - 2022-06-02 | ||
- use correct type for forwarded cut/copy/paste events | ||
## [0.17.0](https://github.com/carbon-design-system/sveld/releases/tag/v0.17.0) - 2022-05-21 | ||
@@ -15,0 +19,0 @@ |
@@ -181,2 +181,8 @@ "use strict"; | ||
} | ||
var mapEvent = function (name) { | ||
if (["cut", "copy", "paste"].includes(name)) { | ||
return "DocumentAndElementEventHandlersEventMap"; | ||
} | ||
return "WindowEventMap"; | ||
}; | ||
function genEventDef(def) { | ||
@@ -191,3 +197,3 @@ var createDispatchedEvent = function (detail) { | ||
.map(function (event) { | ||
return "".concat(clampKey(event.name), ": ").concat(event.type === "dispatched" ? createDispatchedEvent(event.detail) : "WindowEventMap[\"".concat(event.name, "\"]"), ";"); | ||
return "".concat(clampKey(event.name), ": ").concat(event.type === "dispatched" ? createDispatchedEvent(event.detail) : "".concat(mapEvent(event.name), "[\"").concat(event.name, "\"]"), ";"); | ||
}) | ||
@@ -194,0 +200,0 @@ .join("\n"); |
{ | ||
"name": "sveld", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "description": "Generate TypeScript definitions for your Svelte components.", |
@@ -42,3 +42,3 @@ # sveld | ||
/// <reference types="svelte" /> | ||
import { SvelteComponentTyped } from "svelte"; | ||
import type { SvelteComponentTyped } from "svelte"; | ||
@@ -45,0 +45,0 @@ export interface ButtonProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]> { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146517
2385