@canopy-iiif/app 1.7.0 → 1.8.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/lib/build/dev.js CHANGED
@@ -22,14 +22,24 @@ const {
22
22
  const APP_COMPONENTS_DIR = path.join(process.cwd(), "app", "components");
23
23
 
24
24
  function resolveTailwindCli() {
25
+ const root = process.cwd();
26
+ let cliEntry = null;
27
+ try {
28
+ cliEntry = require.resolve("@tailwindcss/cli/dist/index.mjs", { paths: [root] });
29
+ } catch (_) {
30
+ cliEntry = null;
31
+ }
32
+ if (cliEntry) {
33
+ return { cmd: process.execPath || "node", args: [cliEntry] };
34
+ }
25
35
  const bin = path.join(
26
- process.cwd(),
36
+ root,
27
37
  "node_modules",
28
38
  ".bin",
29
39
  process.platform === "win32" ? "tailwindcss.cmd" : "tailwindcss"
30
40
  );
31
41
  if (fs.existsSync(bin)) return { cmd: bin, args: [] };
32
- return { cmd: 'tailwindcss', args: [] };
42
+ return { cmd: "tailwindcss", args: [] };
33
43
  }
34
44
  const PORT = Number(process.env.PORT || 5001);
35
45
  const BUILD_MODULE_PATH = path.resolve(__dirname, "build.js");
@@ -8,8 +8,18 @@ const {
8
8
  } = require("../common");
9
9
 
10
10
  function resolveTailwindCli() {
11
+ const root = process.cwd();
12
+ let cliEntry = null;
13
+ try {
14
+ cliEntry = require.resolve("@tailwindcss/cli/dist/index.mjs", { paths: [root] });
15
+ } catch (_) {
16
+ cliEntry = null;
17
+ }
18
+ if (cliEntry) {
19
+ return {cmd: process.execPath || "node", args: [cliEntry]};
20
+ }
11
21
  const localBin = path.join(
12
- process.cwd(),
22
+ root,
13
23
  "node_modules",
14
24
  ".bin",
15
25
  process.platform === "win32" ? "tailwindcss.cmd" : "tailwindcss"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canopy-iiif/app",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "Mat Jordan <mat@northwestern.edu>",
package/ui/dist/index.mjs CHANGED
@@ -4625,6 +4625,13 @@ function GalleryFigure({ item }) {
4625
4625
  )
4626
4626
  );
4627
4627
  }
4628
+ function GalleryContent({ children, flex = false }) {
4629
+ const contentClassName = [
4630
+ "canopy-gallery-item__content",
4631
+ flex ? "canopy-gallery-item__content_flex" : null
4632
+ ].filter(Boolean).join(" ");
4633
+ return /* @__PURE__ */ React40.createElement("div", { className: contentClassName }, children);
4634
+ }
4628
4635
  function GalleryItem() {
4629
4636
  return null;
4630
4637
  }
@@ -4690,6 +4697,7 @@ function Gallery({
4690
4697
  ));
4691
4698
  }
4692
4699
  Gallery.Item = GalleryItem;
4700
+ Gallery.Content = GalleryContent;
4693
4701
  export {
4694
4702
  ArticleCard,
4695
4703
  Button,
@@ -4703,6 +4711,7 @@ export {
4703
4711
  Container,
4704
4712
  MarkdownTable as DocsMarkdownTable,
4705
4713
  Gallery,
4714
+ GalleryContent,
4706
4715
  GalleryItem,
4707
4716
  GoogleAnalytics,
4708
4717
  Grid,