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
320
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.96 to 0.0.97

2

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

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

@@ -36,3 +36,3 @@ import { CollectionDefinition } from '../../data/collectiondefinition';

*/
getAllFields: (collection: CollectionProxy, dataSource: DataSourceProxy) => Promise<string[]>;
getAllFields: (dataSource: DataSourceProxy) => Promise<string[]>;
/**

@@ -52,3 +52,3 @@ * Callback that handled changes in the fields the user wants to be displayed in the card integration.

*/
abstract getDefaultConfig: (collection: CollectionProxy, dataSource: DataSourceProxy) => Promise<CardIntegrationConfig>;
abstract getDefaultConfig: (dataSource: DataSourceProxy) => Promise<CardIntegrationConfig>;
/**

@@ -55,0 +55,0 @@ * If specified, allow the user to import cards using the standard card-import modal.

import { SerializedFieldType } from '../data/serializedfield/serializedfields';
/** @ignore */
export interface GetFieldsParam {
'c': string;
'd': string;

@@ -9,3 +8,2 @@ }

export interface GetDefaultConfigParam {
'c': string;
'd': string;

@@ -12,0 +10,0 @@ }

@@ -5,3 +5,2 @@ "use strict";

const collectiondefinition_1 = require("../../data/collectiondefinition");
const collectionproxy_1 = require("../../data/collectionproxy");
const datasourceproxy_1 = require("../../data/datasourceproxy");

@@ -36,5 +35,4 @@ const cardintegrationconfig_1 = require("./cardintegrationconfig");

client.registerAction(getFieldsActionName, async (param) => {
const collection = new collectionproxy_1.CollectionProxy(param['c'], client);
const dataSource = new datasourceproxy_1.DataSourceProxy(param['d'], client);
const fields = await cardIntegration.fieldConfiguration.getAllFields(collection, dataSource);
const fields = await cardIntegration.fieldConfiguration.getAllFields(dataSource);
return fields;

@@ -53,5 +51,4 @@ });

client.registerAction(getDefaultConfigActionName, async (param) => {
const collection = new collectionproxy_1.CollectionProxy(param['c'], client);
const dataSource = new datasourceproxy_1.DataSourceProxy(param['d'], client);
return (0, cardintegrationconfig_1.serializeCardIntegrationConfig)(await cardIntegration.getDefaultConfig(collection, dataSource));
return (0, cardintegrationconfig_1.serializeCardIntegrationConfig)(await cardIntegration.getDefaultConfig(dataSource));
});

@@ -58,0 +55,0 @@ let showIntroActionName = undefined;

@@ -23,2 +23,3 @@ import { SerializedFieldType } from '../core/data/serializedfield/serializedfields';

getName(): string;
getSyncCollectionId(): string | undefined;
/**

@@ -25,0 +26,0 @@ * Some data collections may have local branches on the document, to store the set of changes that have been

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CollectionProxy = void 0;
const checks_1 = require("../core/checks");
const mapproxy_1 = require("../document/mapproxy");

@@ -34,2 +35,9 @@ const propertystoreproxy_1 = require("../document/propertystoreproxy");

}
getSyncCollectionId() {
const upstreamConfig = this.properties.get('UpstreamConfig');
if ((0, checks_1.isObject)(upstreamConfig) && (0, checks_1.isString)(upstreamConfig['SyncId'])) {
return upstreamConfig['SyncId'];
}
return undefined;
}
/**

@@ -36,0 +44,0 @@ * Some data collections may have local branches on the document, to store the set of changes that have been

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