Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@evoke-platform/plugin-scripts

Package Overview
Dependencies
Maintainers
2
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evoke-platform/plugin-scripts - npm Package Compare versions

Comparing version
1.0.0-dev.72
to
1.0.0-dev.73
+4
dist/__tests__/man...s/paymentGateways/notClass/gateway.d.ts
/**
* @paymentGateway
*/
export declare function BadGateway(): void;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.BadGateway = void 0;
/**
* @paymentGateway
*/
function BadGateway() { }
exports.BadGateway = BadGateway;
//# sourceMappingURL=gateway.js.map
{"version":3,"file":"gateway.js","sourceRoot":"","sources":["../../../../../../src/__tests__/manifest/badFiles/paymentGateways/notClass/gateway.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAE/C;;GAEG;AACH,SAAgB,UAAU,KAAI,CAAC;AAA/B,gCAA+B"}
/** @widget */
export declare function Widget1(): null;
/** @widget */
export declare function Widget2(): null;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Widget2 = exports.Widget1 = void 0;
/** @widget */
function Widget1() {
return null;
}
exports.Widget1 = Widget1;
/** @widget */
function Widget2() {
return null;
}
exports.Widget2 = Widget2;
//# sourceMappingURL=widget.js.map
{"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../../../../src/__tests__/manifest/badFiles/widgets/multipleWidgets/widget.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAE/C,cAAc;AACd,SAAgB,OAAO;IACnB,OAAO,IAAI,CAAC;AAChB,CAAC;AAFD,0BAEC;AAED,cAAc;AACd,SAAgB,OAAO;IACnB,OAAO,IAAI,CAAC;AAChB,CAAC;AAFD,0BAEC"}
/** @widget */
export declare class NotFunctionComponent {
}
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotFunctionComponent = void 0;
/** @widget */
class NotFunctionComponent {
}
exports.NotFunctionComponent = NotFunctionComponent;
//# sourceMappingURL=widget.js.map
{"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../../../../src/__tests__/manifest/badFiles/widgets/notFunctionComponent/widget.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAE/C,cAAc;AACd,MAAa,oBAAoB;CAAG;AAApC,oDAAoC"}
/**
* @paymentGateway
*/
export declare class BasicGateway {
}
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.BasicGateway = void 0;
/**
* @paymentGateway
*/
class BasicGateway {
}
exports.BasicGateway = BasicGateway;
//# sourceMappingURL=basic.js.map
{"version":3,"file":"basic.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/paymentGateways/basic.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAE/C;;GAEG;AACH,MAAa,YAAY;CAAG;AAA5B,oCAA4B"}
/**
* @paymentGatewayName
*/
export declare class BasicGateway2 {
}
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.BasicGateway2 = void 0;
/**
* @paymentGatewayName
*/
class BasicGateway2 {
}
exports.BasicGateway2 = BasicGateway2;
//# sourceMappingURL=basic2.js.map
{"version":3,"file":"basic2.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/paymentGateways/basic2.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAE/C;;GAEG;AACH,MAAa,aAAa;CAAG;AAA7B,sCAA6B"}
/**
* This is a sample description for a payment gateway. It may wrap
* to multiple lines.
*
* @paymentGateway
*/
export declare class PaymentGatewayDescription {
}
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaymentGatewayDescription = void 0;
/**
* This is a sample description for a payment gateway. It may wrap
* to multiple lines.
*
* @paymentGateway
*/
class PaymentGatewayDescription {
}
exports.PaymentGatewayDescription = PaymentGatewayDescription;
//# sourceMappingURL=description.js.map
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/paymentGateways/description.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAE/C;;;;;GAKG;AACH,MAAa,yBAAyB;CAAG;AAAzC,8DAAyC"}
/**
* @paymentGateway
*/
export declare class PaymentGatewayMultiple1 {
}
/**
* @paymentGateway
*/
export declare class PaymentGatewayMultiple2 {
}
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaymentGatewayMultiple2 = exports.PaymentGatewayMultiple1 = void 0;
/**
* @paymentGateway
*/
class PaymentGatewayMultiple1 {
}
exports.PaymentGatewayMultiple1 = PaymentGatewayMultiple1;
/**
* @paymentGateway
*/
class PaymentGatewayMultiple2 {
}
exports.PaymentGatewayMultiple2 = PaymentGatewayMultiple2;
//# sourceMappingURL=multiple.js.map
{"version":3,"file":"multiple.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/paymentGateways/multiple.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAE/C;;GAEG;AACH,MAAa,uBAAuB;CAAG;AAAvC,0DAAuC;AAEvC;;GAEG;AACH,MAAa,uBAAuB;CAAG;AAAvC,0DAAuC"}
/**
* @paymentGateway CustomId
*/
export declare class BasicGateway {
}
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.BasicGateway = void 0;
/**
* @paymentGateway CustomId
*/
class BasicGateway {
}
exports.BasicGateway = BasicGateway;
//# sourceMappingURL=paymentGatewayId.js.map
{"version":3,"file":"paymentGatewayId.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/paymentGateways/paymentGatewayId.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAE/C;;GAEG;AACH,MAAa,YAAY;CAAG;AAA5B,oCAA4B"}
/**
* @paymentGatewayName Test Gateway Name
*/
export declare class PaymentGatewayName {
}
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaymentGatewayName = void 0;
/**
* @paymentGatewayName Test Gateway Name
*/
class PaymentGatewayName {
}
exports.PaymentGatewayName = PaymentGatewayName;
//# sourceMappingURL=paymentGatewayName.js.map
{"version":3,"file":"paymentGatewayName.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/paymentGateways/paymentGatewayName.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAE/C;;GAEG;AACH,MAAa,kBAAkB;CAAG;AAAlC,gDAAkC"}
export type GatewayProperties = {
text: string;
num?: number;
};
/**
* @paymentGateway
*/
export declare class TestGatewayProperties {
constructor(props: GatewayProperties);
}
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestGatewayProperties = void 0;
/**
* @paymentGateway
*/
class TestGatewayProperties {
constructor(props) { }
}
exports.TestGatewayProperties = TestGatewayProperties;
//# sourceMappingURL=properties.js.map
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/paymentGateways/properties.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAO/C;;GAEG;AACH,MAAa,qBAAqB;IAC9B,YAAY,KAAwB,IAAG,CAAC;CAC3C;AAFD,sDAEC"}
type BaseType = {
base: string;
};
type PropsType = BaseType & {
textProperty: string;
};
/** @widget */
declare function PropsIntersectionType(props: PropsType): null;
export default PropsIntersectionType;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function PropsIntersectionType(props) {
return null;
}
exports.default = PropsIntersectionType;
//# sourceMappingURL=intersectionTypeProps.js.map
{"version":3,"file":"intersectionTypeProps.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/props/intersectionTypeProps.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAU/C,cAAc;AACd,SAAS,qBAAqB,CAAC,KAAgB;IAC3C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,qBAAqB,CAAC"}
type PropsType = {
numProperty: number;
};
/** @widget */
declare function NumberProperty(props: PropsType): null;
export default NumberProperty;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function NumberProperty(props) {
return null;
}
exports.default = NumberProperty;
//# sourceMappingURL=numberProperty.js.map
{"version":3,"file":"numberProperty.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/props/numberProperty.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAM/C,cAAc;AACd,SAAS,cAAc,CAAC,KAAgB;IACpC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,cAAc,CAAC"}
type PropsType = {
textProperty?: string;
};
/** @widget */
declare function OptionalProperty(props: PropsType): null;
export default OptionalProperty;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function OptionalProperty(props) {
return null;
}
exports.default = OptionalProperty;
//# sourceMappingURL=optionalProperty.js.map
{"version":3,"file":"optionalProperty.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/props/optionalProperty.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAM/C,cAAc;AACd,SAAS,gBAAgB,CAAC,KAAgB;IACtC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,gBAAgB,CAAC"}
type PropsType = {
textProperty: string | undefined;
};
/** @widget */
declare function OptionalProperty2(props: PropsType): null;
export default OptionalProperty2;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function OptionalProperty2(props) {
return null;
}
exports.default = OptionalProperty2;
//# sourceMappingURL=optionalProperty2.js.map
{"version":3,"file":"optionalProperty2.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/props/optionalProperty2.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAM/C,cAAc;AACd,SAAS,iBAAiB,CAAC,KAAgB;IACvC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
type PropsType = {
/**
* @propertyName Text Property
*/
textProperty: string;
};
/** @widget */
declare function PropertyName(props: PropsType): null;
export default PropertyName;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function PropertyName(props) {
return null;
}
exports.default = PropertyName;
//# sourceMappingURL=propertyName.js.map
{"version":3,"file":"propertyName.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/props/propertyName.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAS/C,cAAc;AACd,SAAS,YAAY,CAAC,KAAgB;IAClC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,YAAY,CAAC"}
type PropsType = {
/**
* @propertyType choices
*/
choicesProperty: string;
};
/** @widget */
declare function PropertyType(props: PropsType): null;
export default PropertyType;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function PropertyType(props) {
return null;
}
exports.default = PropertyType;
//# sourceMappingURL=propertyType.js.map
{"version":3,"file":"propertyType.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/props/propertyType.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAS/C,cAAc;AACd,SAAS,YAAY,CAAC,KAAgB;IAClC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,YAAY,CAAC"}
type PropsType = {
recordProperty: {
nested1: string;
nested2: number;
};
};
/** @widget */
declare function RecordProperty(props: PropsType): null;
export default RecordProperty;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function RecordProperty(props) {
return null;
}
exports.default = RecordProperty;
//# sourceMappingURL=recordProperty.js.map
{"version":3,"file":"recordProperty.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/props/recordProperty.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAS/C,cAAc;AACd,SAAS,cAAc,CAAC,KAAgB;IACpC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,cAAc,CAAC"}
/** @widget */
declare function PropsTypeLiteral(props: {
textProperty: string;
}): null;
export default PropsTypeLiteral;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function PropsTypeLiteral(props) {
return null;
}
exports.default = PropsTypeLiteral;
//# sourceMappingURL=typeLiteralProps.js.map
{"version":3,"file":"typeLiteralProps.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/props/typeLiteralProps.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C,cAAc;AACd,SAAS,gBAAgB,CAAC,KAA+B;IACrD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,gBAAgB,CAAC"}
type PropsType = {
textProperty: string;
};
/** @widget */
declare function PropsTypeReference(props: PropsType): null;
export default PropsTypeReference;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function PropsTypeReference(props) {
return null;
}
exports.default = PropsTypeReference;
//# sourceMappingURL=typeReferenceProps.js.map
{"version":3,"file":"typeReferenceProps.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/props/typeReferenceProps.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAM/C,cAAc;AACd,SAAS,kBAAkB,CAAC,KAAgB;IACxC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,kBAAkB,CAAC"}
/** @widget */
declare function Basic(): null;
export default Basic;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function Basic() {
return null;
}
exports.default = Basic;
//# sourceMappingURL=basic.js.map
{"version":3,"file":"basic.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/widgets/basic.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C,cAAc;AACd,SAAS,KAAK;IACV,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,KAAK,CAAC"}
/** @widgetName */
declare function Basic2(): null;
export default Basic2;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widgetName */
function Basic2() {
return null;
}
exports.default = Basic2;
//# sourceMappingURL=basic2.js.map
{"version":3,"file":"basic2.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/widgets/basic2.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C,kBAAkB;AAClB,SAAS,MAAM;IACX,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,MAAM,CAAC"}
/**
* This is a sample description for a widget. It may wrap to
* multiple lines.
*
* @widget
*/
declare function WidgetDescription(): null;
export default WidgetDescription;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/**
* This is a sample description for a widget. It may wrap to
* multiple lines.
*
* @widget
*/
function WidgetDescription() {
return null;
}
exports.default = WidgetDescription;
//# sourceMappingURL=description.js.map
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/widgets/description.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C;;;;;GAKG;AACH,SAAS,iBAAiB;IACtB,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
/**
* @widget
* @widgetVersion testVersion
* */
declare function WidgetVersion(): null;
export default WidgetVersion;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @widget
* @widgetVersion testVersion
* */
function WidgetVersion() {
return null;
}
exports.default = WidgetVersion;
//# sourceMappingURL=version.js.map
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/widgets/version.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C;;;KAGK;AACL,SAAS,aAAa;IAClB,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,aAAa,CAAC"}
/** @widget CustomId */
declare function Widget(): null;
export default Widget;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget CustomId */
function Widget() {
return null;
}
exports.default = Widget;
//# sourceMappingURL=widgetId.js.map
{"version":3,"file":"widgetId.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/widgets/widgetId.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C,uBAAuB;AACvB,SAAS,MAAM;IACX,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,MAAM,CAAC"}
/** @widgetName Test Widget Name */
declare function WidgetName(): null;
export default WidgetName;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widgetName Test Widget Name */
function WidgetName() {
return null;
}
exports.default = WidgetName;
//# sourceMappingURL=widgetName.js.map
{"version":3,"file":"widgetName.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/testFiles/widgets/widgetName.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C,mCAAmC;AACnC,SAAS,UAAU;IACf,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,UAAU,CAAC"}
+2
-1

@@ -14,3 +14,3 @@ #!/usr/bin/env node

const scanner = new Scanner('src', { defaultVersion: packageJson.version });
const widgets = (await scanner.scan()).widgets;
const { widgets, paymentGateways } = await scanner.scan();

@@ -57,2 +57,3 @@ const fs = require('fs');

widgets: Object.values(widgets),
paymentGateways: Object.values(paymentGateways),
};

@@ -59,0 +60,0 @@ if (!fs.existsSync('./dist')) {

@@ -40,5 +40,8 @@ "use strict";

let widgets = {};
let paymentGateways = {};
before(async function () {
this.timeout(Timeout);
widgets = (await scanner.scan()).widgets;
const scanResults = await scanner.scan();
widgets = scanResults.widgets;
paymentGateways = scanResults.paymentGateways;
});

@@ -52,3 +55,3 @@ describe('widget', () => {

version: '1-test',
src: 'src/__tests__/manifest/testFiles/basic.tsx',
src: 'src/__tests__/manifest/testFiles/widgets/basic.tsx',
properties: [],

@@ -63,3 +66,3 @@ });

version: '1-test',
src: 'src/__tests__/manifest/testFiles/basic2.tsx',
src: 'src/__tests__/manifest/testFiles/widgets/basic2.tsx',
properties: [],

@@ -74,3 +77,3 @@ });

version: '1-test',
src: 'src/__tests__/manifest/testFiles/widgetId.tsx',
src: 'src/__tests__/manifest/testFiles/widgets/widgetId.tsx',
properties: [],

@@ -85,3 +88,3 @@ });

version: '1-test',
src: 'src/__tests__/manifest/testFiles/widgetName.tsx',
src: 'src/__tests__/manifest/testFiles/widgets/widgetName.tsx',
properties: [],

@@ -96,3 +99,3 @@ });

version: '1-test',
src: 'src/__tests__/manifest/testFiles/description.tsx',
src: 'src/__tests__/manifest/testFiles/widgets/description.tsx',
properties: [],

@@ -107,3 +110,3 @@ });

version: 'testVersion',
src: 'src/__tests__/manifest/testFiles/version.tsx',
src: 'src/__tests__/manifest/testFiles/widgets/version.tsx',
properties: [],

@@ -113,10 +116,99 @@ });

it('fails if module contains multiple widgets', async () => {
const scanner = new manifest_1.Scanner('src/__tests__/manifest/badFiles/multipleWidgets');
await (0, chai_1.expect)(scanner.scan()).to.be.rejectedWith('Multiple @widget declarations in src/__tests__/manifest/badFiles/multipleWidgets/widget.tsx, only the default export can be declared a widget');
const scanner = new manifest_1.Scanner('src/__tests__/manifest/badFiles/widgets/multipleWidgets');
await (0, chai_1.expect)(scanner.scan()).to.be.rejectedWith('Multiple @widget declarations in src/__tests__/manifest/badFiles/widgets/multipleWidgets/widget.tsx, only the default export can be declared a widget');
}).timeout(Timeout);
it('fails if @widget is not on a function', async () => {
const scanner = new manifest_1.Scanner('src/__tests__/manifest/badFiles/notFunctionComponent');
const scanner = new manifest_1.Scanner('src/__tests__/manifest/badFiles/widgets/notFunctionComponent');
await (0, chai_1.expect)(scanner.scan()).to.be.rejectedWith('@widget must be declared on a FunctionComponent');
}).timeout(Timeout);
});
describe('paymentGateway', () => {
it('detects classes marked with @paymentGateway', () => {
(0, chai_1.expect)(paymentGateways['BasicGateway']).to.eql({
id: 'BasicGateway',
name: 'BasicGateway',
description: '',
version: '1-test',
properties: [],
});
});
it('detects classes marked with @paymentGatewayName', () => {
(0, chai_1.expect)(paymentGateways['BasicGateway2']).to.eql({
id: 'BasicGateway2',
name: 'BasicGateway2',
description: '',
version: '1-test',
properties: [],
});
});
it('allows overriding payment gateway id', () => {
(0, chai_1.expect)(paymentGateways['CustomId']).to.eql({
id: 'CustomId',
name: 'CustomId',
description: '',
version: '1-test',
properties: [],
});
});
it('allows setting payment gateway name', () => {
(0, chai_1.expect)(paymentGateways['PaymentGatewayName']).to.eql({
id: 'PaymentGatewayName',
name: 'Test Gateway Name',
description: '',
version: '1-test',
properties: [],
});
});
it('allows setting payment gateway description', () => {
(0, chai_1.expect)(paymentGateways['PaymentGatewayDescription']).to.eql({
id: 'PaymentGatewayDescription',
name: 'PaymentGatewayDescription',
description: 'This is a sample description for a payment gateway. It may wrap to multiple lines.',
version: '1-test',
properties: [],
});
});
it('detects multiple payment gateways in same file', () => {
(0, chai_1.expect)(paymentGateways['PaymentGatewayMultiple1']).to.eql({
id: 'PaymentGatewayMultiple1',
name: 'PaymentGatewayMultiple1',
description: '',
version: '1-test',
properties: [],
});
(0, chai_1.expect)(paymentGateways['PaymentGatewayMultiple2']).to.eql({
id: 'PaymentGatewayMultiple2',
name: 'PaymentGatewayMultiple2',
description: '',
version: '1-test',
properties: [],
});
});
it('fails if @paymentGateway is not on a class', async () => {
const scanner = new manifest_1.Scanner('src/__tests__/manifest/badFiles/paymentGateways/notClass');
await (0, chai_1.expect)(scanner.scan()).to.be.rejectedWith('@paymentGateway must be declared on a class');
}).timeout(Timeout);
it('detects payment gateway properties', () => {
(0, chai_1.expect)(paymentGateways['TestGatewayProperties']).to.eql({
id: 'TestGatewayProperties',
name: 'TestGatewayProperties',
description: '',
version: '1-test',
properties: [
{
name: 'text',
displayName: 'text',
type: 'text',
optional: false,
},
{
name: 'num',
displayName: 'num',
type: 'number',
optional: true,
},
],
});
});
});
describe('props', () => {

@@ -129,3 +221,3 @@ it('detects properties through type reference', () => {

version: '1-test',
src: 'src/__tests__/manifest/testFiles/typeReferenceProps.tsx',
src: 'src/__tests__/manifest/testFiles/props/typeReferenceProps.tsx',
properties: [

@@ -147,3 +239,3 @@ {

version: '1-test',
src: 'src/__tests__/manifest/testFiles/typeLiteralProps.tsx',
src: 'src/__tests__/manifest/testFiles/props/typeLiteralProps.tsx',
properties: [

@@ -165,3 +257,3 @@ {

version: '1-test',
src: 'src/__tests__/manifest/testFiles/intersectionTypeProps.tsx',
src: 'src/__tests__/manifest/testFiles/props/intersectionTypeProps.tsx',
properties: [

@@ -189,3 +281,3 @@ {

version: '1-test',
src: 'src/__tests__/manifest/testFiles/propertyName.tsx',
src: 'src/__tests__/manifest/testFiles/props/propertyName.tsx',
properties: [

@@ -207,3 +299,3 @@ {

version: '1-test',
src: 'src/__tests__/manifest/testFiles/propertyType.tsx',
src: 'src/__tests__/manifest/testFiles/props/propertyType.tsx',
properties: [

@@ -225,3 +317,3 @@ {

version: '1-test',
src: 'src/__tests__/manifest/testFiles/optionalProperty.tsx',
src: 'src/__tests__/manifest/testFiles/props/optionalProperty.tsx',
properties: [

@@ -243,3 +335,3 @@ {

version: '1-test',
src: 'src/__tests__/manifest/testFiles/optionalProperty2.tsx',
src: 'src/__tests__/manifest/testFiles/props/optionalProperty2.tsx',
properties: [

@@ -261,3 +353,3 @@ {

version: '1-test',
src: 'src/__tests__/manifest/testFiles/numberProperty.tsx',
src: 'src/__tests__/manifest/testFiles/props/numberProperty.tsx',
properties: [

@@ -279,3 +371,3 @@ {

version: '1-test',
src: 'src/__tests__/manifest/testFiles/recordProperty.tsx',
src: 'src/__tests__/manifest/testFiles/props/recordProperty.tsx',
properties: [

@@ -282,0 +374,0 @@ {

@@ -1,1 +0,1 @@

{"version":3,"file":"scanner.unit.js","sourceRoot":"","sources":["../../../src/__tests__/manifest/scanner.unit.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/C,6CAAoC;AACpC,wEAA8C;AAC9C,4DAAmC;AAEnC,6CAA2D;AAE3D,cAAI,CAAC,GAAG,CAAC,oBAAS,CAAC,CAAC,GAAG,CAAC,0BAAc,CAAC,CAAC;AAExC,MAAM,OAAO,GAAG,KAAK,CAAC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,EAAE,EAAE,gBAAgB;gBACpB,IAAI,EAAE,gBAAgB;gBACtB,WAAW,EAAE,EAAE;gBACf,OAAO,EAAE,QAAQ;gBACjB,GAAG,EAAE,2DAA2D;gBAChE,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,aAAa;wBACnB,WAAW,EAAE,aAAa;wBAC1B,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,KAAK;qBAClB;iBACJ;aACJ,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAEH,GAAG,CAAC,kCAAkC,EAAE,GAAG,EAAE;YACzC,IAAA,aAAM,EAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC;gBACrC,EAAE,EAAE,gBAAgB;gBACpB,IAAI,EAAE,gBAAgB;gBACtB,WAAW,EAAE,EAAE;gBACf,OAAO,EAAE,QAAQ;gBACjB,GAAG,EAAE,2DAA2D;gBAChE,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,gBAAgB;wBACtB,WAAW,EAAE,gBAAgB;wBAC7B,IAAI,EAAE,YAAY;wBAClB,QAAQ,EAAE,KAAK;wBACf,UAAU,EAAE;4BACR;gCACI,IAAI,EAAE,SAAS;gCACf,WAAW,EAAE,SAAS;gCACtB,IAAI,EAAE,MAAM;gCACZ,QAAQ,EAAE,KAAK;6BAClB;4BACD;gCACI,IAAI,EAAE,SAAS;gCACf,WAAW,EAAE,SAAS;gCACtB,IAAI,EAAE,QAAQ;gCACd,QAAQ,EAAE,KAAK;6BAClB;yBACJ;qBACJ;iBACJ;aACJ,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}

@@ -1,2 +0,2 @@

export type WidgetDescriptor = {
export type ItemDescriptor = {
id: string;

@@ -6,6 +6,5 @@ name: string;

version?: string;
src: string;
properties: WidgetPropertyDescriptor[];
properties: PropertyDescriptor[];
};
export type WidgetPropertyDescriptor = {
export type PropertyDescriptor = {
name: string;

@@ -17,1 +16,5 @@ displayName?: string;

};
export type WidgetDescriptor = ItemDescriptor & {
src: string;
};
export type WidgetPropertyDescriptor = PropertyDescriptor;
import { Program } from 'typescript';
import { WidgetDescriptor } from './descriptors';
import { ItemDescriptor, WidgetDescriptor } from './descriptors';
export type FileScannerOptions = {

@@ -12,6 +12,10 @@ defaultVersion?: string;

constructor(program: Program, file: string, options?: FileScannerOptions | undefined);
private parse;
scanForWidget(): WidgetDescriptor | undefined;
scanForPaymentGateways(): ItemDescriptor[];
private hasWidgetModifier;
private hasPaymentGatewayModifier;
private getTagValue;
private processWidget;
private processPaymentGateway;
private processProperties;

@@ -23,2 +27,3 @@ private getPropertyComment;

private getPropsType;
private getConstructor;
}

@@ -19,8 +19,12 @@ "use strict";

}
parse() {
if (!this.parsedSource) {
this.parsedSource = (0, parser_1.parseFile)(this.program, this.file);
}
}
scanForWidget() {
const parsed = (0, parser_1.parseFile)(this.program, this.file);
this.parse();
let widget;
if (parsed) {
this.parsedSource = parsed;
const widgetDeclarations = parsed.comments.filter(this.hasWidgetModifier);
if (this.parsedSource) {
const widgetDeclarations = this.parsedSource.comments.filter(this.hasWidgetModifier);
if (widgetDeclarations.length > 1) {

@@ -36,5 +40,17 @@ throw new errors_1.SyntaxError(`Multiple @widget declarations in ${this.file}, only the default export can be declared a widget`, widgetDeclarations[1].compilerNode);

}
scanForPaymentGateways() {
this.parse();
const paymentGateways = [];
if (this.parsedSource) {
const declarations = this.parsedSource.comments.filter(this.hasPaymentGatewayModifier);
paymentGateways.push(...declarations.map(this.processPaymentGateway.bind(this)));
}
return paymentGateways;
}
hasWidgetModifier(comment) {
return comment.commentBlock.tags.some((tag) => tag.tag === 'widget' || tag.tag === 'widgetName');
}
hasPaymentGatewayModifier(comment) {
return comment.commentBlock.tags.some((tag) => tag.tag === 'paymentGateway' || tag.tag === 'paymentGatewayName');
}
getTagValue(tags, tagName, fullText) {

@@ -77,2 +93,30 @@ const tag = tags.find((tag) => tag.tag === tagName);

}
processPaymentGateway(declaration) {
if (declaration.compilerNode.kind !== typescript_1.SyntaxKind.ClassDeclaration) {
throw new errors_1.SyntaxError('@paymentGateway must be declared on a class', declaration.compilerNode);
}
const classDeclaration = declaration.compilerNode;
const tags = declaration.commentBlock.tags;
const gatewayId = this.getTagValue(tags, 'paymentGateway') || classDeclaration.name?.text;
if (!gatewayId) {
throw new errors_1.SyntaxError('Unable to determine payment gateway id, no explicit id provided and unable to determine class name', declaration.compilerNode);
}
const gatewayName = this.getTagValue(tags, 'paymentGatewayName', true) || gatewayId;
const gatewayVersion = this.options?.defaultVersion;
const gateway = {
id: gatewayId,
name: gatewayName,
description: declaration.commentBlock.description,
version: gatewayVersion,
properties: [],
};
const constructorDeclaration = this.getConstructor(classDeclaration);
if (constructorDeclaration) {
const propsType = this.getPropsType(constructorDeclaration);
if (propsType) {
gateway.properties = this.processProperties(propsType);
}
}
return gateway;
}
processProperties(propsType) {

@@ -185,4 +229,7 @@ const properties = [];

}
getConstructor(classDeclaration) {
return classDeclaration.members.find((member) => member.kind === typescript_1.SyntaxKind.Constructor);
}
}
exports.FileScanner = FileScanner;
//# sourceMappingURL=fileScanner.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"fileScanner.js","sourceRoot":"","sources":["../../src/manifest/fileScanner.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;;;;AAG/C,2CAUoB;AACpB,oDAA4B;AAE5B,qCAAuD;AACvD,qCAA4D;AAM5D,MAAa,WAAW;IAGpB,YAAoB,OAAgB,EAAU,IAAY,EAAU,OAA4B;QAA5E,YAAO,GAAP,OAAO,CAAS;QAAU,SAAI,GAAJ,IAAI,CAAQ;QAAU,YAAO,GAAP,OAAO,CAAqB;IAAG,CAAC;IAEpG,aAAa;QACT,MAAM,MAAM,GAAG,IAAA,kBAAS,EAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,MAAoC,CAAC;QAEzC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U,CAAC,IAAI,CAClB,CAAC;iBACL;gBAED,MAAM;aACT;YAED;gBACI,IAAI,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE;oBACxB,MAAM,IAAI,oBAAW,CACjB,8CAA8C,uBAAU,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAChF,UAAU,CAAC,IAAI,CAClB,CAAC;iBACL;gBAED,yCAAyC;gBACzC,IAAI,UAAU,EAAE;oBACZ,MAAM,IAAI,oBAAW,CAAC,oCAAoC,EAAE,UAAU,CAAC,CAAC;iBAC3E;gBAED,MAAM;SACb;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;IAEO,cAAc,CAAC,gBAAkC;QACrD,OAAO,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,uBAAU,CAAC,WAAW,CAExE,CAAC;IACpB,CAAC;CACJ;AApTD,kCAoTC"}

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

const sourceFile = program.getSourceFile(file);
sourceFile?.getLineAndCharacterOfPosition;
if (!sourceFile) {

@@ -148,0 +147,0 @@ (0, debug_1.default)('unable to get source file %s', file);

@@ -1,1 +0,1 @@

{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../src/manifest/parser.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE/C,wDAA0C;AAC1C,mDAA8D;AAC9D,yDAA8E;AAC9E,oDAA4B;AAkB5B;;;;;GAKG;AACH,SAAS,iBAAiB,CAAC,IAAmB;IAC1C,OAAO,CACH,IAAI,KAAK,oBAAE,CAAC,UAAU,CAAC,aAAa;QACpC,IAAI,KAAK,oBAAE,CAAC,UAAU,CAAC,cAAc;QACrC,IAAI,KAAK,oBAAE,CAAC,UAAU,CAAC,gBAAgB;QACvC,IAAI,KAAK,oBAAE,CAAC,UAAU,CAAC,eAAe;QACtC,IAAI,KAAK,o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
/// <reference types="lodash" />
import { WidgetDescriptor } from './descriptors';
import { ItemDescriptor, WidgetDescriptor } from './descriptors';
export type ScannerOptions = {

@@ -12,3 +12,4 @@ defaultVersion?: string;

widgets: import("lodash").Dictionary<WidgetDescriptor>;
paymentGateways: import("lodash").Dictionary<ItemDescriptor>;
}>;
}

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

const widgets = [];
const paymentGateways = [];
const program = typescript_1.default.createProgram(files, {});

@@ -29,5 +30,7 @@ for (const file of files) {

}
paymentGateways.push(...fileScanner.scanForPaymentGateways());
}
return {
widgets: (0, lodash_1.keyBy)(widgets, (widget) => widget.id),
paymentGateways: (0, lodash_1.keyBy)(paymentGateways, (gateway) => gateway.id),
};

@@ -34,0 +37,0 @@ }

@@ -1,1 +0,1 @@

{"version":3,"file":"scanner.js","sourceRoot":"","sources":["../../src/manifest/scanner.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;;;;AAE/C,+BAA4B;AAC5B,mCAA+B;AAC/B,4DAA4B;AAE5B,+CAA4C;AAM5C,MAAa,OAAO;IAChB,YAAoB,UAAkB,EAAU,OAAwB;QAApD,eAAU,GAAV,UAAU,CAAQ;QAAU,YAAO,GAAP,OAAO,CAAiB;IAAG,CAAC;IAE5E,KAAK,CAAC,IAAI;QACN,MAAM,KAAK,GAAG,MAAM,IAAA,WAAI,EAAC,GAAG,IAAI,CAAC,UAAU,gBAAgB,CAAC,CAAC;QAC7D,MAAM,OAAO,GAAuB,EAAE,CAAC;QACvC,MAAM,OAAO,GAAG,oBAAE,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAE5C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACtB,MAAM,WAAW,GAAG,IAAI,yBAAW,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YACjE,MAAM,MAAM,GAAG,WAAW,CAAC,aAAa,EAAE,CAAC;YAE3C,IAAI,MAAM,EAAE;gBAC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,EAAE,CAAC;YAC9C,eAAe,EAAE,IAAA,cAAK,EAAC,eAAe,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;SACnE,CAAC;IACN,CAAC;CACJ;AAzBD,0BAyBC"}
{
"name": "@evoke-platform/plugin-scripts",
"version": "1.0.0-dev.72",
"version": "1.0.0-dev.73",
"description": "Scripts for managing an Evoke platform plugin project",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/Evoke-Platform/evoke-sdk/blob/main/packages/plugin-scripts/README.md",

/** @widget */
export declare function Widget1(): null;
/** @widget */
export declare function Widget2(): null;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.Widget2 = exports.Widget1 = void 0;
/** @widget */
function Widget1() {
return null;
}
exports.Widget1 = Widget1;
/** @widget */
function Widget2() {
return null;
}
exports.Widget2 = Widget2;
//# sourceMappingURL=widget.js.map
{"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/badFiles/multipleWidgets/widget.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAE/C,cAAc;AACd,SAAgB,OAAO;IACnB,OAAO,IAAI,CAAC;AAChB,CAAC;AAFD,0BAEC;AAED,cAAc;AACd,SAAgB,OAAO;IACnB,OAAO,IAAI,CAAC;AAChB,CAAC;AAFD,0BAEC"}
/** @widget */
export declare class NotFunctionComponent {
}
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotFunctionComponent = void 0;
/** @widget */
class NotFunctionComponent {
}
exports.NotFunctionComponent = NotFunctionComponent;
//# sourceMappingURL=widget.js.map
{"version":3,"file":"widget.js","sourceRoot":"","sources":["../../../../../src/__tests__/manifest/badFiles/notFunctionComponent/widget.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;;AAE/C,cAAc;AACd,MAAa,oBAAoB;CAAG;AAApC,oDAAoC"}
/** @widget */
declare function Basic(): null;
export default Basic;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function Basic() {
return null;
}
exports.default = Basic;
//# sourceMappingURL=basic.js.map
{"version":3,"file":"basic.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/basic.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C,cAAc;AACd,SAAS,KAAK;IACV,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,KAAK,CAAC"}
/** @widgetName */
declare function Basic2(): null;
export default Basic2;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widgetName */
function Basic2() {
return null;
}
exports.default = Basic2;
//# sourceMappingURL=basic2.js.map
{"version":3,"file":"basic2.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/basic2.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C,kBAAkB;AAClB,SAAS,MAAM;IACX,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,MAAM,CAAC"}
/**
* This is a sample description for a widget. It may wrap to
* multiple lines.
*
* @widget
*/
declare function WidgetDescription(): null;
export default WidgetDescription;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/**
* This is a sample description for a widget. It may wrap to
* multiple lines.
*
* @widget
*/
function WidgetDescription() {
return null;
}
exports.default = WidgetDescription;
//# sourceMappingURL=description.js.map
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/description.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C;;;;;GAKG;AACH,SAAS,iBAAiB;IACtB,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
type BaseType = {
base: string;
};
type PropsType = BaseType & {
textProperty: string;
};
/** @widget */
declare function PropsIntersectionType(props: PropsType): null;
export default PropsIntersectionType;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function PropsIntersectionType(props) {
return null;
}
exports.default = PropsIntersectionType;
//# sourceMappingURL=intersectionTypeProps.js.map
{"version":3,"file":"intersectionTypeProps.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/intersectionTypeProps.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAU/C,cAAc;AACd,SAAS,qBAAqB,CAAC,KAAgB;IAC3C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,qBAAqB,CAAC"}
type PropsType = {
numProperty: number;
};
/** @widget */
declare function NumberProperty(props: PropsType): null;
export default NumberProperty;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function NumberProperty(props) {
return null;
}
exports.default = NumberProperty;
//# sourceMappingURL=numberProperty.js.map
{"version":3,"file":"numberProperty.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/numberProperty.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAM/C,cAAc;AACd,SAAS,cAAc,CAAC,KAAgB;IACpC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,cAAc,CAAC"}
type PropsType = {
textProperty?: string;
};
/** @widget */
declare function OptionalProperty(props: PropsType): null;
export default OptionalProperty;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function OptionalProperty(props) {
return null;
}
exports.default = OptionalProperty;
//# sourceMappingURL=optionalProperty.js.map
{"version":3,"file":"optionalProperty.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/optionalProperty.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAM/C,cAAc;AACd,SAAS,gBAAgB,CAAC,KAAgB;IACtC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,gBAAgB,CAAC"}
type PropsType = {
textProperty: string | undefined;
};
/** @widget */
declare function OptionalProperty2(props: PropsType): null;
export default OptionalProperty2;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function OptionalProperty2(props) {
return null;
}
exports.default = OptionalProperty2;
//# sourceMappingURL=optionalProperty2.js.map
{"version":3,"file":"optionalProperty2.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/optionalProperty2.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAM/C,cAAc;AACd,SAAS,iBAAiB,CAAC,KAAgB;IACvC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,iBAAiB,CAAC"}
type PropsType = {
/**
* @propertyName Text Property
*/
textProperty: string;
};
/** @widget */
declare function PropertyName(props: PropsType): null;
export default PropertyName;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function PropertyName(props) {
return null;
}
exports.default = PropertyName;
//# sourceMappingURL=propertyName.js.map
{"version":3,"file":"propertyName.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/propertyName.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAS/C,cAAc;AACd,SAAS,YAAY,CAAC,KAAgB;IAClC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,YAAY,CAAC"}
type PropsType = {
/**
* @propertyType choices
*/
choicesProperty: string;
};
/** @widget */
declare function PropertyType(props: PropsType): null;
export default PropertyType;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function PropertyType(props) {
return null;
}
exports.default = PropertyType;
//# sourceMappingURL=propertyType.js.map
{"version":3,"file":"propertyType.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/propertyType.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAS/C,cAAc;AACd,SAAS,YAAY,CAAC,KAAgB;IAClC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,YAAY,CAAC"}
type PropsType = {
recordProperty: {
nested1: string;
nested2: number;
};
};
/** @widget */
declare function RecordProperty(props: PropsType): null;
export default RecordProperty;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function RecordProperty(props) {
return null;
}
exports.default = RecordProperty;
//# sourceMappingURL=recordProperty.js.map
{"version":3,"file":"recordProperty.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/recordProperty.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAS/C,cAAc;AACd,SAAS,cAAc,CAAC,KAAgB;IACpC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,cAAc,CAAC"}
/** @widget */
declare function PropsTypeLiteral(props: {
textProperty: string;
}): null;
export default PropsTypeLiteral;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function PropsTypeLiteral(props) {
return null;
}
exports.default = PropsTypeLiteral;
//# sourceMappingURL=typeLiteralProps.js.map
{"version":3,"file":"typeLiteralProps.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/typeLiteralProps.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C,cAAc;AACd,SAAS,gBAAgB,CAAC,KAA+B;IACrD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,gBAAgB,CAAC"}
type PropsType = {
textProperty: string;
};
/** @widget */
declare function PropsTypeReference(props: PropsType): null;
export default PropsTypeReference;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget */
function PropsTypeReference(props) {
return null;
}
exports.default = PropsTypeReference;
//# sourceMappingURL=typeReferenceProps.js.map
{"version":3,"file":"typeReferenceProps.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/typeReferenceProps.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAM/C,cAAc;AACd,SAAS,kBAAkB,CAAC,KAAgB;IACxC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,kBAAkB,CAAC"}
/**
* @widget
* @widgetVersion testVersion
* */
declare function WidgetVersion(): null;
export default WidgetVersion;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @widget
* @widgetVersion testVersion
* */
function WidgetVersion() {
return null;
}
exports.default = WidgetVersion;
//# sourceMappingURL=version.js.map
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/version.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C;;;KAGK;AACL,SAAS,aAAa;IAClB,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,aAAa,CAAC"}
/** @widget CustomId */
declare function Widget(): null;
export default Widget;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widget CustomId */
function Widget() {
return null;
}
exports.default = Widget;
//# sourceMappingURL=widgetId.js.map
{"version":3,"file":"widgetId.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/widgetId.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C,uBAAuB;AACvB,SAAS,MAAM;IACX,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,MAAM,CAAC"}
/** @widgetName Test Widget Name */
declare function WidgetName(): null;
export default WidgetName;
"use strict";
// Copyright (c) 2023 System Automation Corporation.
// This file is licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
/** @widgetName Test Widget Name */
function WidgetName() {
return null;
}
exports.default = WidgetName;
//# sourceMappingURL=widgetName.js.map
{"version":3,"file":"widgetName.js","sourceRoot":"","sources":["../../../../src/__tests__/manifest/testFiles/widgetName.tsx"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,+CAA+C;;AAE/C,mCAAmC;AACnC,SAAS,UAAU;IACf,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,kBAAe,UAAU,CAAC"}