Skip to content

Conversation

@yashop7
Copy link

@yashop7 yashop7 commented Sep 2, 2025

This PR upgrades the whiteboard integration in Jitsi Meet to use the latest Excalidraw release jitsi/excalidraw#8

@jitsi-jenkins
Copy link

Hi, thanks for your contribution!
If you haven't already done so, could you please make sure you sign our CLA (https://jitsi.org/icla for individuals and https://jitsi.org/ccla for corporations)? We would unfortunately be unable to merge your patch unless we have that piece :(.

package.json Outdated
"react-youtube": "10.1.0",
"redux": "4.0.4",
"redux-thunk": "2.4.1",
"roughjs": "^4.6.4",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a peer dependency for this in our package, rather than require ie be here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking into this

import React, { useCallback, useEffect, useRef } from 'react';
import { WithTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import "@jitsi/excalidraw/index.css";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why sis this needed now?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they have updated their implementation, figured this out after reading their docs, mentioned under excalidraw Wrapper, https://docs.excalidraw.com/docs/@excalidraw/excalidraw/integration

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason in the Module Bundler example it doesn't import the CSS. Can you check if it works without it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No Saul, Whiteboard is not working, If I am removing this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we import it in ExcalidrawApp instead?

}, {
test: /\.m?js$/,
resolve: {
fullySpecified: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this do?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes module imports more flexible and prevents build errors from incomplete import path, which are present in the excalidraw codebase

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to apply that to the Excalidraw package only?

Does disabling chunking on the build help in any way?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed roughjs from the project dependencies and also removed this part of the code

Added roughjs as a dependency inside the excalidraw package, and configured an alias for roughjs in the webpack file, since Excalidraw was using incomplete import paths from roughjs folders

theme: 'light',
UIOptions: WHITEBOARD_UI_OPTIONS
UIOptions: {
...WHITEBOARD_UI_OPTIONS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary change.

import React, { useCallback, useEffect, useRef } from 'react';
import { WithTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import "@jitsi/excalidraw/index.css";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we import it in ExcalidrawApp instead?

@catFurr
Copy link

catFurr commented Oct 6, 2025

This is a really exciting update. Any idea on if it can be completed ?

Happy to help if needed.

@saghul
Copy link
Member

saghul commented Oct 6, 2025

We are almost there, it's a GSoC project.

@jiyeyuran
Copy link
Contributor

show error: Uncaught Error: Cannot find module 'firebase/app'

@yashop7 yashop7 marked this pull request as draft October 18, 2025 21:23
@yashop7
Copy link
Author

yashop7 commented Oct 18, 2025

Hey @jiyeyuran, work is in progress for the new excalidraw, in the latest version Firebase will be replaced with the S3 compatible backend for storage

@jiyeyuran
Copy link
Contributor

jiyeyuran commented Oct 19, 2025

Hey @jiyeyuran, work is in progress for the new excalidraw, in the latest version Firebase will be replaced with the S3 compatible backend for storage

OK,I thought the latest tag 0.18.1 is stable.It seems that jitsi/excalidraw needs some options to let users provide the getFiles and saveFiles methods for FileManager.

@yashop7 yashop7 marked this pull request as ready for review October 22, 2025 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants