Skip to content

Commit

Permalink
Merge pull request #1464 from privy-open-source/release/1.0.0-rc.11
Browse files Browse the repository at this point in the history
release: `1.0.0-rc.11`
  • Loading branch information
adenvt authored Sep 13, 2024
2 parents 567f59e + eb16a4b commit eb2bcf6
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/browserslist-config/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-persona/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/persona-icon/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/persona-ilustration/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/persona/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwind-animation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@privyid/tailwind-animation",
"description": "Collection animation class for vue `<transition>`",
"version": "1.0.0-rc.10",
"version": "1.0.0-rc.11",
"packageManager": "yarn@4.4.1",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwind-extended/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwind-preset/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions src/components/pdf-viewer/__mocks__/use-viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions src/components/pdf-viewer/utils/use-viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLDivElement>, viewer: Ref<HTMLDivElement>) {
Expand All @@ -46,7 +46,7 @@ export function useViewer (container: Ref<HTMLDivElement>, viewer: Ref<HTMLDivEl
const errorEvent = createEventHook<Error>()
const readyEvent = createEventHook<PDFJSViewer.PDFViewer>()

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

Expand Down

0 comments on commit eb2bcf6

Please sign in to comment.