diff --git a/package.json b/package.json index f78a569dfa..e65ce99244 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@privyid/design-system", - "version": "1.0.0-rc.10", + "version": "1.0.0-rc.11", "packageManager": "yarn@4.4.1", "private": true, "type": "module", diff --git a/packages/browserslist-config/package.json b/packages/browserslist-config/package.json index 025500e7e2..0e0c640453 100644 --- a/packages/browserslist-config/package.json +++ b/packages/browserslist-config/package.json @@ -1,7 +1,7 @@ { "name": "@privyid/browserslist-config", "description": "Browserslist shareable config for Persona project", - "version": "1.0.0-rc.10", + "version": "1.0.0-rc.11", "packageManager": "yarn@4.4.1", "license": "MIT", "repository": { diff --git a/packages/eslint-config-persona/package.json b/packages/eslint-config-persona/package.json index 85272af549..af7ed603f8 100644 --- a/packages/eslint-config-persona/package.json +++ b/packages/eslint-config-persona/package.json @@ -1,7 +1,7 @@ { "name": "@privyid/eslint-config-persona", "description": "Eslint shareable config for Persona project", - "version": "1.0.0-rc.10", + "version": "1.0.0-rc.11", "packageManager": "yarn@4.4.1", "license": "MIT", "repository": { diff --git a/packages/persona-icon/package.json b/packages/persona-icon/package.json index 4f235fc78c..e14529403f 100644 --- a/packages/persona-icon/package.json +++ b/packages/persona-icon/package.json @@ -1,7 +1,7 @@ { "name": "@privyid/persona-icon", "description": "Persona icon package", - "version": "1.0.0-rc.10", + "version": "1.0.0-rc.11", "packageManager": "yarn@4.4.1", "type": "module", "main": "./dist/module.cjs", diff --git a/packages/persona-ilustration/package.json b/packages/persona-ilustration/package.json index aa9b283571..8a1f201714 100644 --- a/packages/persona-ilustration/package.json +++ b/packages/persona-ilustration/package.json @@ -1,7 +1,7 @@ { "name": "@privyid/persona-ilustration", "description": "Persona ilustration package", - "version": "1.0.0-rc.10", + "version": "1.0.0-rc.11", "packageManager": "yarn@4.4.1", "type": "module", "main": "./dist/module.cjs", diff --git a/packages/persona/package.json b/packages/persona/package.json index 9ace36f01b..b96b1f2e28 100644 --- a/packages/persona/package.json +++ b/packages/persona/package.json @@ -1,7 +1,7 @@ { "name": "@privyid/persona", "description": "Persona core package", - "version": "1.0.0-rc.10", + "version": "1.0.0-rc.11", "license": "MIT", "repository": { "url": "https://github.com/privy-open-source/design-system.git", diff --git a/packages/tailwind-animation/package.json b/packages/tailwind-animation/package.json index 834df26aae..79a15e8532 100644 --- a/packages/tailwind-animation/package.json +++ b/packages/tailwind-animation/package.json @@ -1,7 +1,7 @@ { "name": "@privyid/tailwind-animation", "description": "Collection animation class for vue ``", - "version": "1.0.0-rc.10", + "version": "1.0.0-rc.11", "packageManager": "yarn@4.4.1", "license": "MIT", "repository": { diff --git a/packages/tailwind-extended/package.json b/packages/tailwind-extended/package.json index e5b14c667e..7a463ff35a 100644 --- a/packages/tailwind-extended/package.json +++ b/packages/tailwind-extended/package.json @@ -1,7 +1,7 @@ { "name": "@privyid/tailwind-extended", "description": "Add missing tailwind utilities", - "version": "1.0.0-rc.10", + "version": "1.0.0-rc.11", "packageManager": "yarn@4.4.1", "license": "MIT", "repository": { diff --git a/packages/tailwind-preset/package.json b/packages/tailwind-preset/package.json index 4d203b9865..7fbff84130 100644 --- a/packages/tailwind-preset/package.json +++ b/packages/tailwind-preset/package.json @@ -1,7 +1,7 @@ { "name": "@privyid/tailwind-preset", "description": "Tailwind preset for Persona project", - "version": "1.0.0-rc.10", + "version": "1.0.0-rc.11", "packageManager": "yarn@4.4.1", "license": "MIT", "repository": { diff --git a/src/components/pdf-viewer/__mocks__/use-viewer.ts b/src/components/pdf-viewer/__mocks__/use-viewer.ts index 48e86809f7..a964b2eacb 100644 --- a/src/components/pdf-viewer/__mocks__/use-viewer.ts +++ b/src/components/pdf-viewer/__mocks__/use-viewer.ts @@ -41,6 +41,8 @@ export const openDoc = vi.fn((src: string, password?: string) => { void errorEvent.trigger(context.error) } else { + void loadingEvent.trigger({ total: 100, loaded: 10 }) + context.ready = true context.totalPage = 5 diff --git a/src/components/pdf-viewer/utils/use-viewer.ts b/src/components/pdf-viewer/utils/use-viewer.ts index 8ca7abc43f..35e46f814b 100644 --- a/src/components/pdf-viewer/utils/use-viewer.ts +++ b/src/components/pdf-viewer/utils/use-viewer.ts @@ -22,9 +22,9 @@ import { } from './pdfjs' export interface OpenDocConfig { - disableStream: boolean, - disableRange: boolean, - httpHeaders: Object, + disableStream?: boolean, + disableRange?: boolean, + httpHeaders?: Object, } export function useViewer (container: Ref, viewer: Ref) { @@ -46,7 +46,7 @@ export function useViewer (container: Ref, viewer: Ref() const readyEvent = createEventHook() - async function openDoc (url: string, password?: string, config: Partial = {}) { + async function openDoc (url: string, password?: string, config: OpenDocConfig = {}) { loading.value = true error.value = undefined