@rebuy/rebuy 3.29.0 → 3.29.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/dist/index.cjs CHANGED
@@ -4603,7 +4603,7 @@ var OFFER_TEMPLATE_SEED = {
4603
4603
  marks: [
4604
4604
  {
4605
4605
  attrs: {
4606
- color: "accent",
4606
+ color: "base",
4607
4607
  fontSize: "medium"
4608
4608
  },
4609
4609
  type: "textStyle"
@@ -4817,9 +4817,13 @@ var buildPriceContent = () => ({
4817
4817
  content: [
4818
4818
  {
4819
4819
  content: [
4820
- /** Legacy renders the price in the checkout's brand color (`<Text appearance="accent">`). */
4820
+ /**
4821
+ * Regular text color, not legacy's `<Text appearance="accent">`: the checkout's web components
4822
+ * can't render app text in the accent color, and `accent`'s nearest tint shows default blue on
4823
+ * most stores (REB-24049).
4824
+ */
4821
4825
  {
4822
- marks: [{ attrs: { color: "accent", fontSize: "base" }, type: "textStyle" }],
4826
+ marks: [{ attrs: { color: "base", fontSize: "base" }, type: "textStyle" }],
4823
4827
  text: "{{variantPrice}}",
4824
4828
  type: "text"
4825
4829
  },
package/dist/index.mjs CHANGED
@@ -4277,7 +4277,7 @@ var OFFER_TEMPLATE_SEED = {
4277
4277
  marks: [
4278
4278
  {
4279
4279
  attrs: {
4280
- color: "accent",
4280
+ color: "base",
4281
4281
  fontSize: "medium"
4282
4282
  },
4283
4283
  type: "textStyle"
@@ -4491,9 +4491,13 @@ var buildPriceContent = () => ({
4491
4491
  content: [
4492
4492
  {
4493
4493
  content: [
4494
- /** Legacy renders the price in the checkout's brand color (`<Text appearance="accent">`). */
4494
+ /**
4495
+ * Regular text color, not legacy's `<Text appearance="accent">`: the checkout's web components
4496
+ * can't render app text in the accent color, and `accent`'s nearest tint shows default blue on
4497
+ * most stores (REB-24049).
4498
+ */
4495
4499
  {
4496
- marks: [{ attrs: { color: "accent", fontSize: "base" }, type: "textStyle" }],
4500
+ marks: [{ attrs: { color: "base", fontSize: "base" }, type: "textStyle" }],
4497
4501
  text: "{{variantPrice}}",
4498
4502
  type: "text"
4499
4503
  },
@@ -3224,9 +3224,13 @@ var buildPriceContent = () => ({
3224
3224
  content: [
3225
3225
  {
3226
3226
  content: [
3227
- /** Legacy renders the price in the checkout's brand color (`<Text appearance="accent">`). */
3227
+ /**
3228
+ * Regular text color, not legacy's `<Text appearance="accent">`: the checkout's web components
3229
+ * can't render app text in the accent color, and `accent`'s nearest tint shows default blue on
3230
+ * most stores (REB-24049).
3231
+ */
3228
3232
  {
3229
- marks: [{ attrs: { color: "accent", fontSize: "base" }, type: "textStyle" }],
3233
+ marks: [{ attrs: { color: "base", fontSize: "base" }, type: "textStyle" }],
3230
3234
  text: "{{variantPrice}}",
3231
3235
  type: "text"
3232
3236
  },
@@ -3173,9 +3173,13 @@ var buildPriceContent = () => ({
3173
3173
  content: [
3174
3174
  {
3175
3175
  content: [
3176
- /** Legacy renders the price in the checkout's brand color (`<Text appearance="accent">`). */
3176
+ /**
3177
+ * Regular text color, not legacy's `<Text appearance="accent">`: the checkout's web components
3178
+ * can't render app text in the accent color, and `accent`'s nearest tint shows default blue on
3179
+ * most stores (REB-24049).
3180
+ */
3177
3181
  {
3178
- marks: [{ attrs: { color: "accent", fontSize: "base" }, type: "textStyle" }],
3182
+ marks: [{ attrs: { color: "base", fontSize: "base" }, type: "textStyle" }],
3179
3183
  text: "{{variantPrice}}",
3180
3184
  type: "text"
3181
3185
  },
@@ -2780,7 +2780,7 @@ var OFFER_TEMPLATE_SEED = {
2780
2780
  marks: [
2781
2781
  {
2782
2782
  attrs: {
2783
- color: "accent",
2783
+ color: "base",
2784
2784
  fontSize: "medium"
2785
2785
  },
2786
2786
  type: "textStyle"
@@ -3041,9 +3041,13 @@ var buildPriceContent = () => ({
3041
3041
  content: [
3042
3042
  {
3043
3043
  content: [
3044
- /** Legacy renders the price in the checkout's brand color (`<Text appearance="accent">`). */
3044
+ /**
3045
+ * Regular text color, not legacy's `<Text appearance="accent">`: the checkout's web components
3046
+ * can't render app text in the accent color, and `accent`'s nearest tint shows default blue on
3047
+ * most stores (REB-24049).
3048
+ */
3045
3049
  {
3046
- marks: [{ attrs: { color: "accent", fontSize: "base" }, type: "textStyle" }],
3050
+ marks: [{ attrs: { color: "base", fontSize: "base" }, type: "textStyle" }],
3047
3051
  text: "{{variantPrice}}",
3048
3052
  type: "text"
3049
3053
  },
@@ -2719,7 +2719,7 @@ var OFFER_TEMPLATE_SEED = {
2719
2719
  marks: [
2720
2720
  {
2721
2721
  attrs: {
2722
- color: "accent",
2722
+ color: "base",
2723
2723
  fontSize: "medium"
2724
2724
  },
2725
2725
  type: "textStyle"
@@ -2980,9 +2980,13 @@ var buildPriceContent = () => ({
2980
2980
  content: [
2981
2981
  {
2982
2982
  content: [
2983
- /** Legacy renders the price in the checkout's brand color (`<Text appearance="accent">`). */
2983
+ /**
2984
+ * Regular text color, not legacy's `<Text appearance="accent">`: the checkout's web components
2985
+ * can't render app text in the accent color, and `accent`'s nearest tint shows default blue on
2986
+ * most stores (REB-24049).
2987
+ */
2984
2988
  {
2985
- marks: [{ attrs: { color: "accent", fontSize: "base" }, type: "textStyle" }],
2989
+ marks: [{ attrs: { color: "base", fontSize: "base" }, type: "textStyle" }],
2986
2990
  text: "{{variantPrice}}",
2987
2991
  type: "text"
2988
2992
  },
@@ -4,11 +4,14 @@
4
4
  * offers section), so the export originally carried that widget type + the test store's data source;
5
5
  * those have been cleaned here to read as a real offer template. `buildOfferTemplate` still strips any
6
6
  * residual section ids (so each created widget gets fresh ones) and injects the per-widget name +
7
- * editor mode at runtime. Regenerate by re-exporting + the generator script, not by hand — with ONE
8
- * hand-completed exception a re-export must preserve: the add button's `addedToCart`/`soldOut`/
9
- * `redirectToCheckout` slots (`OFFER_LABELS` defaults). The editor export carried only
10
- * `addingToCart`/`addToCart`, which left the sold-out/added/Buy-Now states falling back to the add
11
- * label at runtime (guarded by a `buildOfferTemplate` test).
7
+ * editor mode at runtime. Regenerate by re-exporting + the generator script, not by hand — with TWO
8
+ * hand-completed exceptions a re-export must preserve, each guarded by a `buildOfferTemplate` test:
9
+ * - the add button's `addedToCart`/`soldOut`/`redirectToCheckout` slots (`OFFER_LABELS` defaults). The
10
+ * editor export carried only `addingToCart`/`addToCart`, which left the sold-out/added/Buy-Now states
11
+ * falling back to the add label at runtime.
12
+ * - the `{{variantPrice}}` run's color is `base`, not the exported `accent`: the checkout's web
13
+ * components can't render app text in the accent color, and its nearest tint shows default blue on
14
+ * most stores (REB-24049).
12
15
  */
13
16
  export declare const OFFER_TEMPLATE_SEED: {
14
17
  alignment: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebuy/rebuy",
3
- "version": "3.29.0",
3
+ "version": "3.29.1",
4
4
  "description": "Shared zod schemas, legacy-to-CAB widget transforms, and server orchestrators for Rebuy's Shopify consumers (rebuy-api, admin-nextjs, rebuy-shopify-extensions)",
5
5
  "license": "MIT",
6
6
  "author": "Rebuy, Inc.",