Skip to content

Commit

Permalink
ci: Adds v2.20.0 asset files (#300)
Browse files Browse the repository at this point in the history
* ci: Adds v2.20.0 asset files

* ci: adds widget v2.20.1
  • Loading branch information
mikaelbr authored Jun 5, 2024
1 parent 0b8b54e commit 1a037c6
Show file tree
Hide file tree
Showing 37 changed files with 10,539 additions and 67 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.16.1",
"version": "2.20.1",
"private": true,
"license": "EUPL-1.2",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions public/widget/C4Jw9gtgzkA/2.20.0/planner-web.css

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions public/widget/C4Jw9gtgzkA/2.20.0/planner-web.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import type { 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 1a037c6

Please sign in to comment.