gosling.js 1.0.3 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import type { GoslingSpec } from '@gosling-lang/gosling-schema';
2
2
  import type { UrlToFetchOptions } from './gosling-component';
3
3
  import { type Theme } from './utils/theme';
4
4
  import { type GoslingApi } from '../api/api';
5
- import { type HiGlassComponentWrapperProps } from './higlass-component-wrapper';
5
+ import { type HiGlassApi, type HiGlassComponentWrapperProps } from './higlass-component-wrapper';
6
6
  export type GoslingEmbedOptions = Omit<HiGlassComponentWrapperProps['options'], 'background'> & {
7
7
  id?: string;
8
8
  className?: string;
@@ -14,5 +14,7 @@ export type GoslingEmbedOptions = Omit<HiGlassComponentWrapperProps['options'],
14
14
  * @param element
15
15
  * @param spec
16
16
  */
17
- export declare function embed(element: HTMLElement, spec: GoslingSpec, opts?: GoslingEmbedOptions): Promise<GoslingApi>;
17
+ export declare function embed(element: HTMLElement, spec: GoslingSpec, opts?: GoslingEmbedOptions): Promise<GoslingApi & {
18
+ _hgApi: HiGlassApi;
19
+ }>;
18
20
  //# sourceMappingURL=gosling-embed.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gosling-embed.d.ts","sourceRoot":"","sources":["../../../src/core/gosling-embed.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAKhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAY,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,YAAY,CAAC;AAExD,OAAO,EAGH,KAAK,4BAA4B,EACpC,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,4BAA4B,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC,GAAG;IAC5F,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACzC,CAAC;AAoDF;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,GAAE,mBAAwB,uBA4B5F"}
1
+ {"version":3,"file":"gosling-embed.d.ts","sourceRoot":"","sources":["../../../src/core/gosling-embed.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAKhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAY,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,KAAK,UAAU,EAAa,MAAM,YAAY,CAAC;AAExD,OAAO,EACH,KAAK,UAAU,EAEf,KAAK,4BAA4B,EACpC,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,4BAA4B,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC,GAAG;IAC5F,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACzC,CAAC;AAoDF;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,GAAE,mBAAwB;YAC/C,UAAU;GA2BvD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gosling.js",
3
3
  "author": "Sehi L'Yi",
4
- "version": "1.0.3",
4
+ "version": "1.0.6",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",