@everymatrix/retail-search
1.21.34 • Public • Published
@everymatrix/retail-control-bar
First step
lerna bootstrap
Run Widget
- starts server at port 5050
- has livereload
yarn run dev
Build Widget
yarn run build
Publishing widget
- Note add your user to the npm
lerna publish
Posible searches:
- ID ( 1123124124125 )
- EVENT SHORTCODE ( 123412 )
- SELECTION SHORTCODE ( 12312-#EPK2346 #1WorX )
- EVENT NAME ( BARCELONA )
Widget sends a post message with type "Search"
-
For empty field sends:
{
type: "Search",
payload: { type: "empty" },
}
-
For selection shortcode:
{
type: "Search",
payload: {
type: 'shortCode',
eventShortCode: '12312'
selectionShortCode: '#EPK235 #1worx'
}
}
-
For any other type will send:
{
type: "Search",
payload: {
type: 'event' | 'player',
src: 'demo.norway.com/event?name='barcelona',
}
}
Readme
Keywords
nonePackage Sidebar
Install
npm i @everymatrix/retail-search
Weekly Downloads