diff --git a/packages/canvas-panel/package.json b/packages/canvas-panel/package.json index 51a6c032..17be6d7f 100644 --- a/packages/canvas-panel/package.json +++ b/packages/canvas-panel/package.json @@ -17,11 +17,11 @@ "@iiif/presentation-3": ">=1.0.6", "@iiif/vault": "^0.9.18", "@iiif/parser": "1.*", - "@atlas-viewer/atlas": "2.0.14", + "@atlas-viewer/atlas": "2.2.8", "nanoid": "3.1.25" }, "dependencies": { - "@atlas-viewer/atlas": "2.0.14", + "@atlas-viewer/atlas": "^2.2.8", "@atlas-viewer/iiif-image-api": "^2.1.2", "@iiif/presentation-2": "^1.0.4", "@iiif/presentation-3": "^1.1.3", diff --git a/packages/canvas-panel/yarn.lock b/packages/canvas-panel/yarn.lock index 4c564b9e..aebede78 100644 --- a/packages/canvas-panel/yarn.lock +++ b/packages/canvas-panel/yarn.lock @@ -9,18 +9,17 @@ dependencies: "@jridgewell/trace-mapping" "^0.3.0" -"@atlas-viewer/atlas@2.0.14", "@atlas-viewer/atlas@^2.0.0-alpha.19": - version "2.0.14" - resolved "https://registry.yarnpkg.com/@atlas-viewer/atlas/-/atlas-2.0.14.tgz#ca567bf7bb0d8c9fbc7bfab40c70640fd5259e18" - integrity sha512-cgP0dDwj0Wk1sdPWxbrJbweXXreZ3+Fvg8qo91nqb2DnXe3Z35L+8WV64lWRsAsTBJpgih04EPZlTRDVgx9dcQ== +"@atlas-viewer/atlas@2.2.8", "@atlas-viewer/atlas@^2.0.0-alpha.19", "@atlas-viewer/atlas@^2.2.8": + version "2.2.8" + resolved "https://registry.yarnpkg.com/@atlas-viewer/atlas/-/atlas-2.2.8.tgz#01ac0cca64480033c12fa42a09c2ccf6bff89ecf" + integrity sha512-53DIi0MrbKQOCp9vQxYhyX2m1ywytFaa/8/2B8vEKRhseYiZ9ZfBo7pzcDEKYHwaWZ9syX6UzFY3puL0enJokQ== dependencies: "@atlas-viewer/dna" "^0.5.0" - "@atlas-viewer/iiif-image-api" "^2.0.5" - "@iiif/helpers" "^1.0.3" - "@iiif/parser" "2.0.1" + "@atlas-viewer/iiif-image-api" "^2.2.0" + "@iiif/helpers" "^1.1.0" + "@iiif/parser" "^2.1.0" "@iiif/presentation-3" ">=2" lru-cache "^7.17.0" - nanoid "^3.1.9" normalize-wheel "^1.0.1" react-reconciler "^0.29.0" react-use-measure "^2.0.1" @@ -31,7 +30,7 @@ resolved "https://registry.yarnpkg.com/@atlas-viewer/dna/-/dna-0.5.0.tgz#aab824540b59dc3897e2ba4cdb51a53e47ed3311" integrity sha512-vHyMwXoCFq6ymk+wOVIkMphUo+I+wBRoA2tBf1AIUZWJMsk51cBtO2qzOaZQUh/TmrzrqEY5aEAtgBj52LVRUg== -"@atlas-viewer/iiif-image-api@2.*", "@atlas-viewer/iiif-image-api@^2.0.5", "@atlas-viewer/iiif-image-api@^2.1.2": +"@atlas-viewer/iiif-image-api@2.*", "@atlas-viewer/iiif-image-api@^2.1.2", "@atlas-viewer/iiif-image-api@^2.2.0": version "2.1.2" resolved "https://registry.yarnpkg.com/@atlas-viewer/iiif-image-api/-/iiif-image-api-2.1.2.tgz#aeca3ac0c0c71f9c89986a22fd1ef50c17090761" integrity sha512-PiNSPi8y1Tjgfyy+J2bv/P/CypabeL7/za0qA+urFYRUQ2oEip5JvPoIWpyWVMh7MsXPQ4HdIPOpGzANtxTHXA== @@ -690,13 +689,13 @@ resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== -"@iiif/helpers@^1.0.3": - version "1.0.6" - resolved "https://registry.yarnpkg.com/@iiif/helpers/-/helpers-1.0.6.tgz#d9b8971d4db27ee7cce5d0e4e71964d055f16928" - integrity sha512-sI+6Ed9WBoh66Rk+z2oFY2vSZ2t4VIw3SJWKBFGLQbjeB6gHfsf7mlncXAEtscX1ZCr6S2w+RfcMXu/fOUo5PA== +"@iiif/helpers@^1.1.0": + version "1.2.19" + resolved "https://registry.yarnpkg.com/@iiif/helpers/-/helpers-1.2.19.tgz#25e817cde7664774731a9368f48b6875096434eb" + integrity sha512-v2NQVHq3Ut1gl66Dap1Qc40nORgC86ebgeV7iuhfxNSfseKMt6yD7r+4jSp0qliWC66kJSyg6d3QM7t4oBsE7A== dependencies: "@iiif/presentation-2" "1.0.4" - "@iiif/presentation-3" "2.1.3" + "@iiif/presentation-3" "2.2.3" "@iiif/presentation-3-normalized" "0.9.7" "@types/geojson" "7946.0.13" optionalDependencies: @@ -704,7 +703,7 @@ parse-svg-path "^0.1.2" svg-arc-to-cubic-bezier "^3.2.0" -"@iiif/parser@1.*", "@iiif/parser@2.0.1", "@iiif/parser@>=v1.0.13", "@iiif/parser@^1.1.2": +"@iiif/parser@1.*", "@iiif/parser@>=v1.0.13", "@iiif/parser@^1.1.2", "@iiif/parser@^2.1.0": version "1.0.6" resolved "https://registry.yarnpkg.com/@iiif/parser/-/parser-1.0.6.tgz#0f5252b94ba586aade3d6558b5a649fa265fe217" integrity sha512-bIdmqe3JwPopL7qEeZk193YNkGaEkkfSR9i/+B7I3MVXkKGE6G80tOWhfQRs/EY3fMzOS8OUFxzAu+aS6CXvEg== @@ -730,7 +729,7 @@ dependencies: "@iiif/presentation-3" "^2.0.5" -"@iiif/presentation-3@*", "@iiif/presentation-3@1.*", "@iiif/presentation-3@1.x", "@iiif/presentation-3@2.1.3", "@iiif/presentation-3@>=1.0.6", "@iiif/presentation-3@>=2", "@iiif/presentation-3@^1.0.4", "@iiif/presentation-3@^1.1.2", "@iiif/presentation-3@^1.1.3", "@iiif/presentation-3@^2.0.5": +"@iiif/presentation-3@*", "@iiif/presentation-3@1.*", "@iiif/presentation-3@1.x", "@iiif/presentation-3@2.2.3", "@iiif/presentation-3@>=1.0.6", "@iiif/presentation-3@>=2", "@iiif/presentation-3@^1.0.4", "@iiif/presentation-3@^1.1.2", "@iiif/presentation-3@^1.1.3", "@iiif/presentation-3@^2.0.5": version "1.0.6" resolved "https://registry.yarnpkg.com/@iiif/presentation-3/-/presentation-3-1.0.6.tgz#bec210e4df2549c363733dc3215b20c4e9160a46" integrity sha512-00wzi4ocMe0bvxkYsv+SzWRPeN8ZHN2n86aJ2o2QpZiaVQ2AsewBPCMarGryAZ0x7CQv0yO9HV1xj6jiuhl9dQ== @@ -3382,7 +3381,7 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -nanoid@3.1.25, nanoid@^3.1.9, nanoid@^3.3.1, nanoid@^3.3.4: +nanoid@3.1.25, nanoid@^3.3.1, nanoid@^3.3.4: version "3.1.25" resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.25.tgz#09ca32747c0e543f0e1814b7d3793477f9c8e152" integrity sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q== diff --git a/packages/storybook/.storybook/preview.js b/packages/storybook/.storybook/preview.js index 9c446473..c5f5fc6d 100644 --- a/packages/storybook/.storybook/preview.js +++ b/packages/storybook/.storybook/preview.js @@ -1,8 +1,9 @@ -import '@digirati/canvas-panel-web-components'; -import { addParameters } from '@storybook/client-api'; +//import '@digirati/canvas-panel-web-components'; +import "../../canvas-panel"; +import { addParameters } from "@storybook/client-api"; addParameters({ - viewMode: 'docs', + viewMode: "docs", }); export const parameters = { @@ -13,4 +14,4 @@ export const parameters = { date: /Date$/, }, }, -} +}; diff --git a/packages/storybook/build.sh b/packages/storybook/build.sh new file mode 100644 index 00000000..8f69648e --- /dev/null +++ b/packages/storybook/build.sh @@ -0,0 +1,4 @@ +cd ../canvas-panel +yarn build +cd - +npm run storybook \ No newline at end of file diff --git a/packages/storybook/src/stories/canvas-panel.stories.tsx b/packages/storybook/src/stories/canvas-panel.stories.tsx index 610bd11c..377059eb 100644 --- a/packages/storybook/src/stories/canvas-panel.stories.tsx +++ b/packages/storybook/src/stories/canvas-panel.stories.tsx @@ -25,6 +25,18 @@ export const ChangingCanvases = () => { } +export const NonInteractiveCanvas = () => { + + const [cv, setCv] = useState(canvases[0]); + + return <> +










text before (try to scroll around)














+ {/* @ts-ignore */} + +










text after














+ +} + export const CanvasWithNavigator = () => { {/* @ts-ignore */} return ;