@delmaredigital/payload-experiments 0.4.0 → 0.4.1

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
@@ -2,6 +2,8 @@
2
2
 
3
3
  A/B testing for Payload CMS and Next.js, from the content you already manage. Test a block on a page, a whole page against another page, or a setting your developer makes testable. Pick a goal, including click goals you name and attach to buttons and links, then compare the Original with your new versions. Results appear in the admin: they count only people who actually saw the content, warn when traffic looks wrong, and check guardrail goals (goals you don't want to hurt). You pick a winner and can make it permanent. Your data stays in your own Postgres database. There is no vendor.
4
4
 
5
+ ![A Test block in the Puck editor with Original and Variant A tabs, and the test's status, actions and traffic split in the sidebar](https://plugins.delmaredigital.com/images/experiments/editor-test-block.png)
6
+
5
7
  ## Install
6
8
 
7
9
  ```bash
@@ -190,7 +190,7 @@ function ResultsContent({ id, surface, onRecomputed, renderPage, onChanged, docu
190
190
  results: data && round === decisionRound.phase && 'arms' in decisionRound && (state === 'ready' || state === 'empty') ? data : undefined
191
191
  });
192
192
  }
193
- });
193
+ }, action.id);
194
194
  if (action.id === 'release-pages') roundActions['release-pages'] = /*#__PURE__*/ _jsx(LifecycleButton, {
195
195
  action: action,
196
196
  disabled: busy || !!deciding,
@@ -200,7 +200,7 @@ function ResultsContent({ id, surface, onRecomputed, renderPage, onChanged, docu
200
200
  phase: managerDoc?.phase
201
201
  });
202
202
  }
203
- });
203
+ }, action.id);
204
204
  }
205
205
  const pages = manage && placements ? actionablePreviewPages(placements, doc?.flagPoint) : [];
206
206
  const editorUrls = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delmaredigital/payload-experiments",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "No-code A/B testing for Payload CMS and Next.js: block, page and flag experiments with holdouts, layers, exposure logging and honest statistics inside the admin — no vendor",
5
5
  "type": "module",
6
6
  "license": "MIT",