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

@liquid-state/docviewer

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liquid-state/docviewer

Plugin to launch and run the Liquid State Document Viewer

  • 1.4.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by60%
Maintainers
0
Weekly downloads
 
Created
Source

@liquid-state/docviewer

Liquid State Docviewer Plugin

Install

npm install @liquid-state/docviewer
npx cap sync

API

  • echo(...)
  • launchNamedDocument(...)
  • launchDocument(...)
  • closeViewerIfAny()

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>

Useless api that can be used to test the plugin

ParamTypeDescription
options{ value: string; }value to echo back (no ui)

Returns: Promise<{ value: string; }>


launchNamedDocument(...)

launchNamedDocument(options: { name: string; page_slug?: string; config?: {}; }) => Promise<{ viewer_id: string; }>

Launch a built-in document using it's base file name (note: this is just the file name, not path)

ParamTypeDescription
options{ name: string; page_slug?: string; config?: {}; }name, page_slug and config

Returns: Promise<{ viewer_id: string; }>


launchDocument(...)

launchDocument(options: { url: string; page_slug?: string; config?: {}; }) => Promise<{ viewer_id: string; }>

Launch a document using a local (on ios: file, on android: content) url

ParamTypeDescription
options{ url: string; page_slug?: string; config?: {}; }url, page_slug and config

Returns: Promise<{ viewer_id: string; }>


closeViewerIfAny()

closeViewerIfAny() => Promise<void>

Close any currently open document viewer


Keywords

FAQs

Package last updated on 21 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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