@pexip-engage-public/plugin-react
Advanced tools
Comparing version
# @pexip-engage-public/plugin-react | ||
## 1.0.6 | ||
### Patch Changes | ||
- d517c041c: chore: improve doc codesandbox compatibility | ||
- Updated dependencies [4f4e65961] | ||
- @pexip-engage-public/plugin-configuration-parser@1.0.6 | ||
- @pexip-engage-public/plugin-instance@1.0.6 | ||
## 1.0.5 | ||
@@ -4,0 +13,0 @@ |
{ | ||
"name": "@pexip-engage-public/plugin-react", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "React wrapper component for the Pexip Engage Plugin", | ||
@@ -40,8 +40,8 @@ "homepage": "https://github.com/skedify/frontend-mono/tree/develop/apps/plugin-remix/packages/plugin-react#readme", | ||
"deepmerge": "4.2.2", | ||
"@pexip-engage-public/plugin-configuration-parser": "1.0.5", | ||
"@pexip-engage-public/plugin-instance": "1.0.5" | ||
"@pexip-engage-public/plugin-configuration-parser": "1.0.6", | ||
"@pexip-engage-public/plugin-instance": "1.0.6" | ||
}, | ||
"devDependencies": { | ||
"@pexip-engage/tsconfig": "0.0.7", | ||
"eslint-config-pexip-engage": "0.0.9" | ||
"eslint-config-pexip-engage": "0.0.10" | ||
}, | ||
@@ -48,0 +48,0 @@ "peerDependencies": { |
@@ -17,13 +17,8 @@ # @pexip-engage-public/plugin-react | ||
const defaultConfig = { | ||
scriptSrc: "https://plugin.skedify.io/{ENTERPRISE_NAME}/skedify-plugin.js", | ||
scriptSrc: "https:/{ENTERPRISE_NAME}/plugin.skedify.io/{ENTERPRISE_NAME}/skedify-plugin.js", | ||
language: "nl-be", | ||
flow: "S'TQC", | ||
meeting_types: "video", | ||
timezone: "Europe/Brussels", | ||
oauth: { | ||
client: "XXX", | ||
}, | ||
appointment: { | ||
office_id: "1", | ||
}, | ||
flow: "SMOETQC", | ||
customer: { timezone: "Europe/Brussels" }, | ||
meetingTypes: "video", | ||
offices: { ids: "1" } | ||
}; | ||
@@ -30,0 +25,0 @@ |
@@ -22,5 +22,5 @@ import { useEffect, useReducer } from "react"; | ||
const initialState: { | ||
PluginStatic: typeof PluginStatic | null; | ||
Plugin: typeof PluginStatic | null; | ||
status: "pending" | "success" | "failed"; | ||
} = { PluginStatic: null, status: "pending" }; | ||
} = { Plugin: null, status: "pending" }; | ||
@@ -31,5 +31,5 @@ type Action = { type: "success"; instance: typeof PluginStatic } | { type: "failed" }; | ||
case "success": | ||
return { PluginStatic: action.instance, status: "success" }; | ||
return { Plugin: action.instance, status: "success" }; | ||
case "failed": | ||
return { PluginStatic: null, status: "failed" }; | ||
return { Plugin: null, status: "failed" }; | ||
default: | ||
@@ -36,0 +36,0 @@ throw new Error(); |
/// <reference types="react" /> | ||
import type { HTMLConfig } from "@pexip-engage-public/plugin-configuration-parser"; | ||
import { PluginInstance } from "@pexip-engage-public/plugin-instance"; | ||
import { PexipEngagePluginContextProps } from "./PexipEngageContext"; | ||
interface PexipEngagePluginProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HTMLConfig { | ||
interface PexipEngagePluginProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> { | ||
config?: PexipEngagePluginContextProps; | ||
onInstanceChange?: (instance: PluginInstance | null) => unknown; | ||
} | ||
export declare function PexipEngagePlugin({ config: { scriptSrc, ...config }, ...props }: PexipEngagePluginProps): JSX.Element; | ||
export declare function PexipEngagePlugin({ onInstanceChange, config: { scriptSrc, ...config }, ...props }: PexipEngagePluginProps): JSX.Element; | ||
export {}; | ||
//# sourceMappingURL=PexipEngagePlugin.d.ts.map |
export declare function usePexipEngagePlugin(scriptSrc?: string): { | ||
PluginStatic: typeof import("@pexip-engage-public/plugin-instance/typings/PluginInstance").PluginInstance | null; | ||
Plugin: typeof import("@pexip-engage-public/plugin-instance/typings/PluginInstance").PluginInstance | null; | ||
status: "pending" | "success" | "failed"; | ||
}; | ||
//# sourceMappingURL=usePexipEngagePlugin.d.ts.map |
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
127036
0.63%389
4.85%40
-11.11%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated