Skip to content

Commit

Permalink
chore: create widget version 2.9.0 (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortennordseth authored Jan 23, 2024
1 parent 224ecb3 commit d61f96e
Show file tree
Hide file tree
Showing 16 changed files with 3,907 additions and 37 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.8.0",
"version": "2.9.0",
"private": true,
"license": "EUPL-1.2",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions public/widget/GYJwhgtkA/2.9.0/planner-web.css

Large diffs are not rendered by default.

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

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

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

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;
};

export { }
Loading

0 comments on commit d61f96e

Please sign in to comment.