Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lucid-extension-sdk

Package Overview
Dependencies
Maintainers
2
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucid-extension-sdk - npm Package Compare versions

Comparing version 0.0.226 to 0.0.227

6

commandtypes.d.ts

@@ -1020,2 +1020,8 @@ import { SerializedFieldTypeDefinition } from './core/data/fieldtypedefinition/fieldtypedefinition';

export type FindAvailableSpaceQuery = {
/** If specified, the page to find space on. Otherwise use the visible page. */
'p'?: string | undefined;
/** If specified, the location to search near. Otherwise use the viewport. */
'x'?: number | undefined;
/** If specified, the location to search near. Otherwise use the viewport. */
'y'?: number | undefined;
/** Width */

@@ -1022,0 +1028,0 @@ 'w': number;

@@ -37,2 +37,16 @@ import { GetItemsAtSearchType, GetLLMContextType } from '../commandtypes';

/**
* Find available space on this page for adding new content.
* @param searchX Place to start the search
* @param searchY Place to start the search
* @param width
* @param height
* @returns a reference to the page and origin (upper-left point) of the space you can add new
* content of the given size to.
*/
findAvailableSpace(searchX: number, searchY: number, width: number, height: number): {
page: PageProxy;
x: number;
y: number;
};
/**
* The blocks contained directly on this page, not including ones inside groups

@@ -62,2 +76,6 @@ */

/**
* All blocks, lines, and groups on the page, including ones inside groups
*/
readonly allItems: MapProxy<string, BlockProxy | LineProxy | GroupProxy>;
/**
* Add a new block to this page.

@@ -64,0 +82,0 @@ *

@@ -46,2 +46,6 @@ "use strict";

this.allGroups = new mapproxy_1.MapProxy(() => this.client.sendCommand("lg" /* CommandName.ListGroups */, { id: this.id, d: true }), (id) => new groupproxy_1.GroupProxy(id, this.client));
/**
* All blocks, lines, and groups on the page, including ones inside groups
*/
this.allItems = new mapproxy_1.MapProxy(() => [...this.allBlocks.keys(), ...this.allLines.keys(), ...this.allGroups.keys()], (id) => this.client.getItemProxy(id));
}

@@ -75,2 +79,25 @@ /**

/**
* Find available space on this page for adding new content.
* @param searchX Place to start the search
* @param searchY Place to start the search
* @param width
* @param height
* @returns a reference to the page and origin (upper-left point) of the space you can add new
* content of the given size to.
*/
findAvailableSpace(searchX, searchY, width, height) {
const result = this.client.sendCommand("fas" /* CommandName.FindAvailableSpace */, {
'p': this.id,
'x': searchX,
'y': searchY,
'w': width,
'h': height,
});
return {
page: this,
x: result['x'],
y: result['y'],
};
}
/**
* Add a new block to this page.

@@ -77,0 +104,0 @@ *

2

package.json
{
"name": "lucid-extension-sdk",
"version": "0.0.226",
"version": "0.0.227",
"description": "Utility classes for writing Lucid Software editor extensions",

@@ -5,0 +5,0 @@ "main": "index.js",

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