New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@wealthsweet/embed-react

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wealthsweet/embed-react - npm Package Compare versions

Comparing version
1.2.2
to
1.3.0
+12
-8
dist/index.d.cts
import { z } from 'zod';
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsWithChildren } from 'react';
import { BrandingOverrides } from '@wealthsweet/http-apis/performance/zod';

@@ -64,3 +65,3 @@ type CommonEmbedMessageFields = {

message: z.ZodOptional<z.ZodString>;
}, z.core.$strip>]>;
}, z.core.$strip>], "type">;
type EmbedMessage = InitialisingEmbedMessage | InitialisingDoneEmbedMessage | RenderingEmbedMessage | RenderingDoneEmbedMessage | UserEventEmbedMessage | UserIdleEmbedMessage | ErrorEmbedMessage;

@@ -89,6 +90,4 @@

* @description A list of references to nodes that this user has access to. If not provided, nodes will not be included in the generated token.
* @example [
* "node-1",
* "node-2"
* ]
* @example node-1
* @example node-2
*/

@@ -246,2 +245,4 @@ nodes?: string[];

investorAccountExtRefs?: string[];
/** @description A base64 encoded JSON string of the branding configuration object to customise the appearance of the embedded performance page */
brandingOverrides?: string;
};

@@ -269,3 +270,3 @@ header?: never;

path: "embed/pages/performance";
params: WealthSweetPerforamnceElementQueryParams;
params: Omit<WealthSweetPerforamnceElementQueryParams, "brandingOverrides">;
};

@@ -282,3 +283,5 @@ type WealthSweetPerforamnceElementQueryParams = NonNullable<operations["embedPagePerformance"]["parameters"]["query"]>;

} & WealthSweetElement;
declare function generateWealthSweetElementUrl({ origin: { protocol, host }, path, params, }: WealthSweetElementURLParams): string;
declare function generateWealthSweetElementUrl({ origin: { protocol, host }, path, params, brandingOverrides, }: WealthSweetElementURLParams & {
brandingOverrides?: BrandingOverrides;
}): string;

@@ -393,4 +396,5 @@ declare const useOriginContext: () => {

*/
declare function usePerformanceUrl({ token: paramToken, origin: paramOrigin, ...params }: Partial<WealthSweetPerforamnceElementQueryParams & {
declare function usePerformanceUrl({ token: paramToken, origin: paramOrigin, ...params }: Partial<Omit<WealthSweetPerforamnceElementQueryParams, "brandingOverrides"> & {
origin: WealthSweetElementOrigin;
brandingOverrides: BrandingOverrides;
}>): {

@@ -397,0 +401,0 @@ isTokenLoaded: true;

import { z } from 'zod';
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsWithChildren } from 'react';
import { BrandingOverrides } from '@wealthsweet/http-apis/performance/zod';

@@ -64,3 +65,3 @@ type CommonEmbedMessageFields = {

message: z.ZodOptional<z.ZodString>;
}, z.core.$strip>]>;
}, z.core.$strip>], "type">;
type EmbedMessage = InitialisingEmbedMessage | InitialisingDoneEmbedMessage | RenderingEmbedMessage | RenderingDoneEmbedMessage | UserEventEmbedMessage | UserIdleEmbedMessage | ErrorEmbedMessage;

@@ -89,6 +90,4 @@

* @description A list of references to nodes that this user has access to. If not provided, nodes will not be included in the generated token.
* @example [
* "node-1",
* "node-2"
* ]
* @example node-1
* @example node-2
*/

@@ -246,2 +245,4 @@ nodes?: string[];

investorAccountExtRefs?: string[];
/** @description A base64 encoded JSON string of the branding configuration object to customise the appearance of the embedded performance page */
brandingOverrides?: string;
};

@@ -269,3 +270,3 @@ header?: never;

path: "embed/pages/performance";
params: WealthSweetPerforamnceElementQueryParams;
params: Omit<WealthSweetPerforamnceElementQueryParams, "brandingOverrides">;
};

@@ -282,3 +283,5 @@ type WealthSweetPerforamnceElementQueryParams = NonNullable<operations["embedPagePerformance"]["parameters"]["query"]>;

} & WealthSweetElement;
declare function generateWealthSweetElementUrl({ origin: { protocol, host }, path, params, }: WealthSweetElementURLParams): string;
declare function generateWealthSweetElementUrl({ origin: { protocol, host }, path, params, brandingOverrides, }: WealthSweetElementURLParams & {
brandingOverrides?: BrandingOverrides;
}): string;

@@ -393,4 +396,5 @@ declare const useOriginContext: () => {

*/
declare function usePerformanceUrl({ token: paramToken, origin: paramOrigin, ...params }: Partial<WealthSweetPerforamnceElementQueryParams & {
declare function usePerformanceUrl({ token: paramToken, origin: paramOrigin, ...params }: Partial<Omit<WealthSweetPerforamnceElementQueryParams, "brandingOverrides"> & {
origin: WealthSweetElementOrigin;
brandingOverrides: BrandingOverrides;
}>): {

@@ -397,0 +401,0 @@ isTokenLoaded: true;

+22
-13
{
"name": "@wealthsweet/embed-react",
"version": "1.2.2",
"version": "1.3.0",
"devDependencies": {
"@eslint/compat": "^1.3.1",
"@eslint/eslintrc": "^3.3.1",
"@eslint/compat": "^2.0.3",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^9.32.0",
"@types/react": "19.1.9",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/react": "19.2.14",
"@types/react-dom": "^19.2.3",
"eslint": "^9.32.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"globals": "^16.3.0",
"prettier": "^3.6.2",
"tsup": "^8.5.0",
"typescript": "5.9.2",
"typescript-eslint": "^8.39.0",
"@wealthsweet/embed-message-api": "1.1.1",
"@wealthsweet/http-apis": "1.3.1"
"eslint-plugin-react-hooks": "^7.0.1",
"globals": "^17.4.0",
"happy-dom": "^20.8.4",
"prettier": "^3.8.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"tsup": "^8.5.1",
"typescript": "5.9.3",
"typescript-eslint": "^8.57.0",
"@wealthsweet/embed-message-api": "1.2.0",
"@wealthsweet/http-apis": "1.4.0"
},

@@ -31,3 +37,6 @@ "files": [

},
"repository": "https://github.com/wealthsweet/open-source",
"repository": {
"type": "git",
"url": "git+https://github.com/wealthsweet/open-source.git"
},
"type": "module",

@@ -34,0 +43,0 @@ "types": "dist/index.d.ts",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display