Catalog npm
Back to packageRELEASE DETAILS

0.10.57

npm

5e-editor

1. 具有@功能的编辑器, 由于回显的中文是通过 企业微信的 open-data 组件

Published21 Apr 2022
Direct dependencies26
Transitive dependenciesNot calculated

README

Current package documentation

editor

  1. 具有@功能的编辑器, 由于回显的中文是通过 企业微信的 open-data 组件

how to

  • yarn start 开启本地调试功能

  • yarn build 本地打包

项目结构

src - component 基础组件 - editor 编辑器组件 - element 渲染的节点类型 - global 全局的文件 - leaf 行内的样式: 加粗,下划线... - plugins 插件模块

interface Props {
  // readonly 编辑器是否
  readonly: boolean
  // value
  data?: any[]
  // selectArr 可以被选中的人
  selectArr?: any[]

  // insetNodes (外部插入节点: 重置 + 插入)
  operateNodes?: {
    type: string
    nodes: any // 
  } // {type: 'insert', nodes: {openId: 'xxx', type:'useName', id: 666}}
  // className
  classNames?: string
  // mentionPosition @出现的位置 pc端使用
  mentionPosition?: {
    top?: boolean
    right?: boolean
  }
  // changeValue
  changeValue?(s: any): void

  // search 开始搜索
  onSearch?(s: string): void
}

TODO

  • 拓展plugins, 支持开箱即用的方式
  • 解偶硬编码, 发布成插件的使用

参考文章

  1. api文档

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 28

Native requirements
26 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
5e-slate-react
Environment
{
  "local_name": "5e-slate-react",
  "alias": false,
  "peer_metadata": null
}
^1.0.3runtime
slate
Environment
{
  "local_name": "slate",
  "alias": false,
  "peer_metadata": null
}
^0.66.5runtime
slate-history
Environment
{
  "local_name": "slate-history",
  "alias": false,
  "peer_metadata": null
}
^0.66.0runtime
slate-react
Environment
{
  "local_name": "slate-react",
  "alias": false,
  "peer_metadata": null
}
^0.66.7runtime
styled-components
Environment
{
  "local_name": "styled-components",
  "alias": false,
  "peer_metadata": null
}
^5.3.0runtime
5e-hooks
Environment
{
  "local_name": "5e-hooks",
  "alias": false,
  "peer_metadata": null
}
^0.0.2development
@storybook/addon-info
Environment
{
  "local_name": "@storybook/addon-info",
  "alias": false,
  "peer_metadata": null
}
^5.3.19development
@storybook/react
Environment
{
  "local_name": "@storybook/react",
  "alias": false,
  "peer_metadata": null
}
^5.3.19development
@testing-library/react-hooks
Environment
{
  "local_name": "@testing-library/react-hooks",
  "alias": false,
  "peer_metadata": null
}
^3.3.0development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^26.0.0development
@types/react
Environment
{
  "local_name": "@types/react",
  "alias": false,
  "peer_metadata": null
}
^16.9.38development
@types/react-dom
Environment
{
  "local_name": "@types/react-dom",
  "alias": false,
  "peer_metadata": null
}
^17.0.5development
@types/styled-components
Environment
{
  "local_name": "@types/styled-components",
  "alias": false,
  "peer_metadata": null
}
^5.1.9development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
^4.25.0development
babel-loader
Environment
{
  "local_name": "babel-loader",
  "alias": false,
  "peer_metadata": null
}
^8.2.1development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^7.3.1development
eslint-config-5e
Environment
{
  "local_name": "eslint-config-5e",
  "alias": false,
  "peer_metadata": null
}
^0.0.11development
jest
Environment
{
  "local_name": "jest",
  "alias": false,
  "peer_metadata": null
}
^26.1.0development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^2.0.5development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^16.13.1development
react-docgen-typescript-loader
Environment
{
  "local_name": "react-docgen-typescript-loader",
  "alias": false,
  "peer_metadata": null
}
^3.7.2development
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
^17.0.2development
react-test-renderer
Environment
{
  "local_name": "react-test-renderer",
  "alias": false,
  "peer_metadata": null
}
^16.13.1development
ts-jest
Environment
{
  "local_name": "ts-jest",
  "alias": false,
  "peer_metadata": null
}
^26.1.1development
ts-loader
Environment
{
  "local_name": "ts-loader",
  "alias": false,
  "peer_metadata": null
}
^7.0.5development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^3.9.5development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
>=16.8.0peer
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
>=16.8.0peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-4IsqaspFUAN0yNrpxAwLVTMKC7Oqrkofr6TEWv/TKaKfOA6eE+QYs99TW58sZjzAvSKvZbOfJhxqNIgvxT0tTg==",
  "shasum": "ecc9ac5eab727fac7e9cf7529623f65631ddb519",
  "tarball": "https://registry.npmjs.org/5e-editor/-/5e-editor-0.10.57.tgz",
  "fileCount": 68,
  "unpackedSize": 59410,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIGRQhvjS440oPcHEvZIV+slz9gKq1buxOJHKH3M3GC8QAiA8QneNB2xiTUItLnJJrYRlQIXeguWYgdsr0mIKVtRjWw=="
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYLtrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJ3A/9FGyg9DTj39KcPMlpPxJJ2aP3GnC/ebQ7eTT4H5KKLv7VnCmG\r\nVl51K7bv4v9ZG50z9Me+weWvkD0ADgFPxD7aRljmul8N3ptnCbveyFIMCI5R\r\nsgsrq8B1NiZuf8QXQZOOAG3DEzq/ejU2d7+nTKHkWOxRDl2CM/+8gZ/RgY4f\r\nJMXz/pRK+vil5havJ51km9gzAk+O4ZOen33MwCsgHUBNbPjII2Tus6/R/z+o\r\nH0eo/8mu/r37IGKYjod6M3SwEOMUiqS3n3YRmhI31MGzAYyjWzPA++bxhKzb\r\nQIH1pz7aGEtG2BuhWGxzOdASc6IFpzrbYqo/JysycelTg/oJMNhcKr0kEPJs\r\nD7Yr/Oy13OhE2LFvh0JUhuUY1O7eYz5VWt9a+0z6sLlAkt9M+lWwSz8fofnw\r\n8/djTfiP0DAphzRtkIu5tc9BWK4HCMWEIPm+NZ2X9Ozv85Q0QZcN73Wi1PKP\r\njEy+09liD/wCjCakg2G4rE6cz0NOb9AXGu5Y9GAhPpR5Ph1pWNW5wZ1kPjM7\r\ntRIMsGaqgUatE2N4DaUW1zSpmBzu/EZ1as6gjmReatMzyXvCQ0V9vXn9Zh6j\r\nTJ2R/4vuEE9ObO6+htAM9bMT/SzOLC/5e5J4S0VMomWYuV5XB9XCkw++zQrh\r\nsEly3mhxDjg634wCY9VVGrc4LI0OHxnOvzk=\r\n=ZDR2\r\n-----END PGP SIGNATURE-----\r\n"
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:46d7dbeadf723f2396e49d155a0872042efc6094f045d3f40dc574d241655dd4

Other collected versions

0.10.3918 Oct0.10.389 Oct0.10.379 OctView all collected versions →