From be8e1b6e702f3f9209d694d5642ee82465a6bb9b Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Tue, 11 Jun 2024 10:34:33 -0400 Subject: [PATCH 01/29] feat: added cypress setup --- cypress.config.ts | 10 + cypress/e2e/navigation.cy.ts | 37 ++ cypress/e2e/utils/index.ts | 48 ++ cypress/fixtures/example.json | 5 + cypress/support/commands.ts | 27 ++ cypress/support/e2e.ts | 20 + cypress/tsconfig.json | 8 + package-lock.json | 817 +++++++++++++++++++++++++++++++++- package.json | 4 +- 9 files changed, 973 insertions(+), 3 deletions(-) create mode 100644 cypress.config.ts create mode 100644 cypress/e2e/navigation.cy.ts create mode 100644 cypress/e2e/utils/index.ts create mode 100644 cypress/fixtures/example.json create mode 100644 cypress/support/commands.ts create mode 100644 cypress/support/e2e.ts create mode 100644 cypress/tsconfig.json diff --git a/cypress.config.ts b/cypress.config.ts new file mode 100644 index 00000000..e29d3ea6 --- /dev/null +++ b/cypress.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from 'cypress'; + +export default defineConfig({ + e2e: { + supportFile: 'cypress/support/e2e.ts', + setupNodeEvents(on, config) { + // implement node event listeners here + }, + }, +}); diff --git a/cypress/e2e/navigation.cy.ts b/cypress/e2e/navigation.cy.ts new file mode 100644 index 00000000..8af635f6 --- /dev/null +++ b/cypress/e2e/navigation.cy.ts @@ -0,0 +1,37 @@ +/// + +import { clearIndexDB, newFolder } from './utils'; + +describe('example to-do app', () => { + before(async () => { + cy.clearAllSessionStorage(); + await clearIndexDB(); + }); + + beforeEach(() => { + cy.visit('http://localhost:5173/'); + }); + + it('should create a default local drive', () => { + cy.get('article').contains('My Local Drive').should('exist'); + }); + + it('should create a folder inside the local drive', () => { + newFolder('My Local Drive', 'My Folder'); + cy.contains('My Folder').should('exist'); + }); + + it('should create a new document model', () => { + newFolder('My Local Drive', 'documents'); + cy.contains('documents').click(); + cy.contains('DocumentModel').click(); + cy.get('input[placeholder="Document name"]') + .clear() + .type('test-document'); + cy.get('button').contains('Create').click(); + cy.get('textarea[placeholder="Document Model Name"]').type('draft1'); + + cy.contains('Global State Schema').click(); + cy.contains('Close').click(); + }); +}); diff --git a/cypress/e2e/utils/index.ts b/cypress/e2e/utils/index.ts new file mode 100644 index 00000000..a729a07d --- /dev/null +++ b/cypress/e2e/utils/index.ts @@ -0,0 +1,48 @@ +export const hoverElement = (element: HTMLElement) => { + triggerMouseEventOnElement(element, 'mousemove'); +}; + +export const triggerMouseEventOnElement = ( + element: HTMLElement, + eventType: string, +) => { + const rect = element.getBoundingClientRect(); + const clientX = rect.left + rect.width / 2; + const clientY = rect.top + rect.height / 2; + + // Create and dispatch the mouse event + const event = new MouseEvent(eventType, { + view: window, + bubbles: true, + cancelable: true, + clientX, + clientY, + }); + + element.dispatchEvent(event); +}; + +export const clearIndexDB = async () => { + const databases = await indexedDB.databases(); + + for (const db of databases) { + indexedDB.deleteDatabase(db.name); + } +}; + +export const newFolder = (driveName: string, folderName: string) => { + cy.get('article') + .contains(driveName) + .then(el => { + hoverElement(el[0]); + }); + + cy.get('article') + .contains(driveName) + .closest('article') + .children('button') + .click(); + + cy.contains('New Folder').click(); + cy.get('input[value="New Folder"]').clear().type(`${folderName}{enter}`); +}; diff --git a/cypress/fixtures/example.json b/cypress/fixtures/example.json new file mode 100644 index 00000000..02e42543 --- /dev/null +++ b/cypress/fixtures/example.json @@ -0,0 +1,5 @@ +{ + "name": "Using fixtures to represent data", + "email": "hello@cypress.io", + "body": "Fixtures are a great way to mock data for responses to routes" +} diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts new file mode 100644 index 00000000..abd9b226 --- /dev/null +++ b/cypress/support/commands.ts @@ -0,0 +1,27 @@ +/// +// *********************************************** +// This example commands.ts shows you how to +// create various custom commands and overwrite +// existing commands. +// +// For more comprehensive examples of custom +// commands please read more here: +// https://on.cypress.io/custom-commands +// *********************************************** +// +// +// -- This is a parent command -- +// Cypress.Commands.add('login', (email, password) => {}); +// +// +// -- This is a child command -- +// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) +// +// +// -- This is a dual command -- +// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) +// +// +// -- This will overwrite an existing command -- +// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) +// diff --git a/cypress/support/e2e.ts b/cypress/support/e2e.ts new file mode 100644 index 00000000..598ab5f0 --- /dev/null +++ b/cypress/support/e2e.ts @@ -0,0 +1,20 @@ +// *********************************************************** +// This example support/e2e.ts is processed and +// loaded automatically before your test files. +// +// This is a great place to put global configuration and +// behavior that modifies Cypress. +// +// You can change the location of this file or turn off +// automatically serving support files with the +// 'supportFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/configuration +// *********************************************************** + +// Import commands.js using ES2015 syntax: +import './commands'; + +// Alternatively you can use CommonJS syntax: +// require('./commands') diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json new file mode 100644 index 00000000..d77b1599 --- /dev/null +++ b/cypress/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["DOM", "DOM.Iterable", "ESNext"], + "types": ["cypress", "node"] + }, + "include": ["**/*.ts"], + } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index ca39a6e8..f564d193 100644 --- a/package-lock.json +++ b/package-lock.json @@ -57,6 +57,7 @@ "@vitejs/plugin-react": "^4.2.1", "asar": "^3.2.0", "autoprefixer": "^10.4.14", + "cypress": "^13.11.0", "electron": "30.0.0", "electron-playwright-helpers": "^1.7.1", "eslint": "^8.56.0", @@ -1415,6 +1416,92 @@ "node": ">=v18" } }, + "node_modules/@cypress/request": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@cypress/request/-/request-3.0.1.tgz", + "integrity": "sha512-TWivJlJi8ZDx2wGOw1dbLuHJKUYX7bWySw377nlnGOW3hP9/MUKIsEdXT/YngWxVdgNCHRBmFlBipE+5/2ZZlQ==", + "dev": true, + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "http-signature": "~1.3.6", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "performance-now": "^2.1.0", + "qs": "6.10.4", + "safe-buffer": "^5.1.2", + "tough-cookie": "^4.1.3", + "tunnel-agent": "^0.6.0", + "uuid": "^8.3.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@cypress/request/node_modules/form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/@cypress/request/node_modules/qs": { + "version": "6.10.4", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.4.tgz", + "integrity": "sha512-OQiU+C+Ds5qiH91qh/mg0w+8nwQuLjM4F4M/PbmhDOoYehPh+Fb0bDjtR1sOvy7YKxvj28Y/M0PhP5uVX0kB+g==", + "dev": true, + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/@cypress/request/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@cypress/xvfb": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.4.tgz", + "integrity": "sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==", + "dev": true, + "dependencies": { + "debug": "^3.1.0", + "lodash.once": "^4.1.1" + } + }, + "node_modules/@cypress/xvfb/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.1" + } + }, "node_modules/@electron-forge/cli": { "version": "6.4.2", "resolved": "https://registry.npmjs.org/@electron-forge/cli/-/cli-6.4.2.tgz", @@ -8198,6 +8285,18 @@ "@types/send": "*" } }, + "node_modules/@types/sinonjs__fake-timers": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.1.tgz", + "integrity": "sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==", + "dev": true + }, + "node_modules/@types/sizzle": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.8.tgz", + "integrity": "sha512-0vWLNK2D5MT9dg0iOo8GlKguPAU02QjmZitPEsXRuJXU/OGIOt9vT9Fc26wtYuavLxtO45v9PGleoL9Z0k1LHg==", + "dev": true + }, "node_modules/@types/uuid": { "version": "9.0.8", "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", @@ -8728,6 +8827,15 @@ } } }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -8808,6 +8916,26 @@ "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", "devOptional": true }, + "node_modules/arch": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz", + "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, "node_modules/are-we-there-yet": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", @@ -9098,6 +9226,24 @@ "node": "*" } }, + "node_modules/asn1": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "dev": true, + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "dev": true, + "engines": { + "node": ">=0.8" + } + }, "node_modules/assertion-error": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", @@ -9215,6 +9361,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/aws4": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.0.tgz", + "integrity": "sha512-3AungXC4I8kKsS9PuS4JH2nc+0bVY/mjgrephHTIi8fpEeGsTHBUJeosp0Wc1myYMElmD0B3Oc4XL/HVJ4PV2g==", + "dev": true + }, "node_modules/babel-plugin-macros": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", @@ -9319,6 +9480,15 @@ } ] }, + "node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", + "dev": true, + "dependencies": { + "tweetnacl": "^0.14.3" + } + }, "node_modules/before-after-hook": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", @@ -9371,6 +9541,12 @@ "node": ">= 6" } }, + "node_modules/blob-util": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/blob-util/-/blob-util-2.0.2.tgz", + "integrity": "sha512-T7JQa+zsXXEa6/8ZhHcQEW1UFfVM49Ts65uBkFL6fz2QmrElqmbajIDJvuA0tEhRe5eIjpV9ZF+0RfZR9voJFQ==", + "dev": true + }, "node_modules/bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -9681,6 +9857,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/cachedir": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.4.0.tgz", + "integrity": "sha512-9EtFOZR8g22CL7BWjJ9BUx1+A/djkofnyW3aOXZORNW2kxoUpx2h+uN2cOqwPmFhnpVmxg+KW2OjOSgChTEvsQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/call-bind": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", @@ -9814,6 +9999,12 @@ "cdl": "bin/cdl.js" } }, + "node_modules/caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", + "dev": true + }, "node_modules/chai": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", @@ -9907,6 +10098,15 @@ "node": "*" } }, + "node_modules/check-more-types": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz", + "integrity": "sha512-Pj779qHxV2tuapviy1bSZNEL1maXr13bPYpsvSDB68HlYcYuhlDrmGd63i0JHMCLKzc7rUSNIrpdJlhVlNwrxA==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/chokidar": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", @@ -9967,6 +10167,21 @@ "integrity": "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==", "dev": true }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, "node_modules/clean-css": { "version": "5.3.3", "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.3.tgz", @@ -10644,6 +10859,200 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, + "node_modules/cypress": { + "version": "13.11.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.11.0.tgz", + "integrity": "sha512-NXXogbAxVlVje4XHX+Cx5eMFZv4Dho/2rIcdBHg9CNPFUGZdM4cRdgIgM7USmNYsC12XY0bZENEQ+KBk72fl+A==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@cypress/request": "^3.0.0", + "@cypress/xvfb": "^1.2.4", + "@types/sinonjs__fake-timers": "8.1.1", + "@types/sizzle": "^2.3.2", + "arch": "^2.2.0", + "blob-util": "^2.0.2", + "bluebird": "^3.7.2", + "buffer": "^5.7.1", + "cachedir": "^2.3.0", + "chalk": "^4.1.0", + "check-more-types": "^2.24.0", + "cli-cursor": "^3.1.0", + "cli-table3": "~0.6.1", + "commander": "^6.2.1", + "common-tags": "^1.8.0", + "dayjs": "^1.10.4", + "debug": "^4.3.4", + "enquirer": "^2.3.6", + "eventemitter2": "6.4.7", + "execa": "4.1.0", + "executable": "^4.1.1", + "extract-zip": "2.0.1", + "figures": "^3.2.0", + "fs-extra": "^9.1.0", + "getos": "^3.2.1", + "is-ci": "^3.0.1", + "is-installed-globally": "~0.4.0", + "lazy-ass": "^1.6.0", + "listr2": "^3.8.3", + "lodash": "^4.17.21", + "log-symbols": "^4.0.0", + "minimist": "^1.2.8", + "ospath": "^1.2.2", + "pretty-bytes": "^5.6.0", + "process": "^0.11.10", + "proxy-from-env": "1.0.0", + "request-progress": "^3.0.0", + "semver": "^7.5.3", + "supports-color": "^8.1.1", + "tmp": "~0.2.1", + "untildify": "^4.0.0", + "yauzl": "^2.10.0" + }, + "bin": { + "cypress": "bin/cypress" + }, + "engines": { + "node": "^16.0.0 || ^18.0.0 || >=20.0.0" + } + }, + "node_modules/cypress/node_modules/commander": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/cypress/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/cypress/node_modules/execa": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/cypress/node_modules/figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cypress/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cypress/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cypress/node_modules/human-signals": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "dev": true, + "engines": { + "node": ">=8.12.0" + } + }, + "node_modules/cypress/node_modules/listr2": { + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.14.0.tgz", + "integrity": "sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==", + "dev": true, + "dependencies": { + "cli-truncate": "^2.1.0", + "colorette": "^2.0.16", + "log-update": "^4.0.0", + "p-map": "^4.0.0", + "rfdc": "^1.3.0", + "rxjs": "^7.5.1", + "through": "^2.3.8", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "enquirer": ">= 2.3.0 < 3" + }, + "peerDependenciesMeta": { + "enquirer": { + "optional": true + } + } + }, + "node_modules/cypress/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, "node_modules/dargs": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz", @@ -10653,6 +11062,18 @@ "node": ">=8" } }, + "node_modules/dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", + "dev": true, + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, "node_modules/data-view-buffer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", @@ -10713,6 +11134,12 @@ "url": "https://github.com/sponsors/kossnocorp" } }, + "node_modules/dayjs": { + "version": "1.11.11", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.11.tgz", + "integrity": "sha512-okzr3f11N6WuqYtZSvm+F776mB41wRZMhKP+hc34YdW+KmtYYK9iqvHSwo2k9FEH3fhGXvOPV6yz2IcSrfRUDg==", + "dev": true + }, "node_modules/debounce-fn": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/debounce-fn/-/debounce-fn-4.0.0.tgz", @@ -11298,6 +11725,22 @@ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", "dev": true }, + "node_modules/ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", + "dev": true, + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/ecc-jsbn/node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", + "dev": true + }, "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", @@ -11831,6 +12274,19 @@ "once": "^1.4.0" } }, + "node_modules/enquirer": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", + "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", + "dev": true, + "dependencies": { + "ansi-colors": "^4.1.1", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/entities": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", @@ -12645,6 +13101,12 @@ "node": ">= 0.6" } }, + "node_modules/eventemitter2": { + "version": "6.4.7", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.7.tgz", + "integrity": "sha512-tYUSVOGeQPKt/eC1ABfhHy5Xd96N3oIijJvN3O9+TsC28T5V9yX9oEfEK5faP0EFSNVOG97qtAS68GBrQB2hDg==", + "dev": true + }, "node_modules/eventemitter3": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", @@ -12686,6 +13148,27 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/executable": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz", + "integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==", + "dev": true, + "dependencies": { + "pify": "^2.2.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/executable/node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/expand-template": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", @@ -12799,6 +13282,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, "node_modules/extract-zip": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", @@ -12834,6 +13323,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", + "dev": true, + "engines": [ + "node >=0.6.0" + ] + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -13209,6 +13707,15 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", + "dev": true, + "engines": { + "node": "*" + } + }, "node_modules/form-data": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", @@ -13712,6 +14219,24 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/getos": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz", + "integrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==", + "dev": true, + "dependencies": { + "async": "^3.2.0" + } + }, + "node_modules/getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", + "dev": true, + "dependencies": { + "assert-plus": "^1.0.0" + } + }, "node_modules/git-log-parser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/git-log-parser/-/git-log-parser-1.2.0.tgz", @@ -14541,6 +15066,20 @@ "node": ">= 14" } }, + "node_modules/http-signature": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.3.6.tgz", + "integrity": "sha512-3adrsD6zqo4GsTqtO7FyrejHNv+NgiIfAfv68+jVlFmSr9OGy7zrxONceFRLKvnnZA5jbxQBX1u9PpB6Wi32Gw==", + "dev": true, + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^2.0.2", + "sshpk": "^1.14.1" + }, + "engines": { + "node": ">=0.10" + } + }, "node_modules/http2-wrapper": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", @@ -14987,6 +15526,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-ci": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", + "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", + "dev": true, + "dependencies": { + "ci-info": "^3.2.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, "node_modules/is-core-module": { "version": "2.13.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", @@ -15097,6 +15648,46 @@ "node": ">=0.10.0" } }, + "node_modules/is-installed-globally": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", + "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", + "dev": true, + "dependencies": { + "global-dirs": "^3.0.0", + "is-path-inside": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-installed-globally/node_modules/global-dirs": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", + "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", + "dev": true, + "dependencies": { + "ini": "2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-installed-globally/node_modules/ini": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/is-interactive": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", @@ -15318,6 +15909,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "dev": true + }, "node_modules/is-unc-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", @@ -15455,6 +16052,12 @@ "ws": "*" } }, + "node_modules/isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", + "dev": true + }, "node_modules/issue-parser": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/issue-parser/-/issue-parser-6.0.0.tgz", @@ -15631,6 +16234,12 @@ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==" }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "dev": true + }, "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -15713,6 +16322,21 @@ "node": "*" } }, + "node_modules/jsprim": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-2.0.2.tgz", + "integrity": "sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ==", + "dev": true, + "engines": [ + "node >=0.6.0" + ], + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + } + }, "node_modules/jsx-ast-utils": { "version": "3.3.5", "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", @@ -15766,6 +16390,15 @@ "node": ">=0.10.0" } }, + "node_modules/lazy-ass": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/lazy-ass/-/lazy-ass-1.6.0.tgz", + "integrity": "sha512-cc8oEVoctTvsFZ/Oje/kGnHbpWHYBe8IAJe4C0QNc3t8uM/0Y8+erSz/7Y1ALuXTEZTMvxXwO6YbX1ey3ujiZw==", + "dev": true, + "engines": { + "node": "> 0.8" + } + }, "node_modules/legacy-swc-helpers": { "name": "@swc/helpers", "version": "0.4.14", @@ -16418,6 +17051,12 @@ "integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==", "dev": true }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "dev": true + }, "node_modules/lodash.snakecase": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", @@ -20289,6 +20928,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/ospath": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/ospath/-/ospath-1.2.2.tgz", + "integrity": "sha512-o6E5qJV5zkAbIDNhGSIlyOhScKXgQrSRMilfph0clDfM0nEnBOlKlH4sWDmG95BW/CvwNz0vmm7dJVtU2KlMiA==", + "dev": true + }, "node_modules/p-cancelable": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", @@ -20660,6 +21305,12 @@ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", "dev": true }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", + "dev": true + }, "node_modules/pg-connection-string": { "version": "2.6.4", "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.6.4.tgz", @@ -21207,6 +21858,18 @@ } } }, + "node_modules/pretty-bytes": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", + "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/pretty-format": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", @@ -21236,6 +21899,15 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true, + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -21306,6 +21978,18 @@ "node": ">= 0.10" } }, + "node_modules/proxy-from-env": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.0.0.tgz", + "integrity": "sha512-F2JHgJQ1iqwnHDcQjVBsq3n/uoaFL+iPW/eAeL7kVxy/2RrWaN4WroKjjvbsoRtv0ftelNyC01bjRhn/bhcf4A==", + "dev": true + }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "dev": true + }, "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -21338,6 +22022,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -22080,6 +22770,15 @@ "invariant": "^2.2.4" } }, + "node_modules/request-progress": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz", + "integrity": "sha512-MnWzEHHaxHO2iWiQuHrUPBi/1WeBf5PkxQqNyNvLl9VAYSdXkP8tQ3pBSeCPD+yw0v0Aq1zosWLz0BdeXpWwZg==", + "dev": true, + "dependencies": { + "throttleit": "^1.0.0" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -22101,6 +22800,12 @@ "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, "node_modules/resedit": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/resedit/-/resedit-2.0.2.tgz", @@ -23724,6 +24429,37 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "optional": true }, + "node_modules/sshpk": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", + "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", + "dev": true, + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sshpk/node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", + "dev": true + }, "node_modules/ssri": { "version": "9.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-9.0.1.tgz", @@ -24396,6 +25132,15 @@ "node": ">=0.8" } }, + "node_modules/throttleit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.1.tgz", + "integrity": "sha512-vDZpf9Chs9mAdfY046mcPt8fg5QSZr37hEH4TXYBnDF+izxgrbRGUAAaBvIk/fJm9aOFCGFd1EsNg5AZCbnQCQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", @@ -24458,7 +25203,6 @@ "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz", "integrity": "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==", "dev": true, - "optional": true, "engines": { "node": ">=14.14" } @@ -24508,6 +25252,30 @@ "integrity": "sha512-OsLcGGbYF3rMjPUf8oKktyvCiUxSbqMMS39m33MAjLTC1DVIH6x3WSt63/M77ihI09+Sdfk1AXvfhCEeUmC7mg==", "optional": true }, + "node_modules/tough-cookie": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz", + "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==", + "dev": true, + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tough-cookie/node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", @@ -24623,7 +25391,7 @@ "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "optional": true, + "devOptional": true, "dependencies": { "safe-buffer": "^5.0.1" }, @@ -24645,6 +25413,12 @@ "tailwindcss": ">=3.0.0" } }, + "node_modules/tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", + "dev": true + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -24949,6 +25723,15 @@ "node": ">= 0.8" } }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/update-browserslist-db": { "version": "1.0.15", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.15.tgz", @@ -25011,6 +25794,16 @@ "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, "node_modules/use-callback-ref": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.2.tgz", @@ -25288,6 +26081,26 @@ "node": ">= 0.8" } }, + "node_modules/verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", + "dev": true, + "engines": [ + "node >=0.6.0" + ], + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/verror/node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "dev": true + }, "node_modules/viem": { "version": "2.10.3", "resolved": "https://registry.npmjs.org/viem/-/viem-2.10.3.tgz", diff --git a/package.json b/package.json index d8105064..76c06431 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "release": "semantic-release", "prepare": "npm run prepare:scripts", "prepare:scripts": "node scripts/index.js", - "e2e": "playwright test" + "e2e": "playwright test", + "cy:open": "cypress open" }, "devDependencies": { "@commitlint/cli": "^18.4.3", @@ -59,6 +60,7 @@ "@vitejs/plugin-react": "^4.2.1", "asar": "^3.2.0", "autoprefixer": "^10.4.14", + "cypress": "^13.11.0", "electron": "30.0.0", "electron-playwright-helpers": "^1.7.1", "eslint": "^8.56.0", From e50fb062eccf6387399bad9403f59a20bc478d89 Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Tue, 11 Jun 2024 15:40:26 -0400 Subject: [PATCH 02/29] feat: added cypress CI config --- .github/workflows/e2e-dev.yml | 27 +++++++++++++++++++++++++++ cypress.config.ts | 1 + 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/e2e-dev.yml diff --git a/.github/workflows/e2e-dev.yml b/.github/workflows/e2e-dev.yml new file mode 100644 index 00000000..762f9e50 --- /dev/null +++ b/.github/workflows/e2e-dev.yml @@ -0,0 +1,27 @@ +name: End-to-end tests + +on: + push: + branches: [staging] + workflow_dispatch: +jobs: + cypress-run: + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + containers: [1, 2] + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Cypress run + uses: cypress-io/github-action@v6 + with: + browser: chrome + # record: true # record tests in the Dashboard + parallel: true + start: npm run dev:web + wait-on: 'http://localhost:5173/' + # env: + # CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} // setup Cypress Dashboard record key + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/cypress.config.ts b/cypress.config.ts index e29d3ea6..9a839341 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,6 +1,7 @@ import { defineConfig } from 'cypress'; export default defineConfig({ + // projectId: '', // set in CI e2e: { supportFile: 'cypress/support/e2e.ts', setupNodeEvents(on, config) { From 123ed8be07321eafcac2521f4ae7452e86a6895f Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Tue, 11 Jun 2024 16:18:35 -0400 Subject: [PATCH 03/29] feat: added addpublicdrive util --- cypress/e2e/utils/index.ts | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/utils/index.ts b/cypress/e2e/utils/index.ts index a729a07d..d9ad52ef 100644 --- a/cypress/e2e/utils/index.ts +++ b/cypress/e2e/utils/index.ts @@ -30,15 +30,15 @@ export const clearIndexDB = async () => { } }; -export const newFolder = (driveName: string, folderName: string) => { +export const newFolder = (parent: string, folderName: string) => { cy.get('article') - .contains(driveName) + .contains(parent) .then(el => { hoverElement(el[0]); }); cy.get('article') - .contains(driveName) + .contains(parent) .closest('article') .children('button') .click(); @@ -46,3 +46,27 @@ export const newFolder = (driveName: string, folderName: string) => { cy.contains('New Folder').click(); cy.get('input[value="New Folder"]').clear().type(`${folderName}{enter}`); }; + +export const selectSidebarItem = (item: string) => { + cy.get('article').contains(item).click(); +}; + +export const addPublicDrive = (url: string) => { + cy.intercept('POST', url, req => { + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + if (req.body.operationName === 'getDrive') { + req.alias = 'graphqlQuery'; + } + }); + + cy.get('p').contains('Public Drives').parent().find('button').click(); + cy.get('input[placeholder="Drive URL"]').clear().type(url); + cy.contains('Add existing drive').click(); + + cy.wait('@graphqlQuery'); + cy.get('button').contains('Confirm URL').should('not.be.disabled'); + cy.get('button').contains('Confirm URL').click(); + + cy.get('button').contains('Add drive').should('not.be.disabled'); + cy.get('button').contains('Add drive').click(); +}; From 3439c5493098d66a6e7563068f35afcae255b142 Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Wed, 12 Jun 2024 12:11:36 -0400 Subject: [PATCH 04/29] feat: added Cypress Cloud Config --- .github/workflows/e2e-dev.yml | 10 +++++----- cypress.config.ts | 2 +- cypress/e2e/navigation.cy.ts | 10 +++++++++- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/e2e-dev.yml b/.github/workflows/e2e-dev.yml index 762f9e50..1e4200c1 100644 --- a/.github/workflows/e2e-dev.yml +++ b/.github/workflows/e2e-dev.yml @@ -2,7 +2,7 @@ name: End-to-end tests on: push: - branches: [staging] + branches: [develop] workflow_dispatch: jobs: cypress-run: @@ -18,10 +18,10 @@ jobs: uses: cypress-io/github-action@v6 with: browser: chrome - # record: true # record tests in the Dashboard + record: true parallel: true start: npm run dev:web wait-on: 'http://localhost:5173/' - # env: - # CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} // setup Cypress Dashboard record key - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + env: + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/cypress.config.ts b/cypress.config.ts index 9a839341..34544570 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from 'cypress'; export default defineConfig({ - // projectId: '', // set in CI + projectId: '74d1m9', e2e: { supportFile: 'cypress/support/e2e.ts', setupNodeEvents(on, config) { diff --git a/cypress/e2e/navigation.cy.ts b/cypress/e2e/navigation.cy.ts index 8af635f6..413c3499 100644 --- a/cypress/e2e/navigation.cy.ts +++ b/cypress/e2e/navigation.cy.ts @@ -2,7 +2,7 @@ import { clearIndexDB, newFolder } from './utils'; -describe('example to-do app', () => { +describe('Navigation', () => { before(async () => { cy.clearAllSessionStorage(); await clearIndexDB(); @@ -34,4 +34,12 @@ describe('example to-do app', () => { cy.contains('Global State Schema').click(); cy.contains('Close').click(); }); + + // it.only('should add public drive', () => { + // addPublicDrive( + // 'https://apps.powerhouse.io/powerhouse/switchboard/d/powerhouse', + // ); + // cy.contains('article', 'Powerhouse').should('be.visible'); + // selectSidebarItem('Powerhouse'); + // }); }); From c5c806f2cb2f0659ef5151f17864dc2f47cf07c8 Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Thu, 13 Jun 2024 09:04:42 -0400 Subject: [PATCH 05/29] remove: simulate files creation --- src/hooks/useCreateDocuments.ts | 34 +++++++++++++++++++++++++++++++++ src/pages/content.tsx | 5 +++++ 2 files changed, 39 insertions(+) create mode 100644 src/hooks/useCreateDocuments.ts diff --git a/src/hooks/useCreateDocuments.ts b/src/hooks/useCreateDocuments.ts new file mode 100644 index 00000000..50d8f6db --- /dev/null +++ b/src/hooks/useCreateDocuments.ts @@ -0,0 +1,34 @@ +import { + decodeID, + getRootPath, + useGetItemByPath, +} from '@powerhousedao/design-system'; +import { useSelectedPath } from 'src/store/document-drive'; +import { useFilteredDocumentModels } from 'src/store/document-model'; +import { useDocumentDriveServer } from './useDocumentDriveServer'; + +export const useCreateDocuments = () => { + const { addDocument } = useDocumentDriveServer(); + const [selectedPath] = useSelectedPath(); + const getItemByPath = useGetItemByPath(); + const documentModels = useFilteredDocumentModels(); + + const selectedFolder = getItemByPath(selectedPath || ''); + const driveID = getRootPath(selectedFolder?.path ?? ''); + const decodedDriveID = decodeID(driveID); + + const parentFolder = selectedFolder + ? selectedFolder.path.split('/').slice(1).pop() + : undefined; + + return async (amount: number) => { + for (let i = 0; i < amount; i++) { + await addDocument( + decodedDriveID, + `document-${i}`, + documentModels[0].documentModel.id, + parentFolder ? decodeID(parentFolder) : undefined, + ); + } + }; +}; diff --git a/src/pages/content.tsx b/src/pages/content.tsx index 61afe7f1..b1cbec26 100644 --- a/src/pages/content.tsx +++ b/src/pages/content.tsx @@ -21,6 +21,7 @@ import FolderView from 'src/components/folder-view'; import { useModal } from 'src/components/modal'; import { SearchBar } from 'src/components/search-bar'; import { useConnectConfig } from 'src/hooks/useConnectConfig'; +import { useCreateDocuments } from 'src/hooks/useCreateDocuments'; import { useDocumentDriveById } from 'src/hooks/useDocumentDriveById'; import { useDocumentDriveServer } from 'src/hooks/useDocumentDriveServer'; import { useDrivesContainer } from 'src/hooks/useDrivesContainer'; @@ -75,6 +76,7 @@ const Content = () => { const { onSubmitInput } = useDrivesContainer(); const navigateToItemId = useNavigateToItemId(); const { isAllowedToCreateDocuments } = useUserPermissions(); + const createDocuments = useCreateDocuments(); const driveNodes = documentDrives.find( drive => drive.state.global.id === decodedDriveID, @@ -311,6 +313,9 @@ const Content = () => { return (
+ {selectedFileNode && selectedDocument ? (
Date: Thu, 13 Jun 2024 09:42:53 -0400 Subject: [PATCH 06/29] feat: added reload Connect toast --- package-lock.json | 4 ++-- src/components/toast/index.ts | 1 + src/components/toast/reload-connect-toast.tsx | 17 +++++++++++++++++ ...oadInitialData.ts => useLoadInitialData.tsx} | 9 +++++++++ src/i18n/locales/en.json | 7 +++++-- 5 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 src/components/toast/index.ts create mode 100644 src/components/toast/reload-connect-toast.tsx rename src/hooks/{useLoadInitialData.ts => useLoadInitialData.tsx} (94%) diff --git a/package-lock.json b/package-lock.json index bb1b2571..7a528b4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@powerhousedao/connect", - "version": "1.0.0-alpha.1", + "version": "1.0.0-dev.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@powerhousedao/connect", - "version": "1.0.0-alpha.1", + "version": "1.0.0-dev.3", "license": "AGPL-3.0-only", "dependencies": { "@powerhousedao/design-system": "1.0.0-alpha.119", diff --git a/src/components/toast/index.ts b/src/components/toast/index.ts new file mode 100644 index 00000000..cae8e675 --- /dev/null +++ b/src/components/toast/index.ts @@ -0,0 +1 @@ +export * from './reload-connect-toast'; diff --git a/src/components/toast/reload-connect-toast.tsx b/src/components/toast/reload-connect-toast.tsx new file mode 100644 index 00000000..cde02567 --- /dev/null +++ b/src/components/toast/reload-connect-toast.tsx @@ -0,0 +1,17 @@ +import { useTranslation } from 'react-i18next'; + +export const ReloadConnectToast = () => { + const { t } = useTranslation(); + + return ( +
+

{t('notifications.reloadApp')}

+ +
+ ); +}; diff --git a/src/hooks/useLoadInitialData.ts b/src/hooks/useLoadInitialData.tsx similarity index 94% rename from src/hooks/useLoadInitialData.ts rename to src/hooks/useLoadInitialData.tsx index aaba9984..84841426 100644 --- a/src/hooks/useLoadInitialData.ts +++ b/src/hooks/useLoadInitialData.tsx @@ -10,6 +10,7 @@ import { import { DocumentDriveDocument } from 'document-model-libs/document-drive'; import { useCallback, useEffect, useRef } from 'react'; import { useTranslation } from 'react-i18next'; +import { ReloadConnectToast } from 'src/components/toast'; import { useDocumentDriveServer } from 'src/hooks/useDocumentDriveServer'; import { useDrivesContainer } from 'src/hooks/useDrivesContainer'; import { useSelectedPath } from 'src/store/document-drive'; @@ -71,6 +72,14 @@ export const useLoadInitialData = () => { // add the drive to the error list drivesWithError.current.push(drive.id); + const shouldReloadApp = false; + + if (shouldReloadApp) { + return toast(, { + type: 'connect-warning', + }); + } + return toast( t( `notifications.${drive.syncStatus === 'CONFLICT' ? 'driveSyncConflict' : 'driveSyncError'}`, diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index e8b1a161..f844f582 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -6,7 +6,9 @@ "empty": "Empty", "create": "Create", "save": "Save", - "export": "Export" + "export": "Export", + "reload": "Reload", + "reloadConnect": "Click here to reload Connect" }, "searchbar": { "placeholder": "Search Powerhouse", @@ -83,6 +85,7 @@ "addDriveSuccess": "New drive successfully added", "driveSyncSuccess": "Drive synced successfully", "driveSyncError": "Error synchronizing drive {{drive}}", - "driveSyncConflict": "Conflict error detected in {{drive}}" + "driveSyncConflict": "Conflict error detected in {{drive}}", + "reloadApp": "It seems like you're running an outdated version of the app. Please reload Connect to get the latest version." } } From 22b15596283dcf50e96c5e17020d8b2d980f60af Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 13 Jun 2024 14:06:38 +0000 Subject: [PATCH 07/29] chore(release): set `package.json` to 1.0.0-dev.4 [skip ci] # [1.0.0-dev.4](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.3...v1.0.0-dev.4) (2024-06-13) ### Features * added addpublicdrive util ([123ed8b](https://github.com/powerhouse-inc/document-model-electron/commit/123ed8be07321eafcac2521f4ae7452e86a6895f)) * added cypress CI config ([e50fb06](https://github.com/powerhouse-inc/document-model-electron/commit/e50fb062eccf6387399bad9403f59a20bc478d89)) * added Cypress Cloud Config ([3439c54](https://github.com/powerhouse-inc/document-model-electron/commit/3439c5493098d66a6e7563068f35afcae255b142)) * added cypress setup ([be8e1b6](https://github.com/powerhouse-inc/document-model-electron/commit/be8e1b6e702f3f9209d694d5642ee82465a6bb9b)) --- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ecc3f15..fa3b3c50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# [1.0.0-dev.4](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.3...v1.0.0-dev.4) (2024-06-13) + + +### Features + +* added addpublicdrive util ([123ed8b](https://github.com/powerhouse-inc/document-model-electron/commit/123ed8be07321eafcac2521f4ae7452e86a6895f)) +* added cypress CI config ([e50fb06](https://github.com/powerhouse-inc/document-model-electron/commit/e50fb062eccf6387399bad9403f59a20bc478d89)) +* added Cypress Cloud Config ([3439c54](https://github.com/powerhouse-inc/document-model-electron/commit/3439c5493098d66a6e7563068f35afcae255b142)) +* added cypress setup ([be8e1b6](https://github.com/powerhouse-inc/document-model-electron/commit/be8e1b6e702f3f9209d694d5642ee82465a6bb9b)) + # [1.0.0-dev.3](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.2...v1.0.0-dev.3) (2024-06-12) diff --git a/package.json b/package.json index 9cec98ea..b5777895 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@powerhousedao/connect", "productName": "Powerhouse-Connect", - "version": "1.0.0-dev.3", + "version": "1.0.0-dev.4", "description": "Powerhouse Connect", "main": ".vite/build/main.js", "license": "AGPL-3.0-only", From 85661eaa9aac0a8f38ce465adf1c0c227a442846 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 13 Jun 2024 16:16:56 +0200 Subject: [PATCH 08/29] feat: added version comparison --- src/hooks/useLoadInitialData.tsx | 15 ++++++------ src/hooks/utils.ts | 42 ++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 7 deletions(-) diff --git a/src/hooks/useLoadInitialData.tsx b/src/hooks/useLoadInitialData.tsx index 84841426..5d55d27e 100644 --- a/src/hooks/useLoadInitialData.tsx +++ b/src/hooks/useLoadInitialData.tsx @@ -18,6 +18,7 @@ import { DefaultDocumentDriveServer as server } from 'src/utils/document-drive-s import { useDocumentDrives } from './useDocumentDrives'; import { useLoadDefaultDrive } from './useLoadDefaultDrive'; import { useNavigateToItemId } from './useNavigateToItemId'; +import { isLatestVersion } from './utils'; export const useLoadInitialData = () => { const { t } = useTranslation(); @@ -72,13 +73,13 @@ export const useLoadInitialData = () => { // add the drive to the error list drivesWithError.current.push(drive.id); - const shouldReloadApp = false; - - if (shouldReloadApp) { - return toast(, { - type: 'connect-warning', - }); - } + isLatestVersion().then(result => { + if (!result) { + return toast(, { + type: 'connect-warning', + }); + } + }); return toast( t( diff --git a/src/hooks/utils.ts b/src/hooks/utils.ts index a7332def..e3c542ce 100644 --- a/src/hooks/utils.ts +++ b/src/hooks/utils.ts @@ -1,3 +1,45 @@ +import { version as currentVersion } from '../../package.json'; export const isElectron = window.navigator.userAgent.includes('Electron'); export const isMac = window.navigator.appVersion.includes('Mac'); + +const urlBranchMap: Record = { + 'alpha/makerdao': 'deployments/staging/makerdao', + 'alpha/arbitrum': 'arb-ltip', + 'alpha/powerhouse': 'staging', + makerdao: 'deployments/makerdao', + arbitrum: 'deployments/arbitrum', + localhost: 'develop', +}; + +const getGithubLinkFromUrl = () => { + const githubLink = + 'https://raw.githubusercontent.com/powerhouse-inc/connect'; + const url = window.URL.toString(); + + for (const entry of Object.keys(urlBranchMap)) { + if (url.includes(entry)) { + const value = urlBranchMap[entry]; + return `${githubLink}/${value}/package.json`; + } + } + + return `${githubLink}/main/package.json`; +}; + +const fetchLatestVersion = async () => { + const link = getGithubLinkFromUrl(); + const result = await fetch(link); + const data = await result.json(); + const { version } = data as { version: string }; + return version; +}; + +export const isLatestVersion = async () => { + const deployed = await fetchLatestVersion(); + if (deployed !== currentVersion) { + return false; + } + + return true; +}; From 1a82d60b5bbfc5f99f99d38e3909da4364325817 Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Thu, 13 Jun 2024 12:40:16 -0400 Subject: [PATCH 09/29] feat: re-use decodedDriveID --- src/components/file-item/file-item.tsx | 14 ++++++--- src/components/folder-item/folder-item.tsx | 2 ++ src/components/folder-view.tsx | 21 +++++-------- src/pages/content.tsx | 36 +++++++++++++--------- 4 files changed, 40 insertions(+), 33 deletions(-) diff --git a/src/components/file-item/file-item.tsx b/src/components/file-item/file-item.tsx index 71427dfe..d6a1d9c6 100644 --- a/src/components/file-item/file-item.tsx +++ b/src/components/file-item/file-item.tsx @@ -3,7 +3,6 @@ import { FileItemProps, Icon, TreeItem, - decodeID, defaultDropdownMenuOptions, } from '@powerhousedao/design-system'; import { useState } from 'react'; @@ -24,24 +23,30 @@ const defaultItemOptions = defaultDropdownMenuOptions.filter(option => interface IProps { file: TreeItem; - drive: string; + decodedDriveID: string; onFileSelected: (drive: string, id: string) => void; onFileDeleted: (drive: string, id: string) => void; } -export const FileItem: React.FC = ({ file, drive, onFileSelected }) => { +export const FileItem: React.FC = ({ + file, + decodedDriveID, + onFileSelected, +}) => { const { t } = useTranslation(); const [isWriteMode, setIsWriteMode] = useState(false); const getReadableItemPath = useGetReadableItemPath(); const getDocumentById = useGetDocumentById(); const { updateNodeName, onSubmitInput } = useDrivesContainer(); const { showModal } = useModal(); + + // TODO: move this to folder-view const { isAllowedToCreateDocuments } = useUserPermissions(); - const decodedDriveID = decodeID(drive); const openSwitchboardLink = useOpenSwitchboardLink(decodedDriveID); const { isRemoteDrive } = useDocumentDriveById(decodedDriveID); + // TODO: move this to folder-view const onFileOptionsClick = async (optionId: string, fileNode: TreeItem) => { if (optionId === 'delete') { showModal('deleteItem', { @@ -69,6 +74,7 @@ export const FileItem: React.FC = ({ file, drive, onFileSelected }) => { } }; + // TODO: move this to folder-view const itemOptions: FileItemProps['itemOptions'] = isRemoteDrive ? [ { diff --git a/src/components/folder-item/folder-item.tsx b/src/components/folder-item/folder-item.tsx index ca4b5fa8..204927fd 100644 --- a/src/components/folder-item/folder-item.tsx +++ b/src/components/folder-item/folder-item.tsx @@ -23,6 +23,7 @@ export interface FolderItemProps { export const FolderItem: React.FC = props => { const { folder, decodedDriveID, onFolderSelected } = props; + // TODO: move this to folder-view const { isAllowedToCreateDocuments } = useUserPermissions(); const { showModal } = useModal(); @@ -30,6 +31,7 @@ export const FolderItem: React.FC = props => { const [isWriteMode, setIsWriteMode] = useState(false); const onDropEvent = useOnDropEvent(); + // TODO: move this to folder-view const onFolderOptionsClick = async ( optionId: string, folderNode: TreeItem, diff --git a/src/components/folder-view.tsx b/src/components/folder-view.tsx index ffeb6c71..86353e7c 100644 --- a/src/components/folder-view.tsx +++ b/src/components/folder-view.tsx @@ -1,8 +1,4 @@ -import { - decodeID, - useDraggableTarget, - useGetItemByPath, -} from '@powerhousedao/design-system'; +import { TreeItem, useDraggableTarget } from '@powerhousedao/design-system'; import { useTranslation } from 'react-i18next'; import { FileItem } from 'src/components/file-item'; import { FolderItem } from 'src/components/folder-item'; @@ -13,8 +9,9 @@ import { twMerge } from 'tailwind-merge'; import { ContentSection } from './content'; interface IProps { - drive: string; + decodedDriveID: string; path: string; + folderItem: TreeItem; onFolderSelected: (itemId: string) => void; onFileSelected: (drive: string, id: string) => void; onFileDeleted: (drive: string, id: string) => void; @@ -22,22 +19,18 @@ interface IProps { export const FolderView: React.FC = ({ path, - drive, + folderItem, + decodedDriveID, onFileDeleted, onFileSelected, onFolderSelected, }) => { const { t } = useTranslation(); const { folders, files } = useFolderContent(path); - const decodedDriveID = decodeID(drive); - const getItemByPath = useGetItemByPath(); const onDropEvent = useOnDropEvent(); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const item = getItemByPath(path)!; - const { dropProps, isDropTarget } = useDraggableTarget({ - data: item, + data: folderItem, onDropEvent, }); @@ -74,7 +67,7 @@ export const FolderView: React.FC = ({ diff --git a/src/pages/content.tsx b/src/pages/content.tsx index b1cbec26..cbd88598 100644 --- a/src/pages/content.tsx +++ b/src/pages/content.tsx @@ -313,6 +313,7 @@ const Content = () => { return (
+ {/* TODO: remove this button */} @@ -363,21 +364,26 @@ const Content = () => { {connectConfig.content.showSearchBar && }
- { - setSelectedFileNode({ - drive, - id, - parentFolder: - selectedFolder?.id ?? null, - }); - navigateToItemId(id); - }} - onFileDeleted={deleteNode} - /> + {selectedFolder && ( + { + setSelectedFileNode({ + drive, + id, + parentFolder: + selectedFolder?.id ?? null, + }); + navigateToItemId(id); + }} + onFileDeleted={deleteNode} + /> + )}
{isAllowedToCreateDocuments && ( <> From 8af8020109d85cd1d6cae167cd51ddf722d2bb46 Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Thu, 13 Jun 2024 12:45:39 -0400 Subject: [PATCH 10/29] feat: moved isAllowedToCreateDocuments to folderView --- src/components/file-item/file-item.tsx | 6 ++---- src/components/folder-item/folder-item.tsx | 11 +++++++---- src/components/folder-view.tsx | 8 ++++++++ 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/components/file-item/file-item.tsx b/src/components/file-item/file-item.tsx index d6a1d9c6..67b7cb11 100644 --- a/src/components/file-item/file-item.tsx +++ b/src/components/file-item/file-item.tsx @@ -12,7 +12,6 @@ import { useDrivesContainer } from 'src/hooks/useDrivesContainer'; import { useGetDocumentById } from 'src/hooks/useGetDocumentById'; import { useGetReadableItemPath } from 'src/hooks/useGetReadableItemPath'; import { useOpenSwitchboardLink } from 'src/hooks/useOpenSwitchboardLink'; -import { useUserPermissions } from 'src/hooks/useUserPermissions'; import { useModal } from '../modal'; const allowedItemOptions = ['delete', 'rename', 'duplicate']; @@ -26,12 +25,14 @@ interface IProps { decodedDriveID: string; onFileSelected: (drive: string, id: string) => void; onFileDeleted: (drive: string, id: string) => void; + isAllowedToCreateDocuments: boolean; } export const FileItem: React.FC = ({ file, decodedDriveID, onFileSelected, + isAllowedToCreateDocuments, }) => { const { t } = useTranslation(); const [isWriteMode, setIsWriteMode] = useState(false); @@ -40,9 +41,6 @@ export const FileItem: React.FC = ({ const { updateNodeName, onSubmitInput } = useDrivesContainer(); const { showModal } = useModal(); - // TODO: move this to folder-view - const { isAllowedToCreateDocuments } = useUserPermissions(); - const openSwitchboardLink = useOpenSwitchboardLink(decodedDriveID); const { isRemoteDrive } = useDocumentDriveById(decodedDriveID); diff --git a/src/components/folder-item/folder-item.tsx b/src/components/folder-item/folder-item.tsx index 204927fd..ce3fd2c3 100644 --- a/src/components/folder-item/folder-item.tsx +++ b/src/components/folder-item/folder-item.tsx @@ -7,7 +7,6 @@ import React, { useState } from 'react'; import { useModal } from 'src/components/modal'; import { useDrivesContainer } from 'src/hooks/useDrivesContainer'; import { useOnDropEvent } from 'src/hooks/useOnDropEvent'; -import { useUserPermissions } from 'src/hooks/useUserPermissions'; const allowedItemOptions = ['delete', 'rename', 'duplicate']; @@ -19,12 +18,16 @@ export interface FolderItemProps { folder: TreeItem; decodedDriveID: string; onFolderSelected: (itemId: string) => void; + isAllowedToCreateDocuments: boolean; } export const FolderItem: React.FC = props => { - const { folder, decodedDriveID, onFolderSelected } = props; - // TODO: move this to folder-view - const { isAllowedToCreateDocuments } = useUserPermissions(); + const { + folder, + decodedDriveID, + onFolderSelected, + isAllowedToCreateDocuments, + } = props; const { showModal } = useModal(); const { updateNodeName, onSubmitInput } = useDrivesContainer(); diff --git a/src/components/folder-view.tsx b/src/components/folder-view.tsx index 86353e7c..8142a2d6 100644 --- a/src/components/folder-view.tsx +++ b/src/components/folder-view.tsx @@ -2,6 +2,7 @@ import { TreeItem, useDraggableTarget } from '@powerhousedao/design-system'; import { useTranslation } from 'react-i18next'; import { FileItem } from 'src/components/file-item'; import { FolderItem } from 'src/components/folder-item'; +import { useUserPermissions } from 'src/hooks/useUserPermissions'; import { useFolderContent } from 'src/hooks/useFolderContent'; import { useOnDropEvent } from 'src/hooks/useOnDropEvent'; @@ -27,6 +28,7 @@ export const FolderView: React.FC = ({ }) => { const { t } = useTranslation(); const { folders, files } = useFolderContent(path); + const { isAllowedToCreateDocuments } = useUserPermissions(); const onDropEvent = useOnDropEvent(); const { dropProps, isDropTarget } = useDraggableTarget({ @@ -53,6 +55,9 @@ export const FolderView: React.FC = ({ folder={folder} decodedDriveID={decodedDriveID} onFolderSelected={onFolderSelected} + isAllowedToCreateDocuments={ + isAllowedToCreateDocuments + } /> )) ) : ( @@ -70,6 +75,9 @@ export const FolderView: React.FC = ({ decodedDriveID={decodedDriveID} onFileDeleted={onFileDeleted} onFileSelected={onFileSelected} + isAllowedToCreateDocuments={ + isAllowedToCreateDocuments + } /> )) ) : ( From 0a0ef3a181489ec91a8c8439f25dcb9f3713f9a9 Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Thu, 13 Jun 2024 13:05:43 -0400 Subject: [PATCH 11/29] feat: avoid recreate fileOptions and clickOptionsHandler for each file node --- src/components/file-item/file-item.tsx | 80 +++++--------------------- src/components/folder-view.tsx | 5 ++ src/hooks/useFileOptions.tsx | 80 ++++++++++++++++++++++++++ 3 files changed, 99 insertions(+), 66 deletions(-) create mode 100644 src/hooks/useFileOptions.tsx diff --git a/src/components/file-item/file-item.tsx b/src/components/file-item/file-item.tsx index 67b7cb11..2136f74d 100644 --- a/src/components/file-item/file-item.tsx +++ b/src/components/file-item/file-item.tsx @@ -1,24 +1,12 @@ import { + ConnectDropdownMenuItem, FileItem as ConnectFileItem, - FileItemProps, - Icon, TreeItem, - defaultDropdownMenuOptions, } from '@powerhousedao/design-system'; import { useState } from 'react'; -import { useTranslation } from 'react-i18next'; -import { useDocumentDriveById } from 'src/hooks/useDocumentDriveById'; import { useDrivesContainer } from 'src/hooks/useDrivesContainer'; -import { useGetDocumentById } from 'src/hooks/useGetDocumentById'; +import { SetIsWriteMode } from 'src/hooks/useFileOptions'; import { useGetReadableItemPath } from 'src/hooks/useGetReadableItemPath'; -import { useOpenSwitchboardLink } from 'src/hooks/useOpenSwitchboardLink'; -import { useModal } from '../modal'; - -const allowedItemOptions = ['delete', 'rename', 'duplicate']; - -const defaultItemOptions = defaultDropdownMenuOptions.filter(option => - allowedItemOptions.includes(option.id), -); interface IProps { file: TreeItem; @@ -26,67 +14,25 @@ interface IProps { onFileSelected: (drive: string, id: string) => void; onFileDeleted: (drive: string, id: string) => void; isAllowedToCreateDocuments: boolean; + itemOptions?: ConnectDropdownMenuItem[]; + onFileOptionsClick?: ( + optionId: string, + fileNode: TreeItem, + setIsWriteMode: SetIsWriteMode, + ) => Promise; } export const FileItem: React.FC = ({ file, decodedDriveID, onFileSelected, + itemOptions = [], isAllowedToCreateDocuments, + onFileOptionsClick = () => {}, }) => { - const { t } = useTranslation(); const [isWriteMode, setIsWriteMode] = useState(false); const getReadableItemPath = useGetReadableItemPath(); - const getDocumentById = useGetDocumentById(); - const { updateNodeName, onSubmitInput } = useDrivesContainer(); - const { showModal } = useModal(); - - const openSwitchboardLink = useOpenSwitchboardLink(decodedDriveID); - const { isRemoteDrive } = useDocumentDriveById(decodedDriveID); - - // TODO: move this to folder-view - const onFileOptionsClick = async (optionId: string, fileNode: TreeItem) => { - if (optionId === 'delete') { - showModal('deleteItem', { - driveId: decodedDriveID, - itemId: fileNode.id, - itemName: file.label, - type: 'file', - }); - } - if (optionId === 'duplicate') { - await onSubmitInput({ - ...file, - action: 'UPDATE_AND_COPY', - }); - } - - if (optionId === 'rename') { - setIsWriteMode(true); - } - - if (optionId === 'switchboard-link') { - const document = getDocumentById(decodedDriveID, fileNode.id); - - await openSwitchboardLink(document); - } - }; - - // TODO: move this to folder-view - const itemOptions: FileItemProps['itemOptions'] = isRemoteDrive - ? [ - { - id: 'switchboard-link', - label: t('files.options.switchboardLink'), - icon: ( -
- -
- ), - }, - ...defaultItemOptions, - ] - : defaultItemOptions; + const { updateNodeName } = useDrivesContainer(); const cancelInputHandler = () => setIsWriteMode(false); const submitInputHandler = (value: string) => { @@ -105,7 +51,9 @@ export const FileItem: React.FC = ({ onCancelInput={cancelInputHandler} onSubmitInput={submitInputHandler} mode={isWriteMode ? 'write' : 'read'} - onOptionsClick={optionId => onFileOptionsClick(optionId, file)} + onOptionsClick={optionId => + onFileOptionsClick(optionId, file, setIsWriteMode) + } item={file} onClick={() => !isWriteMode && onFileSelected(decodedDriveID, file.id) diff --git a/src/components/folder-view.tsx b/src/components/folder-view.tsx index 8142a2d6..d79cdc50 100644 --- a/src/components/folder-view.tsx +++ b/src/components/folder-view.tsx @@ -4,6 +4,7 @@ import { FileItem } from 'src/components/file-item'; import { FolderItem } from 'src/components/folder-item'; import { useUserPermissions } from 'src/hooks/useUserPermissions'; +import { useFileOptions } from 'src/hooks/useFileOptions'; import { useFolderContent } from 'src/hooks/useFolderContent'; import { useOnDropEvent } from 'src/hooks/useOnDropEvent'; import { twMerge } from 'tailwind-merge'; @@ -29,6 +30,8 @@ export const FolderView: React.FC = ({ const { t } = useTranslation(); const { folders, files } = useFolderContent(path); const { isAllowedToCreateDocuments } = useUserPermissions(); + const { fileItemOptions, onFileOptionsClick } = + useFileOptions(decodedDriveID); const onDropEvent = useOnDropEvent(); const { dropProps, isDropTarget } = useDraggableTarget({ @@ -75,6 +78,8 @@ export const FolderView: React.FC = ({ decodedDriveID={decodedDriveID} onFileDeleted={onFileDeleted} onFileSelected={onFileSelected} + itemOptions={fileItemOptions} + onFileOptionsClick={onFileOptionsClick} isAllowedToCreateDocuments={ isAllowedToCreateDocuments } diff --git a/src/hooks/useFileOptions.tsx b/src/hooks/useFileOptions.tsx new file mode 100644 index 00000000..50660bad --- /dev/null +++ b/src/hooks/useFileOptions.tsx @@ -0,0 +1,80 @@ +import { + FileItemProps, + Icon, + TreeItem, + defaultDropdownMenuOptions, +} from '@powerhousedao/design-system'; +import { useTranslation } from 'react-i18next'; +import { useModal } from 'src/components/modal'; +import { useDocumentDriveById } from 'src/hooks/useDocumentDriveById'; +import { useDrivesContainer } from 'src/hooks/useDrivesContainer'; +import { useGetDocumentById } from 'src/hooks/useGetDocumentById'; +import { useOpenSwitchboardLink } from 'src/hooks/useOpenSwitchboardLink'; + +export type SetIsWriteMode = (isWriteMode: boolean) => void; + +const allowedItemOptions = ['delete', 'rename', 'duplicate']; + +const defaultItemOptions = defaultDropdownMenuOptions.filter(option => + allowedItemOptions.includes(option.id), +); + +export function useFileOptions(decodedDriveID: string) { + const { showModal } = useModal(); + const { onSubmitInput } = useDrivesContainer(); + const getDocumentById = useGetDocumentById(); + const { t } = useTranslation(); + const openSwitchboardLink = useOpenSwitchboardLink(decodedDriveID); + const { isRemoteDrive } = useDocumentDriveById(decodedDriveID); + + const onFileOptionsClick = async ( + optionId: string, + fileNode: TreeItem, + setIsWriteMode: SetIsWriteMode, + ) => { + if (optionId === 'delete') { + showModal('deleteItem', { + driveId: decodedDriveID, + itemId: fileNode.id, + itemName: fileNode.label, + type: 'file', + }); + } + if (optionId === 'duplicate') { + await onSubmitInput({ + ...fileNode, + action: 'UPDATE_AND_COPY', + }); + } + + if (optionId === 'rename') { + setIsWriteMode(true); + } + + if (optionId === 'switchboard-link') { + const document = getDocumentById(decodedDriveID, fileNode.id); + + await openSwitchboardLink(document); + } + }; + + const fileItemOptions: FileItemProps['itemOptions'] = isRemoteDrive + ? [ + { + id: 'switchboard-link', + label: t('files.options.switchboardLink'), + icon: ( +
+ +
+ ), + }, + ...defaultItemOptions, + ] + : defaultItemOptions; + + return { + onFileOptionsClick, + fileItemOptions, + }; +} From 040c2b6ca0cdd8c87d313d27169213a50cffb4cd Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Thu, 13 Jun 2024 13:22:39 -0400 Subject: [PATCH 12/29] feat: use memoized version of FileItem component --- src/components/file-item/file-item.tsx | 10 ++++++++-- src/components/folder-view.tsx | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/file-item/file-item.tsx b/src/components/file-item/file-item.tsx index 2136f74d..a58d4fd6 100644 --- a/src/components/file-item/file-item.tsx +++ b/src/components/file-item/file-item.tsx @@ -3,7 +3,7 @@ import { FileItem as ConnectFileItem, TreeItem, } from '@powerhousedao/design-system'; -import { useState } from 'react'; +import React, { useState } from 'react'; import { useDrivesContainer } from 'src/hooks/useDrivesContainer'; import { SetIsWriteMode } from 'src/hooks/useFileOptions'; import { useGetReadableItemPath } from 'src/hooks/useGetReadableItemPath'; @@ -63,4 +63,10 @@ export const FileItem: React.FC = ({ ); }; -export default FileItem; +export default React.memo(FileItem, (prevProps, nextProps) => { + return ( + prevProps.decodedDriveID === nextProps.decodedDriveID && + prevProps.file.id === nextProps.file.id && + prevProps.file.label === nextProps.file.label + ); +}); diff --git a/src/components/folder-view.tsx b/src/components/folder-view.tsx index d79cdc50..56285f6f 100644 --- a/src/components/folder-view.tsx +++ b/src/components/folder-view.tsx @@ -1,6 +1,6 @@ import { TreeItem, useDraggableTarget } from '@powerhousedao/design-system'; import { useTranslation } from 'react-i18next'; -import { FileItem } from 'src/components/file-item'; +import FileItem from 'src/components/file-item/file-item'; import { FolderItem } from 'src/components/folder-item'; import { useUserPermissions } from 'src/hooks/useUserPermissions'; From 6329b291adee5895070f3b2192f84c36c86406a8 Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Thu, 13 Jun 2024 14:59:55 -0400 Subject: [PATCH 13/29] feat: avoid recreate folderOptions and clickFolderOptionsHandler for each folder node --- src/components/folder-item/folder-item.tsx | 53 ++++++---------------- src/components/folder-view.tsx | 5 ++ src/hooks/useFolderOptions.ts | 50 ++++++++++++++++++++ 3 files changed, 70 insertions(+), 38 deletions(-) create mode 100644 src/hooks/useFolderOptions.ts diff --git a/src/components/folder-item/folder-item.tsx b/src/components/folder-item/folder-item.tsx index ce3fd2c3..e48de284 100644 --- a/src/components/folder-item/folder-item.tsx +++ b/src/components/folder-item/folder-item.tsx @@ -1,24 +1,24 @@ import { + ConnectDropdownMenuItem, FolderItem as ConnectFolderItem, TreeItem, - defaultDropdownMenuOptions, } from '@powerhousedao/design-system'; import React, { useState } from 'react'; -import { useModal } from 'src/components/modal'; import { useDrivesContainer } from 'src/hooks/useDrivesContainer'; +import { SetIsWriteMode } from 'src/hooks/useFolderOptions'; import { useOnDropEvent } from 'src/hooks/useOnDropEvent'; -const allowedItemOptions = ['delete', 'rename', 'duplicate']; - -const itemOptions = defaultDropdownMenuOptions.filter(option => - allowedItemOptions.includes(option.id), -); - export interface FolderItemProps { folder: TreeItem; decodedDriveID: string; onFolderSelected: (itemId: string) => void; isAllowedToCreateDocuments: boolean; + folderItemOptions: ConnectDropdownMenuItem[]; + onFolderOptionsClick?: ( + optionId: string, + fileNode: TreeItem, + setIsWriteMode: SetIsWriteMode, + ) => Promise; } export const FolderItem: React.FC = props => { @@ -26,40 +26,15 @@ export const FolderItem: React.FC = props => { folder, decodedDriveID, onFolderSelected, + folderItemOptions, + onFolderOptionsClick = () => {}, isAllowedToCreateDocuments, } = props; - const { showModal } = useModal(); - const { updateNodeName, onSubmitInput } = useDrivesContainer(); + const { updateNodeName } = useDrivesContainer(); const [isWriteMode, setIsWriteMode] = useState(false); const onDropEvent = useOnDropEvent(); - // TODO: move this to folder-view - const onFolderOptionsClick = async ( - optionId: string, - folderNode: TreeItem, - ) => { - if (optionId === 'delete') { - showModal('deleteItem', { - driveId: decodedDriveID, - itemId: folderNode.id, - itemName: folderNode.label, - type: 'folder', - }); - } - - if (optionId === 'duplicate') { - await onSubmitInput({ - ...folder, - action: 'UPDATE_AND_COPY', - }); - } - - if (optionId === 'rename') { - setIsWriteMode(true); - } - }; - const cancelInputHandler = () => setIsWriteMode(false); const submitInputHandler = (value: string) => { setIsWriteMode(false); @@ -71,12 +46,14 @@ export const FolderItem: React.FC = props => { className="w-64" displaySyncIcon title={folder.label} - itemOptions={itemOptions} + itemOptions={folderItemOptions} onCancelInput={cancelInputHandler} onSubmitInput={submitInputHandler} mode={isWriteMode ? 'write' : 'read'} onClick={() => !isWriteMode && onFolderSelected(folder.id)} - onOptionsClick={optionId => onFolderOptionsClick(optionId, folder)} + onOptionsClick={optionId => + onFolderOptionsClick(optionId, folder, setIsWriteMode) + } onDropEvent={onDropEvent} item={folder} isAllowedToCreateDocuments={isAllowedToCreateDocuments} diff --git a/src/components/folder-view.tsx b/src/components/folder-view.tsx index 56285f6f..653474e0 100644 --- a/src/components/folder-view.tsx +++ b/src/components/folder-view.tsx @@ -6,6 +6,7 @@ import { useUserPermissions } from 'src/hooks/useUserPermissions'; import { useFileOptions } from 'src/hooks/useFileOptions'; import { useFolderContent } from 'src/hooks/useFolderContent'; +import { useFolderOptions } from 'src/hooks/useFolderOptions'; import { useOnDropEvent } from 'src/hooks/useOnDropEvent'; import { twMerge } from 'tailwind-merge'; import { ContentSection } from './content'; @@ -30,6 +31,8 @@ export const FolderView: React.FC = ({ const { t } = useTranslation(); const { folders, files } = useFolderContent(path); const { isAllowedToCreateDocuments } = useUserPermissions(); + const { folderItemOptions, onFolderOptionsClick } = + useFolderOptions(decodedDriveID); const { fileItemOptions, onFileOptionsClick } = useFileOptions(decodedDriveID); const onDropEvent = useOnDropEvent(); @@ -58,6 +61,8 @@ export const FolderView: React.FC = ({ folder={folder} decodedDriveID={decodedDriveID} onFolderSelected={onFolderSelected} + folderItemOptions={folderItemOptions} + onFolderOptionsClick={onFolderOptionsClick} isAllowedToCreateDocuments={ isAllowedToCreateDocuments } diff --git a/src/hooks/useFolderOptions.ts b/src/hooks/useFolderOptions.ts new file mode 100644 index 00000000..9772ba27 --- /dev/null +++ b/src/hooks/useFolderOptions.ts @@ -0,0 +1,50 @@ +import { + TreeItem, + defaultDropdownMenuOptions, +} from '@powerhousedao/design-system'; +import { useModal } from 'src/components/modal'; +import { useDrivesContainer } from 'src/hooks/useDrivesContainer'; + +const allowedItemOptions = ['delete', 'rename', 'duplicate']; + +const folderItemOptions = defaultDropdownMenuOptions.filter(option => + allowedItemOptions.includes(option.id), +); + +export type SetIsWriteMode = (isWriteMode: boolean) => void; + +export function useFolderOptions(decodedDriveID: string) { + const { showModal } = useModal(); + const { onSubmitInput } = useDrivesContainer(); + + const onFolderOptionsClick = async ( + optionId: string, + folderNode: TreeItem, + setIsWriteMode: SetIsWriteMode, + ) => { + if (optionId === 'delete') { + showModal('deleteItem', { + driveId: decodedDriveID, + itemId: folderNode.id, + itemName: folderNode.label, + type: 'folder', + }); + } + + if (optionId === 'duplicate') { + await onSubmitInput({ + ...folderNode, + action: 'UPDATE_AND_COPY', + }); + } + + if (optionId === 'rename') { + setIsWriteMode(true); + } + }; + + return { + folderItemOptions, + onFolderOptionsClick, + }; +} From 0a6c40a182255e8871a8dd6bc8986a31907579d0 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 13 Jun 2024 20:24:44 +0000 Subject: [PATCH 14/29] chore(release): set `package.json` to 1.0.0-dev.5 [skip ci] # [1.0.0-dev.5](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.4...v1.0.0-dev.5) (2024-06-13) ### Features * added reload Connect toast ([944b086](https://github.com/powerhouse-inc/document-model-electron/commit/944b0866bf7ca830581a21ed828f81c880891922)) * added version comparison ([85661ea](https://github.com/powerhouse-inc/document-model-electron/commit/85661eaa9aac0a8f38ce465adf1c0c227a442846)) --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa3b3c50..ad0727e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# [1.0.0-dev.5](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.4...v1.0.0-dev.5) (2024-06-13) + + +### Features + +* added reload Connect toast ([944b086](https://github.com/powerhouse-inc/document-model-electron/commit/944b0866bf7ca830581a21ed828f81c880891922)) +* added version comparison ([85661ea](https://github.com/powerhouse-inc/document-model-electron/commit/85661eaa9aac0a8f38ce465adf1c0c227a442846)) + # [1.0.0-dev.4](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.3...v1.0.0-dev.4) (2024-06-13) diff --git a/package.json b/package.json index b5777895..40b90c6b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@powerhousedao/connect", "productName": "Powerhouse-Connect", - "version": "1.0.0-dev.4", + "version": "1.0.0-dev.5", "description": "Powerhouse Connect", "main": ".vite/build/main.js", "license": "AGPL-3.0-only", From fe4d49a4acdccb5a24678ca38b914257599a63b9 Mon Sep 17 00:00:00 2001 From: ryanwolhuter Date: Fri, 14 Jun 2024 09:52:34 +0200 Subject: [PATCH 15/29] feat: bump libs Signed-off-by: ryanwolhuter --- package-lock.json | 16 ++++++++-------- package.json | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index ca39a6e8..23e0b1ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,12 +9,12 @@ "version": "1.0.0-alpha.6", "license": "AGPL-3.0-only", "dependencies": { - "@powerhousedao/design-system": "1.0.0-alpha.112", + "@powerhousedao/design-system": "1.0.0-alpha.121", "@sentry/react": "^7.109.0", "did-key-creator": "^1.2.0", "document-drive": "1.0.0-alpha.73", "document-model": "1.5.0", - "document-model-libs": "^1.58.0", + "document-model-libs": "^1.59.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", @@ -4441,9 +4441,9 @@ } }, "node_modules/@powerhousedao/design-system": { - "version": "1.0.0-alpha.112", - "resolved": "https://registry.npmjs.org/@powerhousedao/design-system/-/design-system-1.0.0-alpha.112.tgz", - "integrity": "sha512-jQ1Qu6X+S4Pm1SRAOvqjFjjEidZHAzcxCt2EdToxfYpmANo7xqHs/PBVvj8vTnHvQoUHObSwSnbdnOGUH8K2sA==", + "version": "1.0.0-alpha.121", + "resolved": "https://registry.npmjs.org/@powerhousedao/design-system/-/design-system-1.0.0-alpha.121.tgz", + "integrity": "sha512-u3RGApulSnLCtMGDfV0CPNHwK5rsSAcQqndt3/z3TH7ydT32D5NVSc+vedVdjFAvy+b8YIjECU/s9cGojY8TBg==", "dependencies": { "@internationalized/date": "^3.5.1", "@radix-ui/react-dialog": "^1.0.5", @@ -11124,9 +11124,9 @@ } }, "node_modules/document-model-libs": { - "version": "1.58.0", - "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.58.0.tgz", - "integrity": "sha512-a2HllPQnxYnM2P8REupQZpI9dM33GFFiEAe91fs6a5d4YjGnnmJsavAbSbt0p3dnhDRbOxS6lfN7p3H1A97E2Q==", + "version": "1.59.0", + "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.59.0.tgz", + "integrity": "sha512-YvZ9skvtdGEh24GgRS293hscZIH5yW6rIDeKgWnshixcOzqoxzv6GGk2SJSTbdsNPLQqcqOA11osJw5+ahWAwg==", "dependencies": { "@acaldas/graphql-codegen-typescript-validation-schema": "^0.12.3", "@graphql-codegen/core": "^4.0.2", diff --git a/package.json b/package.json index d8105064..cad7a47c 100644 --- a/package.json +++ b/package.json @@ -91,12 +91,12 @@ "xvfb-maybe": "^0.2.1" }, "dependencies": { - "@powerhousedao/design-system": "1.0.0-alpha.112", + "@powerhousedao/design-system": "1.0.0-alpha.121", "@sentry/react": "^7.109.0", "did-key-creator": "^1.2.0", "document-drive": "1.0.0-alpha.73", "document-model": "1.5.0", - "document-model-libs": "^1.58.0", + "document-model-libs": "^1.59.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", From 153909c5c7e0bc2c97511f9001c1b3e4f7ec5f79 Mon Sep 17 00:00:00 2001 From: ryanwolhuter Date: Fri, 14 Jun 2024 10:18:17 +0200 Subject: [PATCH 16/29] feat: bump libs Signed-off-by: ryanwolhuter --- package-lock.json | 20 ++++++++++---------- package.json | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index a7b8476b..c7e81153 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,20 +1,20 @@ { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.3", + "version": "1.0.0-dev.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.3", + "version": "1.0.0-dev.5", "license": "AGPL-3.0-only", "dependencies": { - "@powerhousedao/design-system": "1.0.0-alpha.119", + "@powerhousedao/design-system": "1.0.0-alpha.121", "@sentry/react": "^7.109.0", "did-key-creator": "^1.2.0", "document-drive": "^1.0.0-alpha.73", "document-model": "1.5.0", - "document-model-libs": "^1.58.0", + "document-model-libs": "^1.59.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", @@ -4528,9 +4528,9 @@ } }, "node_modules/@powerhousedao/design-system": { - "version": "1.0.0-alpha.119", - "resolved": "https://registry.npmjs.org/@powerhousedao/design-system/-/design-system-1.0.0-alpha.119.tgz", - "integrity": "sha512-qo1+aeYBOvfiyK5rOM/jKk7yZxV7JJOu3r3pk/nIFjPVCN7qiJNFsVGeGZ5Y8j4Oy3ZwmZuC9NN8P8cH4xUgRg==", + "version": "1.0.0-alpha.121", + "resolved": "https://registry.npmjs.org/@powerhousedao/design-system/-/design-system-1.0.0-alpha.121.tgz", + "integrity": "sha512-u3RGApulSnLCtMGDfV0CPNHwK5rsSAcQqndt3/z3TH7ydT32D5NVSc+vedVdjFAvy+b8YIjECU/s9cGojY8TBg==", "dependencies": { "@internationalized/date": "^3.5.1", "@radix-ui/react-dialog": "^1.0.5", @@ -11551,9 +11551,9 @@ } }, "node_modules/document-model-libs": { - "version": "1.58.0", - "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.58.0.tgz", - "integrity": "sha512-a2HllPQnxYnM2P8REupQZpI9dM33GFFiEAe91fs6a5d4YjGnnmJsavAbSbt0p3dnhDRbOxS6lfN7p3H1A97E2Q==", + "version": "1.59.0", + "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.59.0.tgz", + "integrity": "sha512-YvZ9skvtdGEh24GgRS293hscZIH5yW6rIDeKgWnshixcOzqoxzv6GGk2SJSTbdsNPLQqcqOA11osJw5+ahWAwg==", "dependencies": { "@acaldas/graphql-codegen-typescript-validation-schema": "^0.12.3", "@graphql-codegen/core": "^4.0.2", diff --git a/package.json b/package.json index 40b90c6b..00beb72d 100644 --- a/package.json +++ b/package.json @@ -93,12 +93,12 @@ "xvfb-maybe": "^0.2.1" }, "dependencies": { - "@powerhousedao/design-system": "1.0.0-alpha.119", + "@powerhousedao/design-system": "1.0.0-alpha.121", "@sentry/react": "^7.109.0", "did-key-creator": "^1.2.0", "document-drive": "^1.0.0-alpha.73", "document-model": "1.5.0", - "document-model-libs": "^1.58.0", + "document-model-libs": "^1.59.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", From 90a04f46ae5cb597cf6f66f7aba243228715a2c3 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 14 Jun 2024 08:25:06 +0000 Subject: [PATCH 17/29] chore(release): set `package.json` to 1.0.0-dev.6 [skip ci] # [1.0.0-dev.6](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.5...v1.0.0-dev.6) (2024-06-14) ### Features * bump libs ([153909c](https://github.com/powerhouse-inc/document-model-electron/commit/153909c5c7e0bc2c97511f9001c1b3e4f7ec5f79)) * bump libs ([fe4d49a](https://github.com/powerhouse-inc/document-model-electron/commit/fe4d49a4acdccb5a24678ca38b914257599a63b9)) --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad0727e0..25ee00b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# [1.0.0-dev.6](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.5...v1.0.0-dev.6) (2024-06-14) + + +### Features + +* bump libs ([153909c](https://github.com/powerhouse-inc/document-model-electron/commit/153909c5c7e0bc2c97511f9001c1b3e4f7ec5f79)) +* bump libs ([fe4d49a](https://github.com/powerhouse-inc/document-model-electron/commit/fe4d49a4acdccb5a24678ca38b914257599a63b9)) + # [1.0.0-dev.5](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.4...v1.0.0-dev.5) (2024-06-13) diff --git a/package.json b/package.json index 00beb72d..a2293e99 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@powerhousedao/connect", "productName": "Powerhouse-Connect", - "version": "1.0.0-dev.5", + "version": "1.0.0-dev.6", "description": "Powerhouse Connect", "main": ".vite/build/main.js", "license": "AGPL-3.0-only", From 4aa9c4c2fa205a2f2823d2816b64e420efe2cf2a Mon Sep 17 00:00:00 2001 From: Guillermo Puente Date: Fri, 14 Jun 2024 08:51:35 -0400 Subject: [PATCH 18/29] feat: removed debug code --- src/hooks/useCreateDocuments.ts | 34 --------------------------------- src/pages/content.tsx | 6 ------ 2 files changed, 40 deletions(-) delete mode 100644 src/hooks/useCreateDocuments.ts diff --git a/src/hooks/useCreateDocuments.ts b/src/hooks/useCreateDocuments.ts deleted file mode 100644 index 50d8f6db..00000000 --- a/src/hooks/useCreateDocuments.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { - decodeID, - getRootPath, - useGetItemByPath, -} from '@powerhousedao/design-system'; -import { useSelectedPath } from 'src/store/document-drive'; -import { useFilteredDocumentModels } from 'src/store/document-model'; -import { useDocumentDriveServer } from './useDocumentDriveServer'; - -export const useCreateDocuments = () => { - const { addDocument } = useDocumentDriveServer(); - const [selectedPath] = useSelectedPath(); - const getItemByPath = useGetItemByPath(); - const documentModels = useFilteredDocumentModels(); - - const selectedFolder = getItemByPath(selectedPath || ''); - const driveID = getRootPath(selectedFolder?.path ?? ''); - const decodedDriveID = decodeID(driveID); - - const parentFolder = selectedFolder - ? selectedFolder.path.split('/').slice(1).pop() - : undefined; - - return async (amount: number) => { - for (let i = 0; i < amount; i++) { - await addDocument( - decodedDriveID, - `document-${i}`, - documentModels[0].documentModel.id, - parentFolder ? decodeID(parentFolder) : undefined, - ); - } - }; -}; diff --git a/src/pages/content.tsx b/src/pages/content.tsx index cbd88598..cbbefb6e 100644 --- a/src/pages/content.tsx +++ b/src/pages/content.tsx @@ -21,7 +21,6 @@ import FolderView from 'src/components/folder-view'; import { useModal } from 'src/components/modal'; import { SearchBar } from 'src/components/search-bar'; import { useConnectConfig } from 'src/hooks/useConnectConfig'; -import { useCreateDocuments } from 'src/hooks/useCreateDocuments'; import { useDocumentDriveById } from 'src/hooks/useDocumentDriveById'; import { useDocumentDriveServer } from 'src/hooks/useDocumentDriveServer'; import { useDrivesContainer } from 'src/hooks/useDrivesContainer'; @@ -76,7 +75,6 @@ const Content = () => { const { onSubmitInput } = useDrivesContainer(); const navigateToItemId = useNavigateToItemId(); const { isAllowedToCreateDocuments } = useUserPermissions(); - const createDocuments = useCreateDocuments(); const driveNodes = documentDrives.find( drive => drive.state.global.id === decodedDriveID, @@ -313,10 +311,6 @@ const Content = () => { return (
- {/* TODO: remove this button */} - {selectedFileNode && selectedDocument ? (
Date: Fri, 14 Jun 2024 16:15:38 +0000 Subject: [PATCH 19/29] chore(release): set `package.json` to 1.0.0-dev.7 [skip ci] # [1.0.0-dev.7](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.6...v1.0.0-dev.7) (2024-06-14) ### Features * avoid recreate fileOptions and clickOptionsHandler for each file node ([0a0ef3a](https://github.com/powerhouse-inc/document-model-electron/commit/0a0ef3a181489ec91a8c8439f25dcb9f3713f9a9)) * avoid recreate folderOptions and clickFolderOptionsHandler for each folder node ([6329b29](https://github.com/powerhouse-inc/document-model-electron/commit/6329b291adee5895070f3b2192f84c36c86406a8)) * moved isAllowedToCreateDocuments to folderView ([8af8020](https://github.com/powerhouse-inc/document-model-electron/commit/8af8020109d85cd1d6cae167cd51ddf722d2bb46)) * re-use decodedDriveID ([1a82d60](https://github.com/powerhouse-inc/document-model-electron/commit/1a82d60b5bbfc5f99f99d38e3909da4364325817)) * removed debug code ([4aa9c4c](https://github.com/powerhouse-inc/document-model-electron/commit/4aa9c4c2fa205a2f2823d2816b64e420efe2cf2a)) * use memoized version of FileItem component ([040c2b6](https://github.com/powerhouse-inc/document-model-electron/commit/040c2b6ca0cdd8c87d313d27169213a50cffb4cd)) --- CHANGELOG.md | 12 ++++++++++++ package.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25ee00b0..17c44717 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +# [1.0.0-dev.7](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.6...v1.0.0-dev.7) (2024-06-14) + + +### Features + +* avoid recreate fileOptions and clickOptionsHandler for each file node ([0a0ef3a](https://github.com/powerhouse-inc/document-model-electron/commit/0a0ef3a181489ec91a8c8439f25dcb9f3713f9a9)) +* avoid recreate folderOptions and clickFolderOptionsHandler for each folder node ([6329b29](https://github.com/powerhouse-inc/document-model-electron/commit/6329b291adee5895070f3b2192f84c36c86406a8)) +* moved isAllowedToCreateDocuments to folderView ([8af8020](https://github.com/powerhouse-inc/document-model-electron/commit/8af8020109d85cd1d6cae167cd51ddf722d2bb46)) +* re-use decodedDriveID ([1a82d60](https://github.com/powerhouse-inc/document-model-electron/commit/1a82d60b5bbfc5f99f99d38e3909da4364325817)) +* removed debug code ([4aa9c4c](https://github.com/powerhouse-inc/document-model-electron/commit/4aa9c4c2fa205a2f2823d2816b64e420efe2cf2a)) +* use memoized version of FileItem component ([040c2b6](https://github.com/powerhouse-inc/document-model-electron/commit/040c2b6ca0cdd8c87d313d27169213a50cffb4cd)) + # [1.0.0-dev.6](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.5...v1.0.0-dev.6) (2024-06-14) diff --git a/package.json b/package.json index a2293e99..c015618a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@powerhousedao/connect", "productName": "Powerhouse-Connect", - "version": "1.0.0-dev.6", + "version": "1.0.0-dev.7", "description": "Powerhouse Connect", "main": ".vite/build/main.js", "license": "AGPL-3.0-only", From 1216c33f4c713d4c7ac6eeb76725a51a6e6cf9a0 Mon Sep 17 00:00:00 2001 From: ryanwolhuter Date: Mon, 17 Jun 2024 11:12:40 +0200 Subject: [PATCH 20/29] feat: bump libs Signed-off-by: ryanwolhuter --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index c7e81153..63cbfb28 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.5", + "version": "1.0.0-dev.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.5", + "version": "1.0.0-dev.7", "license": "AGPL-3.0-only", "dependencies": { "@powerhousedao/design-system": "1.0.0-alpha.121", @@ -14,7 +14,7 @@ "did-key-creator": "^1.2.0", "document-drive": "^1.0.0-alpha.73", "document-model": "1.5.0", - "document-model-libs": "^1.59.0", + "document-model-libs": "^1.60.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", @@ -11551,9 +11551,9 @@ } }, "node_modules/document-model-libs": { - "version": "1.59.0", - "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.59.0.tgz", - "integrity": "sha512-YvZ9skvtdGEh24GgRS293hscZIH5yW6rIDeKgWnshixcOzqoxzv6GGk2SJSTbdsNPLQqcqOA11osJw5+ahWAwg==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.60.0.tgz", + "integrity": "sha512-1k6tcPqWw6QzjJSmGQb9s+XL5tjtex5DvAD1jkXcSCl02Na43gx63+EMHkMA8KXTCyG6rnX4HLbl3iftDXkxtw==", "dependencies": { "@acaldas/graphql-codegen-typescript-validation-schema": "^0.12.3", "@graphql-codegen/core": "^4.0.2", diff --git a/package.json b/package.json index c015618a..3665ad9d 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "did-key-creator": "^1.2.0", "document-drive": "^1.0.0-alpha.73", "document-model": "1.5.0", - "document-model-libs": "^1.59.0", + "document-model-libs": "^1.60.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", From e553b6cf0eee2cdacd567adb312dfe2a385eb6a3 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Mon, 17 Jun 2024 09:14:13 +0000 Subject: [PATCH 21/29] chore(release): set `package.json` to 1.0.0-dev.8 [skip ci] # [1.0.0-dev.8](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.7...v1.0.0-dev.8) (2024-06-17) ### Features * bump libs ([1216c33](https://github.com/powerhouse-inc/document-model-electron/commit/1216c33f4c713d4c7ac6eeb76725a51a6e6cf9a0)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17c44717..2f032230 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.0.0-dev.8](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.7...v1.0.0-dev.8) (2024-06-17) + + +### Features + +* bump libs ([1216c33](https://github.com/powerhouse-inc/document-model-electron/commit/1216c33f4c713d4c7ac6eeb76725a51a6e6cf9a0)) + # [1.0.0-dev.7](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.6...v1.0.0-dev.7) (2024-06-14) diff --git a/package.json b/package.json index 3665ad9d..73f49418 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@powerhousedao/connect", "productName": "Powerhouse-Connect", - "version": "1.0.0-dev.7", + "version": "1.0.0-dev.8", "description": "Powerhouse Connect", "main": ".vite/build/main.js", "license": "AGPL-3.0-only", From 32b2f390eee0d613b86b4988e970db27077868c3 Mon Sep 17 00:00:00 2001 From: ryanwolhuter Date: Tue, 18 Jun 2024 13:00:16 +0200 Subject: [PATCH 22/29] feat: bump libs Signed-off-by: ryanwolhuter --- package-lock.json | 95 ++++++++++++++++++++++++++++++++++++++++------- package.json | 4 +- 2 files changed, 83 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 63cbfb28..eea4576d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,20 +1,20 @@ { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.7", + "version": "1.0.0-dev.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.7", + "version": "1.0.0-dev.8", "license": "AGPL-3.0-only", "dependencies": { - "@powerhousedao/design-system": "1.0.0-alpha.121", + "@powerhousedao/design-system": "1.0.0-alpha.122", "@sentry/react": "^7.109.0", "did-key-creator": "^1.2.0", "document-drive": "^1.0.0-alpha.73", "document-model": "1.5.0", - "document-model-libs": "^1.60.0", + "document-model-libs": "^1.61.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", @@ -1107,9 +1107,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.24.5", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.5.tgz", - "integrity": "sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.7.tgz", + "integrity": "sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -4528,9 +4528,9 @@ } }, "node_modules/@powerhousedao/design-system": { - "version": "1.0.0-alpha.121", - "resolved": "https://registry.npmjs.org/@powerhousedao/design-system/-/design-system-1.0.0-alpha.121.tgz", - "integrity": "sha512-u3RGApulSnLCtMGDfV0CPNHwK5rsSAcQqndt3/z3TH7ydT32D5NVSc+vedVdjFAvy+b8YIjECU/s9cGojY8TBg==", + "version": "1.0.0-alpha.122", + "resolved": "https://registry.npmjs.org/@powerhousedao/design-system/-/design-system-1.0.0-alpha.122.tgz", + "integrity": "sha512-CrSUUDu3l+Pp14Uvof0WiReV8gSVqtTd5QXF4Z9KvbjnRu4g1X1NFpN6yvIgf7KFmUBILyHupAXKdczxJBESgg==", "dependencies": { "@internationalized/date": "^3.5.1", "@radix-ui/react-dialog": "^1.0.5", @@ -10417,6 +10417,18 @@ "node": ">=0.10.0" } }, + "node_modules/complex.js": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/complex.js/-/complex.js-2.1.1.tgz", + "integrity": "sha512-8njCHOTtFFLtegk6zQo0kkVX1rngygb/KQI6z1qZxlFI3scluC+LVTCFbrkWjBv4vvLlbQ9t88IPMC6k95VTTg==", + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/infusion" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -11203,6 +11215,11 @@ "node": ">=0.10.0" } }, + "node_modules/decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==" + }, "node_modules/decompress-response": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", @@ -11551,9 +11568,9 @@ } }, "node_modules/document-model-libs": { - "version": "1.60.0", - "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.60.0.tgz", - "integrity": "sha512-1k6tcPqWw6QzjJSmGQb9s+XL5tjtex5DvAD1jkXcSCl02Na43gx63+EMHkMA8KXTCyG6rnX4HLbl3iftDXkxtw==", + "version": "1.61.0", + "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.61.0.tgz", + "integrity": "sha512-BbsojrCxm5ECbaCwA9L2R8B8SwQ9dPPT3rpfE/qMorSWh/aI7zSJuG3jNiXkTux+rHcFhnSJ8LOXUbYEsK0hhw==", "dependencies": { "@acaldas/graphql-codegen-typescript-validation-schema": "^0.12.3", "@graphql-codegen/core": "^4.0.2", @@ -11565,6 +11582,7 @@ "deep-object-diff": "^1.1.9", "jsonc-parser": "^3.2.1", "jszip": "^3.10.1", + "mathjs": "^13.0.0", "react-aria-components": "1.2.0", "tailwind-merge": "^2.2.1" }, @@ -12715,6 +12733,11 @@ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", "dev": true }, + "node_modules/escape-latex": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/escape-latex/-/escape-latex-1.2.0.tgz", + "integrity": "sha512-nV5aVWW1K0wEiUIEdZ4erkGGH8mDxGyxSeqPzRNtWP7ataw+/olFObw7hujFWlVjNsaDFw5VZ5NzVSIqRgfTiw==" + }, "node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -13743,7 +13766,6 @@ "version": "4.3.7", "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", - "dev": true, "engines": { "node": "*" }, @@ -16154,6 +16176,11 @@ "node": ">= 0.6.0" } }, + "node_modules/javascript-natural-sort": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz", + "integrity": "sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw==" + }, "node_modules/jiti": { "version": "1.21.0", "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz", @@ -17402,6 +17429,28 @@ "node": ">=10" } }, + "node_modules/mathjs": { + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/mathjs/-/mathjs-13.0.0.tgz", + "integrity": "sha512-Jy9/01M5lTRLxlkxnvPmvWq6EFwzq8guIspeQ9p66AY+8Pih3Jf8Us5fSZ9kC8gl7iRNHUQ+SJpitX41aa6agw==", + "dependencies": { + "@babel/runtime": "^7.24.6", + "complex.js": "^2.1.1", + "decimal.js": "^10.4.3", + "escape-latex": "^1.2.0", + "fraction.js": "^4.3.7", + "javascript-natural-sort": "^0.7.1", + "seedrandom": "^3.0.5", + "tiny-emitter": "^2.1.0", + "typed-function": "^4.1.1" + }, + "bin": { + "mathjs": "bin/cli.js" + }, + "engines": { + "node": ">= 18" + } + }, "node_modules/media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", @@ -23194,6 +23243,11 @@ "loose-envify": "^1.1.0" } }, + "node_modules/seedrandom": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-3.0.5.tgz", + "integrity": "sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg==" + }, "node_modules/semantic-release": { "version": "22.0.12", "resolved": "https://registry.npmjs.org/semantic-release/-/semantic-release-22.0.12.tgz", @@ -25177,6 +25231,11 @@ "dev": true, "optional": true }, + "node_modules/tiny-emitter": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz", + "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==" + }, "node_modules/tiny-invariant": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", @@ -25536,6 +25595,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/typed-function": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/typed-function/-/typed-function-4.2.1.tgz", + "integrity": "sha512-EGjWssW7Tsk4DGfE+5yluuljS1OGYWiI1J6e8puZz9nTMM51Oug8CD5Zo4gWMsOhq5BI+1bF+rWTm4Vbj3ivRA==", + "engines": { + "node": ">= 18" + } + }, "node_modules/typedarray.prototype.slice": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/typedarray.prototype.slice/-/typedarray.prototype.slice-1.0.3.tgz", diff --git a/package.json b/package.json index 73f49418..7773f396 100644 --- a/package.json +++ b/package.json @@ -93,12 +93,12 @@ "xvfb-maybe": "^0.2.1" }, "dependencies": { - "@powerhousedao/design-system": "1.0.0-alpha.121", + "@powerhousedao/design-system": "1.0.0-alpha.122", "@sentry/react": "^7.109.0", "did-key-creator": "^1.2.0", "document-drive": "^1.0.0-alpha.73", "document-model": "1.5.0", - "document-model-libs": "^1.60.0", + "document-model-libs": "^1.61.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", From e57ddbe295515391a3e5e17c79b045fac14c496f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 18 Jun 2024 11:06:06 +0000 Subject: [PATCH 23/29] chore(release): set `package.json` to 1.0.0-dev.9 [skip ci] # [1.0.0-dev.9](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.8...v1.0.0-dev.9) (2024-06-18) ### Features * bump libs ([32b2f39](https://github.com/powerhouse-inc/document-model-electron/commit/32b2f390eee0d613b86b4988e970db27077868c3)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f032230..60620e25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.0.0-dev.9](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.8...v1.0.0-dev.9) (2024-06-18) + + +### Features + +* bump libs ([32b2f39](https://github.com/powerhouse-inc/document-model-electron/commit/32b2f390eee0d613b86b4988e970db27077868c3)) + # [1.0.0-dev.8](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.7...v1.0.0-dev.8) (2024-06-17) diff --git a/package.json b/package.json index 7773f396..fe2cd57f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@powerhousedao/connect", "productName": "Powerhouse-Connect", - "version": "1.0.0-dev.8", + "version": "1.0.0-dev.9", "description": "Powerhouse Connect", "main": ".vite/build/main.js", "license": "AGPL-3.0-only", From 3260ccbcd0b1b4b188a7881d8881fae604bbf8f3 Mon Sep 17 00:00:00 2001 From: ryanwolhuter Date: Tue, 18 Jun 2024 13:31:40 +0200 Subject: [PATCH 24/29] feat: handle empty string as parent folder Signed-off-by: ryanwolhuter --- src/pages/content.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/content.tsx b/src/pages/content.tsx index cbbefb6e..54fa1692 100644 --- a/src/pages/content.tsx +++ b/src/pages/content.tsx @@ -120,7 +120,7 @@ const Content = () => { // builds the path from the url checking if the nodes exist const path = [encodeID(drive.state.global.id)]; let currentNodes = drive.state.global.nodes.filter( - node => node.parentFolder === null, + node => !node.parentFolder, ); if (params['*']) { const nodeNames = decodeURIComponent(params['*']).split('/'); @@ -324,7 +324,7 @@ const Content = () => { document={selectedDocument} onClose={() => { navigateToItemId( - selectedFileNode.parentFolder ?? driveID, + selectedFileNode.parentFolder || driveID, ); setSelectedFileNode(undefined); }} From e5d6c4fb954b5a05c4e467acaa3a03e78b6cb676 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 18 Jun 2024 16:20:00 +0000 Subject: [PATCH 25/29] chore(release): set `package.json` to 1.0.0-next.1 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 1.0.0-next.1 (2024-06-18) ### Bug Fixes * added callback support for document dispatch ([a4f4c04](https://github.com/powerhouse-inc/document-model-electron/commit/a4f4c04ead0d2aca54983da2e79e9ff6e673da15)) * allow concurrent drive operations ([17658ee](https://github.com/powerhouse-inc/document-model-electron/commit/17658ee1a67dc787896508d25ea329ca9b657a13)) * apply auto lint fix ([dfa1ec0](https://github.com/powerhouse-inc/document-model-electron/commit/dfa1ec02caddba3e9b06e1a18855f47abf959eda)) * base hrefs ([1ff517c](https://github.com/powerhouse-inc/document-model-electron/commit/1ff517c31991b6ad836b173c0df916b396f59fe1)) * base path cmd ([070b4af](https://github.com/powerhouse-inc/document-model-electron/commit/070b4af1a148be00ca8b4e4bf8e24f22adbea28c)) * build issues ([f2b084b](https://github.com/powerhouse-inc/document-model-electron/commit/f2b084b21a7826c491bc4d5977608892bfedfeba)) * change config file names in scripts ([37fa872](https://github.com/powerhouse-inc/document-model-electron/commit/37fa872932c8f455e4844e6bd838a65720ad5380)) * downgraded document drive ([7d287c4](https://github.com/powerhouse-inc/document-model-electron/commit/7d287c4d08d73226e7ba1ec8aabaeeb9a088c8e2)) * endpoints for connect ([7c81639](https://github.com/powerhouse-inc/document-model-electron/commit/7c81639f01764ee0703c0a0313305f7557994f06)) * fix file types ([11d1b18](https://github.com/powerhouse-inc/document-model-electron/commit/11d1b1833442ee302196b3e50f73f0380a372507)) * fix rerenders when refreshing document drives ([5429f61](https://github.com/powerhouse-inc/document-model-electron/commit/5429f613784535e430809b751d879e60b2f5fb68)) * fixed build error ([3027483](https://github.com/powerhouse-inc/document-model-electron/commit/30274832089143d616c3c55935735ad6f275e8c2)) * fixed build error ([f280459](https://github.com/powerhouse-inc/document-model-electron/commit/f2804594d3f764477c06fc4183a2427df9e4c86b)) * folder selection in folder view ([f7e3681](https://github.com/powerhouse-inc/document-model-electron/commit/f7e36810b5d0223afc64736a9e8ec48e11f7fc57)) * header text color ([4ee9745](https://github.com/powerhouse-inc/document-model-electron/commit/4ee9745dbbeddf0e2ea41f6d8c4c800d9f5bfd99)) * heroku nginx config ([0ca0df1](https://github.com/powerhouse-inc/document-model-electron/commit/0ca0df1e853522fb0d21ded35d6f61964c48ea62)) * lint errors ([ac490b4](https://github.com/powerhouse-inc/document-model-electron/commit/ac490b4cdf693d62d57a865b55952ca7b46bfe94)) * missing return ([f81d0e9](https://github.com/powerhouse-inc/document-model-electron/commit/f81d0e9a0a58c4079a6359d0dc45f90861d4acb4)) * only call useMemo in hook ([76a1505](https://github.com/powerhouse-inc/document-model-electron/commit/76a15059e825ec0e1d6215e450ec0339d7c33bbe)) * package.lock ([1c2a1f5](https://github.com/powerhouse-inc/document-model-electron/commit/1c2a1f55bf33953fa1834da2e84dcc0e93710c7b)) * properly encode switchboard query ([4c5001f](https://github.com/powerhouse-inc/document-model-electron/commit/4c5001fb3aa34249bee0550331a314872b05c614)) * remove allow list ([ac2475d](https://github.com/powerhouse-inc/document-model-electron/commit/ac2475d866195b18b23ca094457ccce93b9b0508)) * remove duplicate package ([364afdd](https://github.com/powerhouse-inc/document-model-electron/commit/364afdde2e2c9c3d6c12d0364e6d0cfd612f5429)) * remove yalc from package json ([9e184d8](https://github.com/powerhouse-inc/document-model-electron/commit/9e184d8df68d74803e9cbf95f7cf480f97a6d03e)) * removed unused css import ([6da080c](https://github.com/powerhouse-inc/document-model-electron/commit/6da080c53ea57352b997de941fc303f11a5d2a42)) * rename node id ([45235e5](https://github.com/powerhouse-inc/document-model-electron/commit/45235e516ce5ea52345c7ff9d1f7238ff4e9e095)) * renown endpoint ([10461f5](https://github.com/powerhouse-inc/document-model-electron/commit/10461f566fd49a8fd79b23fdaa66871d8d8cff76)) * renown login ([432e5bc](https://github.com/powerhouse-inc/document-model-electron/commit/432e5bcc1eaa13a043720b0c9d1165222188ecfc)) * revert setSelectedDocument in addOperation document ([df06317](https://github.com/powerhouse-inc/document-model-electron/commit/df06317cc067b3f25deedb9832c1aa54d308158a)) * rwa query ([09fcd52](https://github.com/powerhouse-inc/document-model-electron/commit/09fcd52fdf4adbeee9f6a6aa26c1d0309b525510)) * semantic release ([b24fa8d](https://github.com/powerhouse-inc/document-model-electron/commit/b24fa8d03309c4f2f5d43372a34388dd0a168e59)) * settings modal typo ([6ef1286](https://github.com/powerhouse-inc/document-model-electron/commit/6ef12861fdda344c7c45f54657b6f56c67217162)) * show local drives ([893b0df](https://github.com/powerhouse-inc/document-model-electron/commit/893b0dfe9d8004b12114842b082e4672a630aa38)) * subscribe to server updates when load initial data ([35bf948](https://github.com/powerhouse-inc/document-model-electron/commit/35bf948de2acb3a23684060c978138f2b5ad5f75)) * suppress less important rules ([679af22](https://github.com/powerhouse-inc/document-model-electron/commit/679af2256b8e6a4739006048056d452ba7fbf988)) * switchboard endpoint ([2e570f3](https://github.com/powerhouse-inc/document-model-electron/commit/2e570f39bc355e4f387c0d371e8af81a0b92bb38)) * switchboard link ([78bbdd0](https://github.com/powerhouse-inc/document-model-electron/commit/78bbdd0ec278a7685023cf9482d5990f6cf18a6d)) * tmp build fix ([4a4be40](https://github.com/powerhouse-inc/document-model-electron/commit/4a4be4098131a946ce919792e3028e0f4e92c46e)) * undefined default drive ([e5f2749](https://github.com/powerhouse-inc/document-model-electron/commit/e5f27494a57a29c4e4ae921d2014198af8614df3)) * undefined default drive ([6ad9412](https://github.com/powerhouse-inc/document-model-electron/commit/6ad94127e15ebb43507cd0cae8404e9e2bc17e5b)) * update selectedDocument when a new operation is dispatched ([b2c4401](https://github.com/powerhouse-inc/document-model-electron/commit/b2c4401c676d1c2621334375f132c6367c234ca5)) * use selectedDocument as source of truth for document editor ([b5204e7](https://github.com/powerhouse-inc/document-model-electron/commit/b5204e7153028459ef3ace07e719736d971d577a)) * wait for renown to load ([1d2f019](https://github.com/powerhouse-inc/document-model-electron/commit/1d2f019dc992239873e19e35fe8d5c0dde1396f5)) ### Features * 🚀 Added ItemsContext integration ([41fc40f](https://github.com/powerhouse-inc/document-model-electron/commit/41fc40f93420101ca9b2ec34e1b4f4cab4a43a4b)) * 🚀 added readable item path for File Items ([9f6a4ac](https://github.com/powerhouse-inc/document-model-electron/commit/9f6a4ac45318bb757e7c7c60df463e67b066771b)) * 🚀 Implemented base folder-view design ([22ad4fc](https://github.com/powerhouse-inc/document-model-electron/commit/22ad4fc5046e27016ce1a47eda3282125af4db71)) * activate queue ([#290](https://github.com/powerhouse-inc/document-model-electron/issues/290)) ([5b5a4fd](https://github.com/powerhouse-inc/document-model-electron/commit/5b5a4fd317ce624cc734f186778e49899dd3b148)) * add dep array to use effect ([0a88d92](https://github.com/powerhouse-inc/document-model-electron/commit/0a88d92a664b877929978f05753f3d38e471625d)) * add dependency versions to settings modal ([d01c0de](https://github.com/powerhouse-inc/document-model-electron/commit/d01c0de124cb9af00312e4c53e934d8a233e02af)) * add design system preset ([a6cb51c](https://github.com/powerhouse-inc/document-model-electron/commit/a6cb51c31d4500d31fd091f165a4f01ae37ff4d7)) * add duplicate action ([a9d2e29](https://github.com/powerhouse-inc/document-model-electron/commit/a9d2e29318badb84ca51acc9603a2c2dc7f25a0e)) * add duplicate to folder ([a6212a8](https://github.com/powerhouse-inc/document-model-electron/commit/a6212a8fe3c62f49d1b624e75152e48f80034ed2)) * add generate assets hook for icons copying ([4c25ebe](https://github.com/powerhouse-inc/document-model-electron/commit/4c25ebecc94941502e35dff28555664b3985f67b)) * add is allowed to create documents hook ([0a457fc](https://github.com/powerhouse-inc/document-model-electron/commit/0a457fc35f5e78cb16eac1664c3def10b29b5229)) * add optional dep ([a079cc7](https://github.com/powerhouse-inc/document-model-electron/commit/a079cc799c0d7987193ee209618151c10c743282)) * add pull trigger on cloud drives ([9f86849](https://github.com/powerhouse-inc/document-model-electron/commit/9f868495ced48b9b23a3d128469ce7ac20d32a57)) * add react aria dep ([499dda0](https://github.com/powerhouse-inc/document-model-electron/commit/499dda05d52469c85f0dc31d1da5639dc926c9c4)) * add tailwind eslint plugin ([6e639bc](https://github.com/powerhouse-inc/document-model-electron/commit/6e639bc71bddeafe855c210c0f573cec7b2ce622)) * add user context to actions ([6a3241d](https://github.com/powerhouse-inc/document-model-electron/commit/6a3241d3e98c58262ffc7bbbcaa66f6f5d8878b3)) * added addpublicdrive util ([4dc536f](https://github.com/powerhouse-inc/document-model-electron/commit/4dc536f82216f47a8db46225ac1f6d6e1f9c7a23)) * added base path for nginx ([22a270b](https://github.com/powerhouse-inc/document-model-electron/commit/22a270b978e189a8a9afd20e0ae8f568e8c3336e)) * added browser key storage ([6562881](https://github.com/powerhouse-inc/document-model-electron/commit/6562881b2eb603b59b55f1595a7f46b96dbbded6)) * added clear storage setting ([922f5e1](https://github.com/powerhouse-inc/document-model-electron/commit/922f5e19ebd68e07440858c2f7308e3f6d1a2aae)) * added config to hide drive sections ([aa67a3f](https://github.com/powerhouse-inc/document-model-electron/commit/aa67a3f392891e195fbc24a2ff858b66265eccc5)) * added csp headers ([bd398aa](https://github.com/powerhouse-inc/document-model-electron/commit/bd398aa0bc6d748b740e17d4ddf197232d701c62)) * added cypress CI config ([6418f6d](https://github.com/powerhouse-inc/document-model-electron/commit/6418f6d06b8f9d14012ab660a21f0b8b35af008a)) * added Cypress Cloud Config ([24deddb](https://github.com/powerhouse-inc/document-model-electron/commit/24deddb0518dc49e14538e29045e56eeab735b62)) * added cypress setup ([380db83](https://github.com/powerhouse-inc/document-model-electron/commit/380db83614f692230bbd11ebff63007599745f0d)) * added deeplink support to link to specific drive node ([ae1f97f](https://github.com/powerhouse-inc/document-model-electron/commit/ae1f97fb17e3cbc422a2e242e9ff530c598284a5)) * added delete drive modal + enable delete file modal confirmation ([4ce110e](https://github.com/powerhouse-inc/document-model-electron/commit/4ce110e7baaaad3ea75a33eff45fab9994184658)) * added develop environment ([4ceabce](https://github.com/powerhouse-inc/document-model-electron/commit/4ceabce3c8e5d43488abda4a83d524b59da0c338)) * added develop to release cycle ([3e1058e](https://github.com/powerhouse-inc/document-model-electron/commit/3e1058eac31ac13d74aaed32418d6ac56ad4e3dd)) * added e2e playwright setup ([2d37330](https://github.com/powerhouse-inc/document-model-electron/commit/2d37330f103456dc9d3e24cc4a74d3ed7abb20c8)) * added editor debug tools ([6928bed](https://github.com/powerhouse-inc/document-model-electron/commit/6928bed61c46322bc341da7bed48dcde60454b9e)) * added env var to hide document model setting ([840a561](https://github.com/powerhouse-inc/document-model-electron/commit/840a5615ba0b5eafab123b0f0e5c21b3c880d670)) * added env vars for renown ([f464d68](https://github.com/powerhouse-inc/document-model-electron/commit/f464d68172be57798be364a804b9de0e7f1733c1)) * added feature flag setup + disable editors for demo ([7fa64f2](https://github.com/powerhouse-inc/document-model-electron/commit/7fa64f2634cea508ebfb8b20732a730dc8b0624b)) * added gzip and brotli compression to nginx ([f52a0c3](https://github.com/powerhouse-inc/document-model-electron/commit/f52a0c3205b1fd7fc99875fae0ad5a1d5cd24dd5)) * added heroku deployment for powerhouse staging env ([f4c538a](https://github.com/powerhouse-inc/document-model-electron/commit/f4c538a3e02781276996e30b759d50f248037c86)) * added modal confirmation when export document with errors ([d22a447](https://github.com/powerhouse-inc/document-model-electron/commit/d22a447c98d50589f61e37cd6284155223824057)) * added network id to user ([908a50e](https://github.com/powerhouse-inc/document-model-electron/commit/908a50e8df9c1ae7e53940dc801157a5ca665706)) * added new env var to dockerfile ([64afb40](https://github.com/powerhouse-inc/document-model-electron/commit/64afb40dfec060e8ebfaaeddf8f47f3f925d21be)) * added nginx config ([069be2c](https://github.com/powerhouse-inc/document-model-electron/commit/069be2cd98aee6fe3a6b686b4112a435e81d11b3)) * added notification toast ([39ed0c2](https://github.com/powerhouse-inc/document-model-electron/commit/39ed0c2319c2a6e1c2044aff5cda1fd1dc51d24b)) * added open file and delete file ([01793c8](https://github.com/powerhouse-inc/document-model-electron/commit/01793c8a5f21b8e1701e649cc926c8baa7ece4fe)) * added opengraph and twitter meta data ([280da91](https://github.com/powerhouse-inc/document-model-electron/commit/280da914bbe8129ead8559d4169ea266fbb327bc)) * added PH logo ([e9ec94b](https://github.com/powerhouse-inc/document-model-electron/commit/e9ec94b3373495aa0d03673b241c78605b61d396)) * added prepare script ([abeaa41](https://github.com/powerhouse-inc/document-model-electron/commit/abeaa41bb7bfc7a8d3a7332a9dd0ba0dad088659)) * added reload Connect toast ([37cb55e](https://github.com/powerhouse-inc/document-model-electron/commit/37cb55ecf4b746025de9c613d176a250505559c6)) * added renown login on browser ([5b77016](https://github.com/powerhouse-inc/document-model-electron/commit/5b77016508fd448b23999919a8d9e40bc701e1f9)) * added rewrite rules to vercel.json config ([b66cdb0](https://github.com/powerhouse-inc/document-model-electron/commit/b66cdb0fb264412710c1d3bf67f06d48df52408c)) * added route to open document drive node ([6700f13](https://github.com/powerhouse-inc/document-model-electron/commit/6700f132435dd4ce175b036d5e906d1194976ed0)) * added RWA doc name fix for demo ([05dfd07](https://github.com/powerhouse-inc/document-model-electron/commit/05dfd0781038523b86437ebe1164e20a848c65b2)) * added scope of work ([742aae0](https://github.com/powerhouse-inc/document-model-electron/commit/742aae0cab712068d2f8dbe2804da3ba802416bd)) * added sentry dsn to environments ([c4cfef1](https://github.com/powerhouse-inc/document-model-electron/commit/c4cfef161be9db837d29aca316949957412e4c25)) * added sentry environments ([68fefd0](https://github.com/powerhouse-inc/document-model-electron/commit/68fefd095cbffcec9eeebedb786d5ab7afc9c9bf)) * added sentry to connect ([d51ec53](https://github.com/powerhouse-inc/document-model-electron/commit/d51ec538d376cb533882f9c4b0ee057d80ce7d1a)) * added settings modal integration ([dfb9d28](https://github.com/powerhouse-inc/document-model-electron/commit/dfb9d287bb99dec4316c9eee5098816b6f498926)) * added sidebar login ([2917809](https://github.com/powerhouse-inc/document-model-electron/commit/29178094a9d711e1d7303dde1511a7b73bc37199)) * added sort nodes + fix input styles + cancel new folders with empty name ([4a2f9fb](https://github.com/powerhouse-inc/document-model-electron/commit/4a2f9fbf2c4dc5427c58633f18e40eb10574600c)) * added support for delete option in FolderItem and FileItem ([85800ab](https://github.com/powerhouse-inc/document-model-electron/commit/85800ab374da9be041d6e8c547d186a0671a6b91)) * added support for document in addfile action ([0706ce2](https://github.com/powerhouse-inc/document-model-electron/commit/0706ce25a515024a37b61aec11c930601a0869e5)) * added support for rename files + create file name modal ([8a76691](https://github.com/powerhouse-inc/document-model-electron/commit/8a76691426d671128c4cfbc98864a9a669e395f3)) * added support for renown user ([3853b37](https://github.com/powerhouse-inc/document-model-electron/commit/3853b371349ee14051b666a19fbb0b0c564c8ac6)) * added support for router basename ([251afe2](https://github.com/powerhouse-inc/document-model-electron/commit/251afe2b1d4eab690f9592e25edc6c555e2fe44a)) * added switchboard link to document files ([5f31b71](https://github.com/powerhouse-inc/document-model-electron/commit/5f31b710a6ae65f42aac65840da422134e48ee6c)) * added useConnectConfig hook ([a600091](https://github.com/powerhouse-inc/document-model-electron/commit/a60009131ad8600174311b45a696d0c3219ae8ce)) * added vercel redirect ([7100848](https://github.com/powerhouse-inc/document-model-electron/commit/7100848213fe6e5d0811229e67c82b8997648fa2)) * added version comparison ([866e979](https://github.com/powerhouse-inc/document-model-electron/commit/866e979684d884528cb06568ee92d02ec1253308)) * added vite env as build args ([c76d4f4](https://github.com/powerhouse-inc/document-model-electron/commit/c76d4f431017df7f9b40a5063a71618084333c24)) * allow connect-src for renown.id ([7357d4a](https://github.com/powerhouse-inc/document-model-electron/commit/7357d4a4a2c9aff400e55d9c8eed9630aaec4ed5)) * allow external images ([171efac](https://github.com/powerhouse-inc/document-model-electron/commit/171efac183458b993ac11849345b3fb8765a10f4)) * allow per deploy drive restrictions ([8779d84](https://github.com/powerhouse-inc/document-model-electron/commit/8779d84cb1be5128ac7b1c63a8666c5d03b2f593)) * allow url for file ([474ad4d](https://github.com/powerhouse-inc/document-model-electron/commit/474ad4d0b90e9e882bb52d4ca479a4314d15eec1)) * also disable when env is production ([6f60688](https://github.com/powerhouse-inc/document-model-electron/commit/6f60688a7bcf92e19afe5a4a49a1baa9f0c44507)) * also do src === target check in move node function ([3e80c1e](https://github.com/powerhouse-inc/document-model-electron/commit/3e80c1e4dface07c9d101c39f6a0dce6d0654a26)) * apply auto fixes ([b10b111](https://github.com/powerhouse-inc/document-model-electron/commit/b10b111374636b145c52fa15f38ebc0751912483)) * auto-select first drive if there's no selected path ([daf3083](https://github.com/powerhouse-inc/document-model-electron/commit/daf3083b4fff8dd6f033ce9806affe932fea4f04)) * avoid recreate fileOptions and clickOptionsHandler for each file node ([08557e9](https://github.com/powerhouse-inc/document-model-electron/commit/08557e983c663e58a0bb68534b11df579f9be045)) * avoid recreate folderOptions and clickFolderOptionsHandler for each folder node ([efa90d2](https://github.com/powerhouse-inc/document-model-electron/commit/efa90d2664c025247ae6636a2c06706b12b1ad96)) * bump ([40fd30a](https://github.com/powerhouse-inc/document-model-electron/commit/40fd30a489214a512a7dc43fbe9dea1e0c33604a)) * bump ([11fb69f](https://github.com/powerhouse-inc/document-model-electron/commit/11fb69f6f507d4240e72b1208982c814bce185a8)) * bump deps ([7d7206c](https://github.com/powerhouse-inc/document-model-electron/commit/7d7206c5ae9bc7c9e7d26713fc8ff4e7ef5f459d)) * bump design system ([fb12d70](https://github.com/powerhouse-inc/document-model-electron/commit/fb12d70fcd3237f1cacb0375e99e4a1ae01cc342)) * bump design system ([4e1d168](https://github.com/powerhouse-inc/document-model-electron/commit/4e1d168298355beea31e2216edeb7b7cef8e8257)) * bump design system and document model libs ([165e2cc](https://github.com/powerhouse-inc/document-model-electron/commit/165e2ccc41d5d72a6f2f834292c18aa2388ebb86)) * bump design system to integrate dep version component ([a18c621](https://github.com/powerhouse-inc/document-model-electron/commit/a18c621a24d97b3bfa9f103365b3890f6fd342d7)) * bump design-system and document-model-lib deps ([7d90802](https://github.com/powerhouse-inc/document-model-electron/commit/7d9080289ce258cf9d299d13b4cf7e092fd51535)) * bump document drive version ([254a2cd](https://github.com/powerhouse-inc/document-model-electron/commit/254a2cd967b07d22352d38509ad55c2ffcd19bf5)) * bump libs ([e11a238](https://github.com/powerhouse-inc/document-model-electron/commit/e11a23886304d971c1bf8ae7db92cbbe63c5d185)) * bump libs ([4e0863a](https://github.com/powerhouse-inc/document-model-electron/commit/4e0863af39e148053154fdcd2cb5ca5f3c801c6b)) * bump libs ([87d0d1a](https://github.com/powerhouse-inc/document-model-electron/commit/87d0d1af3997d258065bcdf91f7eba74e1e845ae)) * bump libs ([24a9cd3](https://github.com/powerhouse-inc/document-model-electron/commit/24a9cd3427eecc32697f15d7479bf5ee53c95084)) * bump libs ([b27b036](https://github.com/powerhouse-inc/document-model-electron/commit/b27b036a487fbe989f9f7b585603e15bcdd3fa3a)) * bump libs ([5fb15d3](https://github.com/powerhouse-inc/document-model-electron/commit/5fb15d321de8649ac2fc6953d9ec5312aeabefeb)) * bump libs ([1f38863](https://github.com/powerhouse-inc/document-model-electron/commit/1f38863cb3e6fff081218ce59d7cf1a6f3c44621)) * bump libs ([7df97b0](https://github.com/powerhouse-inc/document-model-electron/commit/7df97b03882c012f035b259aebb85ba42704008b)) * bump libs ([78baf1d](https://github.com/powerhouse-inc/document-model-electron/commit/78baf1dee6da3f18208f23973f65b5a1b930ba81)) * bump libs ([d766c36](https://github.com/powerhouse-inc/document-model-electron/commit/d766c36649f3575b2d10bcaf532249437a79b36c)) * bump libs ([6b3f58f](https://github.com/powerhouse-inc/document-model-electron/commit/6b3f58fd3aad9e628cf2312629280f12984648e2)) * bump libs ([f98b523](https://github.com/powerhouse-inc/document-model-electron/commit/f98b523acb0e2f2599d4d8927bf8fe5b26374856)) * bump libs ([2a9a29d](https://github.com/powerhouse-inc/document-model-electron/commit/2a9a29d0d9d129abbbe6b16567151f3ecd0d525e)) * bump libs ([62117a9](https://github.com/powerhouse-inc/document-model-electron/commit/62117a90490e9bbb32c4a84fdbdb3d930ca7ebfb)) * bump libs ([62cd43d](https://github.com/powerhouse-inc/document-model-electron/commit/62cd43dd7f80cfd6202c251a9c1af1bad0978b67)) * bump lint deps ([544fcea](https://github.com/powerhouse-inc/document-model-electron/commit/544fcea7cdcf450756b8deb913c47047a9161849)) * bump react aria ([3a8ed93](https://github.com/powerhouse-inc/document-model-electron/commit/3a8ed934d371b11c7deb8c8894b43c323d04f06f)) * cancel rename operation when new name is empty ([6c7a815](https://github.com/powerhouse-inc/document-model-electron/commit/6c7a815500339ebbced23214450750bacbfdebc9)) * change term to allow list ([af99e9b](https://github.com/powerhouse-inc/document-model-electron/commit/af99e9ba0a3eee7074cc763922caf1656f024e83)) * changed default renown env variables ([c87ee69](https://github.com/powerhouse-inc/document-model-electron/commit/c87ee697507eba7235150e5156bbe7d0cd121e36)) * changed nginx image to nginx-brotli ([3d497da](https://github.com/powerhouse-inc/document-model-electron/commit/3d497da7806bdb77a6352aad9ad5f64ddcfa93e4)) * check if operations with same index are submitted ([b7ad973](https://github.com/powerhouse-inc/document-model-electron/commit/b7ad97307106467a39060da44420515f10ce3921)) * check user auth on startup ([6820f27](https://github.com/powerhouse-inc/document-model-electron/commit/6820f27a8defb40d72e3580d00fe11f1170bbe22)) * commented renown env variables ([cd18bab](https://github.com/powerhouse-inc/document-model-electron/commit/cd18babc471fef7b1939bed4478265bd5a38abc1)) * configure available editors with env variables ([00fad56](https://github.com/powerhouse-inc/document-model-electron/commit/00fad56259d24c1dc9fe3009ec5d4d8d9a51782a)) * default drive handling improvements ([57be63e](https://github.com/powerhouse-inc/document-model-electron/commit/57be63e34a368769eb159728194f70d60ad98290)) * detect circular reference in node path ([c113d03](https://github.com/powerhouse-inc/document-model-electron/commit/c113d035118d418ed8006b55112d101f030b4caa)) * disable dev tools when app is packaged ([2326a77](https://github.com/powerhouse-inc/document-model-electron/commit/2326a7774f74d2c8af949cf55c18b12b38d0b7d9)) * disable document drive editor by default ([a61249f](https://github.com/powerhouse-inc/document-model-electron/commit/a61249f43e50219b7b6aebc27f63b2d07a4735ec)) * disallow create operations ([9cb4a8e](https://github.com/powerhouse-inc/document-model-electron/commit/9cb4a8e4d902f67692e696b60c283a3ec59ca137)) * downloadFile fallback ([9836f4c](https://github.com/powerhouse-inc/document-model-electron/commit/9836f4c1e6edf68d1239f69cfb86324cb1e4d6f0)) * enable transactions editor ([28967c2](https://github.com/powerhouse-inc/document-model-electron/commit/28967c2c6a4465494f682e55e914bfdd719bc07b)) * enabled add cloud drive modal ([d54f579](https://github.com/powerhouse-inc/document-model-electron/commit/d54f579bd903e57cf193cdc11a727eed5526971d)) * enabled drop target for FolderItem ([70aeaad](https://github.com/powerhouse-inc/document-model-electron/commit/70aeaadde2844def0c0cc648dbb8f496d51b96dd)) * enabled editor controls ([f7aa503](https://github.com/powerhouse-inc/document-model-electron/commit/f7aa50343c0a124056811f1ce29ab0c8539263da)) * enabled keyboard shortcut for undo/redo ([82fe517](https://github.com/powerhouse-inc/document-model-electron/commit/82fe517dbbf01006c6fbaae0b1c493c57eeeb422)) * enabled onErrorCallback for dispatch fn ([8bd3c7c](https://github.com/powerhouse-inc/document-model-electron/commit/8bd3c7ccfafbf1d1b32ada0bb941585bd0ee1907)) * enabled rename option for folders in folder view ([d7a9b34](https://github.com/powerhouse-inc/document-model-electron/commit/d7a9b3490b0cb91d647ecb803513dbea590f04e0)) * enabled rename option when copy/move an item ([3ef5ea4](https://github.com/powerhouse-inc/document-model-electron/commit/3ef5ea474997e10b670a989460dca939431f3a9a)) * enabled rwa editor ([b7df486](https://github.com/powerhouse-inc/document-model-electron/commit/b7df486a82c0c044fab5dd434ecceba1a2c24dc1)) * enabled switchboard link in RWA editor ([cece18e](https://github.com/powerhouse-inc/document-model-electron/commit/cece18e3cb900cbe2fe7d77c0c329a2c430e2539)) * enabled sync icons for folders and files ([3e0451e](https://github.com/powerhouse-inc/document-model-electron/commit/3e0451e923151a497894c2b282a3324c11be2867)) * enabled undo/redo with new document structure ([f6af1e0](https://github.com/powerhouse-inc/document-model-electron/commit/f6af1e002121456e5e9cc4befe6c41ac4ddf8aa9)) * expand selected path in sidebar on initial path load ([9b5e053](https://github.com/powerhouse-inc/document-model-electron/commit/9b5e0533e7e02d4ae9ea3c6bb01c9827eada160c)) * export did:key instead of public key ([a358371](https://github.com/powerhouse-inc/document-model-electron/commit/a3583718047f447f2f59a8153e3e2ac15a8cd732)) * fetch user's ens info ([229a1ae](https://github.com/powerhouse-inc/document-model-electron/commit/229a1ae1bcd145858f867cdf449d9ed2709c8ffc)) * fix Authorize Connect font color ([25ba2e7](https://github.com/powerhouse-inc/document-model-electron/commit/25ba2e7af5c81c442fed8d919b31a66ba2959e77)) * fix console warnings ([3024578](https://github.com/powerhouse-inc/document-model-electron/commit/3024578d93e4a70a89a3b3681d34f78a4bd0f1d0)) * fix css import order ([9216a27](https://github.com/powerhouse-inc/document-model-electron/commit/9216a277e488f73cc892ad015c4ea35dd22bb2a9)) * fix linux build ([433e6f9](https://github.com/powerhouse-inc/document-model-electron/commit/433e6f9b0a92f72d33e16bbcb71a8965c034c6be)) * fix logo + position ([278ebeb](https://github.com/powerhouse-inc/document-model-electron/commit/278ebeb39cac2b6d1edb3b096161bb3810669f31)) * fix rwa document name ([b3f39d1](https://github.com/powerhouse-inc/document-model-electron/commit/b3f39d16c09cb87295d53a7be249b4e2be3895ab)) * fix sync status ([9ff69fe](https://github.com/powerhouse-inc/document-model-electron/commit/9ff69fedf729b7e70b07bf121c9feed00c1ddc58)) * fix tailwind class conflicts ([341d8ba](https://github.com/powerhouse-inc/document-model-electron/commit/341d8ba945fd1a20c6014fcb6e5ce77faf458b5f)) * fixed addDriveOperations ([4c33a1f](https://github.com/powerhouse-inc/document-model-electron/commit/4c33a1f891eeba1b9845768fbc0395cb01dd9e70)) * fixed base route ([606e919](https://github.com/powerhouse-inc/document-model-electron/commit/606e9191be0f32309e7a0a59e82dc49aa88690bb)) * fixed default document-models ([0d51154](https://github.com/powerhouse-inc/document-model-electron/commit/0d511546e95a1d5a534f92b549d7120076792040)) * fixed editors loading ([4fda671](https://github.com/powerhouse-inc/document-model-electron/commit/4fda67192ca075aa66079cbf769548e53e1a2ef3)) * fixed file import ([23cd72d](https://github.com/powerhouse-inc/document-model-electron/commit/23cd72da07e8fa12bb6f5c739d392432057d6812)) * fixed file operations error ([5d123af](https://github.com/powerhouse-inc/document-model-electron/commit/5d123af045f0409222bd61404b2249db2a4ec19d)) * fixes browser key storage ([bfb2a72](https://github.com/powerhouse-inc/document-model-electron/commit/bfb2a725ec7fb4ec507751e52aa743879e39b428)) * generate key pair on desktop ([ebc0204](https://github.com/powerhouse-inc/document-model-electron/commit/ebc020405e0b289aa4cfdf4935b2afcd53494a7f)) * go back from fixed version ([41684c4](https://github.com/powerhouse-inc/document-model-electron/commit/41684c4f9cb55bef7f4e8bea46e7ab2eedc26b5c)) * handle empty string or wrong formatted string in env var ([0099615](https://github.com/powerhouse-inc/document-model-electron/commit/009961513edaba39ad8fb4daacd6dd702a9fedd8)) * handle null parent folder ([21f9370](https://github.com/powerhouse-inc/document-model-electron/commit/21f93703b08e39c6c97312a232a609a53dacf1c0)) * handle sync events on node document drive ([3855ce4](https://github.com/powerhouse-inc/document-model-electron/commit/3855ce42a72865ed48e7729d25ec1481e462851d)) * handle undefined whitelist ([1672fa8](https://github.com/powerhouse-inc/document-model-electron/commit/1672fa86ab863d8d2fc88604a775f524f7b86614)) * hide searchbar from config ([0bd4444](https://github.com/powerhouse-inc/document-model-electron/commit/0bd4444fca256b28bf413122a870f343963dc801)) * ignore drives with error ([25a27d5](https://github.com/powerhouse-inc/document-model-electron/commit/25a27d51fed340a22530d5d13e784bf5f9f66fab)) * ignore operation hashes when importing zip ([634bcd5](https://github.com/powerhouse-inc/document-model-electron/commit/634bcd5cd534d22db9813cc17be28359d94a1e61)) * ignores document drive result when adding an operation from the editor ([74140e2](https://github.com/powerhouse-inc/document-model-electron/commit/74140e2400ea1c1b5bb9baf5f7b26ed7cbb2a9cb)) * implemented rename and new folder actions ([45dbf5e](https://github.com/powerhouse-inc/document-model-electron/commit/45dbf5e527841f1107f9d444ac2b76f0dc6fa7c0)) * import styles from design system ([f7ac8ad](https://github.com/powerhouse-inc/document-model-electron/commit/f7ac8adc2608e8d491618e01b1c98be9f8c43fe2)) * improved url handling ([32b3dcd](https://github.com/powerhouse-inc/document-model-electron/commit/32b3dcd943518cba4f1f5a82f9dbb5b906096500)) * install ts-reset ([228b082](https://github.com/powerhouse-inc/document-model-electron/commit/228b082e36b1e689b47d7ed923dfe3347e74ad7d)) * install vite ([aa66a01](https://github.com/powerhouse-inc/document-model-electron/commit/aa66a01bc96f33984e9d6828fdd93d374916c2c4)) * lighthouse recomendations ([dd3e594](https://github.com/powerhouse-inc/document-model-electron/commit/dd3e594c198ab2a9deb83420ed8bfb145475ec71)) * load default drive ([589653f](https://github.com/powerhouse-inc/document-model-electron/commit/589653fab02bc030fbc4a99bea6ed6f4566fd57c)) * log sync error ([204c38a](https://github.com/powerhouse-inc/document-model-electron/commit/204c38a5f2763edc2006119b8608f6dc39f40dc9)) * manually install design system ([1b7c676](https://github.com/powerhouse-inc/document-model-electron/commit/1b7c6767c67efed2da903976a62a0bbbaf8a64fe)) * move helpers ([e12240c](https://github.com/powerhouse-inc/document-model-electron/commit/e12240c40ca8368b9f99f0bdfa5d2881a9a71dc5)) * move sync status invocation to hook ([dea3fa9](https://github.com/powerhouse-inc/document-model-electron/commit/dea3fa9f5fbcdf9cf355652bf32e2c434a366c13)) * moved isAllowedToCreateDocuments to folderView ([8ef573b](https://github.com/powerhouse-inc/document-model-electron/commit/8ef573bafb079ebf5e32e6611c25d85225fe6190)) * moved load initial data into a hook ([99c7417](https://github.com/powerhouse-inc/document-model-electron/commit/99c74175b899c9c1d3f7dbf27de174ebd053bdbf)) * pass allow list credentials to components ([2fadac1](https://github.com/powerhouse-inc/document-model-electron/commit/2fadac18141430445138ec9446d46227cb69723a)) * pass allow list props to components ([0df5de6](https://github.com/powerhouse-inc/document-model-electron/commit/0df5de6a1062538cfaee7dcd045abb53b5481106)) * port config files to ts ([f78e7f5](https://github.com/powerhouse-inc/document-model-electron/commit/f78e7f5444a47d637cc6681dd25917524b03b659)) * re-enable onErrorCallback with new operations error prop ([a408630](https://github.com/powerhouse-inc/document-model-electron/commit/a408630ee77596a83f2c3ee26a17d44447537647)) * re-generate package-lock.json ([e48ac3d](https://github.com/powerhouse-inc/document-model-electron/commit/e48ac3dd16d25901565eaed94e4e82b4283f7287)) * re-implemented copy/move nodes with new DocumentDrive ([c4fad11](https://github.com/powerhouse-inc/document-model-electron/commit/c4fad117827b929d69dd73824d46ef33f767c57f)) * re-use decodedDriveID ([bb11105](https://github.com/powerhouse-inc/document-model-electron/commit/bb111052681fd6fb73671ad026b16a22c03ec139)) * readd prepare script ([ad4577e](https://github.com/powerhouse-inc/document-model-electron/commit/ad4577ee92a812a4227e03f2923cbb5b5ca0efdc)) * refresh UI when there are drive changes ([fca3c95](https://github.com/powerhouse-inc/document-model-electron/commit/fca3c9576679e1bdcb8cf017cad3e885cd245fdf)) * regenerate lock ([0269b0b](https://github.com/powerhouse-inc/document-model-electron/commit/0269b0b47945bc6d53928ec975f3b0c4557706a9)) * regenerate lockfile ([efa2f7f](https://github.com/powerhouse-inc/document-model-electron/commit/efa2f7f380e1e558b82a616f8d1ef1cda021371e)) * regenerate lockfile ([c8aac44](https://github.com/powerhouse-inc/document-model-electron/commit/c8aac44f8cb0184962e5567ea3252e14cc686cce)) * reinstall with npm ([f790b6c](https://github.com/powerhouse-inc/document-model-electron/commit/f790b6c8611e000b123723c014ef35c1ee9aa55b)) * remove check ([1db971c](https://github.com/powerhouse-inc/document-model-electron/commit/1db971cf324e2ca0e92c8f9b01614f7ef64f3d6a)) * remove csp ([b940c38](https://github.com/powerhouse-inc/document-model-electron/commit/b940c3849bb1f804c6d2d8ca7e2bced61be81a95)) * remove default node logic ([217d6e5](https://github.com/powerhouse-inc/document-model-electron/commit/217d6e5ac54033bda7bd36473712e048fe775623)) * remove hello from content ([decd9c4](https://github.com/powerhouse-inc/document-model-electron/commit/decd9c4a9dbce3d9ecacbee06ad91d5959b86f84)) * remove old tailwind classes ([10a8b95](https://github.com/powerhouse-inc/document-model-electron/commit/10a8b95edbcf212c17cb9011b13b32d2b924a767)) * remove redundant config ([0c4d334](https://github.com/powerhouse-inc/document-model-electron/commit/0c4d334f3f75ccef7597470e1ce2a490b449eca8)) * remove redundant use effect ([9bb2950](https://github.com/powerhouse-inc/document-model-electron/commit/9bb29508084badc11d535fab2ba241fe8021bc5f)) * remove restriction to send operations ([dc620c5](https://github.com/powerhouse-inc/document-model-electron/commit/dc620c5fda0dd9adff480ee2ea3494b2b1698cc5)) * remove scrollbar styles ([a9a3080](https://github.com/powerhouse-inc/document-model-electron/commit/a9a30803d3bf1cf91a82cc9bac6133c9bb335691)) * removed debug code ([5f0c930](https://github.com/powerhouse-inc/document-model-electron/commit/5f0c930c3c2fb19dfbd46a957fda4655f8549a72)) * removed electron-deeplink pkg and updated deep links ([5cec527](https://github.com/powerhouse-inc/document-model-electron/commit/5cec527acc442886f35261affa1619efd30e2212)) * removed networkId from signer ([89c2a1c](https://github.com/powerhouse-inc/document-model-electron/commit/89c2a1c676170878b4cb307b073b53e28bb9e1f5)) * removed queue timeout ([8b517b7](https://github.com/powerhouse-inc/document-model-electron/commit/8b517b78c1529abe5c7ee6e69d1990c56c4fbb6e)) * removed re-renders and prevent add default drive being called twice ([3104848](https://github.com/powerhouse-inc/document-model-electron/commit/3104848107ff53daea46d36930be8ca9e3f522e6)) * removed usehooks-ts dep ([05ca45e](https://github.com/powerhouse-inc/document-model-electron/commit/05ca45ef3227c50a7d44bfd7c8d8730a89d3c369)) * rename document drive node when document model name is changed ([b9008f7](https://github.com/powerhouse-inc/document-model-electron/commit/b9008f7e08e340329e16c0743133a09d044cb1dd)) * replaced env vars by client.config file ([28f7a2f](https://github.com/powerhouse-inc/document-model-electron/commit/28f7a2f5fbe97403f4ed317303f19c43b1cbf300)) * replaced feature flags context by atomWithStorage ([071b7aa](https://github.com/powerhouse-inc/document-model-electron/commit/071b7aacb44792851b45946f41abecaaa99f5633)) * replaced sidebar input header by connect logo ([a845dfd](https://github.com/powerhouse-inc/document-model-electron/commit/a845dfd14df5167e25fe5530ae03e9400bb36d45)) * separate browser storage ([9ea89b8](https://github.com/powerhouse-inc/document-model-electron/commit/9ea89b80a5094eaa56a2d3b417a0e8fb05c0ae91)) * separated error and conflict messages for drive status notification ([e80ccfe](https://github.com/powerhouse-inc/document-model-electron/commit/e80ccfeff3bf1e739af33c0da97f5258f5007e5a)) * set queue timeout to 10ms ([6c87c92](https://github.com/powerhouse-inc/document-model-electron/commit/6c87c92e4e4ed2246c642f6575db1b31c6611b06)) * show success sync toast only after recover from error sync ([5c2a47a](https://github.com/powerhouse-inc/document-model-electron/commit/5c2a47a2d0232e13d9fd6047bbe88c3faee6caa3)) * simplify copy ([2cd60c3](https://github.com/powerhouse-inc/document-model-electron/commit/2cd60c3957685049fc6ff64beb094b409bbd4f32)) * support add drive ([f827d33](https://github.com/powerhouse-inc/document-model-electron/commit/f827d338d4b6b49bde54f58ec6eb133756f3c765)) * support multiple separate allow lists ([74d6152](https://github.com/powerhouse-inc/document-model-electron/commit/74d615236b6a75d0602476a826787e37a3ab263f)) * switch to using vars from design system ([587c258](https://github.com/powerhouse-inc/document-model-electron/commit/587c258c1f47b8f5f1004252aec491d91b14eb5a)) * trigger build ([e85bf95](https://github.com/powerhouse-inc/document-model-electron/commit/e85bf95f96ece3f59ead521fe39588630203900d)) * update connect opengraph meta data ([32b3720](https://github.com/powerhouse-inc/document-model-electron/commit/32b372038f27d9a062ad78de6fde36a70cf2d6d8)) * update deeplink protocol ([45d0a58](https://github.com/powerhouse-inc/document-model-electron/commit/45d0a58d266bcc369fcef7e0a1cc88c71757e1fc)) * update dependencies and increase pull interval to 3 seconds ([66d8aea](https://github.com/powerhouse-inc/document-model-electron/commit/66d8aea256ccc6f742347db03bf06901b777bc74)) * update deps ([3b6fa8d](https://github.com/powerhouse-inc/document-model-electron/commit/3b6fa8daeedec0549451490c9a7efec733ab2b75)) * update document drive ([ff37742](https://github.com/powerhouse-inc/document-model-electron/commit/ff37742d857e9445a30a4122f12ec8585f5d129e)) * update document drive dep ([ad31bf0](https://github.com/powerhouse-inc/document-model-electron/commit/ad31bf08d09650a9c335e18cf7153c7bd7667081)) * update document drive dep ([5baaf20](https://github.com/powerhouse-inc/document-model-electron/commit/5baaf2006c71885132bbdabb59976acf5cde8ce2)) * update document-drive ([534fa80](https://github.com/powerhouse-inc/document-model-electron/commit/534fa802984035735710d220f2496add04704b64)) * update document-drive ver ([393388e](https://github.com/powerhouse-inc/document-model-electron/commit/393388e0a45f0275e5ab6824695d70b931891777)) * update document-model and document-drive ver ([d66225a](https://github.com/powerhouse-inc/document-model-electron/commit/d66225aefa67ed761e8c5a1f36b62685666f7d84)) * update document-model and document-drive versions ([8d1f869](https://github.com/powerhouse-inc/document-model-electron/commit/8d1f8691bf1511aca38f96a1ca7488e9d6104af2)) * update document-model dep ([c865770](https://github.com/powerhouse-inc/document-model-electron/commit/c8657706b488631cf5955a6677ae5e4e1252bc9c)) * update document-model document-drive and document-model-libs deps ([aee1dce](https://github.com/powerhouse-inc/document-model-electron/commit/aee1dce7f1c927ca24ac5283ab3d4d48ca85b7f6)) * update document-model lib to v1.0.29 ([9190869](https://github.com/powerhouse-inc/document-model-electron/commit/9190869ddea006ce0cad8c3fa264d83535e16950)) * update drive sync icon on syncStatus event ([ded596e](https://github.com/powerhouse-inc/document-model-electron/commit/ded596eb4761ce7003e285a0b283d45242b66444)) * update editor when opened document is changed ([88e1cad](https://github.com/powerhouse-inc/document-model-electron/commit/88e1cad21d61cc9675f53a4a67e51e8712b22696)) * update env var names ([42ba363](https://github.com/powerhouse-inc/document-model-electron/commit/42ba363359b08b076fdb7d39fa7df9b2c7d963ba)) * update experimental deps ([12d28d6](https://github.com/powerhouse-inc/document-model-electron/commit/12d28d695a58dfc9bb2ff1e288b6ea4ef39f1267)) * update lint config ([170b252](https://github.com/powerhouse-inc/document-model-electron/commit/170b252cd35fe786147f4e5306948eecf6a3990c)) * update submit handler ([9cd1a10](https://github.com/powerhouse-inc/document-model-electron/commit/9cd1a10a0fee03bf4ddd2ace4f1a3796e1b4de30)) * update to use new sync icons ([e1cbf1d](https://github.com/powerhouse-inc/document-model-electron/commit/e1cbf1d22de3159c247b3356577f2fdc519a51c5)) * update url params logic ([6450975](https://github.com/powerhouse-inc/document-model-electron/commit/645097513096fa26327e60ea510d2e4bd628a870)) * updated deps ([e41734f](https://github.com/powerhouse-inc/document-model-electron/commit/e41734f70b7b8acae90c167df5884820ee99c3c9)) * updated deps ([a328cd9](https://github.com/powerhouse-inc/document-model-electron/commit/a328cd93ec131d36f61c45fda4863f315fb3a2cc)) * updated design system dep ([b378a42](https://github.com/powerhouse-inc/document-model-electron/commit/b378a420bad20debc06aeeb376401ecb311889ce)) * updated design-system alpha 119 ([b337897](https://github.com/powerhouse-inc/document-model-electron/commit/b3378976dd6f75b11b028734ad0e4dee09918b33)) * updated document drive ([39f3218](https://github.com/powerhouse-inc/document-model-electron/commit/39f3218c6919b4fb72a5641733da60b8eeac69c2)) * updated document drive ([4b588b0](https://github.com/powerhouse-inc/document-model-electron/commit/4b588b0f602debb6d069c3c4d580292b87a94337)) * updated document drive ([b0df564](https://github.com/powerhouse-inc/document-model-electron/commit/b0df564c0952c60b3202c392e9fb1a23e401bea8)) * updated document drive lib ([5f30983](https://github.com/powerhouse-inc/document-model-electron/commit/5f30983ab3f07462d842e3f464c0723d3f8785dd)) * updated document-drive ([2a08adb](https://github.com/powerhouse-inc/document-model-electron/commit/2a08adb7fdd6a46af4c8d8ff31c946e043dbb016)) * updated document-drive ver ([f7b9c7d](https://github.com/powerhouse-inc/document-model-electron/commit/f7b9c7df9d9b569b296d599998e3a500bfb8735c)) * updated document-drive version ([a92dd24](https://github.com/powerhouse-inc/document-model-electron/commit/a92dd24c3ae638ff02587623a3d33af7fd89e2b6)) * updated document-drive@1.0.0-experimental.2 ([c2b2816](https://github.com/powerhouse-inc/document-model-electron/commit/c2b2816cc7eea0346ea7d958b39f4b25796bb2a0)) * updated document-drive@1.0.0-experimental.4 ([f31d12d](https://github.com/powerhouse-inc/document-model-electron/commit/f31d12d18404882a1f3af00f9bca6ab79d7a667e)) * updated document-model dep ([f487cff](https://github.com/powerhouse-inc/document-model-electron/commit/f487cff99198d7cc3d8fd9db944ca394cc788dec)) * updated document-model lib ([9db149e](https://github.com/powerhouse-inc/document-model-electron/commit/9db149ecc91926c02f2fe8479ca08958b66977d3)) * updated document-model-libs ([b0bb1d2](https://github.com/powerhouse-inc/document-model-electron/commit/b0bb1d2ef530ecacc8f722322149866f8fbce03d)) * updated document-model-libs and design-system ver ([d4ab8f8](https://github.com/powerhouse-inc/document-model-electron/commit/d4ab8f881d0e04d5bf68e0748205cf25fcce90e1)) * updated libs ([adbadc1](https://github.com/powerhouse-inc/document-model-electron/commit/adbadc1d0b826acfc7e112d07d1c478496ac93cb)) * updated package.lock ([3c334f4](https://github.com/powerhouse-inc/document-model-electron/commit/3c334f4f714ec6a63ce63bbc7f60d0e67f99b17b)) * updated release script ([d5b4fd6](https://github.com/powerhouse-inc/document-model-electron/commit/d5b4fd60008696328dea4bf69b382ed8e1be527e)) * updated rwa query ([3709cfc](https://github.com/powerhouse-inc/document-model-electron/commit/3709cfc9543851fe77f8a930d1e0806d552069d6)) * use default values if there is a missing key for feature flags ([cdb728a](https://github.com/powerhouse-inc/document-model-electron/commit/cdb728a3964ca1183bd38743744a8bdf51e04fb6)) * use drive icon ([c82bebb](https://github.com/powerhouse-inc/document-model-electron/commit/c82bebb00516c95b2f6f48102672bf70333f9477)) * use memoized version of FileItem component ([8b0314b](https://github.com/powerhouse-inc/document-model-electron/commit/8b0314ba7ef8d538dc680d4a036b9c010a039273)) * use memoryBrowser on packaged app ([2d11200](https://github.com/powerhouse-inc/document-model-electron/commit/2d11200a47c861429edd0ad5c6a4eb13b46a7363)) * use new svgr syntax ([e1db3b9](https://github.com/powerhouse-inc/document-model-electron/commit/e1db3b95b5330f95893b5511df8041ed04d33fb7)) * use not equal ([8e33089](https://github.com/powerhouse-inc/document-model-electron/commit/8e330890f658224bc1e37d6504765e3d01cc7ede)) * use setTimeout as fallback for requestIdleCallback ([730c8f2](https://github.com/powerhouse-inc/document-model-electron/commit/730c8f292eec07908410f7f2949c045bab8094fe)) * use tailwind styles ([53dc69f](https://github.com/powerhouse-inc/document-model-electron/commit/53dc69f69663b4d315c03b57a64b87b274e698cd)) * use yarn ([812fe5a](https://github.com/powerhouse-inc/document-model-electron/commit/812fe5af48fdea5cb5955f6b8336604722476b44)) * waits 50ms for new operations to make a single addOperations call ([d4c9796](https://github.com/powerhouse-inc/document-model-electron/commit/d4c97965cc9b83128f6be225a27a64c2f88795f3)) * waits for document drive server to be loaded before checking default drive is added ([fc10ee8](https://github.com/powerhouse-inc/document-model-electron/commit/fc10ee8428d9d9c24c6cef38cd104ac5f79d759c)) ### Performance Improvements * decode id only one when getting readable item path ([9d0b5ad](https://github.com/powerhouse-inc/document-model-electron/commit/9d0b5ad785a7a7e1c174f3190f87c6ee26f30251)) * implemented scalable way to compare drive state ([bb5fecb](https://github.com/powerhouse-inc/document-model-electron/commit/bb5fecb8e31385abc5697a4635c2dfb0823ba853)) --- CHANGELOG.md | 324 +++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 325 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60620e25..e01d3521 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,327 @@ +# 1.0.0-next.1 (2024-06-18) + + +### Bug Fixes + +* added callback support for document dispatch ([a4f4c04](https://github.com/powerhouse-inc/document-model-electron/commit/a4f4c04ead0d2aca54983da2e79e9ff6e673da15)) +* allow concurrent drive operations ([17658ee](https://github.com/powerhouse-inc/document-model-electron/commit/17658ee1a67dc787896508d25ea329ca9b657a13)) +* apply auto lint fix ([dfa1ec0](https://github.com/powerhouse-inc/document-model-electron/commit/dfa1ec02caddba3e9b06e1a18855f47abf959eda)) +* base hrefs ([1ff517c](https://github.com/powerhouse-inc/document-model-electron/commit/1ff517c31991b6ad836b173c0df916b396f59fe1)) +* base path cmd ([070b4af](https://github.com/powerhouse-inc/document-model-electron/commit/070b4af1a148be00ca8b4e4bf8e24f22adbea28c)) +* build issues ([f2b084b](https://github.com/powerhouse-inc/document-model-electron/commit/f2b084b21a7826c491bc4d5977608892bfedfeba)) +* change config file names in scripts ([37fa872](https://github.com/powerhouse-inc/document-model-electron/commit/37fa872932c8f455e4844e6bd838a65720ad5380)) +* downgraded document drive ([7d287c4](https://github.com/powerhouse-inc/document-model-electron/commit/7d287c4d08d73226e7ba1ec8aabaeeb9a088c8e2)) +* endpoints for connect ([7c81639](https://github.com/powerhouse-inc/document-model-electron/commit/7c81639f01764ee0703c0a0313305f7557994f06)) +* fix file types ([11d1b18](https://github.com/powerhouse-inc/document-model-electron/commit/11d1b1833442ee302196b3e50f73f0380a372507)) +* fix rerenders when refreshing document drives ([5429f61](https://github.com/powerhouse-inc/document-model-electron/commit/5429f613784535e430809b751d879e60b2f5fb68)) +* fixed build error ([3027483](https://github.com/powerhouse-inc/document-model-electron/commit/30274832089143d616c3c55935735ad6f275e8c2)) +* fixed build error ([f280459](https://github.com/powerhouse-inc/document-model-electron/commit/f2804594d3f764477c06fc4183a2427df9e4c86b)) +* folder selection in folder view ([f7e3681](https://github.com/powerhouse-inc/document-model-electron/commit/f7e36810b5d0223afc64736a9e8ec48e11f7fc57)) +* header text color ([4ee9745](https://github.com/powerhouse-inc/document-model-electron/commit/4ee9745dbbeddf0e2ea41f6d8c4c800d9f5bfd99)) +* heroku nginx config ([0ca0df1](https://github.com/powerhouse-inc/document-model-electron/commit/0ca0df1e853522fb0d21ded35d6f61964c48ea62)) +* lint errors ([ac490b4](https://github.com/powerhouse-inc/document-model-electron/commit/ac490b4cdf693d62d57a865b55952ca7b46bfe94)) +* missing return ([f81d0e9](https://github.com/powerhouse-inc/document-model-electron/commit/f81d0e9a0a58c4079a6359d0dc45f90861d4acb4)) +* only call useMemo in hook ([76a1505](https://github.com/powerhouse-inc/document-model-electron/commit/76a15059e825ec0e1d6215e450ec0339d7c33bbe)) +* package.lock ([1c2a1f5](https://github.com/powerhouse-inc/document-model-electron/commit/1c2a1f55bf33953fa1834da2e84dcc0e93710c7b)) +* properly encode switchboard query ([4c5001f](https://github.com/powerhouse-inc/document-model-electron/commit/4c5001fb3aa34249bee0550331a314872b05c614)) +* remove allow list ([ac2475d](https://github.com/powerhouse-inc/document-model-electron/commit/ac2475d866195b18b23ca094457ccce93b9b0508)) +* remove duplicate package ([364afdd](https://github.com/powerhouse-inc/document-model-electron/commit/364afdde2e2c9c3d6c12d0364e6d0cfd612f5429)) +* remove yalc from package json ([9e184d8](https://github.com/powerhouse-inc/document-model-electron/commit/9e184d8df68d74803e9cbf95f7cf480f97a6d03e)) +* removed unused css import ([6da080c](https://github.com/powerhouse-inc/document-model-electron/commit/6da080c53ea57352b997de941fc303f11a5d2a42)) +* rename node id ([45235e5](https://github.com/powerhouse-inc/document-model-electron/commit/45235e516ce5ea52345c7ff9d1f7238ff4e9e095)) +* renown endpoint ([10461f5](https://github.com/powerhouse-inc/document-model-electron/commit/10461f566fd49a8fd79b23fdaa66871d8d8cff76)) +* renown login ([432e5bc](https://github.com/powerhouse-inc/document-model-electron/commit/432e5bcc1eaa13a043720b0c9d1165222188ecfc)) +* revert setSelectedDocument in addOperation document ([df06317](https://github.com/powerhouse-inc/document-model-electron/commit/df06317cc067b3f25deedb9832c1aa54d308158a)) +* rwa query ([09fcd52](https://github.com/powerhouse-inc/document-model-electron/commit/09fcd52fdf4adbeee9f6a6aa26c1d0309b525510)) +* semantic release ([b24fa8d](https://github.com/powerhouse-inc/document-model-electron/commit/b24fa8d03309c4f2f5d43372a34388dd0a168e59)) +* settings modal typo ([6ef1286](https://github.com/powerhouse-inc/document-model-electron/commit/6ef12861fdda344c7c45f54657b6f56c67217162)) +* show local drives ([893b0df](https://github.com/powerhouse-inc/document-model-electron/commit/893b0dfe9d8004b12114842b082e4672a630aa38)) +* subscribe to server updates when load initial data ([35bf948](https://github.com/powerhouse-inc/document-model-electron/commit/35bf948de2acb3a23684060c978138f2b5ad5f75)) +* suppress less important rules ([679af22](https://github.com/powerhouse-inc/document-model-electron/commit/679af2256b8e6a4739006048056d452ba7fbf988)) +* switchboard endpoint ([2e570f3](https://github.com/powerhouse-inc/document-model-electron/commit/2e570f39bc355e4f387c0d371e8af81a0b92bb38)) +* switchboard link ([78bbdd0](https://github.com/powerhouse-inc/document-model-electron/commit/78bbdd0ec278a7685023cf9482d5990f6cf18a6d)) +* tmp build fix ([4a4be40](https://github.com/powerhouse-inc/document-model-electron/commit/4a4be4098131a946ce919792e3028e0f4e92c46e)) +* undefined default drive ([e5f2749](https://github.com/powerhouse-inc/document-model-electron/commit/e5f27494a57a29c4e4ae921d2014198af8614df3)) +* undefined default drive ([6ad9412](https://github.com/powerhouse-inc/document-model-electron/commit/6ad94127e15ebb43507cd0cae8404e9e2bc17e5b)) +* update selectedDocument when a new operation is dispatched ([b2c4401](https://github.com/powerhouse-inc/document-model-electron/commit/b2c4401c676d1c2621334375f132c6367c234ca5)) +* use selectedDocument as source of truth for document editor ([b5204e7](https://github.com/powerhouse-inc/document-model-electron/commit/b5204e7153028459ef3ace07e719736d971d577a)) +* wait for renown to load ([1d2f019](https://github.com/powerhouse-inc/document-model-electron/commit/1d2f019dc992239873e19e35fe8d5c0dde1396f5)) + + +### Features + +* 🚀 Added ItemsContext integration ([41fc40f](https://github.com/powerhouse-inc/document-model-electron/commit/41fc40f93420101ca9b2ec34e1b4f4cab4a43a4b)) +* 🚀 added readable item path for File Items ([9f6a4ac](https://github.com/powerhouse-inc/document-model-electron/commit/9f6a4ac45318bb757e7c7c60df463e67b066771b)) +* 🚀 Implemented base folder-view design ([22ad4fc](https://github.com/powerhouse-inc/document-model-electron/commit/22ad4fc5046e27016ce1a47eda3282125af4db71)) +* activate queue ([#290](https://github.com/powerhouse-inc/document-model-electron/issues/290)) ([5b5a4fd](https://github.com/powerhouse-inc/document-model-electron/commit/5b5a4fd317ce624cc734f186778e49899dd3b148)) +* add dep array to use effect ([0a88d92](https://github.com/powerhouse-inc/document-model-electron/commit/0a88d92a664b877929978f05753f3d38e471625d)) +* add dependency versions to settings modal ([d01c0de](https://github.com/powerhouse-inc/document-model-electron/commit/d01c0de124cb9af00312e4c53e934d8a233e02af)) +* add design system preset ([a6cb51c](https://github.com/powerhouse-inc/document-model-electron/commit/a6cb51c31d4500d31fd091f165a4f01ae37ff4d7)) +* add duplicate action ([a9d2e29](https://github.com/powerhouse-inc/document-model-electron/commit/a9d2e29318badb84ca51acc9603a2c2dc7f25a0e)) +* add duplicate to folder ([a6212a8](https://github.com/powerhouse-inc/document-model-electron/commit/a6212a8fe3c62f49d1b624e75152e48f80034ed2)) +* add generate assets hook for icons copying ([4c25ebe](https://github.com/powerhouse-inc/document-model-electron/commit/4c25ebecc94941502e35dff28555664b3985f67b)) +* add is allowed to create documents hook ([0a457fc](https://github.com/powerhouse-inc/document-model-electron/commit/0a457fc35f5e78cb16eac1664c3def10b29b5229)) +* add optional dep ([a079cc7](https://github.com/powerhouse-inc/document-model-electron/commit/a079cc799c0d7987193ee209618151c10c743282)) +* add pull trigger on cloud drives ([9f86849](https://github.com/powerhouse-inc/document-model-electron/commit/9f868495ced48b9b23a3d128469ce7ac20d32a57)) +* add react aria dep ([499dda0](https://github.com/powerhouse-inc/document-model-electron/commit/499dda05d52469c85f0dc31d1da5639dc926c9c4)) +* add tailwind eslint plugin ([6e639bc](https://github.com/powerhouse-inc/document-model-electron/commit/6e639bc71bddeafe855c210c0f573cec7b2ce622)) +* add user context to actions ([6a3241d](https://github.com/powerhouse-inc/document-model-electron/commit/6a3241d3e98c58262ffc7bbbcaa66f6f5d8878b3)) +* added addpublicdrive util ([4dc536f](https://github.com/powerhouse-inc/document-model-electron/commit/4dc536f82216f47a8db46225ac1f6d6e1f9c7a23)) +* added base path for nginx ([22a270b](https://github.com/powerhouse-inc/document-model-electron/commit/22a270b978e189a8a9afd20e0ae8f568e8c3336e)) +* added browser key storage ([6562881](https://github.com/powerhouse-inc/document-model-electron/commit/6562881b2eb603b59b55f1595a7f46b96dbbded6)) +* added clear storage setting ([922f5e1](https://github.com/powerhouse-inc/document-model-electron/commit/922f5e19ebd68e07440858c2f7308e3f6d1a2aae)) +* added config to hide drive sections ([aa67a3f](https://github.com/powerhouse-inc/document-model-electron/commit/aa67a3f392891e195fbc24a2ff858b66265eccc5)) +* added csp headers ([bd398aa](https://github.com/powerhouse-inc/document-model-electron/commit/bd398aa0bc6d748b740e17d4ddf197232d701c62)) +* added cypress CI config ([6418f6d](https://github.com/powerhouse-inc/document-model-electron/commit/6418f6d06b8f9d14012ab660a21f0b8b35af008a)) +* added Cypress Cloud Config ([24deddb](https://github.com/powerhouse-inc/document-model-electron/commit/24deddb0518dc49e14538e29045e56eeab735b62)) +* added cypress setup ([380db83](https://github.com/powerhouse-inc/document-model-electron/commit/380db83614f692230bbd11ebff63007599745f0d)) +* added deeplink support to link to specific drive node ([ae1f97f](https://github.com/powerhouse-inc/document-model-electron/commit/ae1f97fb17e3cbc422a2e242e9ff530c598284a5)) +* added delete drive modal + enable delete file modal confirmation ([4ce110e](https://github.com/powerhouse-inc/document-model-electron/commit/4ce110e7baaaad3ea75a33eff45fab9994184658)) +* added develop environment ([4ceabce](https://github.com/powerhouse-inc/document-model-electron/commit/4ceabce3c8e5d43488abda4a83d524b59da0c338)) +* added develop to release cycle ([3e1058e](https://github.com/powerhouse-inc/document-model-electron/commit/3e1058eac31ac13d74aaed32418d6ac56ad4e3dd)) +* added e2e playwright setup ([2d37330](https://github.com/powerhouse-inc/document-model-electron/commit/2d37330f103456dc9d3e24cc4a74d3ed7abb20c8)) +* added editor debug tools ([6928bed](https://github.com/powerhouse-inc/document-model-electron/commit/6928bed61c46322bc341da7bed48dcde60454b9e)) +* added env var to hide document model setting ([840a561](https://github.com/powerhouse-inc/document-model-electron/commit/840a5615ba0b5eafab123b0f0e5c21b3c880d670)) +* added env vars for renown ([f464d68](https://github.com/powerhouse-inc/document-model-electron/commit/f464d68172be57798be364a804b9de0e7f1733c1)) +* added feature flag setup + disable editors for demo ([7fa64f2](https://github.com/powerhouse-inc/document-model-electron/commit/7fa64f2634cea508ebfb8b20732a730dc8b0624b)) +* added gzip and brotli compression to nginx ([f52a0c3](https://github.com/powerhouse-inc/document-model-electron/commit/f52a0c3205b1fd7fc99875fae0ad5a1d5cd24dd5)) +* added heroku deployment for powerhouse staging env ([f4c538a](https://github.com/powerhouse-inc/document-model-electron/commit/f4c538a3e02781276996e30b759d50f248037c86)) +* added modal confirmation when export document with errors ([d22a447](https://github.com/powerhouse-inc/document-model-electron/commit/d22a447c98d50589f61e37cd6284155223824057)) +* added network id to user ([908a50e](https://github.com/powerhouse-inc/document-model-electron/commit/908a50e8df9c1ae7e53940dc801157a5ca665706)) +* added new env var to dockerfile ([64afb40](https://github.com/powerhouse-inc/document-model-electron/commit/64afb40dfec060e8ebfaaeddf8f47f3f925d21be)) +* added nginx config ([069be2c](https://github.com/powerhouse-inc/document-model-electron/commit/069be2cd98aee6fe3a6b686b4112a435e81d11b3)) +* added notification toast ([39ed0c2](https://github.com/powerhouse-inc/document-model-electron/commit/39ed0c2319c2a6e1c2044aff5cda1fd1dc51d24b)) +* added open file and delete file ([01793c8](https://github.com/powerhouse-inc/document-model-electron/commit/01793c8a5f21b8e1701e649cc926c8baa7ece4fe)) +* added opengraph and twitter meta data ([280da91](https://github.com/powerhouse-inc/document-model-electron/commit/280da914bbe8129ead8559d4169ea266fbb327bc)) +* added PH logo ([e9ec94b](https://github.com/powerhouse-inc/document-model-electron/commit/e9ec94b3373495aa0d03673b241c78605b61d396)) +* added prepare script ([abeaa41](https://github.com/powerhouse-inc/document-model-electron/commit/abeaa41bb7bfc7a8d3a7332a9dd0ba0dad088659)) +* added reload Connect toast ([37cb55e](https://github.com/powerhouse-inc/document-model-electron/commit/37cb55ecf4b746025de9c613d176a250505559c6)) +* added renown login on browser ([5b77016](https://github.com/powerhouse-inc/document-model-electron/commit/5b77016508fd448b23999919a8d9e40bc701e1f9)) +* added rewrite rules to vercel.json config ([b66cdb0](https://github.com/powerhouse-inc/document-model-electron/commit/b66cdb0fb264412710c1d3bf67f06d48df52408c)) +* added route to open document drive node ([6700f13](https://github.com/powerhouse-inc/document-model-electron/commit/6700f132435dd4ce175b036d5e906d1194976ed0)) +* added RWA doc name fix for demo ([05dfd07](https://github.com/powerhouse-inc/document-model-electron/commit/05dfd0781038523b86437ebe1164e20a848c65b2)) +* added scope of work ([742aae0](https://github.com/powerhouse-inc/document-model-electron/commit/742aae0cab712068d2f8dbe2804da3ba802416bd)) +* added sentry dsn to environments ([c4cfef1](https://github.com/powerhouse-inc/document-model-electron/commit/c4cfef161be9db837d29aca316949957412e4c25)) +* added sentry environments ([68fefd0](https://github.com/powerhouse-inc/document-model-electron/commit/68fefd095cbffcec9eeebedb786d5ab7afc9c9bf)) +* added sentry to connect ([d51ec53](https://github.com/powerhouse-inc/document-model-electron/commit/d51ec538d376cb533882f9c4b0ee057d80ce7d1a)) +* added settings modal integration ([dfb9d28](https://github.com/powerhouse-inc/document-model-electron/commit/dfb9d287bb99dec4316c9eee5098816b6f498926)) +* added sidebar login ([2917809](https://github.com/powerhouse-inc/document-model-electron/commit/29178094a9d711e1d7303dde1511a7b73bc37199)) +* added sort nodes + fix input styles + cancel new folders with empty name ([4a2f9fb](https://github.com/powerhouse-inc/document-model-electron/commit/4a2f9fbf2c4dc5427c58633f18e40eb10574600c)) +* added support for delete option in FolderItem and FileItem ([85800ab](https://github.com/powerhouse-inc/document-model-electron/commit/85800ab374da9be041d6e8c547d186a0671a6b91)) +* added support for document in addfile action ([0706ce2](https://github.com/powerhouse-inc/document-model-electron/commit/0706ce25a515024a37b61aec11c930601a0869e5)) +* added support for rename files + create file name modal ([8a76691](https://github.com/powerhouse-inc/document-model-electron/commit/8a76691426d671128c4cfbc98864a9a669e395f3)) +* added support for renown user ([3853b37](https://github.com/powerhouse-inc/document-model-electron/commit/3853b371349ee14051b666a19fbb0b0c564c8ac6)) +* added support for router basename ([251afe2](https://github.com/powerhouse-inc/document-model-electron/commit/251afe2b1d4eab690f9592e25edc6c555e2fe44a)) +* added switchboard link to document files ([5f31b71](https://github.com/powerhouse-inc/document-model-electron/commit/5f31b710a6ae65f42aac65840da422134e48ee6c)) +* added useConnectConfig hook ([a600091](https://github.com/powerhouse-inc/document-model-electron/commit/a60009131ad8600174311b45a696d0c3219ae8ce)) +* added vercel redirect ([7100848](https://github.com/powerhouse-inc/document-model-electron/commit/7100848213fe6e5d0811229e67c82b8997648fa2)) +* added version comparison ([866e979](https://github.com/powerhouse-inc/document-model-electron/commit/866e979684d884528cb06568ee92d02ec1253308)) +* added vite env as build args ([c76d4f4](https://github.com/powerhouse-inc/document-model-electron/commit/c76d4f431017df7f9b40a5063a71618084333c24)) +* allow connect-src for renown.id ([7357d4a](https://github.com/powerhouse-inc/document-model-electron/commit/7357d4a4a2c9aff400e55d9c8eed9630aaec4ed5)) +* allow external images ([171efac](https://github.com/powerhouse-inc/document-model-electron/commit/171efac183458b993ac11849345b3fb8765a10f4)) +* allow per deploy drive restrictions ([8779d84](https://github.com/powerhouse-inc/document-model-electron/commit/8779d84cb1be5128ac7b1c63a8666c5d03b2f593)) +* allow url for file ([474ad4d](https://github.com/powerhouse-inc/document-model-electron/commit/474ad4d0b90e9e882bb52d4ca479a4314d15eec1)) +* also disable when env is production ([6f60688](https://github.com/powerhouse-inc/document-model-electron/commit/6f60688a7bcf92e19afe5a4a49a1baa9f0c44507)) +* also do src === target check in move node function ([3e80c1e](https://github.com/powerhouse-inc/document-model-electron/commit/3e80c1e4dface07c9d101c39f6a0dce6d0654a26)) +* apply auto fixes ([b10b111](https://github.com/powerhouse-inc/document-model-electron/commit/b10b111374636b145c52fa15f38ebc0751912483)) +* auto-select first drive if there's no selected path ([daf3083](https://github.com/powerhouse-inc/document-model-electron/commit/daf3083b4fff8dd6f033ce9806affe932fea4f04)) +* avoid recreate fileOptions and clickOptionsHandler for each file node ([08557e9](https://github.com/powerhouse-inc/document-model-electron/commit/08557e983c663e58a0bb68534b11df579f9be045)) +* avoid recreate folderOptions and clickFolderOptionsHandler for each folder node ([efa90d2](https://github.com/powerhouse-inc/document-model-electron/commit/efa90d2664c025247ae6636a2c06706b12b1ad96)) +* bump ([40fd30a](https://github.com/powerhouse-inc/document-model-electron/commit/40fd30a489214a512a7dc43fbe9dea1e0c33604a)) +* bump ([11fb69f](https://github.com/powerhouse-inc/document-model-electron/commit/11fb69f6f507d4240e72b1208982c814bce185a8)) +* bump deps ([7d7206c](https://github.com/powerhouse-inc/document-model-electron/commit/7d7206c5ae9bc7c9e7d26713fc8ff4e7ef5f459d)) +* bump design system ([fb12d70](https://github.com/powerhouse-inc/document-model-electron/commit/fb12d70fcd3237f1cacb0375e99e4a1ae01cc342)) +* bump design system ([4e1d168](https://github.com/powerhouse-inc/document-model-electron/commit/4e1d168298355beea31e2216edeb7b7cef8e8257)) +* bump design system and document model libs ([165e2cc](https://github.com/powerhouse-inc/document-model-electron/commit/165e2ccc41d5d72a6f2f834292c18aa2388ebb86)) +* bump design system to integrate dep version component ([a18c621](https://github.com/powerhouse-inc/document-model-electron/commit/a18c621a24d97b3bfa9f103365b3890f6fd342d7)) +* bump design-system and document-model-lib deps ([7d90802](https://github.com/powerhouse-inc/document-model-electron/commit/7d9080289ce258cf9d299d13b4cf7e092fd51535)) +* bump document drive version ([254a2cd](https://github.com/powerhouse-inc/document-model-electron/commit/254a2cd967b07d22352d38509ad55c2ffcd19bf5)) +* bump libs ([e11a238](https://github.com/powerhouse-inc/document-model-electron/commit/e11a23886304d971c1bf8ae7db92cbbe63c5d185)) +* bump libs ([4e0863a](https://github.com/powerhouse-inc/document-model-electron/commit/4e0863af39e148053154fdcd2cb5ca5f3c801c6b)) +* bump libs ([87d0d1a](https://github.com/powerhouse-inc/document-model-electron/commit/87d0d1af3997d258065bcdf91f7eba74e1e845ae)) +* bump libs ([24a9cd3](https://github.com/powerhouse-inc/document-model-electron/commit/24a9cd3427eecc32697f15d7479bf5ee53c95084)) +* bump libs ([b27b036](https://github.com/powerhouse-inc/document-model-electron/commit/b27b036a487fbe989f9f7b585603e15bcdd3fa3a)) +* bump libs ([5fb15d3](https://github.com/powerhouse-inc/document-model-electron/commit/5fb15d321de8649ac2fc6953d9ec5312aeabefeb)) +* bump libs ([1f38863](https://github.com/powerhouse-inc/document-model-electron/commit/1f38863cb3e6fff081218ce59d7cf1a6f3c44621)) +* bump libs ([7df97b0](https://github.com/powerhouse-inc/document-model-electron/commit/7df97b03882c012f035b259aebb85ba42704008b)) +* bump libs ([78baf1d](https://github.com/powerhouse-inc/document-model-electron/commit/78baf1dee6da3f18208f23973f65b5a1b930ba81)) +* bump libs ([d766c36](https://github.com/powerhouse-inc/document-model-electron/commit/d766c36649f3575b2d10bcaf532249437a79b36c)) +* bump libs ([6b3f58f](https://github.com/powerhouse-inc/document-model-electron/commit/6b3f58fd3aad9e628cf2312629280f12984648e2)) +* bump libs ([f98b523](https://github.com/powerhouse-inc/document-model-electron/commit/f98b523acb0e2f2599d4d8927bf8fe5b26374856)) +* bump libs ([2a9a29d](https://github.com/powerhouse-inc/document-model-electron/commit/2a9a29d0d9d129abbbe6b16567151f3ecd0d525e)) +* bump libs ([62117a9](https://github.com/powerhouse-inc/document-model-electron/commit/62117a90490e9bbb32c4a84fdbdb3d930ca7ebfb)) +* bump libs ([62cd43d](https://github.com/powerhouse-inc/document-model-electron/commit/62cd43dd7f80cfd6202c251a9c1af1bad0978b67)) +* bump lint deps ([544fcea](https://github.com/powerhouse-inc/document-model-electron/commit/544fcea7cdcf450756b8deb913c47047a9161849)) +* bump react aria ([3a8ed93](https://github.com/powerhouse-inc/document-model-electron/commit/3a8ed934d371b11c7deb8c8894b43c323d04f06f)) +* cancel rename operation when new name is empty ([6c7a815](https://github.com/powerhouse-inc/document-model-electron/commit/6c7a815500339ebbced23214450750bacbfdebc9)) +* change term to allow list ([af99e9b](https://github.com/powerhouse-inc/document-model-electron/commit/af99e9ba0a3eee7074cc763922caf1656f024e83)) +* changed default renown env variables ([c87ee69](https://github.com/powerhouse-inc/document-model-electron/commit/c87ee697507eba7235150e5156bbe7d0cd121e36)) +* changed nginx image to nginx-brotli ([3d497da](https://github.com/powerhouse-inc/document-model-electron/commit/3d497da7806bdb77a6352aad9ad5f64ddcfa93e4)) +* check if operations with same index are submitted ([b7ad973](https://github.com/powerhouse-inc/document-model-electron/commit/b7ad97307106467a39060da44420515f10ce3921)) +* check user auth on startup ([6820f27](https://github.com/powerhouse-inc/document-model-electron/commit/6820f27a8defb40d72e3580d00fe11f1170bbe22)) +* commented renown env variables ([cd18bab](https://github.com/powerhouse-inc/document-model-electron/commit/cd18babc471fef7b1939bed4478265bd5a38abc1)) +* configure available editors with env variables ([00fad56](https://github.com/powerhouse-inc/document-model-electron/commit/00fad56259d24c1dc9fe3009ec5d4d8d9a51782a)) +* default drive handling improvements ([57be63e](https://github.com/powerhouse-inc/document-model-electron/commit/57be63e34a368769eb159728194f70d60ad98290)) +* detect circular reference in node path ([c113d03](https://github.com/powerhouse-inc/document-model-electron/commit/c113d035118d418ed8006b55112d101f030b4caa)) +* disable dev tools when app is packaged ([2326a77](https://github.com/powerhouse-inc/document-model-electron/commit/2326a7774f74d2c8af949cf55c18b12b38d0b7d9)) +* disable document drive editor by default ([a61249f](https://github.com/powerhouse-inc/document-model-electron/commit/a61249f43e50219b7b6aebc27f63b2d07a4735ec)) +* disallow create operations ([9cb4a8e](https://github.com/powerhouse-inc/document-model-electron/commit/9cb4a8e4d902f67692e696b60c283a3ec59ca137)) +* downloadFile fallback ([9836f4c](https://github.com/powerhouse-inc/document-model-electron/commit/9836f4c1e6edf68d1239f69cfb86324cb1e4d6f0)) +* enable transactions editor ([28967c2](https://github.com/powerhouse-inc/document-model-electron/commit/28967c2c6a4465494f682e55e914bfdd719bc07b)) +* enabled add cloud drive modal ([d54f579](https://github.com/powerhouse-inc/document-model-electron/commit/d54f579bd903e57cf193cdc11a727eed5526971d)) +* enabled drop target for FolderItem ([70aeaad](https://github.com/powerhouse-inc/document-model-electron/commit/70aeaadde2844def0c0cc648dbb8f496d51b96dd)) +* enabled editor controls ([f7aa503](https://github.com/powerhouse-inc/document-model-electron/commit/f7aa50343c0a124056811f1ce29ab0c8539263da)) +* enabled keyboard shortcut for undo/redo ([82fe517](https://github.com/powerhouse-inc/document-model-electron/commit/82fe517dbbf01006c6fbaae0b1c493c57eeeb422)) +* enabled onErrorCallback for dispatch fn ([8bd3c7c](https://github.com/powerhouse-inc/document-model-electron/commit/8bd3c7ccfafbf1d1b32ada0bb941585bd0ee1907)) +* enabled rename option for folders in folder view ([d7a9b34](https://github.com/powerhouse-inc/document-model-electron/commit/d7a9b3490b0cb91d647ecb803513dbea590f04e0)) +* enabled rename option when copy/move an item ([3ef5ea4](https://github.com/powerhouse-inc/document-model-electron/commit/3ef5ea474997e10b670a989460dca939431f3a9a)) +* enabled rwa editor ([b7df486](https://github.com/powerhouse-inc/document-model-electron/commit/b7df486a82c0c044fab5dd434ecceba1a2c24dc1)) +* enabled switchboard link in RWA editor ([cece18e](https://github.com/powerhouse-inc/document-model-electron/commit/cece18e3cb900cbe2fe7d77c0c329a2c430e2539)) +* enabled sync icons for folders and files ([3e0451e](https://github.com/powerhouse-inc/document-model-electron/commit/3e0451e923151a497894c2b282a3324c11be2867)) +* enabled undo/redo with new document structure ([f6af1e0](https://github.com/powerhouse-inc/document-model-electron/commit/f6af1e002121456e5e9cc4befe6c41ac4ddf8aa9)) +* expand selected path in sidebar on initial path load ([9b5e053](https://github.com/powerhouse-inc/document-model-electron/commit/9b5e0533e7e02d4ae9ea3c6bb01c9827eada160c)) +* export did:key instead of public key ([a358371](https://github.com/powerhouse-inc/document-model-electron/commit/a3583718047f447f2f59a8153e3e2ac15a8cd732)) +* fetch user's ens info ([229a1ae](https://github.com/powerhouse-inc/document-model-electron/commit/229a1ae1bcd145858f867cdf449d9ed2709c8ffc)) +* fix Authorize Connect font color ([25ba2e7](https://github.com/powerhouse-inc/document-model-electron/commit/25ba2e7af5c81c442fed8d919b31a66ba2959e77)) +* fix console warnings ([3024578](https://github.com/powerhouse-inc/document-model-electron/commit/3024578d93e4a70a89a3b3681d34f78a4bd0f1d0)) +* fix css import order ([9216a27](https://github.com/powerhouse-inc/document-model-electron/commit/9216a277e488f73cc892ad015c4ea35dd22bb2a9)) +* fix linux build ([433e6f9](https://github.com/powerhouse-inc/document-model-electron/commit/433e6f9b0a92f72d33e16bbcb71a8965c034c6be)) +* fix logo + position ([278ebeb](https://github.com/powerhouse-inc/document-model-electron/commit/278ebeb39cac2b6d1edb3b096161bb3810669f31)) +* fix rwa document name ([b3f39d1](https://github.com/powerhouse-inc/document-model-electron/commit/b3f39d16c09cb87295d53a7be249b4e2be3895ab)) +* fix sync status ([9ff69fe](https://github.com/powerhouse-inc/document-model-electron/commit/9ff69fedf729b7e70b07bf121c9feed00c1ddc58)) +* fix tailwind class conflicts ([341d8ba](https://github.com/powerhouse-inc/document-model-electron/commit/341d8ba945fd1a20c6014fcb6e5ce77faf458b5f)) +* fixed addDriveOperations ([4c33a1f](https://github.com/powerhouse-inc/document-model-electron/commit/4c33a1f891eeba1b9845768fbc0395cb01dd9e70)) +* fixed base route ([606e919](https://github.com/powerhouse-inc/document-model-electron/commit/606e9191be0f32309e7a0a59e82dc49aa88690bb)) +* fixed default document-models ([0d51154](https://github.com/powerhouse-inc/document-model-electron/commit/0d511546e95a1d5a534f92b549d7120076792040)) +* fixed editors loading ([4fda671](https://github.com/powerhouse-inc/document-model-electron/commit/4fda67192ca075aa66079cbf769548e53e1a2ef3)) +* fixed file import ([23cd72d](https://github.com/powerhouse-inc/document-model-electron/commit/23cd72da07e8fa12bb6f5c739d392432057d6812)) +* fixed file operations error ([5d123af](https://github.com/powerhouse-inc/document-model-electron/commit/5d123af045f0409222bd61404b2249db2a4ec19d)) +* fixes browser key storage ([bfb2a72](https://github.com/powerhouse-inc/document-model-electron/commit/bfb2a725ec7fb4ec507751e52aa743879e39b428)) +* generate key pair on desktop ([ebc0204](https://github.com/powerhouse-inc/document-model-electron/commit/ebc020405e0b289aa4cfdf4935b2afcd53494a7f)) +* go back from fixed version ([41684c4](https://github.com/powerhouse-inc/document-model-electron/commit/41684c4f9cb55bef7f4e8bea46e7ab2eedc26b5c)) +* handle empty string or wrong formatted string in env var ([0099615](https://github.com/powerhouse-inc/document-model-electron/commit/009961513edaba39ad8fb4daacd6dd702a9fedd8)) +* handle null parent folder ([21f9370](https://github.com/powerhouse-inc/document-model-electron/commit/21f93703b08e39c6c97312a232a609a53dacf1c0)) +* handle sync events on node document drive ([3855ce4](https://github.com/powerhouse-inc/document-model-electron/commit/3855ce42a72865ed48e7729d25ec1481e462851d)) +* handle undefined whitelist ([1672fa8](https://github.com/powerhouse-inc/document-model-electron/commit/1672fa86ab863d8d2fc88604a775f524f7b86614)) +* hide searchbar from config ([0bd4444](https://github.com/powerhouse-inc/document-model-electron/commit/0bd4444fca256b28bf413122a870f343963dc801)) +* ignore drives with error ([25a27d5](https://github.com/powerhouse-inc/document-model-electron/commit/25a27d51fed340a22530d5d13e784bf5f9f66fab)) +* ignore operation hashes when importing zip ([634bcd5](https://github.com/powerhouse-inc/document-model-electron/commit/634bcd5cd534d22db9813cc17be28359d94a1e61)) +* ignores document drive result when adding an operation from the editor ([74140e2](https://github.com/powerhouse-inc/document-model-electron/commit/74140e2400ea1c1b5bb9baf5f7b26ed7cbb2a9cb)) +* implemented rename and new folder actions ([45dbf5e](https://github.com/powerhouse-inc/document-model-electron/commit/45dbf5e527841f1107f9d444ac2b76f0dc6fa7c0)) +* import styles from design system ([f7ac8ad](https://github.com/powerhouse-inc/document-model-electron/commit/f7ac8adc2608e8d491618e01b1c98be9f8c43fe2)) +* improved url handling ([32b3dcd](https://github.com/powerhouse-inc/document-model-electron/commit/32b3dcd943518cba4f1f5a82f9dbb5b906096500)) +* install ts-reset ([228b082](https://github.com/powerhouse-inc/document-model-electron/commit/228b082e36b1e689b47d7ed923dfe3347e74ad7d)) +* install vite ([aa66a01](https://github.com/powerhouse-inc/document-model-electron/commit/aa66a01bc96f33984e9d6828fdd93d374916c2c4)) +* lighthouse recomendations ([dd3e594](https://github.com/powerhouse-inc/document-model-electron/commit/dd3e594c198ab2a9deb83420ed8bfb145475ec71)) +* load default drive ([589653f](https://github.com/powerhouse-inc/document-model-electron/commit/589653fab02bc030fbc4a99bea6ed6f4566fd57c)) +* log sync error ([204c38a](https://github.com/powerhouse-inc/document-model-electron/commit/204c38a5f2763edc2006119b8608f6dc39f40dc9)) +* manually install design system ([1b7c676](https://github.com/powerhouse-inc/document-model-electron/commit/1b7c6767c67efed2da903976a62a0bbbaf8a64fe)) +* move helpers ([e12240c](https://github.com/powerhouse-inc/document-model-electron/commit/e12240c40ca8368b9f99f0bdfa5d2881a9a71dc5)) +* move sync status invocation to hook ([dea3fa9](https://github.com/powerhouse-inc/document-model-electron/commit/dea3fa9f5fbcdf9cf355652bf32e2c434a366c13)) +* moved isAllowedToCreateDocuments to folderView ([8ef573b](https://github.com/powerhouse-inc/document-model-electron/commit/8ef573bafb079ebf5e32e6611c25d85225fe6190)) +* moved load initial data into a hook ([99c7417](https://github.com/powerhouse-inc/document-model-electron/commit/99c74175b899c9c1d3f7dbf27de174ebd053bdbf)) +* pass allow list credentials to components ([2fadac1](https://github.com/powerhouse-inc/document-model-electron/commit/2fadac18141430445138ec9446d46227cb69723a)) +* pass allow list props to components ([0df5de6](https://github.com/powerhouse-inc/document-model-electron/commit/0df5de6a1062538cfaee7dcd045abb53b5481106)) +* port config files to ts ([f78e7f5](https://github.com/powerhouse-inc/document-model-electron/commit/f78e7f5444a47d637cc6681dd25917524b03b659)) +* re-enable onErrorCallback with new operations error prop ([a408630](https://github.com/powerhouse-inc/document-model-electron/commit/a408630ee77596a83f2c3ee26a17d44447537647)) +* re-generate package-lock.json ([e48ac3d](https://github.com/powerhouse-inc/document-model-electron/commit/e48ac3dd16d25901565eaed94e4e82b4283f7287)) +* re-implemented copy/move nodes with new DocumentDrive ([c4fad11](https://github.com/powerhouse-inc/document-model-electron/commit/c4fad117827b929d69dd73824d46ef33f767c57f)) +* re-use decodedDriveID ([bb11105](https://github.com/powerhouse-inc/document-model-electron/commit/bb111052681fd6fb73671ad026b16a22c03ec139)) +* readd prepare script ([ad4577e](https://github.com/powerhouse-inc/document-model-electron/commit/ad4577ee92a812a4227e03f2923cbb5b5ca0efdc)) +* refresh UI when there are drive changes ([fca3c95](https://github.com/powerhouse-inc/document-model-electron/commit/fca3c9576679e1bdcb8cf017cad3e885cd245fdf)) +* regenerate lock ([0269b0b](https://github.com/powerhouse-inc/document-model-electron/commit/0269b0b47945bc6d53928ec975f3b0c4557706a9)) +* regenerate lockfile ([efa2f7f](https://github.com/powerhouse-inc/document-model-electron/commit/efa2f7f380e1e558b82a616f8d1ef1cda021371e)) +* regenerate lockfile ([c8aac44](https://github.com/powerhouse-inc/document-model-electron/commit/c8aac44f8cb0184962e5567ea3252e14cc686cce)) +* reinstall with npm ([f790b6c](https://github.com/powerhouse-inc/document-model-electron/commit/f790b6c8611e000b123723c014ef35c1ee9aa55b)) +* remove check ([1db971c](https://github.com/powerhouse-inc/document-model-electron/commit/1db971cf324e2ca0e92c8f9b01614f7ef64f3d6a)) +* remove csp ([b940c38](https://github.com/powerhouse-inc/document-model-electron/commit/b940c3849bb1f804c6d2d8ca7e2bced61be81a95)) +* remove default node logic ([217d6e5](https://github.com/powerhouse-inc/document-model-electron/commit/217d6e5ac54033bda7bd36473712e048fe775623)) +* remove hello from content ([decd9c4](https://github.com/powerhouse-inc/document-model-electron/commit/decd9c4a9dbce3d9ecacbee06ad91d5959b86f84)) +* remove old tailwind classes ([10a8b95](https://github.com/powerhouse-inc/document-model-electron/commit/10a8b95edbcf212c17cb9011b13b32d2b924a767)) +* remove redundant config ([0c4d334](https://github.com/powerhouse-inc/document-model-electron/commit/0c4d334f3f75ccef7597470e1ce2a490b449eca8)) +* remove redundant use effect ([9bb2950](https://github.com/powerhouse-inc/document-model-electron/commit/9bb29508084badc11d535fab2ba241fe8021bc5f)) +* remove restriction to send operations ([dc620c5](https://github.com/powerhouse-inc/document-model-electron/commit/dc620c5fda0dd9adff480ee2ea3494b2b1698cc5)) +* remove scrollbar styles ([a9a3080](https://github.com/powerhouse-inc/document-model-electron/commit/a9a30803d3bf1cf91a82cc9bac6133c9bb335691)) +* removed debug code ([5f0c930](https://github.com/powerhouse-inc/document-model-electron/commit/5f0c930c3c2fb19dfbd46a957fda4655f8549a72)) +* removed electron-deeplink pkg and updated deep links ([5cec527](https://github.com/powerhouse-inc/document-model-electron/commit/5cec527acc442886f35261affa1619efd30e2212)) +* removed networkId from signer ([89c2a1c](https://github.com/powerhouse-inc/document-model-electron/commit/89c2a1c676170878b4cb307b073b53e28bb9e1f5)) +* removed queue timeout ([8b517b7](https://github.com/powerhouse-inc/document-model-electron/commit/8b517b78c1529abe5c7ee6e69d1990c56c4fbb6e)) +* removed re-renders and prevent add default drive being called twice ([3104848](https://github.com/powerhouse-inc/document-model-electron/commit/3104848107ff53daea46d36930be8ca9e3f522e6)) +* removed usehooks-ts dep ([05ca45e](https://github.com/powerhouse-inc/document-model-electron/commit/05ca45ef3227c50a7d44bfd7c8d8730a89d3c369)) +* rename document drive node when document model name is changed ([b9008f7](https://github.com/powerhouse-inc/document-model-electron/commit/b9008f7e08e340329e16c0743133a09d044cb1dd)) +* replaced env vars by client.config file ([28f7a2f](https://github.com/powerhouse-inc/document-model-electron/commit/28f7a2f5fbe97403f4ed317303f19c43b1cbf300)) +* replaced feature flags context by atomWithStorage ([071b7aa](https://github.com/powerhouse-inc/document-model-electron/commit/071b7aacb44792851b45946f41abecaaa99f5633)) +* replaced sidebar input header by connect logo ([a845dfd](https://github.com/powerhouse-inc/document-model-electron/commit/a845dfd14df5167e25fe5530ae03e9400bb36d45)) +* separate browser storage ([9ea89b8](https://github.com/powerhouse-inc/document-model-electron/commit/9ea89b80a5094eaa56a2d3b417a0e8fb05c0ae91)) +* separated error and conflict messages for drive status notification ([e80ccfe](https://github.com/powerhouse-inc/document-model-electron/commit/e80ccfeff3bf1e739af33c0da97f5258f5007e5a)) +* set queue timeout to 10ms ([6c87c92](https://github.com/powerhouse-inc/document-model-electron/commit/6c87c92e4e4ed2246c642f6575db1b31c6611b06)) +* show success sync toast only after recover from error sync ([5c2a47a](https://github.com/powerhouse-inc/document-model-electron/commit/5c2a47a2d0232e13d9fd6047bbe88c3faee6caa3)) +* simplify copy ([2cd60c3](https://github.com/powerhouse-inc/document-model-electron/commit/2cd60c3957685049fc6ff64beb094b409bbd4f32)) +* support add drive ([f827d33](https://github.com/powerhouse-inc/document-model-electron/commit/f827d338d4b6b49bde54f58ec6eb133756f3c765)) +* support multiple separate allow lists ([74d6152](https://github.com/powerhouse-inc/document-model-electron/commit/74d615236b6a75d0602476a826787e37a3ab263f)) +* switch to using vars from design system ([587c258](https://github.com/powerhouse-inc/document-model-electron/commit/587c258c1f47b8f5f1004252aec491d91b14eb5a)) +* trigger build ([e85bf95](https://github.com/powerhouse-inc/document-model-electron/commit/e85bf95f96ece3f59ead521fe39588630203900d)) +* update connect opengraph meta data ([32b3720](https://github.com/powerhouse-inc/document-model-electron/commit/32b372038f27d9a062ad78de6fde36a70cf2d6d8)) +* update deeplink protocol ([45d0a58](https://github.com/powerhouse-inc/document-model-electron/commit/45d0a58d266bcc369fcef7e0a1cc88c71757e1fc)) +* update dependencies and increase pull interval to 3 seconds ([66d8aea](https://github.com/powerhouse-inc/document-model-electron/commit/66d8aea256ccc6f742347db03bf06901b777bc74)) +* update deps ([3b6fa8d](https://github.com/powerhouse-inc/document-model-electron/commit/3b6fa8daeedec0549451490c9a7efec733ab2b75)) +* update document drive ([ff37742](https://github.com/powerhouse-inc/document-model-electron/commit/ff37742d857e9445a30a4122f12ec8585f5d129e)) +* update document drive dep ([ad31bf0](https://github.com/powerhouse-inc/document-model-electron/commit/ad31bf08d09650a9c335e18cf7153c7bd7667081)) +* update document drive dep ([5baaf20](https://github.com/powerhouse-inc/document-model-electron/commit/5baaf2006c71885132bbdabb59976acf5cde8ce2)) +* update document-drive ([534fa80](https://github.com/powerhouse-inc/document-model-electron/commit/534fa802984035735710d220f2496add04704b64)) +* update document-drive ver ([393388e](https://github.com/powerhouse-inc/document-model-electron/commit/393388e0a45f0275e5ab6824695d70b931891777)) +* update document-model and document-drive ver ([d66225a](https://github.com/powerhouse-inc/document-model-electron/commit/d66225aefa67ed761e8c5a1f36b62685666f7d84)) +* update document-model and document-drive versions ([8d1f869](https://github.com/powerhouse-inc/document-model-electron/commit/8d1f8691bf1511aca38f96a1ca7488e9d6104af2)) +* update document-model dep ([c865770](https://github.com/powerhouse-inc/document-model-electron/commit/c8657706b488631cf5955a6677ae5e4e1252bc9c)) +* update document-model document-drive and document-model-libs deps ([aee1dce](https://github.com/powerhouse-inc/document-model-electron/commit/aee1dce7f1c927ca24ac5283ab3d4d48ca85b7f6)) +* update document-model lib to v1.0.29 ([9190869](https://github.com/powerhouse-inc/document-model-electron/commit/9190869ddea006ce0cad8c3fa264d83535e16950)) +* update drive sync icon on syncStatus event ([ded596e](https://github.com/powerhouse-inc/document-model-electron/commit/ded596eb4761ce7003e285a0b283d45242b66444)) +* update editor when opened document is changed ([88e1cad](https://github.com/powerhouse-inc/document-model-electron/commit/88e1cad21d61cc9675f53a4a67e51e8712b22696)) +* update env var names ([42ba363](https://github.com/powerhouse-inc/document-model-electron/commit/42ba363359b08b076fdb7d39fa7df9b2c7d963ba)) +* update experimental deps ([12d28d6](https://github.com/powerhouse-inc/document-model-electron/commit/12d28d695a58dfc9bb2ff1e288b6ea4ef39f1267)) +* update lint config ([170b252](https://github.com/powerhouse-inc/document-model-electron/commit/170b252cd35fe786147f4e5306948eecf6a3990c)) +* update submit handler ([9cd1a10](https://github.com/powerhouse-inc/document-model-electron/commit/9cd1a10a0fee03bf4ddd2ace4f1a3796e1b4de30)) +* update to use new sync icons ([e1cbf1d](https://github.com/powerhouse-inc/document-model-electron/commit/e1cbf1d22de3159c247b3356577f2fdc519a51c5)) +* update url params logic ([6450975](https://github.com/powerhouse-inc/document-model-electron/commit/645097513096fa26327e60ea510d2e4bd628a870)) +* updated deps ([e41734f](https://github.com/powerhouse-inc/document-model-electron/commit/e41734f70b7b8acae90c167df5884820ee99c3c9)) +* updated deps ([a328cd9](https://github.com/powerhouse-inc/document-model-electron/commit/a328cd93ec131d36f61c45fda4863f315fb3a2cc)) +* updated design system dep ([b378a42](https://github.com/powerhouse-inc/document-model-electron/commit/b378a420bad20debc06aeeb376401ecb311889ce)) +* updated design-system alpha 119 ([b337897](https://github.com/powerhouse-inc/document-model-electron/commit/b3378976dd6f75b11b028734ad0e4dee09918b33)) +* updated document drive ([39f3218](https://github.com/powerhouse-inc/document-model-electron/commit/39f3218c6919b4fb72a5641733da60b8eeac69c2)) +* updated document drive ([4b588b0](https://github.com/powerhouse-inc/document-model-electron/commit/4b588b0f602debb6d069c3c4d580292b87a94337)) +* updated document drive ([b0df564](https://github.com/powerhouse-inc/document-model-electron/commit/b0df564c0952c60b3202c392e9fb1a23e401bea8)) +* updated document drive lib ([5f30983](https://github.com/powerhouse-inc/document-model-electron/commit/5f30983ab3f07462d842e3f464c0723d3f8785dd)) +* updated document-drive ([2a08adb](https://github.com/powerhouse-inc/document-model-electron/commit/2a08adb7fdd6a46af4c8d8ff31c946e043dbb016)) +* updated document-drive ver ([f7b9c7d](https://github.com/powerhouse-inc/document-model-electron/commit/f7b9c7df9d9b569b296d599998e3a500bfb8735c)) +* updated document-drive version ([a92dd24](https://github.com/powerhouse-inc/document-model-electron/commit/a92dd24c3ae638ff02587623a3d33af7fd89e2b6)) +* updated document-drive@1.0.0-experimental.2 ([c2b2816](https://github.com/powerhouse-inc/document-model-electron/commit/c2b2816cc7eea0346ea7d958b39f4b25796bb2a0)) +* updated document-drive@1.0.0-experimental.4 ([f31d12d](https://github.com/powerhouse-inc/document-model-electron/commit/f31d12d18404882a1f3af00f9bca6ab79d7a667e)) +* updated document-model dep ([f487cff](https://github.com/powerhouse-inc/document-model-electron/commit/f487cff99198d7cc3d8fd9db944ca394cc788dec)) +* updated document-model lib ([9db149e](https://github.com/powerhouse-inc/document-model-electron/commit/9db149ecc91926c02f2fe8479ca08958b66977d3)) +* updated document-model-libs ([b0bb1d2](https://github.com/powerhouse-inc/document-model-electron/commit/b0bb1d2ef530ecacc8f722322149866f8fbce03d)) +* updated document-model-libs and design-system ver ([d4ab8f8](https://github.com/powerhouse-inc/document-model-electron/commit/d4ab8f881d0e04d5bf68e0748205cf25fcce90e1)) +* updated libs ([adbadc1](https://github.com/powerhouse-inc/document-model-electron/commit/adbadc1d0b826acfc7e112d07d1c478496ac93cb)) +* updated package.lock ([3c334f4](https://github.com/powerhouse-inc/document-model-electron/commit/3c334f4f714ec6a63ce63bbc7f60d0e67f99b17b)) +* updated release script ([d5b4fd6](https://github.com/powerhouse-inc/document-model-electron/commit/d5b4fd60008696328dea4bf69b382ed8e1be527e)) +* updated rwa query ([3709cfc](https://github.com/powerhouse-inc/document-model-electron/commit/3709cfc9543851fe77f8a930d1e0806d552069d6)) +* use default values if there is a missing key for feature flags ([cdb728a](https://github.com/powerhouse-inc/document-model-electron/commit/cdb728a3964ca1183bd38743744a8bdf51e04fb6)) +* use drive icon ([c82bebb](https://github.com/powerhouse-inc/document-model-electron/commit/c82bebb00516c95b2f6f48102672bf70333f9477)) +* use memoized version of FileItem component ([8b0314b](https://github.com/powerhouse-inc/document-model-electron/commit/8b0314ba7ef8d538dc680d4a036b9c010a039273)) +* use memoryBrowser on packaged app ([2d11200](https://github.com/powerhouse-inc/document-model-electron/commit/2d11200a47c861429edd0ad5c6a4eb13b46a7363)) +* use new svgr syntax ([e1db3b9](https://github.com/powerhouse-inc/document-model-electron/commit/e1db3b95b5330f95893b5511df8041ed04d33fb7)) +* use not equal ([8e33089](https://github.com/powerhouse-inc/document-model-electron/commit/8e330890f658224bc1e37d6504765e3d01cc7ede)) +* use setTimeout as fallback for requestIdleCallback ([730c8f2](https://github.com/powerhouse-inc/document-model-electron/commit/730c8f292eec07908410f7f2949c045bab8094fe)) +* use tailwind styles ([53dc69f](https://github.com/powerhouse-inc/document-model-electron/commit/53dc69f69663b4d315c03b57a64b87b274e698cd)) +* use yarn ([812fe5a](https://github.com/powerhouse-inc/document-model-electron/commit/812fe5af48fdea5cb5955f6b8336604722476b44)) +* waits 50ms for new operations to make a single addOperations call ([d4c9796](https://github.com/powerhouse-inc/document-model-electron/commit/d4c97965cc9b83128f6be225a27a64c2f88795f3)) +* waits for document drive server to be loaded before checking default drive is added ([fc10ee8](https://github.com/powerhouse-inc/document-model-electron/commit/fc10ee8428d9d9c24c6cef38cd104ac5f79d759c)) + + +### Performance Improvements + +* decode id only one when getting readable item path ([9d0b5ad](https://github.com/powerhouse-inc/document-model-electron/commit/9d0b5ad785a7a7e1c174f3190f87c6ee26f30251)) +* implemented scalable way to compare drive state ([bb5fecb](https://github.com/powerhouse-inc/document-model-electron/commit/bb5fecb8e31385abc5697a4635c2dfb0823ba853)) + # [1.0.0-dev.9](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.8...v1.0.0-dev.9) (2024-06-18) diff --git a/package.json b/package.json index ea01aed7..dd8ab784 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@powerhousedao/connect", "productName": "Powerhouse-Connect", - "version": "1.0.0-dev.9", + "version": "1.0.0-next.1", "description": "Powerhouse Connect", "main": ".vite/build/main.js", "license": "AGPL-3.0-only", From 8f46c470d38897235a955574de9a1f05378b2d4a Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 19 Jun 2024 13:54:16 +0000 Subject: [PATCH 26/29] chore(release): set `package.json` to 1.0.0-dev.10 [skip ci] # [1.0.0-dev.10](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.9...v1.0.0-dev.10) (2024-06-19) ### Features * handle empty string as parent folder ([3260ccb](https://github.com/powerhouse-inc/document-model-electron/commit/3260ccbcd0b1b4b188a7881d8881fae604bbf8f3)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60620e25..da570bbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.0.0-dev.10](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.9...v1.0.0-dev.10) (2024-06-19) + + +### Features + +* handle empty string as parent folder ([3260ccb](https://github.com/powerhouse-inc/document-model-electron/commit/3260ccbcd0b1b4b188a7881d8881fae604bbf8f3)) + # [1.0.0-dev.9](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.8...v1.0.0-dev.9) (2024-06-18) diff --git a/package.json b/package.json index fe2cd57f..299391d0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@powerhousedao/connect", "productName": "Powerhouse-Connect", - "version": "1.0.0-dev.9", + "version": "1.0.0-dev.10", "description": "Powerhouse Connect", "main": ".vite/build/main.js", "license": "AGPL-3.0-only", From e9d7a4f40f16bc9a50d1191d04d4c0d3e8f54ad4 Mon Sep 17 00:00:00 2001 From: ryanwolhuter Date: Wed, 19 Jun 2024 16:31:23 +0200 Subject: [PATCH 27/29] feat: bump libs Signed-off-by: ryanwolhuter --- package-lock.json | 20 ++++++++++---------- package.json | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index eea4576d..1dc6da80 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,20 +1,20 @@ { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.8", + "version": "1.0.0-dev.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.8", + "version": "1.0.0-dev.10", "license": "AGPL-3.0-only", "dependencies": { - "@powerhousedao/design-system": "1.0.0-alpha.122", + "@powerhousedao/design-system": "1.0.0-alpha.124", "@sentry/react": "^7.109.0", "did-key-creator": "^1.2.0", "document-drive": "^1.0.0-alpha.73", "document-model": "1.5.0", - "document-model-libs": "^1.61.0", + "document-model-libs": "^1.62.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", @@ -4528,9 +4528,9 @@ } }, "node_modules/@powerhousedao/design-system": { - "version": "1.0.0-alpha.122", - "resolved": "https://registry.npmjs.org/@powerhousedao/design-system/-/design-system-1.0.0-alpha.122.tgz", - "integrity": "sha512-CrSUUDu3l+Pp14Uvof0WiReV8gSVqtTd5QXF4Z9KvbjnRu4g1X1NFpN6yvIgf7KFmUBILyHupAXKdczxJBESgg==", + "version": "1.0.0-alpha.124", + "resolved": "https://registry.npmjs.org/@powerhousedao/design-system/-/design-system-1.0.0-alpha.124.tgz", + "integrity": "sha512-nLb6hs61SB2HoUOpxIc/xke05wc2ngjkvOKDearu/a+X11WgYY/YKn66mraznaWLflxfC0AtNIr8LmA+Z+qY3w==", "dependencies": { "@internationalized/date": "^3.5.1", "@radix-ui/react-dialog": "^1.0.5", @@ -11568,9 +11568,9 @@ } }, "node_modules/document-model-libs": { - "version": "1.61.0", - "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.61.0.tgz", - "integrity": "sha512-BbsojrCxm5ECbaCwA9L2R8B8SwQ9dPPT3rpfE/qMorSWh/aI7zSJuG3jNiXkTux+rHcFhnSJ8LOXUbYEsK0hhw==", + "version": "1.62.0", + "resolved": "https://registry.npmjs.org/document-model-libs/-/document-model-libs-1.62.0.tgz", + "integrity": "sha512-65iu7RjxjcRzXPC2NskkAA4IMJX6IE4cIU1D6JGjH3UylpJ/aWRY2DvnxkYhQf4mozfjDHN68fJmIlHCBYwblA==", "dependencies": { "@acaldas/graphql-codegen-typescript-validation-schema": "^0.12.3", "@graphql-codegen/core": "^4.0.2", diff --git a/package.json b/package.json index 299391d0..19bf635e 100644 --- a/package.json +++ b/package.json @@ -93,12 +93,12 @@ "xvfb-maybe": "^0.2.1" }, "dependencies": { - "@powerhousedao/design-system": "1.0.0-alpha.122", + "@powerhousedao/design-system": "1.0.0-alpha.124", "@sentry/react": "^7.109.0", "did-key-creator": "^1.2.0", "document-drive": "^1.0.0-alpha.73", "document-model": "1.5.0", - "document-model-libs": "^1.61.0", + "document-model-libs": "^1.62.0", "electron-is-dev": "^3.0.1", "electron-squirrel-startup": "^1.0.0", "electron-store": "^8.1.0", From ad4d8ab48aad1f432c9ba1980793bbf52e9fb0ff Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 19 Jun 2024 14:41:08 +0000 Subject: [PATCH 28/29] chore(release): set `package.json` to 1.0.0-dev.11 [skip ci] # [1.0.0-dev.11](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.10...v1.0.0-dev.11) (2024-06-19) ### Features * bump libs ([e9d7a4f](https://github.com/powerhouse-inc/document-model-electron/commit/e9d7a4f40f16bc9a50d1191d04d4c0d3e8f54ad4)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da570bbb..925f2efe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [1.0.0-dev.11](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.10...v1.0.0-dev.11) (2024-06-19) + + +### Features + +* bump libs ([e9d7a4f](https://github.com/powerhouse-inc/document-model-electron/commit/e9d7a4f40f16bc9a50d1191d04d4c0d3e8f54ad4)) + # [1.0.0-dev.10](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.9...v1.0.0-dev.10) (2024-06-19) diff --git a/package.json b/package.json index 19bf635e..f147b050 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@powerhousedao/connect", "productName": "Powerhouse-Connect", - "version": "1.0.0-dev.10", + "version": "1.0.0-dev.11", "description": "Powerhouse Connect", "main": ".vite/build/main.js", "license": "AGPL-3.0-only", From 7cb38283185369bc6abf231c899d34c971bc5ec4 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 20 Jun 2024 10:52:21 +0200 Subject: [PATCH 29/29] chore: bump document drive --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1dc6da80..2909ba81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,18 @@ { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.10", + "version": "1.0.0-dev.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@powerhousedao/connect", - "version": "1.0.0-dev.10", + "version": "1.0.0-dev.11", "license": "AGPL-3.0-only", "dependencies": { "@powerhousedao/design-system": "1.0.0-alpha.124", "@sentry/react": "^7.109.0", "did-key-creator": "^1.2.0", - "document-drive": "^1.0.0-alpha.73", + "document-drive": "1.0.0-alpha.78", "document-model": "1.5.0", "document-model-libs": "^1.62.0", "electron-is-dev": "^3.0.1", @@ -11529,9 +11529,9 @@ } }, "node_modules/document-drive": { - "version": "1.0.0-alpha.73", - "resolved": "https://registry.npmjs.org/document-drive/-/document-drive-1.0.0-alpha.73.tgz", - "integrity": "sha512-prvJoWsECjgw/DTZrUCcPQDKGd4I2TPVI6NuKLiDdc3L090oZ8vk23qIR8DZYmmRiJTozkdHROzcetAhs1ilow==", + "version": "1.0.0-alpha.78", + "resolved": "https://registry.npmjs.org/document-drive/-/document-drive-1.0.0-alpha.78.tgz", + "integrity": "sha512-gXut9DFcO/YVEN1IYreKdf46irt69q5u34gdf51SAblhrxm7V6aJftILOdEBSQZz9ek+QOYf9MBoruJqbqpreg==", "dependencies": { "exponential-backoff": "^3.1.1", "graphql": "^16.8.1", diff --git a/package.json b/package.json index f147b050..2129f173 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,7 @@ "@powerhousedao/design-system": "1.0.0-alpha.124", "@sentry/react": "^7.109.0", "did-key-creator": "^1.2.0", - "document-drive": "^1.0.0-alpha.73", + "document-drive": "1.0.0-alpha.78", "document-model": "1.5.0", "document-model-libs": "^1.62.0", "electron-is-dev": "^3.0.1",