Skip to content

Commit eb2bcf6

Browse files
authored
Merge pull request #1464 from privy-open-source/release/1.0.0-rc.11
release: `1.0.0-rc.11`
2 parents 567f59e + eb16a4b commit eb2bcf6

File tree

11 files changed

+15
-13
lines changed

11 files changed

+15
-13
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@privyid/design-system",
3-
"version": "1.0.0-rc.10",
3+
"version": "1.0.0-rc.11",
44
"packageManager": "[email protected]",
55
"private": true,
66
"type": "module",

packages/browserslist-config/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@privyid/browserslist-config",
33
"description": "Browserslist shareable config for Persona project",
4-
"version": "1.0.0-rc.10",
4+
"version": "1.0.0-rc.11",
55
"packageManager": "[email protected]",
66
"license": "MIT",
77
"repository": {

packages/eslint-config-persona/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@privyid/eslint-config-persona",
33
"description": "Eslint shareable config for Persona project",
4-
"version": "1.0.0-rc.10",
4+
"version": "1.0.0-rc.11",
55
"packageManager": "[email protected]",
66
"license": "MIT",
77
"repository": {

packages/persona-icon/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@privyid/persona-icon",
33
"description": "Persona icon package",
4-
"version": "1.0.0-rc.10",
4+
"version": "1.0.0-rc.11",
55
"packageManager": "[email protected]",
66
"type": "module",
77
"main": "./dist/module.cjs",

packages/persona-ilustration/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@privyid/persona-ilustration",
33
"description": "Persona ilustration package",
4-
"version": "1.0.0-rc.10",
4+
"version": "1.0.0-rc.11",
55
"packageManager": "[email protected]",
66
"type": "module",
77
"main": "./dist/module.cjs",

packages/persona/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@privyid/persona",
33
"description": "Persona core package",
4-
"version": "1.0.0-rc.10",
4+
"version": "1.0.0-rc.11",
55
"license": "MIT",
66
"repository": {
77
"url": "https://github.com/privy-open-source/design-system.git",

packages/tailwind-animation/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@privyid/tailwind-animation",
33
"description": "Collection animation class for vue `<transition>`",
4-
"version": "1.0.0-rc.10",
4+
"version": "1.0.0-rc.11",
55
"packageManager": "[email protected]",
66
"license": "MIT",
77
"repository": {

packages/tailwind-extended/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@privyid/tailwind-extended",
33
"description": "Add missing tailwind utilities",
4-
"version": "1.0.0-rc.10",
4+
"version": "1.0.0-rc.11",
55
"packageManager": "[email protected]",
66
"license": "MIT",
77
"repository": {

packages/tailwind-preset/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@privyid/tailwind-preset",
33
"description": "Tailwind preset for Persona project",
4-
"version": "1.0.0-rc.10",
4+
"version": "1.0.0-rc.11",
55
"packageManager": "[email protected]",
66
"license": "MIT",
77
"repository": {

src/components/pdf-viewer/__mocks__/use-viewer.ts

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ export const openDoc = vi.fn((src: string, password?: string) => {
4141

4242
void errorEvent.trigger(context.error)
4343
} else {
44+
void loadingEvent.trigger({ total: 100, loaded: 10 })
45+
4446
context.ready = true
4547
context.totalPage = 5
4648

src/components/pdf-viewer/utils/use-viewer.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import {
2222
} from './pdfjs'
2323

2424
export interface OpenDocConfig {
25-
disableStream: boolean,
26-
disableRange: boolean,
27-
httpHeaders: Object,
25+
disableStream?: boolean,
26+
disableRange?: boolean,
27+
httpHeaders?: Object,
2828
}
2929

3030
export function useViewer (container: Ref<HTMLDivElement>, viewer: Ref<HTMLDivElement>) {
@@ -46,7 +46,7 @@ export function useViewer (container: Ref<HTMLDivElement>, viewer: Ref<HTMLDivEl
4646
const errorEvent = createEventHook<Error>()
4747
const readyEvent = createEventHook<PDFJSViewer.PDFViewer>()
4848

49-
async function openDoc (url: string, password?: string, config: Partial<OpenDocConfig> = {}) {
49+
async function openDoc (url: string, password?: string, config: OpenDocConfig = {}) {
5050
loading.value = true
5151
error.value = undefined
5252

0 commit comments

Comments
 (0)