diff --git a/manifest.json b/manifest.json index 785f22a..249d80c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "requiredSdkVersion": "~0.0.72", + "requiredSdkVersion": "~0.0.84", "name": "TourPlugin", "javascriptEntrypointUrl": "TourPlugin.js" } diff --git a/package-lock.json b/package-lock.json index f9b0f4f..da7ac87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@types/react": "^18.2.13", "@types/react-dom": "^18.2.6", "babel-plugin-syntax-dynamic-import": "^6.18.0", - "bigbluebutton-html-plugin-sdk": "0.0.72", + "bigbluebutton-html-plugin-sdk": "0.0.84", "browser-bunyan": "^1.8.0", "path": "^0.12.7", "react": "^18.2.0", @@ -3676,10 +3676,9 @@ "license": "MIT" }, "node_modules/bigbluebutton-html-plugin-sdk": { - "version": "0.0.72", - "resolved": "https://registry.npmjs.org/bigbluebutton-html-plugin-sdk/-/bigbluebutton-html-plugin-sdk-0.0.72.tgz", - "integrity": "sha512-Vme+u/EZGnHSV2iEc3XGUgI1T1ILxCIb4VJ1/gRDIjeNQNHLTKXAZ3JPBSlSqAhtvYFEeyqK5VcbPCxRVKB5Sw==", - "license": "LGPL-3.0", + "version": "0.0.84", + "resolved": "https://registry.npmjs.org/bigbluebutton-html-plugin-sdk/-/bigbluebutton-html-plugin-sdk-0.0.84.tgz", + "integrity": "sha512-ZaCrwxyYUv2G7HZGfOqPWZzK6QBucb7BEFS/sBuwyJhvlfMKKMdmrYdfDETZ0cGjEV4neFxf1KyCjtpQTm9+iA==", "dependencies": { "@apollo/client": "^3.8.7", "@browser-bunyan/console-formatted-stream": "^1.8.0", diff --git a/package.json b/package.json index fe71d9e..8292990 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "@types/react-dom": "^18.2.6", "@types/react": "^18.2.13", "babel-plugin-syntax-dynamic-import": "^6.18.0", - "bigbluebutton-html-plugin-sdk": "0.0.72", + "bigbluebutton-html-plugin-sdk": "0.0.84", "browser-bunyan": "^1.8.0", "path": "^0.12.7", "react-chat-elements": "^12.0.14", diff --git a/src/tour/component.tsx b/src/tour/component.tsx index ebfc8bb..031aa24 100644 --- a/src/tour/component.tsx +++ b/src/tour/component.tsx @@ -7,7 +7,7 @@ import { IntlShape, createIntl, defineMessages } from 'react-intl'; import { BbbPluginSdk, OptionsDropdownOption, PluginApi, pluginLogger, UserListUiDataNames, IntlLocaleUiDataNames, - LayoutPresentatioAreaUiDataNames, UiLayouts, + LayoutPresentationAreaUiDataNames, UiLayouts, } from 'bigbluebutton-html-plugin-sdk'; import { TourPluginProps, Settings, ClientSettingsSubscriptionResultType } from './types'; import getTourFeatures from './getTourFeatures'; @@ -91,10 +91,13 @@ function TourPlugin( fallbackLocale: 'en', }); - const layoutInformation = pluginApi.useUiData(LayoutPresentatioAreaUiDataNames.CURRENT_ELEMENT, [{ - isOpen: presentationInitiallyOpened, - currentElement: UiLayouts.WHITEBOARD, - }]); + const layoutInformation = pluginApi.useUiData( + LayoutPresentationAreaUiDataNames.CURRENT_ELEMENT, + [{ + isOpen: presentationInitiallyOpened, + currentElement: UiLayouts.WHITEBOARD, + }], + ); // TODO revisit when fixed // const settings = pluginApi.usePluginSettings()?.data; diff --git a/tsconfig.json b/tsconfig.json index b522c05..ba16cb7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "module": "es6", "target": "es5", "jsx": "react", + "skipLibCheck": true, "allowJs": true, "moduleResolution": "node" }, diff --git a/webpack.config.js b/webpack.config.js index 9ccef00..36044cb 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,7 +8,7 @@ module.exports = { filename: 'TourPlugin.js', library: 'TourPlugin', libraryTarget: 'umd', - publicPath: '/static/', + publicPath: '/', globalObject: 'this', }, devServer: {