0.3.2 • Published 9 months ago

@open-chat/search-widget v0.3.2

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
9 months ago

@openchat/search-widget

search widget now becomes pacakge.

Pros

  • Can be installed in any react application without the need to be embedded inside html itself.

  • Can be used inside our dashboard's workshop for easy customization.

Cons

  • more boilerplate code needed.

  • more build configurations.

How to use it

1- the embeded version (initilizeChatBot)

export type ColorsType = {
  dark: {
    primary: string;
    accent: string;
    background: string;
    foreground: string;
    backgroundLight: string;
  };
  light: {
    primary: string;
    accent: string;
    background: string;
    foreground: string;
    backgroundLight: string;
  };
};

type OptionsType = {
    colors?: ColorsType | undefined;
    mode?: ModeType | undefined;
    initialFirstMessage?: string | undefined;
    token: string;
}
const options:OptionsType = {
    colors: // optional defaults to the current colors if not provided
    mode: 'light'| "dark" // doesn't do any thing for now
}

initilizeChatBot(options) // call it after the document loaded.
0.3.2

9 months ago

0.3.1

9 months ago

0.3.0

9 months ago

0.2.5

9 months ago

0.2.3

9 months ago

0.2.2

9 months ago

0.2.1

9 months ago

0.2.0

9 months ago

0.1.0

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago