File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import useWidgetStore from "@statflo/widget-sdk";
2323
2424``` typescript
2525import useWidgetStore from " @statflo/widget-sdk" ;
26- import create from " zustand" ;
26+ import { create } from " zustand" ;
2727
2828const useBoundWidgetStore = create (useWidgetStore );
2929```
Original file line number Diff line number Diff line change 11import React , { useEffect , useState } from "react" ;
22import "iframe-resizer-react" ;
3- import create from "zustand" ;
3+ import { create } from "zustand" ;
44import "./App.css" ;
55
66import useWidgetStore , { WidgetEvent } from "@statflo/widget-sdk" ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @statflo/widget-sdk" ,
3- "version" : " 0.4.2 " ,
3+ "version" : " 0.4.3 " ,
44 "description" : " SDK for building widgets with Statflo and beyond" ,
55 "main" : " ./dist/index.js" ,
66 "module" : " ./dist/index.js" ,
Original file line number Diff line number Diff line change 11import { v4 as uuidv4 } from "uuid" ;
2- import create from "zustand/vanilla" ;
2+ import { createStore } from "zustand/vanilla" ;
33import "iframe-resizer/js/iframeResizer.contentWindow" ;
44
55export interface Widget {
@@ -37,7 +37,7 @@ export class WidgetEvent<T> {
3737 }
3838}
3939
40- const useWidgetStore = create < WidgetState > ( ) ( ( set , get ) => {
40+ const useWidgetStore = createStore < WidgetState > ( ) ( ( set , get ) => {
4141 const listener = ( event : MessageEvent ) => {
4242 const { data } = event ;
4343
You can’t perform that action at this time.
0 commit comments