@mushi-mushi/web 0.5.0 → 0.7.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/CONTRIBUTING.md +4 -0
- package/README.md +41 -0
- package/SECURITY.md +74 -0
- package/dist/index.cjs +389 -79
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +389 -79
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -44,6 +44,12 @@ declare class MushiWidget {
|
|
|
44
44
|
private screenshotAttached;
|
|
45
45
|
private elementSelected;
|
|
46
46
|
private submitting;
|
|
47
|
+
private triggerVisible;
|
|
48
|
+
private triggerShrunk;
|
|
49
|
+
private triggerHiddenByScroll;
|
|
50
|
+
private attachedLaunchers;
|
|
51
|
+
private smartHideCleanup;
|
|
52
|
+
private smartHideTimer;
|
|
47
53
|
/** Captured at the moment of submit so the success ledger metadata
|
|
48
54
|
* ("REPORT · 14:23:07 JST") doesn't drift while the success step
|
|
49
55
|
* is on screen. */
|
|
@@ -56,16 +62,29 @@ declare class MushiWidget {
|
|
|
56
62
|
private autoCloseTimer;
|
|
57
63
|
constructor(config: MushiWidgetConfig | undefined, callbacks: WidgetCallbacks);
|
|
58
64
|
mount(): void;
|
|
65
|
+
updateConfig(config?: MushiWidgetConfig): void;
|
|
59
66
|
open(options?: {
|
|
60
67
|
category?: MushiReportCategory;
|
|
61
68
|
}): void;
|
|
62
69
|
close(): void;
|
|
63
70
|
getIsOpen(): boolean;
|
|
71
|
+
showTrigger(): void;
|
|
72
|
+
hideTrigger(): void;
|
|
73
|
+
setTrigger(trigger: NonNullable<MushiWidgetConfig['trigger']>): void;
|
|
74
|
+
attachTo(selectorOrElement: string | Element, options?: MushiWidgetConfig): () => void;
|
|
64
75
|
setScreenshotAttached(attached: boolean): void;
|
|
65
76
|
setElementSelected(selected: boolean): void;
|
|
66
77
|
destroy(): void;
|
|
78
|
+
private syncAttachedLaunchers;
|
|
79
|
+
private syncSmartHide;
|
|
80
|
+
private shouldRenderTrigger;
|
|
81
|
+
private effectiveTrigger;
|
|
82
|
+
private isMobileSmartHidden;
|
|
83
|
+
private detectEnvironment;
|
|
84
|
+
private isRouteHidden;
|
|
67
85
|
private getTheme;
|
|
68
86
|
private render;
|
|
87
|
+
private applyInsetVars;
|
|
69
88
|
private renderStep;
|
|
70
89
|
/**
|
|
71
90
|
* Editorial masthead. Always carries:
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,12 @@ declare class MushiWidget {
|
|
|
44
44
|
private screenshotAttached;
|
|
45
45
|
private elementSelected;
|
|
46
46
|
private submitting;
|
|
47
|
+
private triggerVisible;
|
|
48
|
+
private triggerShrunk;
|
|
49
|
+
private triggerHiddenByScroll;
|
|
50
|
+
private attachedLaunchers;
|
|
51
|
+
private smartHideCleanup;
|
|
52
|
+
private smartHideTimer;
|
|
47
53
|
/** Captured at the moment of submit so the success ledger metadata
|
|
48
54
|
* ("REPORT · 14:23:07 JST") doesn't drift while the success step
|
|
49
55
|
* is on screen. */
|
|
@@ -56,16 +62,29 @@ declare class MushiWidget {
|
|
|
56
62
|
private autoCloseTimer;
|
|
57
63
|
constructor(config: MushiWidgetConfig | undefined, callbacks: WidgetCallbacks);
|
|
58
64
|
mount(): void;
|
|
65
|
+
updateConfig(config?: MushiWidgetConfig): void;
|
|
59
66
|
open(options?: {
|
|
60
67
|
category?: MushiReportCategory;
|
|
61
68
|
}): void;
|
|
62
69
|
close(): void;
|
|
63
70
|
getIsOpen(): boolean;
|
|
71
|
+
showTrigger(): void;
|
|
72
|
+
hideTrigger(): void;
|
|
73
|
+
setTrigger(trigger: NonNullable<MushiWidgetConfig['trigger']>): void;
|
|
74
|
+
attachTo(selectorOrElement: string | Element, options?: MushiWidgetConfig): () => void;
|
|
64
75
|
setScreenshotAttached(attached: boolean): void;
|
|
65
76
|
setElementSelected(selected: boolean): void;
|
|
66
77
|
destroy(): void;
|
|
78
|
+
private syncAttachedLaunchers;
|
|
79
|
+
private syncSmartHide;
|
|
80
|
+
private shouldRenderTrigger;
|
|
81
|
+
private effectiveTrigger;
|
|
82
|
+
private isMobileSmartHidden;
|
|
83
|
+
private detectEnvironment;
|
|
84
|
+
private isRouteHidden;
|
|
67
85
|
private getTheme;
|
|
68
86
|
private render;
|
|
87
|
+
private applyInsetVars;
|
|
69
88
|
private renderStep;
|
|
70
89
|
/**
|
|
71
90
|
* Editorial masthead. Always carries:
|