@nysds/components 1.16.0-alpha-3 → 1.16.0-alpha3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +45 -4
- package/dist/.vscode/vscode.html-custom-data.json +1 -58
- package/dist/custom-elements.json +671 -616
- package/dist/nysds.es.js +772 -721
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +37 -37
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +4 -2
- package/dist/packages/nys-table/src/nys-table.d.ts +12 -1
- package/dist/packages/react/nysds-jsx.d.ts +1411 -0
- package/package.json +6 -4
- package/packages/react/NysTable.d.ts +4 -0
- package/packages/react/NysTable.js +1 -0
- package/packages/react/index.d.ts +9 -9
- package/packages/react/index.js +9 -9
- package/packages/react/nysds-jsx.d.ts +1428 -0
- package/packages/react/react-utils.js +0 -2
- package/dist/packages/nys-video/src/index.d.ts +0 -1
- package/dist/packages/nys-video/src/nys-video.d.ts +0 -52
- package/dist/packages/nys-video/src/nys-video.figma.d.ts +0 -1
|
@@ -36,7 +36,5 @@ export function useEventListener(targetElement, eventName, eventHandler) {
|
|
|
36
36
|
return () => {
|
|
37
37
|
element.removeEventListener(eventName, listener);
|
|
38
38
|
};
|
|
39
|
-
// Only re-subscribe when the element or event name changes.
|
|
40
|
-
// Handler changes are handled via the savedHandler ref above.
|
|
41
39
|
}, [eventName, targetElement]);
|
|
42
40
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./nys-video";
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
export declare class NysVideo extends LitElement {
|
|
3
|
-
static styles: import("lit").CSSResult;
|
|
4
|
-
/** Full YouTube URL — required. Component will not render if invalid. */
|
|
5
|
-
id: string;
|
|
6
|
-
/** Title text for the thumbnail of the video */
|
|
7
|
-
titleText: string;
|
|
8
|
-
/** Full YouTube URL — required. Component will not render if invalid. */
|
|
9
|
-
videourl: string;
|
|
10
|
-
/**
|
|
11
|
-
* Largest size for the video player.
|
|
12
|
-
* If not set, size is determined automatically by viewport width.
|
|
13
|
-
*/
|
|
14
|
-
size: "full" | "contained" | "compacted" | "";
|
|
15
|
-
loading: "lazy" | "eager";
|
|
16
|
-
/** Time in seconds where playback begins. **/
|
|
17
|
-
starttime: number;
|
|
18
|
-
/**
|
|
19
|
-
* Custom thumbnail image path.
|
|
20
|
-
* Falls back to YouTube's auto-generated thumbnail if not provided.
|
|
21
|
-
*/
|
|
22
|
-
thumbnail: string | null;
|
|
23
|
-
/** Triggers autoplay when the iframe loads */
|
|
24
|
-
autoplay: boolean;
|
|
25
|
-
/** Prevents the video from being played */
|
|
26
|
-
disabled: boolean;
|
|
27
|
-
/** Tracks whether the user has clicked to load the player */
|
|
28
|
-
private _playerActive;
|
|
29
|
-
/** Auto-computed size when no explicit size prop is set */
|
|
30
|
-
private _autoSize;
|
|
31
|
-
private _mediaFull;
|
|
32
|
-
private _mediaMobileLarge;
|
|
33
|
-
private _onMediaChange;
|
|
34
|
-
constructor();
|
|
35
|
-
connectedCallback(): void;
|
|
36
|
-
disconnectedCallback(): void;
|
|
37
|
-
/**
|
|
38
|
-
* Functions
|
|
39
|
-
* --------------------------------------------------------------------------
|
|
40
|
-
*/
|
|
41
|
-
private _updateAutoSize;
|
|
42
|
-
private _isValidYouTubeUrl;
|
|
43
|
-
private _getVideoId;
|
|
44
|
-
private _getThumbnailUrl;
|
|
45
|
-
private _getEmbedUrl;
|
|
46
|
-
/**
|
|
47
|
-
* Event Handlers
|
|
48
|
-
* --------------------------------------------------------------------------
|
|
49
|
-
*/
|
|
50
|
-
private _handleThumbnailClick;
|
|
51
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
52
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|