Skip to content

Commit ba41ef4

Browse files
authored
Merge pull request #19 from Statflo/STATFLO-1093
feat(STATFLO-1093): adjustments will preparing demo
2 parents fab29a1 + a186551 commit ba41ef4

File tree

18 files changed

+936
-1663
lines changed

18 files changed

+936
-1663
lines changed

docs/public/favicon.ico

11 KB
Binary file not shown.

docs/public/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
<meta name="theme-color" content="#000000" />
88
<meta
99
name="description"
10-
content="Web site created using create-react-app"
10+
content="Statflo's widget playground"
1111
/>
1212
<link rel="stylesheet" href="https://cdn.statflo.com/brandon/brandon.css" />
13-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
1413
<!--
1514
manifest.json provides metadata used when your web app is installed on a
1615
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/

docs/public/logo192.png

-5.22 KB
Binary file not shown.

docs/public/logo512.png

-9.44 KB
Binary file not shown.

docs/public/manifest.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
{
2-
"short_name": "React App",
3-
"name": "Create React App Sample",
2+
"short_name": "Widget Playground",
3+
"name": "Widget Playground",
44
"icons": [
55
{
66
"src": "favicon.ico",
77
"sizes": "64x64 32x32 24x24 16x16",
88
"type": "image/x-icon"
9-
},
10-
{
11-
"src": "logo192.png",
12-
"type": "image/png",
13-
"sizes": "192x192"
14-
},
15-
{
16-
"src": "logo512.png",
17-
"type": "image/png",
18-
"sizes": "512x512"
199
}
2010
],
2111
"start_url": ".",

docs/src/components/RemoteComponent.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { UseBoundStore } from "zustand/react";
55
import { Mutate, StoreApi } from "zustand/vanilla";
66

77
import { Widget, WidgetState } from "@statflo/widget-sdk";
8+
import usePublishMainWidgetEvents from "../hooks/usePublishMainWidgetEvents";
89

910
type WidgetProps = {
1011
widget: Widget;
@@ -42,6 +43,8 @@ export const RemoteComponent: FC<WidgetProps> = ({
4243
const events = store((state) => state.events);
4344
const [loading, setLoading] = useState(true);
4445

46+
usePublishMainWidgetEvents(loading);
47+
4548
const onLoad = (e: any) => {
4649
// Populate Iframe widgets with any events they may have missed before loading
4750
const iframe = document.getElementById(widget.id) as HTMLIFrameElement;

0 commit comments

Comments
 (0)