@stackflow/react
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -239,3 +239,4 @@ "use strict"; | ||
activityComponentMap, | ||
plugin | ||
plugin, | ||
initialContext | ||
}) => { | ||
@@ -259,3 +260,4 @@ const coreState = useCoreState(); | ||
render: () => output | ||
}) | ||
}), | ||
initialContext | ||
})) != null ? _b : output; | ||
@@ -275,3 +277,4 @@ }); | ||
} | ||
}) | ||
}), | ||
initialContext | ||
}); | ||
@@ -285,3 +288,4 @@ }; | ||
var MainRenderer = ({ | ||
activityComponentMap | ||
activityComponentMap, | ||
initialContext | ||
}) => { | ||
@@ -304,3 +308,4 @@ const coreState = useCoreState(); | ||
activityComponentMap, | ||
plugin | ||
plugin, | ||
initialContext | ||
}, | ||
@@ -316,3 +321,4 @@ plugin.key | ||
} | ||
}) | ||
}), | ||
initialContext | ||
})) != null ? _b : output; | ||
@@ -516,3 +522,9 @@ }); | ||
}, []); | ||
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PluginsProvider, { value: pluginInstances, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CoreProvider, { coreStore, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MainRenderer_default, { activityComponentMap }) }) }); | ||
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PluginsProvider, { value: pluginInstances, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CoreProvider, { coreStore, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)( | ||
MainRenderer_default, | ||
{ | ||
activityComponentMap, | ||
initialContext: props.initialContext | ||
} | ||
) }) }); | ||
}); | ||
@@ -519,0 +531,0 @@ Stack.displayName = "Stack"; |
@@ -7,4 +7,5 @@ /// <reference types="react" /> | ||
}; | ||
initialContext: any; | ||
} | ||
declare const MainRenderer: React.FC<MainRendererProps>; | ||
export default MainRenderer; |
@@ -10,4 +10,5 @@ /// <reference types="react" /> | ||
plugin: WithRequired<ReturnType<StackflowReactPlugin>, "render">; | ||
initialContext: any; | ||
} | ||
declare const PluginRenderer: React.FC<PluginRendererProps>; | ||
export default PluginRenderer; |
@@ -16,2 +16,3 @@ /// <reference types="react" /> | ||
}; | ||
initialContext: any; | ||
}) => React.ReactElement<any, any> | null; | ||
@@ -25,2 +26,3 @@ /** | ||
}; | ||
initialContext: any; | ||
}) => React.ReactElement<any, any> | null; | ||
@@ -34,3 +36,4 @@ /** | ||
}; | ||
initialContext: any; | ||
}) => React.ReactElement<any, any> | null; | ||
} & ReturnType<StackflowPlugin>; |
{ | ||
"name": "@stackflow/react", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"license": "MIT", | ||
@@ -64,3 +64,3 @@ "exports": { | ||
}, | ||
"gitHead": "11774f22968cea55a1e287bbf07096ce0e5e0f5f" | ||
"gitHead": "12ede8f171da8d5994293e30cf5850c6cea6260c" | ||
} |
@@ -18,2 +18,3 @@ import type { Activity, Stack, StackflowPlugin } from "@stackflow/core"; | ||
}; | ||
initialContext: any; | ||
}) => React.ReactElement<any, any> | null; | ||
@@ -28,2 +29,3 @@ | ||
}; | ||
initialContext: any; | ||
}) => React.ReactElement<any, any> | null; | ||
@@ -38,3 +40,4 @@ | ||
}; | ||
initialContext: any; | ||
}) => React.ReactElement<any, any> | null; | ||
} & ReturnType<StackflowPlugin>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165476
2493