@fufulog/brevomorphic-cms-sdk 1.0.3 → 1.0.4

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/package.json CHANGED
@@ -1,10 +1,31 @@
1
1
  {
2
2
  "name": "@fufulog/brevomorphic-cms-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "SDK library to bootstrap Brevo email templates and manage local mappings in Postgres, MySQL, or Firestore",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./svelte/BrevoWysiwyg.svelte": {
15
+ "types": "./svelte/BrevoWysiwyg.svelte.d.ts",
16
+ "import": "./svelte/BrevoWysiwyg.svelte",
17
+ "svelte": "./svelte/BrevoWysiwyg.svelte",
18
+ "default": "./svelte/BrevoWysiwyg.svelte"
19
+ },
20
+ "./react/BrevoWysiwyg": {
21
+ "types": "./react/BrevoWysiwyg.d.ts",
22
+ "import": "./react/BrevoWysiwyg.tsx",
23
+ "default": "./react/BrevoWysiwyg.tsx"
24
+ },
25
+ "./react/BrevoWysiwyg.css": {
26
+ "default": "./react/BrevoWysiwyg.css"
27
+ }
28
+ },
8
29
  "scripts": {
9
30
  "build": "tsc",
10
31
  "test": "tsx tests/sdk.test.ts",
@@ -28,9 +49,11 @@
28
49
  "devDependencies": {
29
50
  "@types/node": "^20.11.30",
30
51
  "@types/express": "^4.17.21",
52
+ "@types/react": "^18.2.66",
31
53
  "typescript": "^5.4.3",
32
54
  "tsx": "^4.7.1",
33
- "express": "^4.19.2"
55
+ "express": "^4.19.2",
56
+ "react": "^18.2.0"
34
57
  },
35
58
  "publishConfig": {
36
59
  "access": "public"
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+
3
+ export interface BrevoVariable {
4
+ label: string;
5
+ key: string;
6
+ }
7
+
8
+ export interface BrevoWysiwygProps {
9
+ value: string;
10
+ onChange: (html: string) => void;
11
+ variables?: BrevoVariable[];
12
+ placeholder?: string;
13
+ disabled?: boolean;
14
+ }
15
+
16
+ export default function BrevoWysiwyg(props: BrevoWysiwygProps): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { SvelteComponent } from 'svelte';
2
+
3
+ declare class BrevoWysiwyg extends SvelteComponent<{
4
+ value?: string;
5
+ variables?: Array<{ label: string; key: string }>;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ }> {}
9
+
10
+ export default BrevoWysiwyg;