@charisol/plexo-sdk 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/store.d.ts CHANGED
@@ -9,6 +9,12 @@ export interface StrataTokenFlat {
9
9
  export interface BuilderThemeColors {
10
10
  backgroundColor?: string;
11
11
  textColor?: string;
12
+ /** Resolved org white-label identity (see useApiKeyValidation's `branding`) — carried
13
+ * here alongside backgroundColor/textColor so portal-rendered UI outside the themed
14
+ * root div (StrataTokenPicker etc.) can also pick up the org's name/logo if it ever
15
+ * needs to, same reasoning as the fields above. */
16
+ orgName?: string;
17
+ orgLogoUrl?: string;
12
18
  }
13
19
  export interface PlexoStore {
14
20
  template: TemplateJSON;
@@ -385,6 +385,14 @@ export interface ElementProps {
385
385
  /** Host's own end-user id — see PlexoBuilderProps.externalUserId. */
386
386
  externalUserId?: string;
387
387
  templateKind?: 'EMAIL' | 'LANDING_PAGE';
388
+ /**
389
+ * Passed straight through from PlexoBuilderProps.onRequestComment. When present, the
390
+ * selected-element toolbar shows a Comment button (alongside Duplicate/Delete) that
391
+ * fires this directly on click — independent of `commentMode`, which only gates the
392
+ * separate "click anywhere on the canvas" behavior. Omit the prop entirely to hide
393
+ * the button for hosts that haven't built comment UI.
394
+ */
395
+ onRequestComment?: (target: CommentTarget) => void;
388
396
  }
389
397
  export interface ColumnsSelectorProps {
390
398
  onSelect: (widths: string[]) => void;
@@ -1,5 +1,13 @@
1
1
  import type { SdkPlan } from './tierFeatures';
2
2
  export type ApiKeyStatus = 'initializing' | 'valid' | 'invalid' | 'error';
3
+ /** White-label identity for the API key's organization, present only when the org is
4
+ * entitled (Pro/Ultra owner plan) and has actually configured branding — see
5
+ * plexo-web's /api/v1/validate-key. Absent means "show the default Plexo splash." */
6
+ export interface OrgBranding {
7
+ name: string;
8
+ logoUrl?: string;
9
+ brandColor?: string;
10
+ }
3
11
  export interface ApiKeyValidationResult {
4
12
  status: ApiKeyStatus;
5
13
  plan: SdkPlan;
@@ -8,6 +16,7 @@ export interface ApiKeyValidationResult {
8
16
  aiTier: string;
9
17
  /** Ultra-gated, server-resolved: host allows embedded builders to publish/AI under this account with no domain limit. */
10
18
  manageLandingPagePublishing: boolean;
19
+ branding?: OrgBranding;
11
20
  error: string | null;
12
21
  }
13
22
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@charisol/plexo-sdk",
3
3
  "private": false,
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "description": "Plexo visual email and landing page builder SDK — drag-and-drop template editor with AI integration.",
6
6
  "keywords": [
7
7
  "email-builder",