Socket
Socket
Sign inDemoInstall

piral-search

Package Overview
Dependencies
16
Maintainers
1
Versions
902
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.0-pre.682 to 0.8.0-pre.683

6

package.json
{
"name": "piral-search",
"version": "0.8.0-pre.682",
"version": "0.8.0-pre.683",
"description": "Extensions for centralizing search in Piral.",

@@ -38,3 +38,3 @@ "keywords": [

"devDependencies": {
"piral-core": "^0.8.0-pre.682"
"piral-core": "^0.8.0-pre.683"
},

@@ -44,3 +44,3 @@ "peerDependencies": {

},
"gitHead": "04da0183524adea0bae44c0f30f2b3ee1ce36e88"
"gitHead": "2a3db9bdcf5523446ac735eb5f064be6afd600ba"
}

@@ -24,5 +24,5 @@ [![Piral Logo](https://github.com/smapiot/piral/raw/master/docs/assets/logo.png)](https://piral.io)

```tsx
renderInstance({
const instance = createInstance({
// important part
extendApi: extendApis([createSearchApi]),
extendApi: [createSearchApi()],
// ...

@@ -32,4 +32,23 @@ });

Via the options the initially displayed `results` can be defined. The current `query` can also be set.
For example:
```tsx
const instance = createInstance({
// important part
extendApi: [createSearchApi({
query: '!help',
results: [
<div>
Help was found!
</div>,
],
})],
// ...
});
```
## License
Piral is released using the MIT license. For more information see the [license file](./LICENSE).
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc