Remove clsx dependency

Cuz it doesn't exist in `common` anyways
This commit is contained in:
Austin Chen 2022-07-21 16:00:02 -07:00
parent 0b2e83f75f
commit 41afcaa0e7

View File

@ -1,7 +1,6 @@
// Adopted from https://github.com/ueberdosis/tiptap/blob/main/demos/src/Experiments/Embeds/Vue/iframe.ts // Adopted from https://github.com/ueberdosis/tiptap/blob/main/demos/src/Experiments/Embeds/Vue/iframe.ts
import { Node } from '@tiptap/core' import { Node } from '@tiptap/core'
import clsx from 'clsx'
export interface IframeOptions { export interface IframeOptions {
allowFullscreen: boolean allowFullscreen: boolean
@ -34,7 +33,7 @@ export default Node.create<IframeOptions>({
return { return {
allowFullscreen: true, allowFullscreen: true,
HTMLAttributes: { HTMLAttributes: {
class: clsx('iframe-wrapper', wrapperClasses), class: 'iframe-wrapper' + ' ' + wrapperClasses,
// Tailwind JIT doesn't seem to pick up `pb-[20rem]`, so we hack this in: // Tailwind JIT doesn't seem to pick up `pb-[20rem]`, so we hack this in:
style: 'padding-bottom: 20rem;', style: 'padding-bottom: 20rem;',
}, },
@ -68,7 +67,7 @@ export default Node.create<IframeOptions>({
'iframe', 'iframe',
{ {
...HTMLAttributes, ...HTMLAttributes,
class: clsx(HTMLAttributes.class, iframeClasses), class: HTMLAttributes.class + ' ' + iframeClasses,
}, },
], ],
] ]