build: upgrade packages
This commit is contained in:
+13
-13
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "rustchat-web",
|
||||
"version": "0.2.9",
|
||||
"version": "0.2.11",
|
||||
"private": true,
|
||||
"homepage": "https://privoce.rustchat.com",
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.18.2",
|
||||
"@emoji-mart/data": "^1.0.1",
|
||||
"@emoji-mart/data": "^1.0.2",
|
||||
"@metamask/onboarding": "^1.0.1",
|
||||
"@microsoft/fetch-event-source": "^2.0.1",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
||||
@@ -15,7 +15,7 @@
|
||||
"@toast-ui/editor": "^3.1.7",
|
||||
"@toast-ui/editor-plugin-code-syntax-highlight": "^3.0.0",
|
||||
"@toast-ui/react-editor": "^3.1.7",
|
||||
"@udecode/plate": "^11.1.1",
|
||||
"@udecode/plate": "^11.2.1",
|
||||
"@uiball/loaders": "^1.2.6",
|
||||
"animate.css": "^4.1.1",
|
||||
"babel-loader": "^8.2.5",
|
||||
@@ -31,7 +31,7 @@
|
||||
"dotenv": "^16.0.1",
|
||||
"dotenv-expand": "^8.0.3",
|
||||
"emoji-mart": "3.0.1",
|
||||
"eslint": "^8.16.0",
|
||||
"eslint": "^8.17.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"firebase": "^9.8.2",
|
||||
"fs-extra": "^10.1.0",
|
||||
@@ -52,7 +52,7 @@
|
||||
"react-google-login": "^5.2.2",
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-hot-toast": "^2.2.0",
|
||||
"react-icons": "^4.3.1",
|
||||
"react-icons": "^4.4.0",
|
||||
"react-infinite-scroll-component": "^6.1.0",
|
||||
"react-infinite-scroller": "^1.2.6",
|
||||
"react-linkify": "^1.0.0-alpha",
|
||||
@@ -66,17 +66,17 @@
|
||||
"resolve": "^1.22.0",
|
||||
"rooks": "^5.11.2",
|
||||
"semver": "^7.3.7",
|
||||
"slate": "^0.80.0",
|
||||
"slate": "^0.81.0",
|
||||
"slate-history": "^0.66.0",
|
||||
"slate-react": "^0.80.0",
|
||||
"slate-react": "^0.81.0",
|
||||
"source-map-loader": "^3.0.1",
|
||||
"style-loader": "^3.3.1",
|
||||
"styled-components": "^5.3.5",
|
||||
"styled-reset": "^4.4.1",
|
||||
"terser-webpack-plugin": "^5.3.1",
|
||||
"terser-webpack-plugin": "^5.3.3",
|
||||
"tippy.js": "^6.3.7",
|
||||
"webpack": "^5.72.1",
|
||||
"webpack-dev-server": "^4.9.0",
|
||||
"webpack": "^5.73.0",
|
||||
"webpack-dev-server": "^4.9.1",
|
||||
"webpack-manifest-plugin": "^5.0.0",
|
||||
"workbox-background-sync": "^6.5.3",
|
||||
"workbox-broadcast-update": "^6.5.3",
|
||||
@@ -120,8 +120,8 @@
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^17.0.1",
|
||||
"@commitlint/config-conventional": "^17.0.0",
|
||||
"@commitlint/cli": "^17.0.2",
|
||||
"@commitlint/config-conventional": "^17.0.2",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-prettier": "^4.0.0",
|
||||
@@ -129,7 +129,7 @@
|
||||
"eslint-plugin-react-hooks": "^4.5.0",
|
||||
"gh-pages": "^4.0.0",
|
||||
"husky": "^8.0.1",
|
||||
"lint-staged": "^12.4.3",
|
||||
"lint-staged": "^13.0.0",
|
||||
"patch-package": "^6.4.7",
|
||||
"postinstall-postinstall": "^2.1.0",
|
||||
"prettier": "^2.6.2"
|
||||
|
||||
@@ -1,182 +0,0 @@
|
||||
diff --git a/node_modules/@udecode/plate-ui-dnd/node_modules/react-dnd/dist/esm/core/DndProvider.mjs b/node_modules/@udecode/plate-ui-dnd/node_modules/react-dnd/dist/esm/core/DndProvider.mjs
|
||||
index 85f60c1..9041631 100644
|
||||
--- a/node_modules/@udecode/plate-ui-dnd/node_modules/react-dnd/dist/esm/core/DndProvider.mjs
|
||||
+++ b/node_modules/@udecode/plate-ui-dnd/node_modules/react-dnd/dist/esm/core/DndProvider.mjs
|
||||
@@ -1,94 +1,101 @@
|
||||
function _objectWithoutProperties(source, excluded) {
|
||||
- if (source == null) return {};
|
||||
- var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
- var key, i;
|
||||
- if (Object.getOwnPropertySymbols) {
|
||||
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
||||
- for(i = 0; i < sourceSymbolKeys.length; i++){
|
||||
- key = sourceSymbolKeys[i];
|
||||
- if (excluded.indexOf(key) >= 0) continue;
|
||||
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
||||
- target[key] = source[key];
|
||||
- }
|
||||
+ if (source == null) return {};
|
||||
+ var target = _objectWithoutPropertiesLoose(source, excluded);
|
||||
+ var key, i;
|
||||
+ if (Object.getOwnPropertySymbols) {
|
||||
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
||||
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
|
||||
+ key = sourceSymbolKeys[i];
|
||||
+ if (excluded.indexOf(key) >= 0) continue;
|
||||
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
||||
+ target[key] = source[key];
|
||||
}
|
||||
- return target;
|
||||
+ }
|
||||
+ return target;
|
||||
}
|
||||
function _objectWithoutPropertiesLoose(source, excluded) {
|
||||
- if (source == null) return {};
|
||||
- var target = {};
|
||||
- var sourceKeys = Object.keys(source);
|
||||
- var key, i;
|
||||
- for(i = 0; i < sourceKeys.length; i++){
|
||||
- key = sourceKeys[i];
|
||||
- if (excluded.indexOf(key) >= 0) continue;
|
||||
- target[key] = source[key];
|
||||
- }
|
||||
- return target;
|
||||
+ if (source == null) return {};
|
||||
+ var target = {};
|
||||
+ var sourceKeys = Object.keys(source);
|
||||
+ var key, i;
|
||||
+ for (i = 0; i < sourceKeys.length; i++) {
|
||||
+ key = sourceKeys[i];
|
||||
+ if (excluded.indexOf(key) >= 0) continue;
|
||||
+ target[key] = source[key];
|
||||
+ }
|
||||
+ return target;
|
||||
}
|
||||
-import { jsx as _jsx } from "react/jsx-runtime.js";
|
||||
-import { useEffect, memo } from 'react';
|
||||
-import { createDragDropManager } from 'dnd-core';
|
||||
-import { DndContext } from './DndContext.mjs';
|
||||
+import { jsx as _jsx } from "react/jsx-runtime";
|
||||
+import { useEffect, memo } from "react";
|
||||
+import { createDragDropManager } from "dnd-core";
|
||||
+import { DndContext } from "./DndContext.mjs";
|
||||
let refCount = 0;
|
||||
-const INSTANCE_SYM = Symbol.for('__REACT_DND_CONTEXT_INSTANCE__');
|
||||
+const INSTANCE_SYM = Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");
|
||||
var DndProvider = /*#__PURE__*/ memo(function DndProvider(_param) {
|
||||
- var { children } = _param, props = _objectWithoutProperties(_param, [
|
||||
- "children"
|
||||
- ]);
|
||||
- const [manager, isGlobalInstance] = getDndContextValue(props) // memoized from props
|
||||
- ;
|
||||
- /**
|
||||
- * If the global context was used to store the DND context
|
||||
- * then where theres no more references to it we should
|
||||
- * clean it up to avoid memory leaks
|
||||
- */ useEffect(()=>{
|
||||
- if (isGlobalInstance) {
|
||||
- const context = getGlobalContext();
|
||||
- ++refCount;
|
||||
- return ()=>{
|
||||
- if (--refCount === 0) {
|
||||
- context[INSTANCE_SYM] = null;
|
||||
- }
|
||||
- };
|
||||
+ var { children } = _param,
|
||||
+ props = _objectWithoutProperties(_param, ["children"]);
|
||||
+ const [manager, isGlobalInstance] = getDndContextValue(props); // memoized from props
|
||||
+ /**
|
||||
+ * If the global context was used to store the DND context
|
||||
+ * then where theres no more references to it we should
|
||||
+ * clean it up to avoid memory leaks
|
||||
+ */ useEffect(() => {
|
||||
+ if (isGlobalInstance) {
|
||||
+ const context = getGlobalContext();
|
||||
+ ++refCount;
|
||||
+ return () => {
|
||||
+ if (--refCount === 0) {
|
||||
+ context[INSTANCE_SYM] = null;
|
||||
}
|
||||
- return;
|
||||
- }, []);
|
||||
- return /*#__PURE__*/ _jsx(DndContext.Provider, {
|
||||
- value: manager,
|
||||
- children: children
|
||||
- });
|
||||
+ };
|
||||
+ }
|
||||
+ return;
|
||||
+ }, []);
|
||||
+ return /*#__PURE__*/ _jsx(DndContext.Provider, {
|
||||
+ value: manager,
|
||||
+ children: children,
|
||||
+ });
|
||||
});
|
||||
/**
|
||||
* A React component that provides the React-DnD context
|
||||
- */ export { DndProvider, };
|
||||
+ */ export { DndProvider };
|
||||
function getDndContextValue(props) {
|
||||
- if ('manager' in props) {
|
||||
- const manager = {
|
||||
- dragDropManager: props.manager
|
||||
- };
|
||||
- return [
|
||||
- manager,
|
||||
- false
|
||||
- ];
|
||||
- }
|
||||
- const manager = createSingletonDndContext(props.backend, props.context, props.options, props.debugMode);
|
||||
- const isGlobalInstance = !props.context;
|
||||
- return [
|
||||
- manager,
|
||||
- isGlobalInstance
|
||||
- ];
|
||||
+ if ("manager" in props) {
|
||||
+ const manager = {
|
||||
+ dragDropManager: props.manager,
|
||||
+ };
|
||||
+ return [manager, false];
|
||||
+ }
|
||||
+ const manager = createSingletonDndContext(
|
||||
+ props.backend,
|
||||
+ props.context,
|
||||
+ props.options,
|
||||
+ props.debugMode
|
||||
+ );
|
||||
+ const isGlobalInstance = !props.context;
|
||||
+ return [manager, isGlobalInstance];
|
||||
}
|
||||
-function createSingletonDndContext(backend, context = getGlobalContext(), options, debugMode) {
|
||||
- const ctx = context;
|
||||
- if (!ctx[INSTANCE_SYM]) {
|
||||
- ctx[INSTANCE_SYM] = {
|
||||
- dragDropManager: createDragDropManager(backend, context, options, debugMode)
|
||||
- };
|
||||
- }
|
||||
- return ctx[INSTANCE_SYM];
|
||||
+function createSingletonDndContext(
|
||||
+ backend,
|
||||
+ context = getGlobalContext(),
|
||||
+ options,
|
||||
+ debugMode
|
||||
+) {
|
||||
+ const ctx = context;
|
||||
+ if (!ctx[INSTANCE_SYM]) {
|
||||
+ ctx[INSTANCE_SYM] = {
|
||||
+ dragDropManager: createDragDropManager(
|
||||
+ backend,
|
||||
+ context,
|
||||
+ options,
|
||||
+ debugMode
|
||||
+ ),
|
||||
+ };
|
||||
+ }
|
||||
+ return ctx[INSTANCE_SYM];
|
||||
}
|
||||
function getGlobalContext() {
|
||||
- return typeof global !== 'undefined' ? global : window;
|
||||
+ return typeof global !== "undefined" ? global : window;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=DndProvider.mjs.map
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// const BASE_URL = `${location.origin}/api`;
|
||||
const BASE_URL = `https://dev.rustchat.com/api`;
|
||||
export const CACHE_VERSION = `0.2.16`;
|
||||
export const CACHE_VERSION = `0.2.17`;
|
||||
export const ContentTypes = {
|
||||
text: "text/plain",
|
||||
markdown: "text/markdown",
|
||||
|
||||
Reference in New Issue
Block a user