@markee_team/sdk 0.1.0-beta.3 → 0.1.0-beta.5

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
@@ -152,7 +152,19 @@ Theme changes update styles in place: drafts, focus, scroll, wallet sessions, an
152
152
  | `sign.hoverLogo` | Show the theme-matched MARKEE logo on hover/focus (default `true`) |
153
153
  | `sign.hoverBackground` | Optional sign hover surface color; defaults to the normal surface |
154
154
 
155
- Color tokens: `background`, `surface`, `text`, `muted`, `border`, `inputBackground`, `inputText`, `primary`, `primaryText`, `accent`, `accentText`, `accentSurface`, `accentSurfaceText`, `accentBorder`, `selected`, `selectedText`, `info`, `infoText`, `error`, `errorText`, `success`, `successText`, `link`, `focusRing`, and `overlay`. Set foreground/background pairs together and check your brand's contrast in both modes. Overrides apply over either selected palette; omitted values use that palette's defaults. Invalid CSS color/font values fall back to defaults.
155
+ Color tokens: `background`, `surface`, `text`, `muted`, `border`, `inputBackground`, `inputText`, `primary`, `primaryText`, `accent`, `accentText`, `accentSurface`, `accentSurfaceText`, `accentBorder`, `selected`, `selectedText`, `info`, `infoText`, `error`, `errorText`, `warning`, `warningText`, `warningBorder`, `success`, `successText`, `link`, `focusRing`, and `overlay`. Set foreground/background pairs together and check your brand's contrast in both modes. Overrides apply over either selected palette; omitted values use that palette's defaults. Invalid CSS color/font values fall back to defaults.
156
+
157
+ The optional warning colors style moderation notices in the form, confirmation, and payment review:
158
+
159
+ ```ts
160
+ const theme: MarkeeTheme = {
161
+ colors: {
162
+ warning: '#fff8e6',
163
+ warningText: '#754b08',
164
+ warningBorder: '#d49a26',
165
+ },
166
+ };
167
+ ```
156
168
 
157
169
  To match an app completely, override `link`, `focusRing`, `border`, `selected`/`selectedText`, and the accent colors as well as the primary button colors. Otherwise those elements retain the SDK palette. Use the typed theme options; arbitrary custom CSS is not currently supported. The sign’s price badge appears on hover or keyboard focus, and stays visible on touch devices.
158
170
 
@@ -343,4 +355,5 @@ No API key or moderation configuration is required in the host app.
343
355
  Snapshots retain `entry.moderated` (`false`, `true`, or `null`) and can additionally include
344
356
  `entry.moderation` with the state, reason, and optional `reasonCodes`. Hide unavailable and flagged content and do not
345
357
  record views for it. A moderator's false-positive exception on Markee applies only on Markee;
346
- it does not change SDK visibility. This optional backend feature is disabled by default.
358
+ it does not change SDK visibility. Automatic moderation is enabled by default on Markee.
359
+ Markee operators can explicitly disable it with `FLAG_AUTO_MODERATION=false`; host apps need no configuration.
@@ -0,0 +1,2 @@
1
+ /** Wallet providers can reject with plain objects, including nested RPC errors. */
2
+ export declare function errorMessage(error: unknown): string;