Skip to content

Commit

Permalink
Use @readium/css package instead of readium-css repo
Browse files Browse the repository at this point in the history
  • Loading branch information
chocolatkey committed Nov 22, 2024
1 parent a68980c commit b7e7087
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion navigator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@types/path-browserify": "^1.0.3",
"css-selector-generator": "^3.6.9",
"path-browserify": "^1.0.1",
"readium-css": "github:readium/readium-css#master",
"@readium/css": "^1.1.0",
"tslib": "^2.8.1",
"typescript": "^5.6.3",
"typescript-plugin-css-modules": "^5.1.0",
Expand Down
6 changes: 3 additions & 3 deletions navigator/src/epub/frame/FrameBlobBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { Link, Publication } from "@readium/shared";
// Readium CSS imports
// The "?inline" query is to prevent some bundlers from injecting these into the page (e.g. vite)
// @ts-ignore
import readiumCSSAfter from "readium-css/css/dist/ReadiumCSS-after.css?inline";
import readiumCSSAfter from "@readium/css/css/dist/ReadiumCSS-after.css?inline";
// @ts-ignore
import readiumCSSBefore from "readium-css/css/dist/ReadiumCSS-before.css?inline";
import readiumCSSBefore from "@readium/css/css/dist/ReadiumCSS-before.css?inline";
// @ts-ignore
import readiumCSSDefault from "readium-css/css/dist/ReadiumCSS-default.css?inline";
import readiumCSSDefault from "@readium/css/css/dist/ReadiumCSS-default.css?inline";

// Utilities
const blobify = (source: string, type: string) => URL.createObjectURL(new Blob([source], { type }));
Expand Down
23 changes: 11 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion testapp/vanilla/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@readium/navigator-html-injectables": "workspace:*",
"@readium/shared": "workspace:*",
"css-selector-generator": "^3.6.9",
"readium-css": "github:readium/readium-css#master",
"@readium/css": "^1.1.0",
"typescript": "^5.6.3",
"vite": "^4.5.5"
}
Expand Down

0 comments on commit b7e7087

Please sign in to comment.