Skip to content

Commit

Permalink
ADD: PopperV2 has replaced vue-tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinfaveri committed Feb 16, 2020
1 parent e345485 commit 32b62c5
Show file tree
Hide file tree
Showing 14 changed files with 573 additions and 176 deletions.
10 changes: 6 additions & 4 deletions docs/.vuepress/components/ChildBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ export default {
type: String
}
},
data: () => ({
parsedTitle: null,
parsedContent: null
}),
data() {
return {
parsedTitle: null,
parsedContent: null
}
},
mounted() {
this.parsedTitle = Twemoji.parse(this.title);
this.parsedContent = Twemoji.parse(this.content);
Expand Down
5 changes: 1 addition & 4 deletions docs/.vuepress/components/TwemojiPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
:emojiGroups="emojiGroups"
:skinsSelection="false"
:searchEmojisFeat="true"
:appendToBody="true"
searchEmojiPlaceholder="Search here."
searchEmojiNotFound="Emojis not found."
isLoadingLabel="Loading..."
Expand All @@ -14,9 +13,7 @@
</template>

<script>
import {
TwemojiPicker
} from '@kevinfaguiar/vue-twemoji-picker';
import { TwemojiPicker }from '@kevinfaguiar/vue-twemoji-picker';
import EmojiAllData from '@kevinfaguiar/vue-twemoji-picker/emoji-data/en/emoji-all-groups.json';
import EmojiDataAnimalsNature from '@kevinfaguiar/vue-twemoji-picker/emoji-data/en/emoji-group-animals-nature.json';
import EmojiDataFoodDrink from '@kevinfaguiar/vue-twemoji-picker/emoji-data/en/emoji-group-food-drink.json';
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/components/TwemojiTextarea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:enableSendBtn="true"
:recentEmojisFeat="true"
:searchEmojisFeat="true"
:appendToBody="true">
>
</twemoji-textarea>
</div>
</template>
Expand Down
4 changes: 4 additions & 0 deletions docs/docs/changelog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ title: 'Changelog'

# Changelog

## 5.2.0

- The popover dependency has been updated (vue-tooltip -> popper.js v2) for achieving a better bundle size.

## 5.1.1

- EmojiService and TextareaParser added to the default export.
Expand Down
1 change: 0 additions & 1 deletion docs/docs/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default {
:emojiGroups="emojiGroups"
:skinsSelection="false"
:searchEmojisFeat="true"
:appendToBody="true"
searchEmojiPlaceholder="Search here."
searchEmojiNotFound="Emojis not found."
isLoadingLabel="Loading..."
Expand Down
13 changes: 10 additions & 3 deletions docs/docs/twemoji-picker-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,18 @@ Define the emoji picker width (in pixels).

Define the emoji picker initial height and max height (in pixels).

### appendToBody
### pickerPlacement
- Type: ``string``
- Default ``top``
- Valid Props: ``['top-start', 'top', 'top-end', 'bottom-start', 'bottom', 'bottom-right', 'left-start', 'left', 'left-end', 'right-start', 'right', 'right-end']``

Define the emoji picker placement position.

### pickerArrowEnabled
- Type: ``boolean``
- Default: ``false``
- Default ``true``

Define if the emoji picker will bind to body if true; or to parent element if false.
Define whether the emoji picker should render a reference arrow.

### triggerType
- Type: ``string``
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kevinfaguiar/vue-twemoji-picker",
"version": "5.1.1",
"version": "5.2.0",
"main": "dist/vue-twemoji-picker.umd.js",
"module": "dist/vue-twemoji-picker.esm.js",
"unpkg": "dist/vue-twemoji-picker.min.js",
Expand Down Expand Up @@ -30,8 +30,9 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"@popperjs/core": "^2.0.6",
"twemoji": "^12.1.5",
"v-tooltip": "^3.0.0-alpha.11"
"vue-clickaway": "^2.2.2"
},
"devDependencies": {
"@kevinfaguiar/vue-twemoji-picker": "5.1.1",
Expand All @@ -43,6 +44,7 @@
"@types/jest": "^25.1.2",
"@types/node": "^13.7.0",
"@types/twemoji": "^12.1.0",
"@types/vue-clickaway": "^2.2.0",
"@typescript-eslint/eslint-plugin": "^2.19.2",
"@typescript-eslint/parser": "^2.19.2",
"@vue/babel-preset-app": "^4.2.2",
Expand Down
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>Vue Twemoji Picker - Deprecated Docs</title>
<title>Vue Twemoji Picker - Sandbox</title>
</head>
<body>
<noscript>
<strong>We're sorry but Vue Twemoji Picker - Deprecated Docs doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong>We're sorry but Vue Twemoji Picker - Sandbox doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
Expand Down
Loading

0 comments on commit 32b62c5

Please sign in to comment.