@block-kit/variable 1.0.18 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/es/index.d.ts +7 -6
- package/dist/es/index.js +4 -5
- package/dist/lib/index.d.ts +7 -6
- package/dist/lib/index.js +4 -5
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
<p>
|
|
4
4
|
<a href="https://github.com/WindRunnerMax/BlockKit/tree/master/examples/variable">GitHub</a>
|
|
5
5
|
<span>|</span>
|
|
6
|
+
<a href="https://github.com/WindRunnerMax/EveryDay/blob/master/Plugin/仿照豆包实现Prompt变量模板输入框.md">BLOG</a>
|
|
7
|
+
<span>|</span>
|
|
6
8
|
<a href="https://windrunnermax.github.io/BlockKit/variable.html">DEMO</a>
|
|
7
9
|
<span>|</span>
|
|
8
10
|
<a href="https://github.com/WindRunnerMax/BlockKit/tree/master/examples/website/src/variable">Usage</a>
|
|
9
11
|
<span>|</span>
|
|
10
|
-
<a href="https://codesandbox.io/p/
|
|
12
|
+
<a href="https://codesandbox.io/p/sandbox/vars-input-nrfnwf">CodeSandbox</a>
|
|
11
13
|
</p>
|
|
12
14
|
|
|
13
15
|
## Development
|
package/dist/es/index.d.ts
CHANGED
|
@@ -5,9 +5,10 @@ export { SelectorInputPlugin } from "./modules/selector-plugin";
|
|
|
5
5
|
export { SkillInputPlugin } from "./modules/skill-plugin";
|
|
6
6
|
export { SEL_CLS_PREFIX, SEL_KEY, SEL_VALUE_KEY, SKILL_KEY, VARS_CLS_PREFIX, VARS_KEY, VARS_VALUE_KEY, } from "./utils/constant";
|
|
7
7
|
export type { EditablePluginOptions } from "./utils/types";
|
|
8
|
-
export type { EditorSchema } from "@block-kit/core";
|
|
9
|
-
export { Editor, EDITOR_EVENT, LOG_LEVEL } from "@block-kit/core";
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
8
|
+
export type { EditorSchema, LeafState } from "@block-kit/core";
|
|
9
|
+
export { Editor, EDITOR_EVENT, isArrowDown, isArrowLeft, isArrowRight, isArrowUp, LEAF_KEY, LEAF_STRING, LOG_LEVEL, Point, Range, ZERO_SPACE_KEY, } from "@block-kit/core";
|
|
10
|
+
export type { AttributeMap, Op } from "@block-kit/delta";
|
|
11
|
+
export { Delta, OP_TYPES, OpIterator } from "@block-kit/delta";
|
|
12
|
+
export type { ReactLeafContext, ReactLineContext } from "@block-kit/react";
|
|
13
|
+
export { BlockKit, Editable, EditorPlugin, Embed, Isolate, MountNode, preventReactEvent, useEditorStatic, useReadonly, Void, } from "@block-kit/react";
|
|
14
|
+
export { Bind, cs, isDOMElement, isDOMText, isKeyCode, isNil, KEY_CODE, NOOP, preventNativeEvent, TEXT_PLAIN, } from "@block-kit/utils";
|
package/dist/es/index.js
CHANGED
|
@@ -4,8 +4,7 @@ export { EditableInputPlugin } from "./modules/editable-plugin";
|
|
|
4
4
|
export { SelectorInputPlugin } from "./modules/selector-plugin";
|
|
5
5
|
export { SkillInputPlugin } from "./modules/skill-plugin";
|
|
6
6
|
export { SEL_CLS_PREFIX, SEL_KEY, SEL_VALUE_KEY, SKILL_KEY, VARS_CLS_PREFIX, VARS_KEY, VARS_VALUE_KEY, } from "./utils/constant";
|
|
7
|
-
export { Editor, EDITOR_EVENT, LOG_LEVEL } from "@block-kit/core";
|
|
8
|
-
export { Delta } from "@block-kit/delta";
|
|
9
|
-
export { Isolate } from "@block-kit/react";
|
|
10
|
-
export {
|
|
11
|
-
export { cs, preventNativeEvent } from "@block-kit/utils";
|
|
7
|
+
export { Editor, EDITOR_EVENT, isArrowDown, isArrowLeft, isArrowRight, isArrowUp, LEAF_KEY, LEAF_STRING, LOG_LEVEL, Point, Range, ZERO_SPACE_KEY, } from "@block-kit/core";
|
|
8
|
+
export { Delta, OP_TYPES, OpIterator } from "@block-kit/delta";
|
|
9
|
+
export { BlockKit, Editable, EditorPlugin, Embed, Isolate, MountNode, preventReactEvent, useEditorStatic, useReadonly, Void, } from "@block-kit/react";
|
|
10
|
+
export { Bind, cs, isDOMElement, isDOMText, isKeyCode, isNil, KEY_CODE, NOOP, preventNativeEvent, TEXT_PLAIN, } from "@block-kit/utils";
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -5,9 +5,10 @@ export { SelectorInputPlugin } from "./modules/selector-plugin";
|
|
|
5
5
|
export { SkillInputPlugin } from "./modules/skill-plugin";
|
|
6
6
|
export { SEL_CLS_PREFIX, SEL_KEY, SEL_VALUE_KEY, SKILL_KEY, VARS_CLS_PREFIX, VARS_KEY, VARS_VALUE_KEY, } from "./utils/constant";
|
|
7
7
|
export type { EditablePluginOptions } from "./utils/types";
|
|
8
|
-
export type { EditorSchema } from "@block-kit/core";
|
|
9
|
-
export { Editor, EDITOR_EVENT, LOG_LEVEL } from "@block-kit/core";
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
8
|
+
export type { EditorSchema, LeafState } from "@block-kit/core";
|
|
9
|
+
export { Editor, EDITOR_EVENT, isArrowDown, isArrowLeft, isArrowRight, isArrowUp, LEAF_KEY, LEAF_STRING, LOG_LEVEL, Point, Range, ZERO_SPACE_KEY, } from "@block-kit/core";
|
|
10
|
+
export type { AttributeMap, Op } from "@block-kit/delta";
|
|
11
|
+
export { Delta, OP_TYPES, OpIterator } from "@block-kit/delta";
|
|
12
|
+
export type { ReactLeafContext, ReactLineContext } from "@block-kit/react";
|
|
13
|
+
export { BlockKit, Editable, EditorPlugin, Embed, Isolate, MountNode, preventReactEvent, useEditorStatic, useReadonly, Void, } from "@block-kit/react";
|
|
14
|
+
export { Bind, cs, isDOMElement, isDOMText, isKeyCode, isNil, KEY_CODE, NOOP, preventNativeEvent, TEXT_PLAIN, } from "@block-kit/utils";
|
package/dist/lib/index.js
CHANGED
|
@@ -4,8 +4,7 @@ export { EditableInputPlugin } from "./modules/editable-plugin";
|
|
|
4
4
|
export { SelectorInputPlugin } from "./modules/selector-plugin";
|
|
5
5
|
export { SkillInputPlugin } from "./modules/skill-plugin";
|
|
6
6
|
export { SEL_CLS_PREFIX, SEL_KEY, SEL_VALUE_KEY, SKILL_KEY, VARS_CLS_PREFIX, VARS_KEY, VARS_VALUE_KEY, } from "./utils/constant";
|
|
7
|
-
export { Editor, EDITOR_EVENT, LOG_LEVEL } from "@block-kit/core";
|
|
8
|
-
export { Delta } from "@block-kit/delta";
|
|
9
|
-
export { Isolate } from "@block-kit/react";
|
|
10
|
-
export {
|
|
11
|
-
export { cs, preventNativeEvent } from "@block-kit/utils";
|
|
7
|
+
export { Editor, EDITOR_EVENT, isArrowDown, isArrowLeft, isArrowRight, isArrowUp, LEAF_KEY, LEAF_STRING, LOG_LEVEL, Point, Range, ZERO_SPACE_KEY, } from "@block-kit/core";
|
|
8
|
+
export { Delta, OP_TYPES, OpIterator } from "@block-kit/delta";
|
|
9
|
+
export { BlockKit, Editable, EditorPlugin, Embed, Isolate, MountNode, preventReactEvent, useEditorStatic, useReadonly, Void, } from "@block-kit/react";
|
|
10
|
+
export { Bind, cs, isDOMElement, isDOMText, isKeyCode, isNil, KEY_CODE, NOOP, preventNativeEvent, TEXT_PLAIN, } from "@block-kit/utils";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@block-kit/variable",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/lib/index.js",
|
|
6
6
|
"types": "./dist/es/index.d.ts",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"react-dom": ">=17"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@block-kit/core": "1.0.21",
|
|
44
|
-
"@block-kit/delta": "1.0.21",
|
|
45
|
-
"@block-kit/react": "1.0.21",
|
|
46
|
-
"@block-kit/utils": "1.0.21"
|
|
43
|
+
"@block-kit/core": "^1.0.21",
|
|
44
|
+
"@block-kit/delta": "^1.0.21",
|
|
45
|
+
"@block-kit/react": "^1.0.21",
|
|
46
|
+
"@block-kit/utils": "^1.0.21"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/react": "17.0.2",
|