@mrrocket/sdk 0.4.0 → 0.9.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/CHANGELOG.md +43 -0
- package/README.md +137 -8
- package/dist/api-client.d.ts +213 -0
- package/dist/api-client.js +67 -0
- package/dist/api-client.js.map +1 -0
- package/dist/api.d.ts +9 -109
- package/dist/api.js +7 -62
- package/dist/api.js.map +1 -1
- package/dist/browser/mrrocket-flows.js +64 -0
- package/dist/browser/mrrocket-messenger.js +313 -0
- package/dist/browser/mrrocket-push.js +1 -0
- package/dist/browser/mrrocket-replay.js +3 -3
- package/dist/browser/mrrocket-sw.js +1 -0
- package/dist/browser/mrrocket.js +2 -1
- package/dist/browser.d.ts +3 -2
- package/dist/browser.js +6 -1
- package/dist/browser.js.map +1 -1
- package/dist/capture.d.ts +1 -13
- package/dist/capture.js +1 -22
- package/dist/capture.js.map +1 -1
- package/dist/client.d.ts +36 -1
- package/dist/client.js +161 -6
- package/dist/client.js.map +1 -1
- package/dist/context.d.ts +10 -0
- package/dist/context.js.map +1 -1
- package/dist/core.d.ts +64 -3
- package/dist/core.js +54 -2
- package/dist/core.js.map +1 -1
- package/dist/feedback.d.ts +19 -4
- package/dist/feedback.js +655 -190
- package/dist/feedback.js.map +1 -1
- package/dist/flows-ui.d.ts +23 -0
- package/dist/flows-ui.js +384 -0
- package/dist/flows-ui.js.map +1 -0
- package/dist/flows-web.d.ts +19 -0
- package/dist/flows-web.js +42 -0
- package/dist/flows-web.js.map +1 -0
- package/dist/flows.d.ts +222 -0
- package/dist/flows.js +409 -0
- package/dist/flows.js.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/messenger-ui.d.ts +47 -0
- package/dist/messenger-ui.js +583 -0
- package/dist/messenger-ui.js.map +1 -0
- package/dist/messenger.d.ts +37 -0
- package/dist/messenger.js +69 -0
- package/dist/messenger.js.map +1 -0
- package/dist/proxy.d.ts +34 -1
- package/dist/proxy.js +14 -1
- package/dist/proxy.js.map +1 -1
- package/dist/push-web.d.ts +43 -0
- package/dist/push-web.js +81 -0
- package/dist/push-web.js.map +1 -0
- package/dist/rage.d.ts +14 -0
- package/dist/rage.js +27 -0
- package/dist/rage.js.map +1 -0
- package/dist/react-native/index.d.cts +640 -3
- package/dist/react-native/index.d.ts +640 -3
- package/dist/react-native/index.js +2015 -34
- package/dist/react-native/index.js.map +1 -1
- package/dist/styles-css.d.ts +6 -0
- package/dist/styles-css.js +327 -0
- package/dist/styles-css.js.map +1 -0
- package/dist/styles.d.ts +1 -2
- package/dist/styles.js +3 -134
- package/dist/styles.js.map +1 -1
- package/dist/ui.d.ts +3 -0
- package/dist/ui.js +12 -0
- package/dist/ui.js.map +1 -1
- package/package.json +20 -4
package/dist/feedback.d.ts
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import { type Theme } from "./ui.js";
|
|
2
|
+
type Tab = "requests" | "roadmap" | "changelog";
|
|
2
3
|
export interface FeedbackBoardProps {
|
|
3
|
-
/** Heading
|
|
4
|
+
/** Heading when the board has no header (`header={false}`). */
|
|
4
5
|
title?: string;
|
|
5
6
|
/** Line under the heading. */
|
|
6
7
|
subtitle?: string;
|
|
7
8
|
theme?: Theme;
|
|
8
9
|
/** Accent color for buttons and votes. Default #3f76ff. */
|
|
9
10
|
accent?: string;
|
|
11
|
+
/** The top bar with your product's logo and name, search, light/dark and "Submit feedback". Default true. */
|
|
12
|
+
header?: boolean;
|
|
13
|
+
/** Keep the open tab and post in the address (?view=roadmap, ?post=…), so links can be shared. Default false. */
|
|
14
|
+
syncUrl?: boolean;
|
|
15
|
+
/** Fill the page: the board's background covers the whole window, as on a hosted board. Default false. */
|
|
16
|
+
fullPage?: boolean;
|
|
17
|
+
/** Which tab opens first. Default "requests". */
|
|
18
|
+
initialTab?: Tab;
|
|
10
19
|
}
|
|
11
|
-
/**
|
|
12
|
-
|
|
20
|
+
/**
|
|
21
|
+
* The full board for a /feedback page, after Featurebase: your product's logo and name, Feedback (requests with
|
|
22
|
+
* Top/New and type filter), Roadmap (Backlog, Next up, In progress, Done) and Changelog, a post page with comments,
|
|
23
|
+
* search, light/dark. Visitors give a name and email once before they post, vote or comment, unless your app
|
|
24
|
+
* called `identify()` with a name or email.
|
|
25
|
+
*/
|
|
26
|
+
export declare const FeedbackBoard: ({ title, subtitle, theme, accent, header, syncUrl, fullPage, initialTab, }: FeedbackBoardProps) => import("react").JSX.Element;
|
|
13
27
|
/** Open or close the feedback widget from your own button. */
|
|
14
28
|
export declare const useFeedback: () => {
|
|
15
29
|
open: () => void;
|
|
@@ -19,10 +33,11 @@ export interface FeedbackWidgetProps {
|
|
|
19
33
|
position?: "bottom-right" | "bottom-left";
|
|
20
34
|
/** Text on the floating button. */
|
|
21
35
|
label?: string;
|
|
22
|
-
/** Where "See all" goes, for example your /feedback page. */
|
|
36
|
+
/** Where "See all" goes, for example your /feedback page or MRRocket's hosted board. */
|
|
23
37
|
boardUrl?: string;
|
|
24
38
|
theme?: Theme;
|
|
25
39
|
accent?: string;
|
|
26
40
|
}
|
|
27
41
|
/** A floating button that opens a small popover with the top requests and a quick suggest form. */
|
|
28
42
|
export declare const FeedbackWidget: ({ position, label, boardUrl, theme, accent }: FeedbackWidgetProps) => import("react").JSX.Element;
|
|
43
|
+
export {};
|