@xenia-martech/sdk-js 1.0.0-dev.30 → 1.0.0-dev.34

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
@@ -10,16 +10,14 @@ The official Xenia Marketer SDK for **web (pull) channels**. Drop in one wrapper
10
10
 
11
11
  One client, four jobs. Everything below rides on the same identity/attribution state, so you never wire these together by hand:
12
12
 
13
- ```mermaid
14
- flowchart LR
15
- App["Your app<br/>(browser or server)"] -->|"1 · track()"| EV["POST /api/events/v1<br/>analytics + journey triggers"]
16
- App -->|"2 · request() / webhook()"| WH["Journey webhook endpoint"]
17
- WH -->|"xeniaActions in the reply"| App
18
- App -->|"3 · resolve()"| RS["POST /api/personalization/resolve<br/>REST, production path"]
19
- RS -->|"personalized content"| App
20
- EV --> J["Journey Orchestrator"]
21
- WH --> J
22
- ```
13
+ <!--
14
+ Rendered image, not Mermaid — npmjs.com does not render Mermaid diagrams.
15
+ The PNG lives in assets/ and ships in the package (see package.json "files").
16
+ Served from the npm tarball via jsdelivr, pinned to the `dev` dist-tag because
17
+ the package is currently prerelease-only (latest is a 1.0.0-dev.* build). Once
18
+ a stable release exists, drop `@dev` so it tracks `latest`.
19
+ -->
20
+ ![Your app calls track() → POST /api/events/v1, request()/webhook() → the journey webhook endpoint (whose reply carries xeniaActions), and resolve() → POST /api/personalization/resolve; events and webhooks feed the Journey Orchestrator.](https://cdn.jsdelivr.net/npm/@xenia-martech/sdk-js@dev/assets/sdk-request-flow.png)
23
21
 
24
22
  | Feature | What it does | Call it with |
25
23
  |---|---|---|
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenia-martech/sdk-js",
3
- "version": "1.0.0-dev.30",
3
+ "version": "1.0.0-dev.34",
4
4
  "description": "Xenia Marketer SDK for web (pull) channels — declarative event tracking, webhook request/response with in-page actions (swap/hide/banner/popup/modal), and content personalization. Client and server builds.",
5
5
  "author": "Xenia Martech",
6
6
  "license": "MIT",
@@ -70,7 +70,8 @@
70
70
  "dist",
71
71
  "README.md",
72
72
  "LICENSE",
73
- "CSS_VARIABLES.md"
73
+ "CSS_VARIABLES.md",
74
+ "assets"
74
75
  ],
75
76
  "scripts": {
76
77
  "build": "rm -rf dist && tsup && node scripts/add-use-client.mjs",
@@ -114,6 +115,7 @@
114
115
  "@eslint/js": "^10.0.1",
115
116
  "@semantic-release/changelog": "^6.0.3",
116
117
  "@semantic-release/commit-analyzer": "^13.0.1",
118
+ "@semantic-release/exec": "^6.0.3",
117
119
  "@semantic-release/git": "^10.0.1",
118
120
  "@semantic-release/github": "^12.0.8",
119
121
  "@semantic-release/npm": "^13.1.5",