diff --git a/frontend/package.json b/frontend/package.json index bdca479db0..7c8cf146f1 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -47,12 +47,12 @@ "devDependencies": { "@penpot/draft-js": "workspace:./packages/draft-js", "@penpot/mousetrap": "workspace:./packages/mousetrap", - "@penpot/tokenscript": "workspace:./packages/tokenscript", "@penpot/plugins-runtime": "1.4.2", "@penpot/svgo": "penpot/svgo#v3.2", "@penpot/text-editor": "workspace:./text-editor", - "@playwright/test": "1.58.0", + "@penpot/tokenscript": "workspace:./packages/tokenscript", "@penpot/ui": "workspace:./packages/ui", + "@playwright/test": "1.58.0", "@storybook/addon-docs": "10.1.11", "@storybook/addon-themes": "10.1.11", "@storybook/addon-vitest": "10.1.11", @@ -103,6 +103,7 @@ "sass": "^1.89.0", "sass-embedded": "^1.89.0", "sax": "^1.4.1", + "scheduler": "^0.27.0", "source-map-support": "^0.5.21", "storybook": "10.1.11", "style-dictionary": "5.0.0-rc.1", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index 83e46d3ca9..d44c68149d 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -187,6 +187,9 @@ importers: sax: specifier: ^1.4.1 version: 1.4.4 + scheduler: + specifier: ^0.27.0 + version: 0.27.0 source-map-support: specifier: ^0.5.21 version: 0.5.21 diff --git a/plugins/angular.json b/plugins/angular.json index 4f6f8b0c1c..ff29b5b1cf 100644 --- a/plugins/angular.json +++ b/plugins/angular.json @@ -218,7 +218,10 @@ "build": { "builder": "@angular-devkit/build-angular:application", "options": { - "outputPath": "dist/apps/table-plugin", + "outputPath": { + "base": "dist/apps/table-plugin", + "browser": "" + }, "index": "apps/table-plugin/src/index.html", "browser": "apps/table-plugin/src/main.ts", "polyfills": ["zone.js"], @@ -226,6 +229,7 @@ "assets": [ "apps/table-plugin/src/_headers", "apps/table-plugin/src/favicon.ico", + "apps/table-plugin/src/manifest.json", "apps/table-plugin/src/assets" ], "styles": [ diff --git a/plugins/apps/table-plugin/package.json b/plugins/apps/table-plugin/package.json index 4caf0b36f5..3be95de7d9 100644 --- a/plugins/apps/table-plugin/package.json +++ b/plugins/apps/table-plugin/package.json @@ -6,6 +6,7 @@ "scripts": { "build": "ng build table-plugin", "build:dev": "ng build table-plugin --configuration development", + "watch": "ng build table-plugin --configuration development --watch", "serve": "ng serve table-plugin", "lint": "eslint .", "test": "vitest" diff --git a/plugins/apps/table-plugin/src/app/app.config.ts b/plugins/apps/table-plugin/src/app/app.config.ts index ed404941f7..8906e08a6d 100644 --- a/plugins/apps/table-plugin/src/app/app.config.ts +++ b/plugins/apps/table-plugin/src/app/app.config.ts @@ -1,7 +1,7 @@ import { ApplicationConfig } from '@angular/core'; -import { provideRouter } from '@angular/router'; +import { provideRouter, withHashLocation } from '@angular/router'; import { appRoutes } from './app.routes'; export const appConfig: ApplicationConfig = { - providers: [provideRouter(appRoutes)], + providers: [provideRouter(appRoutes, withHashLocation())], }; diff --git a/plugins/apps/table-plugin/src/index.html b/plugins/apps/table-plugin/src/index.html index 236a01d4cd..733094e78f 100644 --- a/plugins/apps/table-plugin/src/index.html +++ b/plugins/apps/table-plugin/src/index.html @@ -3,7 +3,6 @@ table-plugin - diff --git a/plugins/apps/table-plugin/src/assets/manifest.json b/plugins/apps/table-plugin/src/manifest.json similarity index 65% rename from plugins/apps/table-plugin/src/assets/manifest.json rename to plugins/apps/table-plugin/src/manifest.json index d6d9635a41..69866a7a3a 100644 --- a/plugins/apps/table-plugin/src/assets/manifest.json +++ b/plugins/apps/table-plugin/src/manifest.json @@ -1,7 +1,8 @@ { "name": "Table plugin", "description": "Table plugin to import or create tables", - "code": "/assets/plugin.js", - "icon": "/assets/icon.png", + "version": 2, + "code": "assets/plugin.js", + "icon": "assets/icon.png", "permissions": ["content:read", "content:write"] } diff --git a/plugins/apps/table-plugin/vite.config.ts b/plugins/apps/table-plugin/vite.config.ts new file mode 100644 index 0000000000..079041a9d1 --- /dev/null +++ b/plugins/apps/table-plugin/vite.config.ts @@ -0,0 +1,6 @@ +/// +import { defineConfig } from 'vite'; + +export default defineConfig({ + root: "./" +});