@openpresentation/gallery 0.32.0 → 0.33.0
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.
- package/CHANGELOG.md +25 -0
- package/README.md +23 -4
- package/THIRD-PARTY-NOTICES.md +87 -0
- package/dist/icon-sets/icon-set.d.ts +28 -0
- package/dist/icon-sets/lucide.js +4 -0
- package/dist/icon-sets/tabler.js +4 -0
- package/dist/icon-sets.d.ts +17 -0
- package/dist/icon-sets.js +9 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- package/dist/previews.js +1 -1
- package/package.json +19 -5
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @openpresentation/gallery/icon-sets (LH-14): the gallery's icon sets, a catalog to register beside `gallery`:
|
|
2
|
+
//
|
|
3
|
+
// import { gallery } from "@openpresentation/gallery";
|
|
4
|
+
// import { galleryIconSets } from "@openpresentation/gallery/icon-sets";
|
|
5
|
+
// await ensureIcons(deck, { catalogs: [gallery, galleryIconSets] });
|
|
6
|
+
//
|
|
7
|
+
// Each set is a function that imports the set's module (`@openpresentation/gallery/icon-sets/<id>`) the first time a deck uses it, so
|
|
8
|
+
// a host pays for a set only when it draws one, and a host that does not import this entry carries no icon data at all.
|
|
9
|
+
import type { GalleryIconSet } from "./icon-sets/icon-set.js";
|
|
10
|
+
export type { GalleryIcon, GalleryIconSet } from "./icon-sets/icon-set.js";
|
|
11
|
+
|
|
12
|
+
/** The icon sets as a registered catalog: core's `Catalog` with `source` and `iconSets` only. */
|
|
13
|
+
export interface GalleryIconSets {
|
|
14
|
+
readonly source: "https://www.pptx.gallery";
|
|
15
|
+
readonly iconSets: Readonly<Record<string, () => Promise<GalleryIconSet>>>;
|
|
16
|
+
}
|
|
17
|
+
export declare const galleryIconSets: GalleryIconSets;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Generated by scripts/build.mjs from catalog/icon-sets/. Do not edit by hand.
|
|
2
|
+
/**
|
|
3
|
+
* LH-14: the gallery's icon sets as a catalog to register beside `gallery` (`catalogs: [gallery, galleryIconSets]`): each set is a
|
|
4
|
+
* function that imports its module (`@openpresentation/gallery/icon-sets/<id>`) the first time a deck uses it; core's ensureIcons calls it.
|
|
5
|
+
*/
|
|
6
|
+
export const galleryIconSets = Object.freeze({ source: "https://www.pptx.gallery", iconSets: Object.freeze({
|
|
7
|
+
"lucide": () => import("./icon-sets/lucide.js").then((module) => module.default),
|
|
8
|
+
"tabler": () => import("./icon-sets/tabler.js").then((module) => module.default),
|
|
9
|
+
}) });
|
package/dist/index.d.ts
CHANGED
|
@@ -86,7 +86,8 @@ export type GalleryKind =
|
|
|
86
86
|
| "tones"
|
|
87
87
|
| "chartTypes"
|
|
88
88
|
| "languages"
|
|
89
|
-
| "socialPlatforms"
|
|
89
|
+
| "socialPlatforms"
|
|
90
|
+
| "iconSets";
|
|
90
91
|
|
|
91
92
|
/** Each kind's `index.json`. */
|
|
92
93
|
export declare const catalogIndexes: Readonly<Record<GalleryKind, CatalogIndex>>;
|