@baziapi/widget 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -23,7 +23,7 @@ Add the following snippet anywhere on your website:
23
23
  | Attribute | Type | Default | Description |
24
24
  | :-------------- | :------------------ | :--------------------------------- | :-------------------------------------------- |
25
25
  | `data-api-key` | string | **Required** | Your publishable BaZi API Key |
26
- | `data-base-url` | string | `"https://api.baziapi.pro/api/v1"` | API Base URL (for testing or proxy endpoints) |
26
+ | `data-base-url` | string | `"https://api.example.com/api/v1"` | API Base URL (for testing or proxy endpoints) |
27
27
  | `data-theme` | `'light' \| 'dark'` | `'light'` | Theme preference |
28
28
  | `data-lang` | `'en' \| 'zh'` | `'en'` | Default language for chart outputs |
29
29
 
package/dist/widget.cjs CHANGED
@@ -193,7 +193,7 @@
193
193
  const container = document.getElementById(WIDGET_CONTAINER_ID);
194
194
  if (!container) return;
195
195
  const apiKey = container.getAttribute("data-api-key") || "";
196
- const baseUrl = (container.getAttribute("data-base-url") || "https://api.baziapi.pro").replace(
196
+ const baseUrl = (container.getAttribute("data-base-url") || "https://api.example.com").replace(
197
197
  /\/$/,
198
198
  ""
199
199
  );
package/dist/widget.mjs CHANGED
@@ -191,7 +191,7 @@
191
191
  const container = document.getElementById(WIDGET_CONTAINER_ID);
192
192
  if (!container) return;
193
193
  const apiKey = container.getAttribute("data-api-key") || "";
194
- const baseUrl = (container.getAttribute("data-base-url") || "https://api.baziapi.pro").replace(
194
+ const baseUrl = (container.getAttribute("data-base-url") || "https://api.example.com").replace(
195
195
  /\/$/,
196
196
  ""
197
197
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baziapi/widget",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "description": "Embeddable interactive Web Widget for BaZi Four Pillars calculator",
6
6
  "author": "Md. Nasir Uddin Shoyas",