Skip to content

Commit

Permalink
chore: generate widget version 2.21.1 (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortennordseth committed Aug 2, 2024
1 parent 302b913 commit 11535e2
Show file tree
Hide file tree
Showing 21 changed files with 5,303 additions and 75 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@atb-as/planner-web",
"version": "2.20.1",
"version": "2.21.1",
"private": true,
"license": "EUPL-1.2",
"engines": {
Expand Down
1 change: 1 addition & 0 deletions public/widget/C4Jw9gtgzkA/2.21.1/planner-web.css

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions public/widget/C4Jw9gtgzkA/2.21.1/planner-web.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { GeocoderFeature } from '@atb/page-modules/departures';

export declare function createWidget({ urlBase, language, outputOverrideOptions, }: WidgetOptions): PlannerWebOutput;

declare type Languages = 'nb' | 'nn' | 'en';

declare type OutputOverrideOptions = {
inheritFont?: boolean;
singleColumnLayout?: boolean;
};

export declare type PlannerWebOutput = {
output: string;
init: () => void;
urls: SettingConstants;
};

export declare function reverse(urlBase: string, coords: GeolocationCoordinates): Promise<GeocoderFeature | undefined>;

declare type SettingConstants = {
URL_BASE: string;
URL_JS_UMD: string;
URL_JS_ESM: string;
URL_CSS: string;
};

export declare type WidgetOptions = {
urlBase: string;
language?: Languages;
outputOverrideOptions?: Partial<OutputOverrideOptions>;
};

export { }
Loading

0 comments on commit 11535e2

Please sign in to comment.