Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: emoji-mart package for @campsite-software #913

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions packages/emoji-mart/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"name": "emoji-mart",
"version": "5.6.0",
"name": "@campsite-software/emoji-mart",
"version": "5.6.1-reactive-store.1",
"description": "Emoji picker for the web",
"license": "MIT",
"homepage": "https://missiveapp.com/open/emoji-mart",
"homepage": "https://github.com/campsite/emoji-mart",
"repository": {
"type": "git",
"url": "https://github.com/missive/emoji-mart",
"url": "https://github.com/campsite/emoji-mart",
"directory": "packages/emoji-mart"
},
"publishConfig": {
"access": "public"
},
"source": "src/index.ts",
"types": "dist/index.d.ts",
"main": "dist/main.js",
Expand Down
2 changes: 2 additions & 0 deletions packages/emoji-mart/src/components/Picker/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export default class Picker extends Component {
const nextState = this.getInitialState()

if (requiresGridReset) {
console.log('picker requires grid reset')
return this.reset(nextState)
}

Expand All @@ -109,6 +110,7 @@ export default class Picker extends Component {
}

async reset(nextState = {}) {
console.log('picker reset init')
await init(this.props)

this.initGrid()
Expand Down
2 changes: 2 additions & 0 deletions packages/emoji-mart/src/components/Picker/PickerElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export default class PickerElement extends ShadowElement {
this.component = component
}

console.log('picker connected callback', props)

await init(props)
if (this.disconnected) return

Expand Down
2 changes: 2 additions & 0 deletions packages/emoji-mart/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function init(options, { caller } = {}) {
}

async function _init(props) {
console.log('init', Data)
initialized = true

let { emojiVersion, set, locale } = props
Expand Down Expand Up @@ -249,6 +250,7 @@ async function _init(props) {
}

if (resetSearchIndex) {
console.log('init reset search index')
SearchIndex.reset()
}

Expand Down
Loading