These files should not be added
This commit is contained in:
21
build/javascript/node_modules/@joeattardi/emoji-button/LICENSE
generated
vendored
21
build/javascript/node_modules/@joeattardi/emoji-button/LICENSE
generated
vendored
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 Joe Attardi
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
105
build/javascript/node_modules/@joeattardi/emoji-button/README.md
generated
vendored
105
build/javascript/node_modules/@joeattardi/emoji-button/README.md
generated
vendored
@@ -1,105 +0,0 @@
|
||||

|
||||
|
||||
|
||||
Vanilla JavaScript emoji picker 😎
|
||||
|
||||
## Screenshot
|
||||
|
||||

|
||||
|
||||
|
||||
## Demo and Documentation
|
||||
|
||||
[https://emoji-button.js.org](https://emoji-button.js.org)
|
||||
|
||||
## Features
|
||||
|
||||
* 💻 Vanilla JS, use with any framework
|
||||
* 😀 Use native or Twemoji emojis
|
||||
* 🔎 Emoji search
|
||||
* 👍🏼 Skin tone variations
|
||||
* ⏱ Recently used emojis
|
||||
* ⌨️ Fully keyboard accessible
|
||||
* 🎨 Dark, light, and auto themes
|
||||
* ⚙️ Add your own custom emoji images
|
||||
* 🧩 Extend functionality with plugins
|
||||
|
||||
## Browser support
|
||||
|
||||
Emoji Button is supported on all modern browsers supporting the latest JavaScript features. Internet Explorer is not supported.
|
||||
|
||||
## Installation
|
||||
|
||||
If you are using a package manager like `yarn` or `npm`, you can install Emoji Button directly from the npm registry:
|
||||
|
||||
npm install @joeattardi/emoji-button
|
||||
|
||||
## Basic usage
|
||||
|
||||
First, you'll need a trigger element. This is typically a button, and is used to toggle the emoji picker.
|
||||
|
||||
```html
|
||||
<button id="emoji-trigger">Emoji</button>
|
||||
```
|
||||
|
||||
Once you've added the trigger, you will need to import the `EmojiButton` class and create a new instance. Various options can be passed to the constructor, which is covered in the [API documentation](https://emoji-button.js.org/docs/api).
|
||||
|
||||
After constructing a picker, it can be shown by calling `showPicker` or `togglePicker` on it. These functions expect a reference element as a parameter. The picker is positioned relative to this reference element.
|
||||
|
||||
When an emoji is selected, the picker will emit an `emoji` event, passing an object containing data about the emoji that was selected. You can then handle the selected emoji however you want.
|
||||
|
||||
For more in depth documentation and examples, please visit [https://emoji-button.js.org](https://emoji-button.js.org).
|
||||
|
||||
```javascript
|
||||
import { EmojiButton } from '@joeattardi/emoji-button';
|
||||
|
||||
const picker = new EmojiButton();
|
||||
const trigger = document.querySelector('#emoji-trigger');
|
||||
|
||||
picker.on('emoji', selection => {
|
||||
// handle the selected emoji here
|
||||
console.log(selection.emoji);
|
||||
});
|
||||
|
||||
trigger.addEventListener('click', () => picker.togglePicker(trigger));
|
||||
```
|
||||
|
||||
## Development
|
||||
|
||||
The easiest way to hack on Emoji Button is to use the documentation site. First, you should fork this repository.
|
||||
|
||||
### Clone the forked repository
|
||||
|
||||
git clone https://github.com/your-name/emoji-button.git
|
||||
|
||||
### From the repository root
|
||||
|
||||
#### Install dependencies
|
||||
|
||||
npm install
|
||||
|
||||
#### Set up the link
|
||||
|
||||
npm link
|
||||
|
||||
#### Start the build/watch loop
|
||||
|
||||
npm run build:watch
|
||||
|
||||
### From the `site` subdirectory
|
||||
|
||||
#### Install dependencies
|
||||
|
||||
npm install
|
||||
|
||||
#### Link the library
|
||||
|
||||
npm link @joeattardi/emoji-button
|
||||
|
||||
#### Start the documentation site
|
||||
|
||||
npm run develop
|
||||
|
||||
### Open the page
|
||||
|
||||
http://localhost:8000
|
||||
142
build/javascript/node_modules/@joeattardi/emoji-button/index.d.ts
generated
vendored
142
build/javascript/node_modules/@joeattardi/emoji-button/index.d.ts
generated
vendored
@@ -1,142 +0,0 @@
|
||||
export as namespace EmojiButton;
|
||||
|
||||
export = EmojiButton;
|
||||
|
||||
declare namespace EmojiButton {
|
||||
export class EmojiButton {
|
||||
constructor(options?: EmojiButton.Options);
|
||||
on(event: Event, callback: (selection: EmojiSelection) => void): void;
|
||||
off(event: Event, callback: (selection: EmojiSelection) => void): void;
|
||||
hidePicker(): void;
|
||||
destroyPicker(): void;
|
||||
showPicker(referenceEl: HTMLElement): void;
|
||||
togglePicker(referenceEl: HTMLElement): void;
|
||||
isPickerVisible(): boolean;
|
||||
setTheme(theme: EmojiTheme): void;
|
||||
}
|
||||
|
||||
export interface Options {
|
||||
position?: Placement | FixedPosition;
|
||||
autoHide?: boolean;
|
||||
autoFocusSearch?: boolean;
|
||||
showAnimation?: boolean;
|
||||
showPreview?: boolean;
|
||||
showSearch?: boolean;
|
||||
showRecents?: boolean;
|
||||
showVariants?: boolean;
|
||||
showCategoryButtons?: boolean;
|
||||
recentsCount?: number;
|
||||
emojiVersion?: EmojiVersion;
|
||||
i18n?: I18NStrings;
|
||||
zIndex?: number;
|
||||
theme?: EmojiTheme;
|
||||
categories?: Category[];
|
||||
style?: EmojiStyle;
|
||||
emojisPerRow?: number;
|
||||
rows?: number;
|
||||
emojiSize?: string;
|
||||
initialCategory?: Category | 'recents';
|
||||
custom?: CustomEmoji[];
|
||||
plugins?: Plugin[];
|
||||
icons?: Icons;
|
||||
rootElement?: HTMLElement;
|
||||
}
|
||||
|
||||
export interface FixedPosition {
|
||||
top?: string;
|
||||
bottom?: string;
|
||||
left?: string;
|
||||
right?: string;
|
||||
}
|
||||
|
||||
export interface Plugin {
|
||||
render(picker: EmojiButton): HTMLElement;
|
||||
destroy?(): void;
|
||||
}
|
||||
|
||||
export interface EmojiSelection {
|
||||
name: string;
|
||||
custom?: boolean;
|
||||
emoji?: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface CustomEmoji {
|
||||
name: string;
|
||||
emoji: string;
|
||||
}
|
||||
|
||||
export type EmojiStyle = 'native' | 'twemoji';
|
||||
|
||||
export type EmojiTheme = 'dark' | 'light' | 'auto';
|
||||
|
||||
export type Event = 'emoji' | 'hidden';
|
||||
|
||||
export type Placement =
|
||||
| 'auto'
|
||||
| 'auto-start'
|
||||
| 'auto-end'
|
||||
| 'top'
|
||||
| 'top-start'
|
||||
| 'top-end'
|
||||
| 'bottom'
|
||||
| 'bottom-start'
|
||||
| 'bottom-end'
|
||||
| 'right'
|
||||
| 'right-start'
|
||||
| 'right-end'
|
||||
| 'left'
|
||||
| 'left-start'
|
||||
| 'left-end';
|
||||
|
||||
export type EmojiVersion =
|
||||
| '1.0'
|
||||
| '2.0'
|
||||
| '3.0'
|
||||
| '4.0'
|
||||
| '5.0'
|
||||
| '11.0'
|
||||
| '12.0'
|
||||
| '12.1';
|
||||
|
||||
export type Category =
|
||||
| 'smileys'
|
||||
| 'people'
|
||||
| 'animals'
|
||||
| 'food'
|
||||
| 'activities'
|
||||
| 'travel'
|
||||
| 'objects'
|
||||
| 'symbols'
|
||||
| 'flags';
|
||||
|
||||
export type I18NCategory =
|
||||
| 'recents'
|
||||
| 'smileys'
|
||||
| 'people'
|
||||
| 'animals'
|
||||
| 'food'
|
||||
| 'activities'
|
||||
| 'travel'
|
||||
| 'objects'
|
||||
| 'symbols'
|
||||
| 'flags'
|
||||
| 'custom';
|
||||
|
||||
export interface I18NStrings {
|
||||
search: string;
|
||||
categories: {
|
||||
[key in I18NCategory]: string;
|
||||
};
|
||||
notFound: string;
|
||||
}
|
||||
|
||||
export interface Icons {
|
||||
search?: string;
|
||||
clearSearch?: string;
|
||||
categories?: {
|
||||
[key in I18NCategory]?: string;
|
||||
};
|
||||
notFound?: string;
|
||||
}
|
||||
}
|
||||
104
build/javascript/node_modules/@joeattardi/emoji-button/package.json
generated
vendored
104
build/javascript/node_modules/@joeattardi/emoji-button/package.json
generated
vendored
@@ -1,104 +0,0 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"@joeattardi/emoji-button@4.2.0",
|
||||
"/home/runner/work/owncast/owncast/build/javascript"
|
||||
]
|
||||
],
|
||||
"_from": "@joeattardi/emoji-button@4.2.0",
|
||||
"_id": "@joeattardi/emoji-button@4.2.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-naSbg20LEyenfeeUwPMUScwXzQkSM42hrEgLrQCyq01PP8uTZ30gnRByUkg475jUxUuOmf9G4fv0XJdFsNP2tw==",
|
||||
"_location": "/@joeattardi/emoji-button",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "@joeattardi/emoji-button@4.2.0",
|
||||
"name": "@joeattardi/emoji-button",
|
||||
"escapedName": "@joeattardi%2femoji-button",
|
||||
"scope": "@joeattardi",
|
||||
"rawSpec": "4.2.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "4.2.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@joeattardi/emoji-button/-/emoji-button-4.2.0.tgz",
|
||||
"_spec": "4.2.0",
|
||||
"_where": "/home/runner/work/owncast/owncast/build/javascript",
|
||||
"author": {
|
||||
"name": "Joe Attardi",
|
||||
"email": "jattardi@gmail.com",
|
||||
"url": "https://joeattardi.codes"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/joeattardi/emoji-button/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.28",
|
||||
"@fortawesome/free-regular-svg-icons": "^5.13.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.13.0",
|
||||
"@popperjs/core": "^2.4.0",
|
||||
"focus-trap": "^5.1.0",
|
||||
"fuzzysort": "^1.1.4",
|
||||
"tiny-emitter": "^2.1.0",
|
||||
"tslib": "^2.0.0",
|
||||
"twemoji": "^13.0.0"
|
||||
},
|
||||
"description": "Vanilla JavaScript emoji picker",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.10.2",
|
||||
"@babel/preset-env": "^7.10.2",
|
||||
"@babel/preset-typescript": "^7.10.1",
|
||||
"@rollup/plugin-replace": "^2.3.3",
|
||||
"@rollup/plugin-typescript": "^4.1.2",
|
||||
"@types/jest": "^25.2.3",
|
||||
"@typescript-eslint/eslint-plugin": "^3.1.0",
|
||||
"@typescript-eslint/parser": "^3.1.0",
|
||||
"babel-jest": "^26.0.1",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"cross-env": "^7.0.2",
|
||||
"eslint": "^7.2.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-plugin-prettier": "^3.1.3",
|
||||
"jest": "^26.0.1",
|
||||
"prettier": "^2.0.5",
|
||||
"rollup": "^2.22.1",
|
||||
"rollup-plugin-babel": "^4.4.0",
|
||||
"rollup-plugin-commonjs": "^10.1.0",
|
||||
"rollup-plugin-node-resolve": "^5.2.0",
|
||||
"rollup-plugin-postcss": "^3.1.2",
|
||||
"rollup-plugin-terser": "^6.1.0",
|
||||
"ts-jest": "^26.1.0",
|
||||
"typescript": "^3.9.5"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"index.d.ts"
|
||||
],
|
||||
"homepage": "https://emoji-button.js.org",
|
||||
"keywords": [
|
||||
"emoji",
|
||||
"javascript"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
"name": "@joeattardi/emoji-button",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/joeattardi/emoji-button.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production rollup -c",
|
||||
"build:watch": "rollup -cw",
|
||||
"lint": "eslint src/*.ts",
|
||||
"prepublishOnly": "cross-env NODE_ENV=production rollup -c",
|
||||
"prettify": "prettier src/*.ts --write",
|
||||
"test": "jest src/**.test.ts",
|
||||
"test:watch": "jest --watchAll"
|
||||
},
|
||||
"types": "index.d.ts",
|
||||
"version": "4.2.0"
|
||||
}
|
||||
Reference in New Issue
Block a user