@bluepic/embed 0.6.50 → 0.6.51

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.
@@ -1,14 +1,44 @@
1
+ /**
2
+ * The bar above a page gallery. Two modes:
3
+ * - `anchors` (default): jump links to sections on one page; the active one
4
+ * carries `aria-current`.
5
+ * - `tabs`: real tabs (`tablist` / `tab`, roving tabindex, Left / Right /
6
+ * Home / End). The host renders only the active panel and labels it with
7
+ * `tabElementId(activeTab)` (see `idPrefix`).
8
+ *
9
+ * A tab is a plain string (id = label, the old API) or `{ id, label }`, so two
10
+ * entries may share a label. Many tabs scroll horizontally; soft fades mark the
11
+ * hidden ones and the active tab is scrolled into view.
12
+ */
13
+ type TabEntry = string | {
14
+ id: string;
15
+ label: string;
16
+ };
1
17
  type __VLS_Props = {
2
- tabs: string[];
18
+ tabs: TabEntry[];
19
+ mode?: 'anchors' | 'tabs';
20
+ ariaLabel?: string;
21
+ /** `tabs` mode: id of the panel the tabs control. */
22
+ panelId?: string;
23
+ /** Prefix of every tab button's DOM id (`<prefix>-<tab id>`). */
24
+ idPrefix?: string;
3
25
  };
26
+ declare function tabElementId(id: string): string;
4
27
  type __VLS_PublicProps = __VLS_Props & {
5
28
  'activeTab': string;
6
29
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
31
+ tabElementId: typeof tabElementId;
32
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
33
  "click:category": (tab: string) => any;
9
34
  "update:activeTab": (value: string) => any;
10
35
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
36
  "onClick:category"?: ((tab: string) => any) | undefined;
12
37
  "onUpdate:activeTab"?: ((value: string) => any) | undefined;
13
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
+ }>, {
39
+ ariaLabel: string;
40
+ mode: "anchors" | "tabs";
41
+ panelId: string;
42
+ idPrefix: string;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
44
  export default _default;
@@ -13416,12 +13416,12 @@ export declare class BluepicEmbed extends EventTarget {
13416
13416
  thumbnailPending: boolean;
13417
13417
  createdAt: string;
13418
13418
  updatedAt: string;
13419
- pinnedBy: string[];
13420
13419
  assets?: {
13421
13420
  assetId: string;
13422
13421
  title?: string | null | undefined;
13423
13422
  description?: string | null | undefined;
13424
13423
  }[] | undefined;
13424
+ pinnedBy?: string[] | undefined;
13425
13425
  } | undefined, {
13426
13426
  id: number;
13427
13427
  uid: string;
@@ -13592,12 +13592,12 @@ export declare class BluepicEmbed extends EventTarget {
13592
13592
  thumbnailPending: boolean;
13593
13593
  createdAt: string;
13594
13594
  updatedAt: string;
13595
- pinnedBy: string[];
13596
13595
  assets?: {
13597
13596
  assetId: string;
13598
13597
  title?: string | null | undefined;
13599
13598
  description?: string | null | undefined;
13600
13599
  }[] | undefined;
13600
+ pinnedBy?: string[] | undefined;
13601
13601
  } | undefined>;
13602
13602
  bxCoreVersion: Ref<string | undefined, string | undefined>;
13603
13603
  allowPanAndZoom: Ref<boolean, boolean>;