@aifeatures/react 0.21.0 → 0.22.0

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.d.cts CHANGED
@@ -1712,8 +1712,8 @@ declare namespace ConsentBannerContent {
1712
1712
  * strict={
1713
1713
  * <ConsentBanner.Content>
1714
1714
  * <p>...translated disclosure...</p>
1715
- * <ConsentBanner.AcceptAll>Accept all</ConsentBanner.AcceptAll>
1716
- * <ConsentBanner.RejectAll>Use only necessary</ConsentBanner.RejectAll>
1715
+ * <ConsentBanner.AcceptAll>Accept non-essential cookies</ConsentBanner.AcceptAll>
1716
+ * <ConsentBanner.RejectAll>Reject non-essential cookies</ConsentBanner.RejectAll>
1717
1717
  * <ConsentBanner.Preferences>Preferences</ConsentBanner.Preferences>
1718
1718
  * </ConsentBanner.Content>
1719
1719
  * }
@@ -1779,6 +1779,9 @@ declare const DEFAULT_PREFERENCES_STRINGS: {
1779
1779
  * visitor, not to say it in English.
1780
1780
  */
1781
1781
  gpcHonored: string;
1782
+ /** The same duty, for a visitor who allowed analytics themselves: GPC only
1783
+ * turns analytics off by default, so the line above would be false for them. */
1784
+ gpcHonoredAdvertisingOnly: string;
1782
1785
  };
1783
1786
  interface ConsentThemeTokens {
1784
1787
  /** Panel background color (hex). */
@@ -1848,13 +1851,13 @@ type CategoryProps$1 = {
1848
1851
  category?: never;
1849
1852
  };
1850
1853
  type GatedContentStrings = typeof DEFAULT_GATED_CONTENT_STRINGS;
1851
- /** The placeholder identifies the recipient and opens category-wide
1852
- * preferences. Its button never records consent by itself. */
1854
+ /** The placeholder says what to enable and opens category-wide preferences.
1855
+ * Its button never records consent by itself. `title` is for a functional-only
1856
+ * gate; `titleOptional` covers any other gate (chat is functional + analytics),
1857
+ * where "functional cookies" alone would not unlock the content. */
1853
1858
  declare const DEFAULT_GATED_CONTENT_STRINGS: {
1854
1859
  title: string;
1855
- bodyBeforeVendor: string;
1856
- bodyAfterVendor: string;
1857
- scope: string;
1860
+ titleOptional: string;
1858
1861
  action: string;
1859
1862
  };
1860
1863
  /**
@@ -1871,8 +1874,9 @@ type GatedContentProps = CategoryProps$1 & {
1871
1874
  * The third party the content comes from, named the way a visitor would
1872
1875
  * recognize them — "YouTube (Google Ireland Ltd.)", "Calendly".
1873
1876
  *
1874
- * Passing this asks for the built-in preferences placeholder, which names
1875
- * the recipient before visitors review the category. Omit it for an invisible
1877
+ * Passing this asks for the built-in preferences placeholder. The name is
1878
+ * not shown; it gives each placeholder's button a distinct accessible name.
1879
+ * Omit it for an invisible
1876
1880
  * tracker — a pixel or a beacon has nothing to show and no hole to explain.
1877
1881
  */
1878
1882
  vendor?: string;
package/dist/index.d.ts CHANGED
@@ -1712,8 +1712,8 @@ declare namespace ConsentBannerContent {
1712
1712
  * strict={
1713
1713
  * <ConsentBanner.Content>
1714
1714
  * <p>...translated disclosure...</p>
1715
- * <ConsentBanner.AcceptAll>Accept all</ConsentBanner.AcceptAll>
1716
- * <ConsentBanner.RejectAll>Use only necessary</ConsentBanner.RejectAll>
1715
+ * <ConsentBanner.AcceptAll>Accept non-essential cookies</ConsentBanner.AcceptAll>
1716
+ * <ConsentBanner.RejectAll>Reject non-essential cookies</ConsentBanner.RejectAll>
1717
1717
  * <ConsentBanner.Preferences>Preferences</ConsentBanner.Preferences>
1718
1718
  * </ConsentBanner.Content>
1719
1719
  * }
@@ -1779,6 +1779,9 @@ declare const DEFAULT_PREFERENCES_STRINGS: {
1779
1779
  * visitor, not to say it in English.
1780
1780
  */
1781
1781
  gpcHonored: string;
1782
+ /** The same duty, for a visitor who allowed analytics themselves: GPC only
1783
+ * turns analytics off by default, so the line above would be false for them. */
1784
+ gpcHonoredAdvertisingOnly: string;
1782
1785
  };
1783
1786
  interface ConsentThemeTokens {
1784
1787
  /** Panel background color (hex). */
@@ -1848,13 +1851,13 @@ type CategoryProps$1 = {
1848
1851
  category?: never;
1849
1852
  };
1850
1853
  type GatedContentStrings = typeof DEFAULT_GATED_CONTENT_STRINGS;
1851
- /** The placeholder identifies the recipient and opens category-wide
1852
- * preferences. Its button never records consent by itself. */
1854
+ /** The placeholder says what to enable and opens category-wide preferences.
1855
+ * Its button never records consent by itself. `title` is for a functional-only
1856
+ * gate; `titleOptional` covers any other gate (chat is functional + analytics),
1857
+ * where "functional cookies" alone would not unlock the content. */
1853
1858
  declare const DEFAULT_GATED_CONTENT_STRINGS: {
1854
1859
  title: string;
1855
- bodyBeforeVendor: string;
1856
- bodyAfterVendor: string;
1857
- scope: string;
1860
+ titleOptional: string;
1858
1861
  action: string;
1859
1862
  };
1860
1863
  /**
@@ -1871,8 +1874,9 @@ type GatedContentProps = CategoryProps$1 & {
1871
1874
  * The third party the content comes from, named the way a visitor would
1872
1875
  * recognize them — "YouTube (Google Ireland Ltd.)", "Calendly".
1873
1876
  *
1874
- * Passing this asks for the built-in preferences placeholder, which names
1875
- * the recipient before visitors review the category. Omit it for an invisible
1877
+ * Passing this asks for the built-in preferences placeholder. The name is
1878
+ * not shown; it gives each placeholder's button a distinct accessible name.
1879
+ * Omit it for an invisible
1876
1880
  * tracker — a pixel or a beacon has nothing to show and no hole to explain.
1877
1881
  */
1878
1882
  vendor?: string;