Merge pull request #3370 from ethereum/pluginupdate

update plugin
pull/5370/head
yann300 2 years ago committed by GitHub
commit 938be70a84
  1. 25
      apps/remix-ide-e2e/src/local-plugin/src/app/app.tsx
  2. 2
      libs/remix-ui/locale-module/types/locale-module.ts
  3. 2
      libs/remix-ui/run-tab/src/lib/types/run-tab.d.ts
  4. 2
      libs/remix-ui/theme-module/types/theme-module.ts
  5. 2
      libs/remix-ui/workspace/src/lib/actions/index.ts
  6. 2
      libs/remix-ui/workspace/src/lib/components/file-explorer-context-menu.tsx
  7. 2
      libs/remix-ui/workspace/src/lib/components/file-explorer.tsx
  8. 2
      libs/remix-ui/workspace/src/lib/contexts/index.ts
  9. 2
      libs/remix-ui/workspace/src/lib/providers/FileSystemProvider.tsx
  10. 2
      libs/remix-ui/workspace/src/lib/types/index.ts
  11. 8
      libs/remixd/package.json
  12. 14
      package.json
  13. 84
      yarn.lock

@ -2,18 +2,17 @@
import React, { useEffect, useState } from 'react' import React, { useEffect, useState } from 'react'
import { RemixPlugin } from './Client' import { RemixPlugin } from './Client'
import { Logger } from './logger' import { Logger } from './logger'
import { filePanelProfile } from '@remixproject/plugin-api/lib/file-system/file-panel/profile' import { filePanelProfile } from '@remixproject/plugin-api'
import { filSystemProfile } from '@remixproject/plugin-api/lib/file-system/file-manager/profile' import { filSystemProfile } from '@remixproject/plugin-api'
import { dGitProfile } from '@remixproject/plugin-api/lib/dgit/profile' import { dGitProfile } from '@remixproject/plugin-api'
import { editorProfile } from '@remixproject/plugin-api/lib/editor/profile' import { editorProfile } from '@remixproject/plugin-api'
import { settingsProfile } from '@remixproject/plugin-api/lib/settings/profile' import { settingsProfile } from '@remixproject/plugin-api'
import { networkProfile } from '@remixproject/plugin-api/lib/network/profile' import { networkProfile } from '@remixproject/plugin-api'
import { terminalProfile } from '@remixproject/plugin-api/lib/terminal/profile' import { udappProfile } from '@remixproject/plugin-api'
import { udappProfile } from '@remixproject/plugin-api/lib/udapp' import { compilerProfile } from '@remixproject/plugin-api'
import { compilerProfile } from '@remixproject/plugin-api/lib/compiler' import { contentImportProfile } from '@remixproject/plugin-api'
import { contentImportProfile } from '@remixproject/plugin-api/lib/content-import' import { windowProfile } from '@remixproject/plugin-api'
import { windowProfile } from '@remixproject/plugin-api/lib/window' import { pluginManagerProfile } from '@remixproject/plugin-api'
import { pluginManagerProfile } from '@remixproject/plugin-api/lib/plugin-manager'
import { Profile } from '@remixproject/plugin-utils' import { Profile } from '@remixproject/plugin-utils'
import './app.css' import './app.css'
@ -25,7 +24,7 @@ function App () {
const [log, setLog] = useState<any>() const [log, setLog] = useState<any>()
const [started, setStarted] = useState<boolean>(false) const [started, setStarted] = useState<boolean>(false)
const [events, setEvents] = useState<any>() const [events, setEvents] = useState<any>()
const [profiles, setProfiles] = useState<Profile[]>([pluginManagerProfile, filePanelProfile, filSystemProfile, dGitProfile, networkProfile, settingsProfile, editorProfile, terminalProfile, compilerProfile, udappProfile, contentImportProfile, windowProfile]) const [profiles, setProfiles] = useState<Profile[]>([pluginManagerProfile, filePanelProfile, filSystemProfile, dGitProfile, networkProfile, settingsProfile, editorProfile, compilerProfile, udappProfile, contentImportProfile, windowProfile])
const handleChange = ({ target }: any) => { const handleChange = ({ target }: any) => {
setPayload(target.value) setPayload(target.value)

@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
import { Plugin } from "@remixproject/engine/lib/abstract"; import { Plugin } from "@remixproject/engine";
import { EventEmitter } from "events"; import { EventEmitter } from "events";
export interface LocaleModule extends Plugin<any, any> { export interface LocaleModule extends Plugin<any, any> {
currentLocaleState: Record<string, unknown>; currentLocaleState: Record<string, unknown>;

@ -38,7 +38,7 @@ export class RunTab extends ViewPlugin {
recorder: Recorder; recorder: Recorder;
// syncContracts(): void // syncContracts(): void
} }
import { ViewPlugin } from "@remixproject/engine-web/lib/view"; import { ViewPlugin } from "@remixproject/engine-web";
import { Blockchain } from "./blockchain"; import { Blockchain } from "./blockchain";
import { RunTabState } from "../reducers/runTab"; import { RunTabState } from "../reducers/runTab";
import { Recorder } from "./recorder"; import { Recorder } from "./recorder";

@ -1,4 +1,4 @@
import { Plugin } from "@remixproject/engine/lib/abstract"; import { Plugin } from "@remixproject/engine";
import { EventEmitter } from "events"; import { EventEmitter } from "events";
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
export interface ThemeModule extends Plugin<any, any> { export interface ThemeModule extends Plugin<any, any> {

@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
import { extractNameFromKey, createNonClashingNameAsync } from '@remix-ui/helper' import { extractNameFromKey, createNonClashingNameAsync } from '@remix-ui/helper'
import Gists from 'gists' import Gists from 'gists'
import { customAction } from '@remixproject/plugin-api/lib/file-system/file-panel/type' import { customAction } from '@remixproject/plugin-api'
import { displayNotification, displayPopUp, fetchDirectoryError, fetchDirectoryRequest, fetchDirectorySuccess, focusElement, fsInitializationCompleted, hidePopUp, removeInputFieldSuccess, setCurrentWorkspace, setExpandPath, setMode, setWorkspaces } from './payload' import { displayNotification, displayPopUp, fetchDirectoryError, fetchDirectoryRequest, fetchDirectorySuccess, focusElement, fsInitializationCompleted, hidePopUp, removeInputFieldSuccess, setCurrentWorkspace, setExpandPath, setMode, setWorkspaces } from './payload'
import { listenOnPluginEvents, listenOnProviderEvents } from './events' import { listenOnPluginEvents, listenOnProviderEvents } from './events'
import { createWorkspaceTemplate, getWorkspaces, loadWorkspacePreset, setPlugin, workspaceExists } from './workspace' import { createWorkspaceTemplate, getWorkspaces, loadWorkspacePreset, setPlugin, workspaceExists } from './workspace'

@ -3,7 +3,7 @@ import { useIntl } from 'react-intl'
import { action, FileExplorerContextMenuProps } from '../types' import { action, FileExplorerContextMenuProps } from '../types'
import '../css/file-explorer-context-menu.css' import '../css/file-explorer-context-menu.css'
import { customAction } from '@remixproject/plugin-api/lib/file-system/file-panel' import { customAction } from '@remixproject/plugin-api'
declare global { declare global {
interface Window { interface Window {

@ -3,7 +3,7 @@ import { TreeView, TreeViewItem } from '@remix-ui/tree-view' // eslint-disable-l
import { FileExplorerMenu } from './file-explorer-menu' // eslint-disable-line import { FileExplorerMenu } from './file-explorer-menu' // eslint-disable-line
import { FileExplorerContextMenu } from './file-explorer-context-menu' // eslint-disable-line import { FileExplorerContextMenu } from './file-explorer-context-menu' // eslint-disable-line
import { FileExplorerProps, MenuItems, FileExplorerState } from '../types' import { FileExplorerProps, MenuItems, FileExplorerState } from '../types'
import { customAction } from '@remixproject/plugin-api/lib/file-system/file-panel' import { customAction } from '@remixproject/plugin-api'
import { contextMenuActions } from '../utils' import { contextMenuActions } from '../utils'
import '../css/file-explorer.css' import '../css/file-explorer.css'

@ -1,4 +1,4 @@
import { customAction } from '@remixproject/plugin-api/lib/file-system/file-panel/type' import { customAction } from '@remixproject/plugin-api'
import { createContext, SyntheticEvent } from 'react' import { createContext, SyntheticEvent } from 'react'
import { BrowserState } from '../reducers/workspace' import { BrowserState } from '../reducers/workspace'

@ -13,7 +13,7 @@ import { initWorkspace, fetchDirectory, removeInputField, deleteWorkspace, delet
import { Modal, WorkspaceProps, WorkspaceTemplate } from '../types' import { Modal, WorkspaceProps, WorkspaceTemplate } from '../types'
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
import { Workspace } from '../remix-ui-workspace' import { Workspace } from '../remix-ui-workspace'
import { customAction } from '@remixproject/plugin-api/lib/file-system/file-panel/type' import { customAction } from '@remixproject/plugin-api'
export const FileSystemProvider = (props: WorkspaceProps) => { export const FileSystemProvider = (props: WorkspaceProps) => {
const { plugin } = props const { plugin } = props

@ -1,6 +1,6 @@
/* eslint-disable @nrwl/nx/enforce-module-boundaries */ /* eslint-disable @nrwl/nx/enforce-module-boundaries */
import React from 'react' import React from 'react'
import { customAction } from '@remixproject/plugin-api/lib/file-system/file-panel' import { customAction } from '@remixproject/plugin-api'
import { fileDecoration } from '@remix-ui/file-decorators' import { fileDecoration } from '@remix-ui/file-decorators'
import { RemixAppManager } from 'libs/remix-ui/plugin-manager/src/types' import { RemixAppManager } from 'libs/remix-ui/plugin-manager/src/types'
import { ViewPlugin } from '@remixproject/engine-web' import { ViewPlugin } from '@remixproject/engine-web'

@ -27,10 +27,10 @@
}, },
"homepage": "https://github.com/ethereum/remix-project#readme", "homepage": "https://github.com/ethereum/remix-project#readme",
"dependencies": { "dependencies": {
"@remixproject/plugin": "^0.3.11", "@remixproject/plugin": "0.3.33",
"@remixproject/plugin-api": "^0.3.11", "@remixproject/plugin-api": "0.3.33",
"@remixproject/plugin-utils": "^0.3.11", "@remixproject/plugin-utils": "0.3.33",
"@remixproject/plugin-ws": "^0.3.11", "@remixproject/plugin-ws": "0.3.33",
"axios": "1.1.2", "axios": "1.1.2",
"chokidar": "^2.1.8", "chokidar": "^2.1.8",
"commander": "^9.4.1", "commander": "^9.4.1",

@ -132,13 +132,13 @@
"@openzeppelin/contracts": "^4.7.3", "@openzeppelin/contracts": "^4.7.3",
"@openzeppelin/upgrades-core": "^1.22.0", "@openzeppelin/upgrades-core": "^1.22.0",
"@openzeppelin/wizard": "^0.1.1", "@openzeppelin/wizard": "^0.1.1",
"@remixproject/engine": "^0.3.31", "@remixproject/engine": "0.3.33",
"@remixproject/engine-web": "^0.3.31", "@remixproject/engine-web": "0.3.33",
"@remixproject/plugin": "^0.3.31", "@remixproject/plugin": "0.3.33",
"@remixproject/plugin-api": "^0.3.31", "@remixproject/plugin-api": "0.3.33",
"@remixproject/plugin-utils": "^0.3.31", "@remixproject/plugin-utils": "0.3.33",
"@remixproject/plugin-webview": "^0.3.31", "@remixproject/plugin-webview": "0.3.33",
"@remixproject/plugin-ws": "^0.3.31", "@remixproject/plugin-ws": "0.3.33",
"@types/nightwatch": "^2.3.1", "@types/nightwatch": "^2.3.1",
"ansi-gray": "^0.1.1", "ansi-gray": "^0.1.1",
"async": "^2.6.2", "async": "^2.6.2",

@ -5323,63 +5323,63 @@
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.10.2.tgz#0798c03351f0dea1a5a4cabddf26a55a7cbee590" resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.10.2.tgz#0798c03351f0dea1a5a4cabddf26a55a7cbee590"
integrity sha512-IXf3XA7+XyN7CP9gGh/XB0UxVMlvARGEgGXLubFICsUMGz6Q+DU+i4gGlpOxTjKvXjkJDJC8YdqdKkDj9qZHEQ== integrity sha512-IXf3XA7+XyN7CP9gGh/XB0UxVMlvARGEgGXLubFICsUMGz6Q+DU+i4gGlpOxTjKvXjkJDJC8YdqdKkDj9qZHEQ==
"@remixproject/engine-web@^0.3.31": "@remixproject/engine-web@0.3.33":
version "0.3.31" version "0.3.33"
resolved "https://registry.yarnpkg.com/@remixproject/engine-web/-/engine-web-0.3.31.tgz#42ee5c5d874ef9646090342ca8b430e3fe1046e8" resolved "https://registry.yarnpkg.com/@remixproject/engine-web/-/engine-web-0.3.33.tgz#2a444c327cca5bd54bb1e12e2a937c24dde8703f"
integrity sha512-GYeUB4Y0NaVc23mSmVByhx6pCvjzfz8iBbJCwaUB3q61uyRQ1wMM0P/47qqwZMukPi7x4bFUpN41C6rKq7ECug== integrity sha512-YP62Cy6LSYiSw7Aon8ukS/Ut+fX34NIvRPPaJNq0r8F3IgB9vXAuKgOLs5QoIbrDJNb0ddM+0L2sIDWiNN1RtQ==
dependencies: dependencies:
"@remixproject/engine" "0.3.31" "@remixproject/engine" "0.3.33"
"@remixproject/plugin-api" "0.3.31" "@remixproject/plugin-api" "0.3.33"
"@remixproject/plugin-utils" "0.3.31" "@remixproject/plugin-utils" "0.3.33"
"@remixproject/engine@0.3.31", "@remixproject/engine@^0.3.31": "@remixproject/engine@0.3.33":
version "0.3.31" version "0.3.33"
resolved "https://registry.yarnpkg.com/@remixproject/engine/-/engine-0.3.31.tgz#6dcc209dbd993646430335c9454ce1a739d1a45f" resolved "https://registry.yarnpkg.com/@remixproject/engine/-/engine-0.3.33.tgz#c3f15e5eefbd7bc04dda7aee776fa3f3ad460703"
integrity sha512-5VTl9bkeU3fd3IUV8wy7kXHMd3RfnUsf6dlmORM9Np1oMZ9nhdhUsyJO/qXyrvR1PbyJIxPz/qM4+W5MGvOrnQ== integrity sha512-IoWIERfoT407nYcXPJZR03LOBXA3cbAxFXvhmxYrUh658jumljxTwH+SIAbIGew/kKtu0TXyTOr8RBaOb1cEog==
dependencies: dependencies:
"@remixproject/plugin-api" "0.3.31" "@remixproject/plugin-api" "0.3.33"
"@remixproject/plugin-utils" "0.3.31" "@remixproject/plugin-utils" "0.3.33"
"@remixproject/plugin-api@0.3.31", "@remixproject/plugin-api@^0.3.31": "@remixproject/plugin-api@0.3.33":
version "0.3.31" version "0.3.33"
resolved "https://registry.yarnpkg.com/@remixproject/plugin-api/-/plugin-api-0.3.31.tgz#86e7c458c58ff200bd927fd3d642877f4b5a0013" resolved "https://registry.yarnpkg.com/@remixproject/plugin-api/-/plugin-api-0.3.33.tgz#29699f980ea00bebf720961cc0e78887e03903ec"
integrity sha512-LOJRHxORNp7zW8k7//DQz5aZ7eqB7TwhYXrvzqvaryDTvtvJGWrlTHg81hzALynaxZKEWneohxjUxKvGp/eA4g== integrity sha512-fBEbRr6/mgQdfNdRqYQL3yewsPfTxV41F509CngbD6YdY5YKBihJhfGFHbd2rKSyXOgBiHIbe0SsV3OXpFdWnw==
dependencies: dependencies:
"@remixproject/plugin-utils" "0.3.31" "@remixproject/plugin-utils" "0.3.33"
"@remixproject/plugin-utils@0.3.31", "@remixproject/plugin-utils@^0.3.31": "@remixproject/plugin-utils@0.3.33":
version "0.3.31" version "0.3.33"
resolved "https://registry.yarnpkg.com/@remixproject/plugin-utils/-/plugin-utils-0.3.31.tgz#80771e00c1a1b776432abb17b1f4b2e25600d4f6" resolved "https://registry.yarnpkg.com/@remixproject/plugin-utils/-/plugin-utils-0.3.33.tgz#7b697403031598276baaf16bb82d6c62062053fc"
integrity sha512-OOAjoSd+ErBMrcNQEh80NU3BjJ9fHXuftRfy5Ul9aGXN3b1LJSNVvfrG+FxX6lpyaAK5JBj+aB9pgFozgb2wlw== integrity sha512-cAo21ot4/G5BkN8ypDwg8MMCrEmLdXwMd3lQZUeB5enPC3KxmzQz71+OgEYl718Hwy+GtHaLq17FEXCHC5YV9w==
dependencies: dependencies:
tslib "2.0.1" tslib "2.0.1"
"@remixproject/plugin-webview@^0.3.31": "@remixproject/plugin-webview@0.3.33":
version "0.3.31" version "0.3.33"
resolved "https://registry.yarnpkg.com/@remixproject/plugin-webview/-/plugin-webview-0.3.31.tgz#e5cce7d0089439b35aee4ab2a724add1e5d36b40" resolved "https://registry.yarnpkg.com/@remixproject/plugin-webview/-/plugin-webview-0.3.33.tgz#97393ee1c9511009f5f299698987e29f946c106b"
integrity sha512-8yoKwIkRi9S+rqvFShNt01FfXX0H/Fijn7UkWFWJ/V6ULcw2cw9ViCz8cYZLhNUpxqezyu/LKDQL9g1TbJJoYw== integrity sha512-cMwpRzgL7rfTQKlLuTuyYyFvo4hiZ6nsDX9FfLRjGJpgCDUsSmOA0JvGv+/GsyZvpSo4FXL/0TQKTgm0t78Ocg==
dependencies: dependencies:
"@remixproject/plugin" "0.3.31" "@remixproject/plugin" "0.3.33"
"@remixproject/plugin-api" "0.3.31" "@remixproject/plugin-api" "0.3.33"
"@remixproject/plugin-utils" "0.3.31" "@remixproject/plugin-utils" "0.3.33"
axios "^0.21.1" axios "^0.21.1"
"@remixproject/plugin-ws@^0.3.31": "@remixproject/plugin-ws@0.3.33":
version "0.3.31" version "0.3.33"
resolved "https://registry.yarnpkg.com/@remixproject/plugin-ws/-/plugin-ws-0.3.31.tgz#a2bb415cc32a5b036b9b3759520088b8ceaa0d5a" resolved "https://registry.yarnpkg.com/@remixproject/plugin-ws/-/plugin-ws-0.3.33.tgz#98a003e83ffafb5a7a35ca4e8c59d849ecb017cf"
integrity sha512-Z4G6vkGxxCP+ibGNHAvNaFjYE4hbsazOEL50pMnda6LZNci9akMSiI/1MIZscVSMU8l2sYOoNUsWvLfLkIkYKQ== integrity sha512-Zkp8MK8jxnNm3uruu0dF8vqeh90JsLXttJP4LZF0HaStRRK4d2XG6CgE5mBiC2J4uTEwGP26H/vmqi+POBPTEg==
dependencies: dependencies:
"@remixproject/plugin" "0.3.31" "@remixproject/plugin" "0.3.33"
"@remixproject/plugin-api" "0.3.31" "@remixproject/plugin-api" "0.3.33"
"@remixproject/plugin-utils" "0.3.31" "@remixproject/plugin-utils" "0.3.33"
"@remixproject/plugin@0.3.31", "@remixproject/plugin@^0.3.31": "@remixproject/plugin@0.3.33":
version "0.3.31" version "0.3.33"
resolved "https://registry.yarnpkg.com/@remixproject/plugin/-/plugin-0.3.31.tgz#b6c6b58d2c7964e37024eeca4819c70ece1f3953" resolved "https://registry.yarnpkg.com/@remixproject/plugin/-/plugin-0.3.33.tgz#2939cdb6a1231743d7f00c10f5ea47eddd49b602"
integrity sha512-9ntMU9CzStloahm/wXt4V8n64ERgJzY5nG0bzQfjnI12knrdTmUo+LC42M2xaTBDDP9CzMPdqClg7XhhRLzohA== integrity sha512-ia6LevsWYPkcRwOBl3umA2fPCgYt2TmB437Pafs9BE6fD9judEvlvEqXjBy9GLBsZzZWSiyYenOnW8HIiwqfMA==
dependencies: dependencies:
"@remixproject/plugin-api" "0.3.31" "@remixproject/plugin-api" "0.3.33"
"@remixproject/plugin-utils" "0.3.31" "@remixproject/plugin-utils" "0.3.33"
events "3.2.0" events "3.2.0"
"@restart/context@^2.1.4": "@restart/context@^2.1.4":

Loading…
Cancel
Save