@uniformdev/next-app-router 20.75.1-alpha.0 → 20.75.1-alpha.11

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.
@@ -36,7 +36,7 @@ type RenderRichTextComponentResolver = (node: RichTextNode) => RichTextRendererC
36
36
  declare const UniformRichText: React.ForwardRefExoticComponent<{
37
37
  /**
38
38
  * The name of the HTML tag to render.
39
- * @default "div"
39
+ * @defaultValue "div"
40
40
  */
41
41
  as?: React.ElementType;
42
42
  /**
@@ -51,7 +51,7 @@ declare const UniformRichText: React.ForwardRefExoticComponent<{
51
51
  /**
52
52
  * Sets the value to show in Canvas editor when the parameter value is empty.
53
53
  * Can be a static string, or a function to generate the placeholder out of parameter info.
54
- * @default undefined
54
+ * @defaultValue undefined
55
55
  */
56
56
  placeholder?: string | ((parameter: {
57
57
  id: string;
@@ -36,7 +36,7 @@ type RenderRichTextComponentResolver = (node: RichTextNode) => RichTextRendererC
36
36
  declare const UniformRichText: React.ForwardRefExoticComponent<{
37
37
  /**
38
38
  * The name of the HTML tag to render.
39
- * @default "div"
39
+ * @defaultValue "div"
40
40
  */
41
41
  as?: React.ElementType;
42
42
  /**
@@ -51,7 +51,7 @@ declare const UniformRichText: React.ForwardRefExoticComponent<{
51
51
  /**
52
52
  * Sets the value to show in Canvas editor when the parameter value is empty.
53
53
  * Can be a static string, or a function to generate the placeholder out of parameter info.
54
- * @default undefined
54
+ * @defaultValue undefined
55
55
  */
56
56
  placeholder?: string | ((parameter: {
57
57
  id: string;
package/dist/index.d.mts CHANGED
@@ -249,12 +249,12 @@ type EvaluatePersonalizationsFunction = (personalization: {
249
249
  type PrecomputeCompositionOptions = Pick<ResolvedRouteResult, 'pageState' | 'route'> & {
250
250
  /**
251
251
  * Whether to evaluate tests
252
- * @default true
252
+ * @defaultValue true
253
253
  */
254
254
  evaluateTests?: boolean | EvaluateTestsFunction;
255
255
  /**
256
256
  * Whether to evaluate personalizations
257
- * @default true
257
+ * @defaultValue true
258
258
  */
259
259
  evaluatePersonalizations?: boolean | EvaluatePersonalizationsFunction;
260
260
  };
package/dist/index.d.ts CHANGED
@@ -249,12 +249,12 @@ type EvaluatePersonalizationsFunction = (personalization: {
249
249
  type PrecomputeCompositionOptions = Pick<ResolvedRouteResult, 'pageState' | 'route'> & {
250
250
  /**
251
251
  * Whether to evaluate tests
252
- * @default true
252
+ * @defaultValue true
253
253
  */
254
254
  evaluateTests?: boolean | EvaluateTestsFunction;
255
255
  /**
256
256
  * Whether to evaluate personalizations
257
- * @default true
257
+ * @defaultValue true
258
258
  */
259
259
  evaluatePersonalizations?: boolean | EvaluatePersonalizationsFunction;
260
260
  };
@@ -4371,8 +4371,8 @@ var TransitionDataStore = class {
4371
4371
  }
4372
4372
  /**
4373
4373
  * Updates data in the transition storage.
4374
- * @param commands Commands to execute against existing stored value (event based stores)
4375
- * @param computedValue Pre-computed new value against existing value (object based stores)
4374
+ * @param commands - Commands to execute against existing stored value (event based stores)
4375
+ * @param computedValue - Pre-computed new value against existing value (object based stores)
4376
4376
  * @returns Resolved promise when the data has been updated
4377
4377
  */
4378
4378
  updateData(commands, computedValue) {
@@ -4848,7 +4848,7 @@ var VisitorDataStore = class {
4848
4848
  /**
4849
4849
  * Deletes visitor data (forgetting them)
4850
4850
  * In most cases you should use forget() on the Context instead of this function, which also clears the Context state.
4851
- * @param fromAllDevices for an identified user, whether to delete all their data (for the entire account) - true, or data for this device (sign out) - false
4851
+ * @param fromAllDevices - for an identified user, whether to delete all their data (for the entire account) - true, or data for this device (sign out) - false
4852
4852
  */
4853
4853
  async delete(fromAllDevices) {
4854
4854
  var _a, _b, _c, _d, _e;
@@ -5367,7 +5367,7 @@ var Context = class {
5367
5367
  }
5368
5368
  /**
5369
5369
  * Forgets the visitor's data and resets the Context to its initial state.
5370
- * @param fromAllDevices for an identified user, whether to delete all their data (for the entire account) - true, or data for this device (sign out) - false
5370
+ * @param fromAllDevices - for an identified user, whether to delete all their data (for the entire account) - true, or data for this device (sign out) - false
5371
5371
  */
5372
5372
  async forget(fromAllDevices) {
5373
5373
  const previousCompositionMetadata = __privateGet4(this, _state).compositionMetadata;
@@ -5408,14 +5408,14 @@ var Context = class {
5408
5408
  });
5409
5409
  return transitionState;
5410
5410
  }
5411
- /** @deprecated */
5411
+ /** @deprecated Internal API for test event processing; not for public use. */
5412
5412
  internal_processTestEvent(event) {
5413
5413
  if (event.variantId) {
5414
5414
  this.setTestVariantId(event.name, event.variantId);
5415
5415
  __privateMethod(this, _Context_instances, emitTest_fn).call(this, event);
5416
5416
  }
5417
5417
  }
5418
- /** @deprecated */
5418
+ /** @deprecated Internal API for personalization event processing; not for public use. */
5419
5419
  internal_processPersonalizationEvent(event) {
5420
5420
  __privateGet4(this, _pzCache)[event.name] = event.variantIds;
5421
5421
  __privateGet4(this, _mitt3).emit("personalizationResult", event);
@@ -4363,8 +4363,8 @@ var TransitionDataStore = class {
4363
4363
  }
4364
4364
  /**
4365
4365
  * Updates data in the transition storage.
4366
- * @param commands Commands to execute against existing stored value (event based stores)
4367
- * @param computedValue Pre-computed new value against existing value (object based stores)
4366
+ * @param commands - Commands to execute against existing stored value (event based stores)
4367
+ * @param computedValue - Pre-computed new value against existing value (object based stores)
4368
4368
  * @returns Resolved promise when the data has been updated
4369
4369
  */
4370
4370
  updateData(commands, computedValue) {
@@ -4840,7 +4840,7 @@ var VisitorDataStore = class {
4840
4840
  /**
4841
4841
  * Deletes visitor data (forgetting them)
4842
4842
  * In most cases you should use forget() on the Context instead of this function, which also clears the Context state.
4843
- * @param fromAllDevices for an identified user, whether to delete all their data (for the entire account) - true, or data for this device (sign out) - false
4843
+ * @param fromAllDevices - for an identified user, whether to delete all their data (for the entire account) - true, or data for this device (sign out) - false
4844
4844
  */
4845
4845
  async delete(fromAllDevices) {
4846
4846
  var _a, _b, _c, _d, _e;
@@ -5359,7 +5359,7 @@ var Context = class {
5359
5359
  }
5360
5360
  /**
5361
5361
  * Forgets the visitor's data and resets the Context to its initial state.
5362
- * @param fromAllDevices for an identified user, whether to delete all their data (for the entire account) - true, or data for this device (sign out) - false
5362
+ * @param fromAllDevices - for an identified user, whether to delete all their data (for the entire account) - true, or data for this device (sign out) - false
5363
5363
  */
5364
5364
  async forget(fromAllDevices) {
5365
5365
  const previousCompositionMetadata = __privateGet4(this, _state).compositionMetadata;
@@ -5400,14 +5400,14 @@ var Context = class {
5400
5400
  });
5401
5401
  return transitionState;
5402
5402
  }
5403
- /** @deprecated */
5403
+ /** @deprecated Internal API for test event processing; not for public use. */
5404
5404
  internal_processTestEvent(event) {
5405
5405
  if (event.variantId) {
5406
5406
  this.setTestVariantId(event.name, event.variantId);
5407
5407
  __privateMethod(this, _Context_instances, emitTest_fn).call(this, event);
5408
5408
  }
5409
5409
  }
5410
- /** @deprecated */
5410
+ /** @deprecated Internal API for personalization event processing; not for public use. */
5411
5411
  internal_processPersonalizationEvent(event) {
5412
5412
  __privateGet4(this, _pzCache)[event.name] = event.variantIds;
5413
5413
  __privateGet4(this, _mitt3).emit("personalizationResult", event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/next-app-router",
3
- "version": "20.75.1-alpha.0+effbce0886",
3
+ "version": "20.75.1-alpha.11+745b427b33",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -100,12 +100,12 @@
100
100
  "vitest": "4.1.9"
101
101
  },
102
102
  "dependencies": {
103
- "@uniformdev/canvas-react": "20.75.1-alpha.0+effbce0886",
104
- "@uniformdev/next-app-router-client": "20.75.1-alpha.0+effbce0886",
105
- "@uniformdev/next-app-router-shared": "20.75.1-alpha.0+effbce0886",
106
- "@uniformdev/redirect": "20.75.1-alpha.0+effbce0886",
107
- "@uniformdev/richtext": "20.75.1-alpha.0+effbce0886",
108
- "@uniformdev/webhooks": "20.75.1-alpha.0+effbce0886",
103
+ "@uniformdev/canvas-react": "20.75.1-alpha.11+745b427b33",
104
+ "@uniformdev/next-app-router-client": "20.75.1-alpha.11+745b427b33",
105
+ "@uniformdev/next-app-router-shared": "20.75.1-alpha.11+745b427b33",
106
+ "@uniformdev/redirect": "20.75.1-alpha.11+745b427b33",
107
+ "@uniformdev/richtext": "20.75.1-alpha.11+745b427b33",
108
+ "@uniformdev/webhooks": "20.75.1-alpha.11+745b427b33",
109
109
  "@vercel/functions": "^3.7.2",
110
110
  "encoding": "^0.1.13",
111
111
  "server-only": "^0.0.1",
@@ -122,5 +122,5 @@
122
122
  "publishConfig": {
123
123
  "access": "public"
124
124
  },
125
- "gitHead": "effbce0886d68a0e9a4f9b492b5f263eafa73813"
125
+ "gitHead": "745b427b339b7cae41df5381eeb6d49c733f4ce1"
126
126
  }