@fraczled/sdk 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +23 -20
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -11,20 +11,20 @@ npm install @fraczled/sdk
11
11
  ## Quick Start
12
12
 
13
13
  ```typescript
14
- import { createFraczledEditor } from '@fraczled/sdk';
14
+ import { createFraczledEditor } from "@fraczled/sdk";
15
15
 
16
16
  const editor = createFraczledEditor({
17
- apiKey: 'YOUR_LICENSE_KEY',
18
- projectId: 'YOUR_PROJECT_ID',
19
- container: document.getElementById('editor'),
17
+ apiKey: "YOUR_LICENSE_KEY",
18
+ projectId: "YOUR_PROJECT_ID",
19
+ container: document.getElementById("editor"),
20
20
  services: {
21
- licenseEndpoint: 'https://api.fraczled.com/api/license/validate',
22
- }
21
+ licenseEndpoint: "https://api.fraczled.com/api/license/validate",
22
+ },
23
23
  });
24
24
 
25
25
  // Listen for changes
26
- editor.on('change', (state) => {
27
- console.log('Design changed:', state);
26
+ editor.on("change", (state) => {
27
+ console.log("Design changed:", state);
28
28
  });
29
29
 
30
30
  // Save the design (JSON string)
@@ -44,8 +44,8 @@ editor.destroy();
44
44
  ```typescript
45
45
  interface EditorConfig {
46
46
  // Required
47
- apiKey: string; // Your dev_* or prod_* license key
48
- projectId: string; // Your project ID (from signup or dashboard)
47
+ apiKey: string; // Your dev_* or prod_* license key
48
+ projectId: string; // Your project ID (from signup or dashboard)
49
49
  container: HTMLElement;
50
50
 
51
51
  // Optional
@@ -78,12 +78,14 @@ to avoid relying on external CDNs.
78
78
 
79
79
  ## License Keys
80
80
 
81
- ### Development Keys (dev_*)
81
+ ### Development Keys (dev\_\*)
82
+
82
83
  - 100-day free trial
83
84
  - Works on localhost, staging, and development domains only
84
85
  - Full feature access for testing
85
86
 
86
- ### Production Keys (prod_*)
87
+ ### Production Keys (prod\_\*)
88
+
87
89
  - Required for production domains
88
90
  - Available with Team ($150/mo) or Business ($250/mo) plans
89
91
 
@@ -91,13 +93,13 @@ Note: SDK license keys are used in client-side code. Treat them as publishable a
91
93
 
92
94
  ## Plans
93
95
 
94
- | Feature | Team ($150/mo) | Business ($250/mo) |
95
- |---------|----------------|-------------------|
96
- | Production Domains | 1 | Unlimited |
97
- | Editor Loads | 10,000/month | Unlimited |
98
- | AI Features | Yes | Yes |
99
- | Export (Web/Print) | Yes | Yes |
100
- | Support | Standard | Priority |
96
+ | Feature | Team ($150/mo) | Business ($250/mo) |
97
+ | ------------------ | -------------- | ------------------ |
98
+ | Production Domains | 1 | Unlimited |
99
+ | Editor Loads | 10,000/month | Unlimited |
100
+ | AI Features | Yes | Yes |
101
+ | Export (Web/Print) | Yes | Yes |
102
+ | Support | Standard | Priority |
101
103
 
102
104
  ## Getting Started
103
105
 
@@ -113,6 +115,7 @@ Note: SDK license keys are used in client-side code. Treat them as publishable a
113
115
  Creates a new editor instance.
114
116
 
115
117
  **Returns:**
118
+
116
119
  ```typescript
117
120
  {
118
121
  store: Store; // Access to the underlying store
@@ -132,4 +135,4 @@ Creates a new editor instance.
132
135
  ## Support
133
136
 
134
137
  - Documentation: [fraczled.com/docs](https://fraczled.com/docs)
135
- - Email: support@fraczled.com
138
+ - Email: andrew@andrewfraczak.com
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fraczled/sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Fraczled Design Studio SDK - Embed a powerful design editor in your application",
5
5
  "scripts": {
6
6
  "build": "vite build --config ../vite.sdk.config.ts && vite build --config ../vite.sdk.umd.config.ts",