New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tidbcloud/codemirror-extension-sql-autocomplete

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tidbcloud/codemirror-extension-sql-autocomplete - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

6

CHANGELOG.md
# @tidbcloud/codemirror-extension-sql-autocomplete
## 0.0.7
### Patch Changes
- 478bcde: extensions events callback params add state & autocomplete add vector type
## 0.0.6

@@ -4,0 +10,0 @@

1

dist/icons-svg.d.ts

@@ -11,1 +11,2 @@ export declare const Brackets = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M12.3807 13.3334C13.222 13.3334 13.9047 12.6514 13.9047 11.8094V8.76208L14.6667 8.00008L13.9047 7.23808V4.19075C13.9047 3.34875 13.2227 2.66675 12.3807 2.66675M3.6195 2.66675C2.7775 2.66675 2.0955 3.34875 2.0955 4.19075V7.23808L1.3335 8.00008L2.0955 8.76208V11.8094C2.0955 12.6514 2.7775 13.3334 3.6195 13.3334\" stroke=\"#999999\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>";

export declare const Variable = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M13.2709 14C14.1644 12.1926 14.6668 10.1553 14.6668 8C14.6668 5.84474 14.1644 3.80744 13.2709 2M2.72945 2C1.83592 3.80744 1.3335 5.84474 1.3335 8C1.3335 10.1553 1.83592 12.1926 2.72945 14M11.0326 5.75H10.9728C10.5372 5.75 10.1233 5.94134 9.83986 6.27381L6.25664 10.4762C5.97315 10.8087 5.5593 11 5.1237 11H5.06392M5.81005 5.75H6.73944C7.07256 5.75 7.36531 5.97198 7.45682 6.29396L8.63978 10.456C8.73129 10.778 9.02404 11 9.35716 11H10.2866\" stroke=\"#2E6BE5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>";
export declare const Vector = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M13.7569 4.92857C14.1302 4.51155 14.3571 3.96085 14.3571 3.35714C14.3571 2.05533 13.3018 1 12 1C10.6982 1 9.64286 2.05533 9.64286 3.35714C9.64286 3.96085 9.86981 4.51155 10.2431 4.92857M13.7569 4.92857C13.3253 5.4108 12.6981 5.71429 12 5.71429C11.3019 5.71429 10.6747 5.4108 10.2431 4.92857M13.7569 4.92857L18.8859 10.4286M18.8859 10.4286C18.5127 10.8456 18.2857 11.3963 18.2857 12C18.2857 12.6037 18.5127 13.1544 18.8859 13.5714M18.8859 10.4286C19.3175 9.94634 19.9447 9.64286 20.6429 9.64286C21.9447 9.64286 23 10.6982 23 12C23 13.3018 21.9447 14.3571 20.6429 14.3571C19.9447 14.3571 19.3175 14.0537 18.8859 13.5714M18.8859 13.5714L13.7569 19.0714M13.7569 19.0714C13.3253 18.5892 12.6981 18.2857 12 18.2857C11.3019 18.2857 10.6747 18.5892 10.2431 19.0714M13.7569 19.0714C14.1302 19.4885 14.3571 20.0391 14.3571 20.6429C14.3571 21.9447 13.3018 23 12 23C10.6982 23 9.64286 21.9447 9.64286 20.6429C9.64286 20.0391 9.86981 19.4885 10.2431 19.0714M10.2431 19.0714L4.92857 13.7569M4.92857 13.7569C5.4108 13.3253 5.71429 12.6981 5.71429 12C5.71429 11.3019 5.4108 10.6747 4.92857 10.2431M4.92857 13.7569C4.51155 14.1302 3.96085 14.3571 3.35714 14.3571C2.05533 14.3571 1 13.3018 1 12C1 10.6982 2.05533 9.64286 3.35714 9.64286C3.96085 9.64286 4.51155 9.86981 4.92857 10.2431M4.92857 10.2431L10.2431 4.92857\" stroke=\"currentColor\" stroke-width=\"inherit\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>";

@@ -49,2 +49,5 @@ import { EditorView, keymap } from '@codemirror/view';

</svg>`;
const Vector = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M13.7569 4.92857C14.1302 4.51155 14.3571 3.96085 14.3571 3.35714C14.3571 2.05533 13.3018 1 12 1C10.6982 1 9.64286 2.05533 9.64286 3.35714C9.64286 3.96085 9.86981 4.51155 10.2431 4.92857M13.7569 4.92857C13.3253 5.4108 12.6981 5.71429 12 5.71429C11.3019 5.71429 10.6747 5.4108 10.2431 4.92857M13.7569 4.92857L18.8859 10.4286M18.8859 10.4286C18.5127 10.8456 18.2857 11.3963 18.2857 12C18.2857 12.6037 18.5127 13.1544 18.8859 13.5714M18.8859 10.4286C19.3175 9.94634 19.9447 9.64286 20.6429 9.64286C21.9447 9.64286 23 10.6982 23 12C23 13.3018 21.9447 14.3571 20.6429 14.3571C19.9447 14.3571 19.3175 14.0537 18.8859 13.5714M18.8859 13.5714L13.7569 19.0714M13.7569 19.0714C13.3253 18.5892 12.6981 18.2857 12 18.2857C11.3019 18.2857 10.6747 18.5892 10.2431 19.0714M13.7569 19.0714C14.1302 19.4885 14.3571 20.0391 14.3571 20.6429C14.3571 21.9447 13.3018 23 12 23C10.6982 23 9.64286 21.9447 9.64286 20.6429C9.64286 20.0391 9.86981 19.4885 10.2431 19.0714M10.2431 19.0714L4.92857 13.7569M4.92857 13.7569C5.4108 13.3253 5.71429 12.6981 5.71429 12C5.71429 11.3019 5.4108 10.6747 4.92857 10.2431M4.92857 13.7569C4.51155 14.1302 3.96085 14.3571 3.35714 14.3571C2.05533 14.3571 1 13.3018 1 12C1 10.6982 2.05533 9.64286 3.35714 9.64286C3.96085 9.64286 4.51155 9.86981 4.92857 10.2431M4.92857 10.2431L10.2431 4.92857" stroke="currentColor" stroke-width="inherit" stroke-linecap="round" stroke-linejoin="round"/>
</svg>`;

@@ -175,2 +178,7 @@ const baseTheme = EditorView.baseTheme({

break;
case 'VECTOR<FLOAT>':
case 'VECTOR<FLOAT16>':
case 'VECTOR':
src = Vector;
break;
}

@@ -177,0 +185,0 @@ if (completion.type &&

2

package.json
{
"name": "@tidbcloud/codemirror-extension-sql-autocomplete",
"version": "0.0.6",
"version": "0.0.7",
"description": "codemiror extension for SQL keyword and database schema autocompletion with customized style",

@@ -5,0 +5,0 @@ "type": "module",

@@ -7,4 +7,4 @@ # @tidbcloud/codemirror-extension-sql-autocomplete

- [Full Featured Playground](https://tisqleditor-playground.netlify.app/)
- [Simple Example](https://tisqleditor-playground.netlify.app/?example=sql-autocomplete&with_select)
- [Full Featured Playground](https://tisqleditor.vercel.app/playgroud)
- [Simple Example](https://tisqleditor.vercel.app/examples?ex=sql-autocomplete)

@@ -11,0 +11,0 @@ ## Installation

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc