0.0.15 • Published 2 months ago

@skodaflow/widget-loader v0.0.15

Weekly downloads
-
License
EULA – SKODA AUTO
Repository
-
Last release
2 months ago

Widget Loader

The loader widget helps with the integration of K2NGTolls applications. It loads the widget script, passes the widget configuration, inserts the necessary external dependencies, and finally connects the application to the integrator's page.

Installation

via npm

npm install @skodaflow/widget-loader --save

Usage

Widget Loader can be used as React component as following

import WidgetLoader from '@skodaflow/widget-loader';

import * as MaterialUI from '@mui/material';
import * as MaterialUIStyles from '@mui/material/styles';
import * as EmotionReact from '@emotion/react';
import * as EmotionStyled from '@emotion/styled';

<WidgetLoader
   source='https://www.widgetLocation/script.min.js'
   deps={{ MaterialUI, MaterialUIStyles, EmotionReact, EmotionStyled }}
   options={{
       endpoint: 'endpoint',
       bid: 'bid',
       culture: 'culture',
       ...otherWidgetSettings
   }} />
  • source - url - location of widget script
  • deps - external widget dependencies
  • options - widget options
    • endpoint - url - widget api
    • bid - importer code
    • culture - culture code
    • otherWidgetSettings - other optional widget settings
0.0.15

2 months ago

0.0.14

4 months ago

0.0.14-alpha1

4 months ago

0.0.12

12 months ago

0.0.13

11 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.6-beta.1

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

2 years ago

0.0.4-beta.0

2 years ago

0.0.4-beta.1

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago