@yoopta/code 4.0.0-rc.0 → 4.0.0-rc.2

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/dist/ui/Code.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PluginElementRenderProps } from '@yoopta/editor';
2
- declare const CodeEditor: ({ blockId, attributes, children }: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { PluginCustomEditorRenderProps } from '@yoopta/editor';
2
+ declare const CodeEditor: ({ blockId }: PluginCustomEditorRenderProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export { CodeEditor };
4
4
  //# sourceMappingURL=Code.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../src/ui/Code.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAkD,MAAM,gBAAgB,CAAC;AAkB1G,QAAA,MAAM,UAAU,sCAAuC,wBAAwB,4CAsC9E,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../src/ui/Code.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,6BAA6B,EAAqB,MAAM,gBAAgB,CAAC;AAkBjH,QAAA,MAAM,UAAU,gBAAiB,6BAA6B,4CAgD7D,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CodeBlockOptions.d.ts","sourceRoot":"","sources":["../../src/ui/CodeBlockOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,SAAS,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAShE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAOvC,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,eAAe,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,+BAAgC,KAAK,4CA4DjE,CAAC"}
1
+ {"version":3,"file":"CodeBlockOptions.d.ts","sourceRoot":"","sources":["../../src/ui/CodeBlockOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAS9E,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAOvC,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,eAAe,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,+BAAgC,KAAK,4CA4DjE,CAAC"}
@@ -1,19 +1,19 @@
1
1
  declare const LANGUAGES: {
2
- HTML: any;
3
- CSS: any;
2
+ HTML: import("@codemirror/language").LanguageSupport;
3
+ CSS: import("@codemirror/language").LanguageSupport;
4
4
  JavaScript: import("@codemirror/language").LanguageSupport;
5
- PHP: any;
6
- 'C++': any;
7
- Java: any;
8
- Python: any;
9
- Markdown: any;
10
- Rust: any;
11
- Vue: any;
12
- SQL: any;
13
- Angular: any;
14
- JSON: any;
15
- XML: any;
16
- YAML: any;
5
+ PHP: import("@codemirror/language").LanguageSupport;
6
+ 'C++': import("@codemirror/language").LanguageSupport;
7
+ Java: import("@codemirror/language").LanguageSupport;
8
+ Python: import("@codemirror/language").LanguageSupport;
9
+ Markdown: import("@codemirror/language").LanguageSupport;
10
+ Rust: import("@codemirror/language").LanguageSupport;
11
+ Vue: import("@codemirror/language").LanguageSupport;
12
+ SQL: import("@codemirror/language").LanguageSupport;
13
+ Angular: import("@codemirror/language").LanguageSupport;
14
+ JSON: import("@codemirror/language").LanguageSupport;
15
+ XML: import("@codemirror/language").LanguageSupport;
16
+ YAML: import("@codemirror/language").LanguageSupport;
17
17
  };
18
18
  export { LANGUAGES };
19
19
  //# sourceMappingURL=languages.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoopta/code",
3
- "version": "4.0.0-rc.0",
3
+ "version": "4.0.0-rc.2",
4
4
  "description": "> TODO: description",
5
5
  "author": "Darginec05 <devopsbanda@gmail.com>",
6
6
  "homepage": "https://github.com/Darginec05/Editor-Yoopta#readme",
@@ -26,7 +26,7 @@
26
26
  "url": "git+https://github.com/Darginec05/Editor-Yoopta.git"
27
27
  },
28
28
  "scripts": {
29
- "test": "node ./__tests__/yoopta-callout.test.js",
29
+ "test": "node ./__tests__/yoopta-code.test.js",
30
30
  "start": "rollup --config rollup.config.js --watch --bundleConfigAsCjs --environment NODE_ENV:development",
31
31
  "prepublishOnly": "yarn build",
32
32
  "build": "rollup --config rollup.config.js --bundleConfigAsCjs --environment NODE_ENV:production"
@@ -35,7 +35,21 @@
35
35
  "url": "https://github.com/Darginec05/Editor-Yoopta/issues"
36
36
  },
37
37
  "dependencies": {
38
+ "@codemirror/lang-angular": "^0.1.3",
39
+ "@codemirror/lang-cpp": "^6.0.2",
40
+ "@codemirror/lang-css": "^6.2.1",
41
+ "@codemirror/lang-html": "^6.4.8",
42
+ "@codemirror/lang-java": "^6.0.1",
38
43
  "@codemirror/lang-javascript": "^6.2.2",
44
+ "@codemirror/lang-json": "^6.0.1",
45
+ "@codemirror/lang-markdown": "^6.2.4",
46
+ "@codemirror/lang-php": "^6.0.1",
47
+ "@codemirror/lang-python": "^6.1.4",
48
+ "@codemirror/lang-rust": "^6.0.1",
49
+ "@codemirror/lang-sql": "^6.6.1",
50
+ "@codemirror/lang-vue": "^0.1.3",
51
+ "@codemirror/lang-xml": "^6.1.0",
52
+ "@codemirror/lang-yaml": "^6.0.0",
39
53
  "@radix-ui/react-select": "^2.0.0",
40
54
  "@uiw/codemirror-theme-basic": "^4.21.24",
41
55
  "@uiw/codemirror-theme-copilot": "^4.21.24",
@@ -49,5 +63,5 @@
49
63
  "@uiw/react-codemirror": "^4.21.24",
50
64
  "copy-to-clipboard": "^3.3.3"
51
65
  },
52
- "gitHead": "7e5c32bd4c48dd21d84359a3fe87ed82cdaf964f"
66
+ "gitHead": "907dadc1323714e24c3b6d896ae11c72b6d9c754"
53
67
  }