@wealthsweet/embed-react
Advanced tools
+12
-8
| 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; |
+12
-8
| 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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Embedded URLs or IPs
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
687564
20.53%2969
18.95%20
42.86%8
33.33%