diff --git a/mana/packages/mana-observable/.eslintrc.js b/mana/packages/mana-observable/.eslintrc.js deleted file mode 100644 index ffd7daa9..00000000 --- a/mana/packages/mana-observable/.eslintrc.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - extends: require.resolve('../../.eslintrc.js'), -}; diff --git a/mana/packages/mana-observable/.fatherrc.ts b/mana/packages/mana-observable/.fatherrc.ts deleted file mode 100644 index 43c22f2f..00000000 --- a/mana/packages/mana-observable/.fatherrc.ts +++ /dev/null @@ -1,9 +0,0 @@ -export default { - platform: 'browser', - esm: { - output: 'es', - }, - cjs: { - output: 'lib', - }, -}; diff --git a/mana/packages/mana-observable/CHANGELOG.md b/mana/packages/mana-observable/CHANGELOG.md deleted file mode 100644 index 9b36220c..00000000 --- a/mana/packages/mana-observable/CHANGELOG.md +++ /dev/null @@ -1,376 +0,0 @@ -# @difizen/mana-observable - -## 0.1.32 - -### Patch Changes - -- [#88](https://github.com/difizen/mana/pull/88) [`efec026`](https://github.com/difizen/mana/commit/efec02698841de45108da24897040b528d2c3ec2) Thanks [@sunshinesmilelk](https://github.com/sunshinesmilelk)! - feat: add onWillStart hook for ApplicationComponent - -- Updated dependencies [[`efec026`](https://github.com/difizen/mana/commit/efec02698841de45108da24897040b528d2c3ec2)]: - - @difizen/mana-common@0.1.32 - - @difizen/mana-syringe@0.1.32 - -## 0.1.31 - -### Patch Changes - -- [#79](https://github.com/difizen/mana/pull/79) [`0365365`](https://github.com/difizen/mana/commit/03653659a7400430493903e33f44dc2f048576df) Thanks [@lulusir](https://github.com/lulusir)! - fix: localStorage is not defined. - -- Updated dependencies [[`0365365`](https://github.com/difizen/mana/commit/03653659a7400430493903e33f44dc2f048576df)]: - - @difizen/mana-syringe@0.1.31 - - @difizen/mana-common@0.1.31 - -## 0.1.30 - -### Patch Changes - -- [#76](https://github.com/difizen/mana/pull/76) [`14ea61a`](https://github.com/difizen/mana/commit/14ea61ac7ecc717b3091687b9ea4ac0aaf1e6ecf) Thanks [@BroKun](https://github.com/BroKun)! - Use a consistent version. - -- [#78](https://github.com/difizen/mana/pull/78) [`92f3efc`](https://github.com/difizen/mana/commit/92f3efcc9852ff7230d9e029e25fdacd9d529d55) Thanks [@sunshinesmilelk](https://github.com/sunshinesmilelk)! - fix text color for some components - -- Updated dependencies [[`14ea61a`](https://github.com/difizen/mana/commit/14ea61ac7ecc717b3091687b9ea4ac0aaf1e6ecf), [`92f3efc`](https://github.com/difizen/mana/commit/92f3efcc9852ff7230d9e029e25fdacd9d529d55)]: - - @difizen/mana-syringe@0.1.30 - - @difizen/mana-common@0.1.30 - -## 0.1.28 - -### Patch Changes - -- [#71](https://github.com/difizen/mana/pull/71) [`24b70a0`](https://github.com/difizen/mana/commit/24b70a036be7f4d85548db720ea5859b5a3e5b41) Thanks [@BroKun](https://github.com/BroKun)! - [syringe] Developing multi-instance data structures becomes easier with auto factory. - -- Updated dependencies [[`24b70a0`](https://github.com/difizen/mana/commit/24b70a036be7f4d85548db720ea5859b5a3e5b41)]: - - @difizen/mana-syringe@0.1.28 - - @difizen/mana-common@0.1.28 - -## 0.1.27 - -### Patch Changes - -- [#62](https://github.com/difizen/mana/pull/62) [`812915f`](https://github.com/difizen/mana/commit/812915f4681c44982cefa5800d6f11ec27a81a20) Thanks [@sunshinesmilelk](https://github.com/sunshinesmilelk)! - fix(umi-plugin): update mana runtime plugin dir name - -- Updated dependencies [[`812915f`](https://github.com/difizen/mana/commit/812915f4681c44982cefa5800d6f11ec27a81a20)]: - - @difizen/mana-common@0.1.27 - - @difizen/mana-syringe@0.1.27 - -## 0.1.26 - -### Patch Changes - -- [#60](https://github.com/difizen/mana/pull/60) [`a23732f`](https://github.com/difizen/mana/commit/a23732f365a76f719ac59f2c87de3920f70b1dd7) Thanks [@zhanba](https://github.com/zhanba)! - fix: support query parse in uri - -- Updated dependencies [[`a23732f`](https://github.com/difizen/mana/commit/a23732f365a76f719ac59f2c87de3920f70b1dd7)]: - - @difizen/mana-common@0.1.26 - - @difizen/mana-syringe@0.1.26 - -## 0.1.25 - -### Patch Changes - -- [#58](https://github.com/difizen/mana/pull/58) [`df976cb`](https://github.com/difizen/mana/commit/df976cba6bcf49b979dc001ffe68b4e0953522ff) Thanks [@BroKun](https://github.com/BroKun)! - Theme support empty prefix - -- Updated dependencies [[`df976cb`](https://github.com/difizen/mana/commit/df976cba6bcf49b979dc001ffe68b4e0953522ff)]: - - @difizen/mana-syringe@0.1.25 - - @difizen/mana-common@0.1.25 - -## 0.1.24 - -### Patch Changes - -- [#56](https://github.com/difizen/mana/pull/56) [`02f92a6`](https://github.com/difizen/mana/commit/02f92a6da23fc653e52c0192c3547ed956a44a22) Thanks [@BroKun](https://github.com/BroKun)! - Support custom css variable prefix - -- Updated dependencies [[`02f92a6`](https://github.com/difizen/mana/commit/02f92a6da23fc653e52c0192c3547ed956a44a22)]: - - @difizen/mana-syringe@0.1.24 - - @difizen/mana-common@0.1.24 - -## 0.1.23 - -### Patch Changes - -- [#53](https://github.com/difizen/mana/pull/53) [`c76098a`](https://github.com/difizen/mana/commit/c76098abd7eeae0ea7885d00402a47e15197e2a0) Thanks [@BroKun](https://github.com/BroKun)! - Fix slot view initialization in some cases. - -- [#53](https://github.com/difizen/mana/pull/53) [`c24e597`](https://github.com/difizen/mana/commit/c24e5974abd064d3af1d27f321745daa48183a74) Thanks [@BroKun](https://github.com/BroKun)! - Export color protocol. - -- [#53](https://github.com/difizen/mana/pull/53) [`8174a13`](https://github.com/difizen/mana/commit/8174a1355b9aca974d7ba68fc6087aef923b757c) Thanks [@BroKun](https://github.com/BroKun)! - Always serialize when storing. - -- [#53](https://github.com/difizen/mana/pull/53) [`06bdadd`](https://github.com/difizen/mana/commit/06bdadd00e143151c0b25f63354dab3579d5ee1f) Thanks [@BroKun](https://github.com/BroKun)! - Use modal service api without full modal item - -- Updated dependencies [[`c76098a`](https://github.com/difizen/mana/commit/c76098abd7eeae0ea7885d00402a47e15197e2a0), [`c24e597`](https://github.com/difizen/mana/commit/c24e5974abd064d3af1d27f321745daa48183a74), [`8174a13`](https://github.com/difizen/mana/commit/8174a1355b9aca974d7ba68fc6087aef923b757c), [`06bdadd`](https://github.com/difizen/mana/commit/06bdadd00e143151c0b25f63354dab3579d5ee1f)]: - - @difizen/mana-syringe@0.1.23 - - @difizen/mana-common@0.1.23 - -## 0.1.22 - -### Patch Changes - -- ec0b517: Fix core module compatibility -- Updated dependencies [ec0b517] - - @difizen/mana-syringe@0.1.22 - - @difizen/mana-common@0.1.22 - -## 0.1.21 - -### Patch Changes - -- 007af7f: Dark mode support for menu. -- 32133c3: Add notification feature. -- Updated dependencies [007af7f] -- Updated dependencies [32133c3] - - @difizen/mana-syringe@0.1.21 - - @difizen/mana-common@0.1.21 - -## 0.1.20 - -### Patch Changes - -- 690a2aa: Added umi plug-in, now you can use mana in umi project more easily. -- Updated dependencies [690a2aa] - - @difizen/mana-syringe@0.1.20 - - @difizen/mana-common@0.1.20 - -## 0.1.19 - -### Patch Changes - -- 43f310a: Remove global style css -- Updated dependencies [43f310a] - - @difizen/mana-syringe@0.1.19 - - @difizen/mana-common@0.1.19 - -## 0.1.18 - -### Patch Changes - -- 02ef50f: basic styles no longer affect global styles. -- Updated dependencies [02ef50f] - - @difizen/mana-syringe@0.1.18 - - @difizen/mana-common@0.1.18 - -## 0.1.17 - -### Patch Changes - -- 1acf757: feat: add onInitialized hooks for ApplicationComponent -- Updated dependencies [1acf757] - - @difizen/mana-common@0.1.17 - - @difizen/mana-syringe@0.1.17 - -## 0.1.16 - -### Patch Changes - -- 84f7cd8: No longer import font-awesome styles through less file. -- Updated dependencies [84f7cd8] - - @difizen/mana-syringe@0.1.16 - - @difizen/mana-common@0.1.16 - -## 0.1.15 - -### Patch Changes - -- 95eb30c: chore: add father config -- Updated dependencies [95eb30c] - - @difizen/mana-common@0.1.15 - - @difizen/mana-syringe@0.1.15 - -## 0.1.14 - -### Patch Changes - -- 1b880fe: fix: attributes in ContributionOptionConfig -- Updated dependencies [1b880fe] - - @difizen/mana-syringe@0.1.14 - - @difizen/mana-common@0.1.14 - -## 0.1.13 - -### Patch Changes - -- 76745bd: feat: add ContributionOptionConfig -- Updated dependencies [76745bd] - - @difizen/mana-syringe@0.1.13 - - @difizen/mana-common@0.1.13 - -## 0.1.12 - -### Patch Changes - -- 8eee617: chore: update the peerDependencies about react -- Updated dependencies [8eee617] - - @difizen/mana-common@0.1.12 - - @difizen/mana-syringe@0.1.12 - -## 0.1.11 - -### Patch Changes - -- 6fb1d96: mana-observable: Allows defining properties that should not be observed. -- 67e2969: Add mana-ui package -- c1cf9c7: Compatible with disposable-collection old API -- Updated dependencies [6fb1d96] -- Updated dependencies [67e2969] -- Updated dependencies [c1cf9c7] - - @difizen/mana-syringe@0.1.11 - - @difizen/mana-common@0.1.11 - -## 0.1.10 - -### Patch Changes - -- 9f85eb3: App: No longer use proxy to operate tree nodes to improve performance. -- 5c2f9f3: Workaround on Illegal invocation errors -- 1e70032: Fix: Object.prototype methods should not be called directly on the object -- 4cb40cf: Avoid adjacent dividing lines in menus. -- f090577: No longer proxies access to forzen objects -- 9fed876: Allow custom modal rendering logic. -- 395394b: Observable: Allows users to add custom exclusion rules for observable transformations -- 36bd4ee: Readonly & non-configurable property should return the actual value -- Updated dependencies [9f85eb3] -- Updated dependencies [5c2f9f3] -- Updated dependencies [1e70032] -- Updated dependencies [4cb40cf] -- Updated dependencies [f090577] -- Updated dependencies [9fed876] -- Updated dependencies [395394b] -- Updated dependencies [36bd4ee] - - @difizen/mana-syringe@0.1.10 - - @difizen/mana-common@0.1.10 - -## 0.1.9 - -### Patch Changes - -- b5ec5a9: Fix: Divider display between menu groups. -- 4d9bc01: 1. Once a menu is activated, clicking it again will no longer deactivate it. 2. Even with proxy objects, the original notifier can be found. -- 4722513: The file tree can be accessed contextually via the file tree menu -- Updated dependencies [b5ec5a9] -- Updated dependencies [4d9bc01] -- Updated dependencies [4722513] - - @difizen/mana-syringe@0.1.9 - - @difizen/mana-common@0.1.9 - -## 0.1.8 - -### Patch Changes - -- 9c87e44: 1. Once a menu is activated, clicking it again will no longer deactivate it. 2. Even with proxy objects, the original notifier can be found. -- Updated dependencies [9c87e44] - - @difizen/mana-syringe@0.1.8 - - @difizen/mana-common@0.1.8 - -## 0.1.7 - -### Patch Changes - -- 1650890: add simple mode for uri which not escape & unescape -- Updated dependencies [1650890] - - @difizen/mana-common@0.1.7 - - @difizen/mana-syringe@0.1.7 - -## 0.1.6 - -### Patch Changes - -- b6bac8e: add vscode uri and add parameters in parse function -- Updated dependencies [b6bac8e] - - @difizen/mana-common@0.1.6 - - @difizen/mana-syringe@0.1.6 - -## 0.1.5 - -### Patch Changes - -- 530df5c: Get notifier before observable transform. -- Updated dependencies [530df5c] - - @difizen/mana-common@0.1.5 - - @difizen/mana-syringe@0.1.5 - -## 0.1.4 - -### Patch Changes - -- d36870f: 1. Add slot related events. 2. Add implementation of basic stateful views. -- Updated dependencies [d36870f] - - @difizen/mana-common@0.1.4 - - @difizen/mana-syringe@0.1.4 - -## 0.1.3 - -### Patch Changes - -- Performance optimization of view rendering and issue fixing of file tree -- Updated dependencies - - @difizen/mana-common@0.1.3 - - @difizen/mana-syringe@0.1.3 - -## 0.1.2 - -### Patch Changes - -- 1. [observable] Do not track dom element object. -- Updated dependencies - - @difizen/mana-common@0.1.2 - - @difizen/mana-syringe@0.1.2 - -## 0.1.1 - -### Patch Changes - -- 1. [observable] Optimize the handling of frozen objects and some built-in types. - 2. [observable] Support pausing property change events. - 3. Support tab props & support multi-parameter method to handle menu status. -- Updated dependencies - - @difizen/mana-common@0.1.1 - - @difizen/mana-syringe@0.1.1 - -## 0.1.0 - -### Minor Changes - -- - [observable] remove `Reactable` and use `notifier` as message trigger. - - [observable] better event handling. - - [syringe] the syringe module now supports setting dependencies. - -### Patch Changes - -- c137209: 1. (core) add onActiveChange event in DefaultSlotView. 2. (observable) update - Notifier api & increased coverage. -- c9b0853: 1. The syringe module now supports setting dependencies. 2. Observable has - been refactored with fewer entities and better event handling. 3. Fixed some other - issues and improved code quality. -- 3f50036: Initial Version -- Updated dependencies -- Updated dependencies [c137209] -- Updated dependencies [c9b0853] -- Updated dependencies [3f50036] - - @difizen/mana-common@0.1.0 - - @difizen/mana-syringe@0.1.0 - -## 0.0.2-alpha.3 - -### Patch Changes - -- 1. (core) add onActiveChange event in DefaultSlotView. - 2. (observable) update Notifier api & increased coverage. -- Updated dependencies - - @difizen/mana-syringe@0.0.2-alpha.3 - - @difizen/mana-common@0.0.2-alpha.3 - -## 0.0.2-alpha.2 - -### Patch Changes - -- 1. The syringe module now supports setting dependencies. - 2. Observable has been refactored with fewer entities and better event handling. - 3. Fixed some other issues and improved code quality. -- Updated dependencies - - @difizen/mana-common@0.0.2-alpha.2 - - @difizen/mana-syringe@0.0.2-alpha.2 - -## 0.0.2-alpha.1 - -### Patch Changes - -- Initial Version -- Updated dependencies - - @difizen/mana-common@0.0.2-alpha.1 - - @difizen/mana-syringe@0.0.2-alpha.1 diff --git a/mana/packages/mana-observable/README.md b/mana/packages/mana-observable/README.md deleted file mode 100644 index da2b4b0f..00000000 --- a/mana/packages/mana-observable/README.md +++ /dev/null @@ -1 +0,0 @@ -# mana-observable diff --git a/mana/packages/mana-observable/babel.config.json b/mana/packages/mana-observable/babel.config.json deleted file mode 100644 index efd12242..00000000 --- a/mana/packages/mana-observable/babel.config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "presets": [ - "@babel/preset-env", - [ - "@babel/preset-react", - { - "runtime": "automatic" - } - ], - "@babel/preset-typescript" - ], - "plugins": [ - ["@babel/plugin-proposal-decorators", { "legacy": true }], - ["@babel/plugin-transform-flow-strip-types", { "allowDeclareFields": true }], - ["@babel/plugin-transform-private-methods", { "loose": true }], - ["@babel/plugin-transform-private-property-in-object", { "loose": true }], - ["@babel/plugin-transform-class-properties", { "loose": true }], - "babel-plugin-parameter-decorator" - ] -} diff --git a/mana/packages/mana-observable/jest.config.js b/mana/packages/mana-observable/jest.config.js deleted file mode 100644 index a129a34b..00000000 --- a/mana/packages/mana-observable/jest.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const configs = require('../../jest.config'); - -module.exports = configs; diff --git a/mana/packages/mana-observable/package.json b/mana/packages/mana-observable/package.json deleted file mode 100644 index d0e777bb..00000000 --- a/mana/packages/mana-observable/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@difizen/mana-observable", - "version": "0.1.32", - "description": "", - "keywords": [ - "mana", - "difizen", - "observable" - ], - "license": "MIT", - "exports": { - ".": { - "import": { - "typings": "./es/index.d.ts", - "default": "./es/index.js" - }, - "require": { - "typings": "./lib/index.d.ts", - "default": "./lib/index.js" - } - }, - "./package.json": "./package.json" - }, - "main": "lib/index.js", - "module": "es/index.js", - "typings": "lib/index.d.ts", - "files": [ - "lib", - "es", - "src" - ], - "scripts": { - "setup": "father build", - "build": "father build", - "test": ": Note: lint task is delegated to test:* scripts", - "test:jest": "jest", - "test:vitest": "vitest run", - "coverage": ": Note: lint task is delegated to coverage:* scripts", - "coverage:vitest": "vitest run --coverage", - "lint": ": Note: lint task is delegated to lint:* scripts", - "lint:eslint": "eslint src", - "lint:tsc": "tsc --noEmit" - }, - "dependencies": { - "@difizen/mana-common": "^0.1.32", - "@difizen/mana-syringe": "^0.1.32", - "reflect-metadata": "^0.1.13" - }, - "peerDependencies": { - "react": ">=16.8.6" - }, - "devDependencies": { - "@types/react": "^18.2.0", - "@types/react-dom": "^18.2.0" - }, - "publishConfig": { - "access": "public" - } -} diff --git a/mana/packages/mana-observable/tsconfig.json b/mana/packages/mana-observable/tsconfig.json deleted file mode 100644 index c9da781c..00000000 --- a/mana/packages/mana-observable/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "rootDir": "./src", - "outDir": "es", - "declarationDir": "es" - }, - "types": ["jest"], - "exclude": ["node_modules"], - "include": ["src"] -} diff --git a/mana/packages/mana-syringe/.eslintrc.js b/mana/packages/mana-syringe/.eslintrc.js deleted file mode 100644 index 72b9803b..00000000 --- a/mana/packages/mana-syringe/.eslintrc.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = { - root: true, - extends: [require.resolve('../../.eslintrc.js')], - rules: { - '@typescript-eslint/no-namespace': 'off', - '@typescript-eslint/no-redeclare': 'off', - }, -}; diff --git a/mana/packages/mana-syringe/.fatherrc.ts b/mana/packages/mana-syringe/.fatherrc.ts deleted file mode 100644 index 43c22f2f..00000000 --- a/mana/packages/mana-syringe/.fatherrc.ts +++ /dev/null @@ -1,9 +0,0 @@ -export default { - platform: 'browser', - esm: { - output: 'es', - }, - cjs: { - output: 'lib', - }, -}; diff --git a/mana/packages/mana-syringe/CHANGELOG.md b/mana/packages/mana-syringe/CHANGELOG.md deleted file mode 100644 index 4d1a41d6..00000000 --- a/mana/packages/mana-syringe/CHANGELOG.md +++ /dev/null @@ -1,341 +0,0 @@ -# @difizen/mana-syringe - -## 0.1.32 - -### Patch Changes - -- [#88](https://github.com/difizen/mana/pull/88) [`efec026`](https://github.com/difizen/mana/commit/efec02698841de45108da24897040b528d2c3ec2) Thanks [@sunshinesmilelk](https://github.com/sunshinesmilelk)! - feat: add onWillStart hook for ApplicationComponent - -- Updated dependencies [[`efec026`](https://github.com/difizen/mana/commit/efec02698841de45108da24897040b528d2c3ec2)]: - - @difizen/mana-common@0.1.32 - -## 0.1.31 - -### Patch Changes - -- [#79](https://github.com/difizen/mana/pull/79) [`0365365`](https://github.com/difizen/mana/commit/03653659a7400430493903e33f44dc2f048576df) Thanks [@lulusir](https://github.com/lulusir)! - fix: localStorage is not defined. - -- Updated dependencies [[`0365365`](https://github.com/difizen/mana/commit/03653659a7400430493903e33f44dc2f048576df)]: - - @difizen/mana-common@0.1.31 - -## 0.1.30 - -### Patch Changes - -- [#76](https://github.com/difizen/mana/pull/76) [`14ea61a`](https://github.com/difizen/mana/commit/14ea61ac7ecc717b3091687b9ea4ac0aaf1e6ecf) Thanks [@BroKun](https://github.com/BroKun)! - Use a consistent version. - -- [#78](https://github.com/difizen/mana/pull/78) [`92f3efc`](https://github.com/difizen/mana/commit/92f3efcc9852ff7230d9e029e25fdacd9d529d55) Thanks [@sunshinesmilelk](https://github.com/sunshinesmilelk)! - fix text color for some components - -- Updated dependencies [[`14ea61a`](https://github.com/difizen/mana/commit/14ea61ac7ecc717b3091687b9ea4ac0aaf1e6ecf), [`92f3efc`](https://github.com/difizen/mana/commit/92f3efcc9852ff7230d9e029e25fdacd9d529d55)]: - - @difizen/mana-common@0.1.30 - -## 0.1.28 - -### Patch Changes - -- [#71](https://github.com/difizen/mana/pull/71) [`24b70a0`](https://github.com/difizen/mana/commit/24b70a036be7f4d85548db720ea5859b5a3e5b41) Thanks [@BroKun](https://github.com/BroKun)! - [syringe] Developing multi-instance data structures becomes easier with auto factory. - -- Updated dependencies [[`24b70a0`](https://github.com/difizen/mana/commit/24b70a036be7f4d85548db720ea5859b5a3e5b41)]: - - @difizen/mana-common@0.1.28 - -## 0.1.27 - -### Patch Changes - -- [#62](https://github.com/difizen/mana/pull/62) [`812915f`](https://github.com/difizen/mana/commit/812915f4681c44982cefa5800d6f11ec27a81a20) Thanks [@sunshinesmilelk](https://github.com/sunshinesmilelk)! - fix(umi-plugin): update mana runtime plugin dir name - -- Updated dependencies [[`812915f`](https://github.com/difizen/mana/commit/812915f4681c44982cefa5800d6f11ec27a81a20)]: - - @difizen/mana-common@0.1.27 - -## 0.1.26 - -### Patch Changes - -- [#60](https://github.com/difizen/mana/pull/60) [`a23732f`](https://github.com/difizen/mana/commit/a23732f365a76f719ac59f2c87de3920f70b1dd7) Thanks [@zhanba](https://github.com/zhanba)! - fix: support query parse in uri - -- Updated dependencies [[`a23732f`](https://github.com/difizen/mana/commit/a23732f365a76f719ac59f2c87de3920f70b1dd7)]: - - @difizen/mana-common@0.1.26 - -## 0.1.25 - -### Patch Changes - -- [#58](https://github.com/difizen/mana/pull/58) [`df976cb`](https://github.com/difizen/mana/commit/df976cba6bcf49b979dc001ffe68b4e0953522ff) Thanks [@BroKun](https://github.com/BroKun)! - Theme support empty prefix - -- Updated dependencies [[`df976cb`](https://github.com/difizen/mana/commit/df976cba6bcf49b979dc001ffe68b4e0953522ff)]: - - @difizen/mana-common@0.1.25 - -## 0.1.24 - -### Patch Changes - -- [#56](https://github.com/difizen/mana/pull/56) [`02f92a6`](https://github.com/difizen/mana/commit/02f92a6da23fc653e52c0192c3547ed956a44a22) Thanks [@BroKun](https://github.com/BroKun)! - Support custom css variable prefix - -- Updated dependencies [[`02f92a6`](https://github.com/difizen/mana/commit/02f92a6da23fc653e52c0192c3547ed956a44a22)]: - - @difizen/mana-common@0.1.24 - -## 0.1.23 - -### Patch Changes - -- [#53](https://github.com/difizen/mana/pull/53) [`c76098a`](https://github.com/difizen/mana/commit/c76098abd7eeae0ea7885d00402a47e15197e2a0) Thanks [@BroKun](https://github.com/BroKun)! - Fix slot view initialization in some cases. - -- [#53](https://github.com/difizen/mana/pull/53) [`c24e597`](https://github.com/difizen/mana/commit/c24e5974abd064d3af1d27f321745daa48183a74) Thanks [@BroKun](https://github.com/BroKun)! - Export color protocol. - -- [#53](https://github.com/difizen/mana/pull/53) [`8174a13`](https://github.com/difizen/mana/commit/8174a1355b9aca974d7ba68fc6087aef923b757c) Thanks [@BroKun](https://github.com/BroKun)! - Always serialize when storing. - -- [#53](https://github.com/difizen/mana/pull/53) [`06bdadd`](https://github.com/difizen/mana/commit/06bdadd00e143151c0b25f63354dab3579d5ee1f) Thanks [@BroKun](https://github.com/BroKun)! - Use modal service api without full modal item - -- Updated dependencies [[`c76098a`](https://github.com/difizen/mana/commit/c76098abd7eeae0ea7885d00402a47e15197e2a0), [`c24e597`](https://github.com/difizen/mana/commit/c24e5974abd064d3af1d27f321745daa48183a74), [`8174a13`](https://github.com/difizen/mana/commit/8174a1355b9aca974d7ba68fc6087aef923b757c), [`06bdadd`](https://github.com/difizen/mana/commit/06bdadd00e143151c0b25f63354dab3579d5ee1f)]: - - @difizen/mana-common@0.1.23 - -## 0.1.22 - -### Patch Changes - -- ec0b517: Fix core module compatibility -- Updated dependencies [ec0b517] - - @difizen/mana-common@0.1.22 - -## 0.1.21 - -### Patch Changes - -- 007af7f: Dark mode support for menu. -- 32133c3: Add notification feature. -- Updated dependencies [007af7f] -- Updated dependencies [32133c3] - - @difizen/mana-common@0.1.21 - -## 0.1.20 - -### Patch Changes - -- 690a2aa: Added umi plug-in, now you can use mana in umi project more easily. -- Updated dependencies [690a2aa] - - @difizen/mana-common@0.1.20 - -## 0.1.19 - -### Patch Changes - -- 43f310a: Remove global style css -- Updated dependencies [43f310a] - - @difizen/mana-common@0.1.19 - -## 0.1.18 - -### Patch Changes - -- 02ef50f: basic styles no longer affect global styles. -- Updated dependencies [02ef50f] - - @difizen/mana-common@0.1.18 - -## 0.1.17 - -### Patch Changes - -- 1acf757: feat: add onInitialized hooks for ApplicationComponent -- Updated dependencies [1acf757] - - @difizen/mana-common@0.1.17 - -## 0.1.16 - -### Patch Changes - -- 84f7cd8: No longer import font-awesome styles through less file. -- Updated dependencies [84f7cd8] - - @difizen/mana-common@0.1.16 - -## 0.1.15 - -### Patch Changes - -- 95eb30c: chore: add father config -- Updated dependencies [95eb30c] - - @difizen/mana-common@0.1.15 - -## 0.1.14 - -### Patch Changes - -- 1b880fe: fix: attributes in ContributionOptionConfig -- Updated dependencies [1b880fe] - - @difizen/mana-common@0.1.14 - -## 0.1.13 - -### Patch Changes - -- 76745bd: feat: add ContributionOptionConfig -- Updated dependencies [76745bd] - - @difizen/mana-common@0.1.13 - -## 0.1.12 - -### Patch Changes - -- 8eee617: chore: update the peerDependencies about react -- Updated dependencies [8eee617] - - @difizen/mana-common@0.1.12 - -## 0.1.11 - -### Patch Changes - -- 6fb1d96: mana-observable: Allows defining properties that should not be observed. -- 67e2969: Add mana-ui package -- c1cf9c7: Compatible with disposable-collection old API -- Updated dependencies [6fb1d96] -- Updated dependencies [67e2969] -- Updated dependencies [c1cf9c7] - - @difizen/mana-common@0.1.11 - -## 0.1.10 - -### Patch Changes - -- 9f85eb3: App: No longer use proxy to operate tree nodes to improve performance. -- 5c2f9f3: Workaround on Illegal invocation errors -- 1e70032: Fix: Object.prototype methods should not be called directly on the object -- 4cb40cf: Avoid adjacent dividing lines in menus. -- f090577: No longer proxies access to forzen objects -- 9fed876: Allow custom modal rendering logic. -- 395394b: Observable: Allows users to add custom exclusion rules for observable transformations -- 36bd4ee: Readonly & non-configurable property should return the actual value -- Updated dependencies [9f85eb3] -- Updated dependencies [5c2f9f3] -- Updated dependencies [1e70032] -- Updated dependencies [4cb40cf] -- Updated dependencies [f090577] -- Updated dependencies [9fed876] -- Updated dependencies [395394b] -- Updated dependencies [36bd4ee] - - @difizen/mana-common@0.1.10 - -## 0.1.9 - -### Patch Changes - -- b5ec5a9: Fix: Divider display between menu groups. -- 4d9bc01: 1. Once a menu is activated, clicking it again will no longer deactivate it. 2. Even with proxy objects, the original notifier can be found. -- 4722513: The file tree can be accessed contextually via the file tree menu -- Updated dependencies [b5ec5a9] -- Updated dependencies [4d9bc01] -- Updated dependencies [4722513] - - @difizen/mana-common@0.1.9 - -## 0.1.8 - -### Patch Changes - -- 9c87e44: 1. Once a menu is activated, clicking it again will no longer deactivate it. 2. Even with proxy objects, the original notifier can be found. -- Updated dependencies [9c87e44] - - @difizen/mana-common@0.1.8 - -## 0.1.7 - -### Patch Changes - -- 1650890: add simple mode for uri which not escape & unescape -- Updated dependencies [1650890] - - @difizen/mana-common@0.1.7 - -## 0.1.6 - -### Patch Changes - -- b6bac8e: add vscode uri and add parameters in parse function -- Updated dependencies [b6bac8e] - - @difizen/mana-common@0.1.6 - -## 0.1.5 - -### Patch Changes - -- 530df5c: Get notifier before observable transform. -- Updated dependencies [530df5c] - - @difizen/mana-common@0.1.5 - -## 0.1.4 - -### Patch Changes - -- d36870f: 1. Add slot related events. 2. Add implementation of basic stateful views. -- Updated dependencies [d36870f] - - @difizen/mana-common@0.1.4 - -## 0.1.3 - -### Patch Changes - -- Performance optimization of view rendering and issue fixing of file tree -- Updated dependencies - - @difizen/mana-common@0.1.3 - -## 0.1.2 - -### Patch Changes - -- 1. [observable] Do not track dom element object. -- Updated dependencies - - @difizen/mana-common@0.1.2 - -## 0.1.1 - -### Patch Changes - -- 1. [observable] Optimize the handling of frozen objects and some built-in types. - 2. [observable] Support pausing property change events. - 3. Support tab props & support multi-parameter method to handle menu status. -- Updated dependencies - - @difizen/mana-common@0.1.1 - -## 0.1.0 - -### Minor Changes - -- - [observable] remove `Reactable` and use `notifier` as message trigger. - - [observable] better event handling. - - [syringe] the syringe module now supports setting dependencies. - -### Patch Changes - -- c137209: 1. (core) add onActiveChange event in DefaultSlotView. 2. (observable) update - Notifier api & increased coverage. -- c9b0853: 1. The syringe module now supports setting dependencies. 2. Observable has - been refactored with fewer entities and better event handling. 3. Fixed some other - issues and improved code quality. -- 3f50036: Initial Version -- Updated dependencies -- Updated dependencies [c137209] -- Updated dependencies [c9b0853] -- Updated dependencies [3f50036] - - @difizen/mana-common@0.1.0 - -## 0.0.2-alpha.3 - -### Patch Changes - -- 1. (core) add onActiveChange event in DefaultSlotView. - 2. (observable) update Notifier api & increased coverage. -- Updated dependencies - - @difizen/mana-common@0.0.2-alpha.3 - -## 0.0.2-alpha.2 - -### Patch Changes - -- 1. The syringe module now supports setting dependencies. - 2. Observable has been refactored with fewer entities and better event handling. - 3. Fixed some other issues and improved code quality. -- Updated dependencies - - @difizen/mana-common@0.0.2-alpha.2 - -## 0.0.2-alpha.1 - -### Patch Changes - -- Initial Version -- Updated dependencies - - @difizen/mana-common@0.0.2-alpha.1 diff --git a/mana/packages/mana-syringe/README.md b/mana/packages/mana-syringe/README.md deleted file mode 100644 index bd285bbb..00000000 --- a/mana/packages/mana-syringe/README.md +++ /dev/null @@ -1 +0,0 @@ -# mana-syringe diff --git a/mana/packages/mana-syringe/babel.config.json b/mana/packages/mana-syringe/babel.config.json deleted file mode 100644 index efd12242..00000000 --- a/mana/packages/mana-syringe/babel.config.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "presets": [ - "@babel/preset-env", - [ - "@babel/preset-react", - { - "runtime": "automatic" - } - ], - "@babel/preset-typescript" - ], - "plugins": [ - ["@babel/plugin-proposal-decorators", { "legacy": true }], - ["@babel/plugin-transform-flow-strip-types", { "allowDeclareFields": true }], - ["@babel/plugin-transform-private-methods", { "loose": true }], - ["@babel/plugin-transform-private-property-in-object", { "loose": true }], - ["@babel/plugin-transform-class-properties", { "loose": true }], - "babel-plugin-parameter-decorator" - ] -} diff --git a/mana/packages/mana-syringe/jest.config.js b/mana/packages/mana-syringe/jest.config.js deleted file mode 100644 index a129a34b..00000000 --- a/mana/packages/mana-syringe/jest.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const configs = require('../../jest.config'); - -module.exports = configs; diff --git a/mana/packages/mana-syringe/package.json b/mana/packages/mana-syringe/package.json deleted file mode 100644 index 94918560..00000000 --- a/mana/packages/mana-syringe/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "@difizen/mana-syringe", - "version": "0.1.32", - "description": "", - "keywords": [ - "mana", - "difizen", - "syringe", - "dependency injection" - ], - "license": "MIT", - "exports": { - ".": { - "import": { - "typings": "./es/index.d.ts", - "default": "./es/index.js" - }, - "require": { - "typings": "./lib/index.d.ts", - "default": "./lib/index.js" - } - }, - "./package.json": "./package.json" - }, - "main": "lib/index.js", - "module": "es/index.js", - "typings": "lib/index.d.ts", - "files": [ - "lib", - "es", - "src" - ], - "scripts": { - "setup": "father build", - "build": "father build", - "test": ": Note: lint task is delegated to test:* scripts", - "test:vitest": "vitest run", - "test:jest": "jest", - "coverage": ": Note: lint task is delegated to coverage:* scripts", - "coverage:vitest": "vitest run --coverage", - "coverage:jest": "jest --coverage", - "lint": ": Note: lint task is delegated to lint:* scripts", - "lint:eslint": "eslint src", - "lint:tsc": "tsc --noEmit" - }, - "dependencies": { - "@difizen/mana-common": "^0.1.32", - "inversify": "^5.1.1", - "reflect-metadata": "^0.1.13" - }, - "publishConfig": { - "access": "public" - } -} diff --git a/mana/packages/mana-syringe/tsconfig.json b/mana/packages/mana-syringe/tsconfig.json deleted file mode 100644 index c9da781c..00000000 --- a/mana/packages/mana-syringe/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "rootDir": "./src", - "outDir": "es", - "declarationDir": "es" - }, - "types": ["jest"], - "exclude": ["node_modules"], - "include": ["src"] -} diff --git a/packages/libro-common/package.json b/packages/libro-common/package.json index 5bb824d9..bffc909a 100644 --- a/packages/libro-common/package.json +++ b/packages/libro-common/package.json @@ -25,6 +25,14 @@ "typings": "./es/mana-l10n/index.js", "default": "./es/mana-l10n/index.js" }, + "./mana-syringe": { + "typings": "./es/mana-syringe/index.js", + "default": "./es/mana-syringe/index.js" + }, + "./mana-observable": { + "typings": "./es/mana-observable/index.js", + "default": "./es/mana-observable/index.js" + }, "./package.json": "./package.json" }, "main": "es/index.js", @@ -58,7 +66,9 @@ "rc-motion": "^2.9.2", "rc-notification": "^5.6.0", "rc-tabs": "^11.10.1", - "rc-util": "^4.21.1" + "rc-util": "^4.21.1", + "inversify": "^5.1.1", + "reflect-metadata": "^0.1.13" }, "devDependencies": { "@types/react": "^18.2.25", diff --git a/mana/packages/mana-observable/src/async-event.spec.tsx b/packages/libro-common/src/mana-observable/async-event.spec.tsx similarity index 96% rename from mana/packages/mana-observable/src/async-event.spec.tsx rename to packages/libro-common/src/mana-observable/async-event.spec.tsx index ff9f7a26..08bb67a2 100644 --- a/mana/packages/mana-observable/src/async-event.spec.tsx +++ b/packages/libro-common/src/mana-observable/async-event.spec.tsx @@ -1,6 +1,6 @@ import assert from 'assert'; -import { noop } from '@difizen/mana-common'; +import { noop } from '../mana-common/index.js'; import { AsyncEmitter, AsyncCallbackList } from './async-event'; diff --git a/mana/packages/mana-observable/src/async-event.ts b/packages/libro-common/src/mana-observable/async-event.ts similarity index 93% rename from mana/packages/mana-observable/src/async-event.ts rename to packages/libro-common/src/mana-observable/async-event.ts index 3cd88ba4..730e5a41 100644 --- a/mana/packages/mana-observable/src/async-event.ts +++ b/packages/libro-common/src/mana-observable/async-event.ts @@ -1,6 +1,6 @@ -import type { Disposable, Event } from '@difizen/mana-common'; -import { Emitter, noop } from '@difizen/mana-common'; -import { CallbackList } from '@difizen/mana-common'; +import type { Disposable, Event } from '../mana-common/index.js'; +import { Emitter, noop } from '../mana-common/index.js'; +import { CallbackList } from '../mana-common/index.js'; type Callback = (...args: any[]) => any; diff --git a/mana/packages/mana-observable/src/async.spec.tsx b/packages/libro-common/src/mana-observable/async.spec.tsx similarity index 100% rename from mana/packages/mana-observable/src/async.spec.tsx rename to packages/libro-common/src/mana-observable/async.spec.tsx diff --git a/mana/packages/mana-observable/src/config.spec.ts b/packages/libro-common/src/mana-observable/config.spec.ts similarity index 100% rename from mana/packages/mana-observable/src/config.spec.ts rename to packages/libro-common/src/mana-observable/config.spec.ts diff --git a/mana/packages/mana-observable/src/config.ts b/packages/libro-common/src/mana-observable/config.ts similarity index 100% rename from mana/packages/mana-observable/src/config.ts rename to packages/libro-common/src/mana-observable/config.ts diff --git a/mana/packages/mana-observable/src/context.spec.tsx b/packages/libro-common/src/mana-observable/context.spec.tsx similarity index 98% rename from mana/packages/mana-observable/src/context.spec.tsx rename to packages/libro-common/src/mana-observable/context.spec.tsx index 4915602d..ea3d9c85 100644 --- a/mana/packages/mana-observable/src/context.spec.tsx +++ b/packages/libro-common/src/mana-observable/context.spec.tsx @@ -2,12 +2,13 @@ import assert from 'assert'; -import { GlobalContainer, inject } from '@difizen/mana-syringe'; -import { singleton } from '@difizen/mana-syringe'; import type { ErrorInfo, ReactNode } from 'react'; import React from 'react'; import renderer, { act } from 'react-test-renderer'; +import { singleton } from '../mana-syringe/index.js'; +import { GlobalContainer, inject } from '../mana-syringe/index.js'; + import { defaultObservableContext, ObservableContext, diff --git a/mana/packages/mana-observable/src/context.tsx b/packages/libro-common/src/mana-observable/context.tsx similarity index 100% rename from mana/packages/mana-observable/src/context.tsx rename to packages/libro-common/src/mana-observable/context.tsx diff --git a/mana/packages/mana-observable/src/core.ts b/packages/libro-common/src/mana-observable/core.ts similarity index 92% rename from mana/packages/mana-observable/src/core.ts rename to packages/libro-common/src/mana-observable/core.ts index 891bfbb2..71c35a3d 100644 --- a/mana/packages/mana-observable/src/core.ts +++ b/packages/libro-common/src/mana-observable/core.ts @@ -1,4 +1,4 @@ -import type { Abstract, Newable } from '@difizen/mana-common'; +import type { Abstract, Newable } from '../mana-common/index.js'; /* eslint-disable @typescript-eslint/no-explicit-any */ export namespace ObservableSymbol { diff --git a/mana/packages/mana-observable/src/decorator.spec.ts b/packages/libro-common/src/mana-observable/decorator.spec.ts similarity index 100% rename from mana/packages/mana-observable/src/decorator.spec.ts rename to packages/libro-common/src/mana-observable/decorator.spec.ts diff --git a/mana/packages/mana-observable/src/decorator.ts b/packages/libro-common/src/mana-observable/decorator.ts similarity index 100% rename from mana/packages/mana-observable/src/decorator.ts rename to packages/libro-common/src/mana-observable/decorator.ts diff --git a/mana/packages/mana-observable/src/hooks.spec.tsx b/packages/libro-common/src/mana-observable/hooks.spec.tsx similarity index 100% rename from mana/packages/mana-observable/src/hooks.spec.tsx rename to packages/libro-common/src/mana-observable/hooks.spec.tsx diff --git a/mana/packages/mana-observable/src/hooks.ts b/packages/libro-common/src/mana-observable/hooks.ts similarity index 100% rename from mana/packages/mana-observable/src/hooks.ts rename to packages/libro-common/src/mana-observable/hooks.ts diff --git a/mana/packages/mana-observable/src/index.ts b/packages/libro-common/src/mana-observable/index.ts similarity index 100% rename from mana/packages/mana-observable/src/index.ts rename to packages/libro-common/src/mana-observable/index.ts diff --git a/mana/packages/mana-observable/src/notifiable.spec.ts b/packages/libro-common/src/mana-observable/notifiable.spec.ts similarity index 99% rename from mana/packages/mana-observable/src/notifiable.spec.ts rename to packages/libro-common/src/mana-observable/notifiable.spec.ts index 248c8d6c..546c59ad 100644 --- a/mana/packages/mana-observable/src/notifiable.spec.ts +++ b/packages/libro-common/src/mana-observable/notifiable.spec.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import assert from 'assert'; -import { isPlainObject } from '@difizen/mana-common'; +import { isPlainObject } from '../mana-common/index.js'; import { Notifiable, Notifier, Observability } from './index'; diff --git a/mana/packages/mana-observable/src/notifiable.ts b/packages/libro-common/src/mana-observable/notifiable.ts similarity index 99% rename from mana/packages/mana-observable/src/notifiable.ts rename to packages/libro-common/src/mana-observable/notifiable.ts index 6fc5cbd0..0f7a113c 100644 --- a/mana/packages/mana-observable/src/notifiable.ts +++ b/packages/libro-common/src/mana-observable/notifiable.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable prefer-spread */ -import { isPlainObject } from '@difizen/mana-common'; +import { isPlainObject } from '../mana-common/index.js'; import { ObservableSymbol } from './core'; import { Notifier } from './notifier'; diff --git a/mana/packages/mana-observable/src/notifier.spec.ts b/packages/libro-common/src/mana-observable/notifier.spec.ts similarity index 100% rename from mana/packages/mana-observable/src/notifier.spec.ts rename to packages/libro-common/src/mana-observable/notifier.spec.ts diff --git a/mana/packages/mana-observable/src/notifier.ts b/packages/libro-common/src/mana-observable/notifier.ts similarity index 96% rename from mana/packages/mana-observable/src/notifier.ts rename to packages/libro-common/src/mana-observable/notifier.ts index 90205f00..1f85183e 100644 --- a/mana/packages/mana-observable/src/notifier.ts +++ b/packages/libro-common/src/mana-observable/notifier.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import type { Disposable } from '@difizen/mana-common'; -import { Event } from '@difizen/mana-common'; +import type { Disposable } from '../mana-common/index.js'; +import { Event } from '../mana-common/index.js'; import { AsyncEmitter } from './async-event'; import { ObservableConfig } from './config'; diff --git a/mana/packages/mana-observable/src/observable.spec.ts b/packages/libro-common/src/mana-observable/observable.spec.ts similarity index 100% rename from mana/packages/mana-observable/src/observable.spec.ts rename to packages/libro-common/src/mana-observable/observable.spec.ts diff --git a/mana/packages/mana-observable/src/observable.ts b/packages/libro-common/src/mana-observable/observable.ts similarity index 100% rename from mana/packages/mana-observable/src/observable.ts rename to packages/libro-common/src/mana-observable/observable.ts diff --git a/mana/packages/mana-observable/src/tracker.spec.ts b/packages/libro-common/src/mana-observable/tracker.spec.ts similarity index 99% rename from mana/packages/mana-observable/src/tracker.spec.ts rename to packages/libro-common/src/mana-observable/tracker.spec.ts index 94177b31..2270d167 100644 --- a/mana/packages/mana-observable/src/tracker.spec.ts +++ b/packages/libro-common/src/mana-observable/tracker.spec.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import assert from 'assert'; -import { noop } from '@difizen/mana-common'; +import { noop } from '../mana-common/index.js'; import { prop, diff --git a/mana/packages/mana-observable/src/tracker.ts b/packages/libro-common/src/mana-observable/tracker.ts similarity index 98% rename from mana/packages/mana-observable/src/tracker.ts rename to packages/libro-common/src/mana-observable/tracker.ts index c07e1b2e..4f2d40ef 100644 --- a/mana/packages/mana-observable/src/tracker.ts +++ b/packages/libro-common/src/mana-observable/tracker.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import { getPropertyDescriptor, isPlainObject } from '@difizen/mana-common'; +import { getPropertyDescriptor, isPlainObject } from '../mana-common/index.js'; import { ObservableSymbol } from './core'; import { Notifiable } from './notifiable'; diff --git a/mana/packages/mana-observable/src/utils.spec.tsx b/packages/libro-common/src/mana-observable/utils.spec.tsx similarity index 98% rename from mana/packages/mana-observable/src/utils.spec.tsx rename to packages/libro-common/src/mana-observable/utils.spec.tsx index 305ee2a9..c287055f 100644 --- a/mana/packages/mana-observable/src/utils.spec.tsx +++ b/packages/libro-common/src/mana-observable/utils.spec.tsx @@ -1,6 +1,6 @@ import assert from 'assert'; -import { Disposable } from '@difizen/mana-common'; +import { Disposable } from '../mana-common/index.js'; import { equals, diff --git a/mana/packages/mana-observable/src/utils.ts b/packages/libro-common/src/mana-observable/utils.ts similarity index 96% rename from mana/packages/mana-observable/src/utils.ts rename to packages/libro-common/src/mana-observable/utils.ts index 581ae6e7..383a0a9c 100644 --- a/mana/packages/mana-observable/src/utils.ts +++ b/packages/libro-common/src/mana-observable/utils.ts @@ -1,6 +1,6 @@ import 'reflect-metadata'; -import type { Disposable } from '@difizen/mana-common'; -import { isPlainObject, getPropertyDescriptor } from '@difizen/mana-common'; +import type { Disposable } from '../mana-common/index.js'; +import { isPlainObject, getPropertyDescriptor } from '../mana-common/index.js'; import { ObservableConfig } from './config'; import type { Traceable } from './core'; diff --git a/mana/packages/mana-observable/src/watch.spec.ts b/packages/libro-common/src/mana-observable/watch.spec.ts similarity index 97% rename from mana/packages/mana-observable/src/watch.spec.ts rename to packages/libro-common/src/mana-observable/watch.spec.ts index 6da9d2ac..4e9d2e5a 100644 --- a/mana/packages/mana-observable/src/watch.spec.ts +++ b/packages/libro-common/src/mana-observable/watch.spec.ts @@ -1,6 +1,6 @@ import assert from 'assert'; -import { Disposable } from '@difizen/mana-common'; +import { Disposable } from '../mana-common/index.js'; import { watch, prop } from './index'; diff --git a/mana/packages/mana-observable/src/watch.ts b/packages/libro-common/src/mana-observable/watch.ts similarity index 96% rename from mana/packages/mana-observable/src/watch.ts rename to packages/libro-common/src/mana-observable/watch.ts index ecbcb07e..bf972e17 100644 --- a/mana/packages/mana-observable/src/watch.ts +++ b/packages/libro-common/src/mana-observable/watch.ts @@ -1,4 +1,4 @@ -import { Disposable, Event } from '@difizen/mana-common'; +import { Disposable, Event } from '../mana-common/index.js'; import type { Notify } from './core'; import { Notifier } from './notifier'; diff --git a/mana/packages/mana-syringe/src/container-api.ts b/packages/libro-common/src/mana-syringe/container-api.ts similarity index 100% rename from mana/packages/mana-syringe/src/container-api.ts rename to packages/libro-common/src/mana-syringe/container-api.ts diff --git a/mana/packages/mana-syringe/src/container.spec.ts b/packages/libro-common/src/mana-syringe/container.spec.ts similarity index 100% rename from mana/packages/mana-syringe/src/container.spec.ts rename to packages/libro-common/src/mana-syringe/container.spec.ts diff --git a/mana/packages/mana-syringe/src/container.ts b/packages/libro-common/src/mana-syringe/container.ts similarity index 97% rename from mana/packages/mana-syringe/src/container.ts rename to packages/libro-common/src/mana-syringe/container.ts index 8d5a167b..6731c53c 100644 --- a/mana/packages/mana-syringe/src/container.ts +++ b/packages/libro-common/src/mana-syringe/container.ts @@ -1,8 +1,9 @@ -import type { Disposable } from '@difizen/mana-common'; -import { DisposableCollection, Emitter } from '@difizen/mana-common'; import type { interfaces } from 'inversify'; import { Container as InversifyContainer } from 'inversify'; +import type { Disposable } from '../mana-common/index.js'; +import { DisposableCollection, Emitter } from '../mana-common/index.js'; + import { ContainerAPI } from './container-api'; import { Syringe } from './core'; import { Utils } from './core'; diff --git a/mana/packages/mana-syringe/src/contribution/contribution-protocol.ts b/packages/libro-common/src/mana-syringe/contribution/contribution-protocol.ts similarity index 90% rename from mana/packages/mana-syringe/src/contribution/contribution-protocol.ts rename to packages/libro-common/src/mana-syringe/contribution/contribution-protocol.ts index 036378ef..9eadc931 100644 --- a/mana/packages/mana-syringe/src/contribution/contribution-protocol.ts +++ b/packages/libro-common/src/mana-syringe/contribution/contribution-protocol.ts @@ -1,5 +1,4 @@ -import type { Event } from '@difizen/mana-common'; - +import type { Event } from '../../mana-common/index.js'; import { Syringe } from '../core'; export type Option = { diff --git a/mana/packages/mana-syringe/src/contribution/contribution-provider.ts b/packages/libro-common/src/mana-syringe/contribution/contribution-provider.ts similarity index 92% rename from mana/packages/mana-syringe/src/contribution/contribution-provider.ts rename to packages/libro-common/src/mana-syringe/contribution/contribution-provider.ts index 1cd8d58f..8bbe68ae 100644 --- a/mana/packages/mana-syringe/src/contribution/contribution-provider.ts +++ b/packages/libro-common/src/mana-syringe/contribution/contribution-provider.ts @@ -1,7 +1,6 @@ -import type { Disposable } from '@difizen/mana-common'; -import { Emitter } from '@difizen/mana-common'; -import { DisposableCollection } from '@difizen/mana-common'; - +import type { Disposable } from '../../mana-common/index.js'; +import { Emitter } from '../../mana-common/index.js'; +import { DisposableCollection } from '../../mana-common/index.js'; import type { Syringe } from '../core'; import { diff --git a/mana/packages/mana-syringe/src/contribution/contribution-register.ts b/packages/libro-common/src/mana-syringe/contribution/contribution-register.ts similarity index 100% rename from mana/packages/mana-syringe/src/contribution/contribution-register.ts rename to packages/libro-common/src/mana-syringe/contribution/contribution-register.ts diff --git a/mana/packages/mana-syringe/src/contribution/decorator.ts b/packages/libro-common/src/mana-syringe/contribution/decorator.ts similarity index 100% rename from mana/packages/mana-syringe/src/contribution/decorator.ts rename to packages/libro-common/src/mana-syringe/contribution/decorator.ts diff --git a/mana/packages/mana-syringe/src/contribution/index.spec.ts b/packages/libro-common/src/mana-syringe/contribution/index.spec.ts similarity index 100% rename from mana/packages/mana-syringe/src/contribution/index.spec.ts rename to packages/libro-common/src/mana-syringe/contribution/index.spec.ts diff --git a/mana/packages/mana-syringe/src/contribution/index.ts b/packages/libro-common/src/mana-syringe/contribution/index.ts similarity index 100% rename from mana/packages/mana-syringe/src/contribution/index.ts rename to packages/libro-common/src/mana-syringe/contribution/index.ts diff --git a/mana/packages/mana-syringe/src/core.ts b/packages/libro-common/src/mana-syringe/core.ts similarity index 98% rename from mana/packages/mana-syringe/src/core.ts rename to packages/libro-common/src/mana-syringe/core.ts index 5009e1c0..ae4453e5 100644 --- a/mana/packages/mana-syringe/src/core.ts +++ b/packages/libro-common/src/mana-syringe/core.ts @@ -2,7 +2,7 @@ /* eslint-disable @typescript-eslint/no-shadow */ import 'reflect-metadata'; -import type { Event, Newable, Abstract } from '@difizen/mana-common'; +import type { Event, Newable, Abstract } from '../mana-common/index.js'; export type TokenOption = { multiple?: boolean; diff --git a/mana/packages/mana-syringe/src/decorator.spec.ts b/packages/libro-common/src/mana-syringe/decorator.spec.ts similarity index 100% rename from mana/packages/mana-syringe/src/decorator.spec.ts rename to packages/libro-common/src/mana-syringe/decorator.spec.ts diff --git a/mana/packages/mana-syringe/src/decorator.ts b/packages/libro-common/src/mana-syringe/decorator.ts similarity index 100% rename from mana/packages/mana-syringe/src/decorator.ts rename to packages/libro-common/src/mana-syringe/decorator.ts diff --git a/mana/packages/mana-syringe/src/features/auto-factory.spec.ts b/packages/libro-common/src/mana-syringe/features/auto-factory.spec.ts similarity index 100% rename from mana/packages/mana-syringe/src/features/auto-factory.spec.ts rename to packages/libro-common/src/mana-syringe/features/auto-factory.spec.ts diff --git a/mana/packages/mana-syringe/src/features/auto-factory.ts b/packages/libro-common/src/mana-syringe/features/auto-factory.ts similarity index 95% rename from mana/packages/mana-syringe/src/features/auto-factory.ts rename to packages/libro-common/src/mana-syringe/features/auto-factory.ts index 56e60658..600b0fdb 100644 --- a/mana/packages/mana-syringe/src/features/auto-factory.ts +++ b/packages/libro-common/src/mana-syringe/features/auto-factory.ts @@ -1,5 +1,4 @@ -import type { Newable } from '@difizen/mana-common'; - +import type { Newable } from '../../mana-common/index.js'; import { Syringe } from '../core'; import { transient } from '../decorator'; import { registerSideOption } from '../side-option'; diff --git a/mana/packages/mana-syringe/src/features/prioritized-contribution.ts b/packages/libro-common/src/mana-syringe/features/prioritized-contribution.ts similarity index 91% rename from mana/packages/mana-syringe/src/features/prioritized-contribution.ts rename to packages/libro-common/src/mana-syringe/features/prioritized-contribution.ts index 75cc98e9..b0824412 100644 --- a/mana/packages/mana-syringe/src/features/prioritized-contribution.ts +++ b/packages/libro-common/src/mana-syringe/features/prioritized-contribution.ts @@ -1,6 +1,5 @@ -import type { Newable } from '@difizen/mana-common'; -import { Priority } from '@difizen/mana-common'; - +import { Priority } from '../../mana-common/index.js'; +import type { Newable } from '../../mana-common/index.js'; import type { Contribution } from '../contribution/index'; import { Syringe } from '../core'; import { singleton } from '../decorator'; diff --git a/mana/packages/mana-syringe/src/index.ts b/packages/libro-common/src/mana-syringe/index.ts similarity index 100% rename from mana/packages/mana-syringe/src/index.ts rename to packages/libro-common/src/mana-syringe/index.ts diff --git a/mana/packages/mana-syringe/src/inversify-api/index.spec.ts b/packages/libro-common/src/mana-syringe/inversify-api/index.spec.ts similarity index 99% rename from mana/packages/mana-syringe/src/inversify-api/index.spec.ts rename to packages/libro-common/src/mana-syringe/inversify-api/index.spec.ts index f6e27564..5422bd44 100644 --- a/mana/packages/mana-syringe/src/inversify-api/index.spec.ts +++ b/packages/libro-common/src/mana-syringe/inversify-api/index.spec.ts @@ -3,11 +3,11 @@ import 'reflect-metadata'; import assert from 'assert'; -import { Event } from '@difizen/mana-common'; import { injectable } from 'inversify'; import { GlobalContainer } from '../container'; import { Syringe } from '../core'; +import { Event } from '../../mana-common/index.js'; import { Register } from '../register'; import { bindSingleton, bindTransient, bindLifecycle, isInversifyContext } from '.'; diff --git a/mana/packages/mana-syringe/src/inversify-api/index.ts b/packages/libro-common/src/mana-syringe/inversify-api/index.ts similarity index 100% rename from mana/packages/mana-syringe/src/inversify-api/index.ts rename to packages/libro-common/src/mana-syringe/inversify-api/index.ts diff --git a/mana/packages/mana-syringe/src/inversify-api/inversify-protocol.ts b/packages/libro-common/src/mana-syringe/inversify-api/inversify-protocol.ts similarity index 100% rename from mana/packages/mana-syringe/src/inversify-api/inversify-protocol.ts rename to packages/libro-common/src/mana-syringe/inversify-api/inversify-protocol.ts diff --git a/mana/packages/mana-syringe/src/module/index.spec.ts b/packages/libro-common/src/mana-syringe/module/index.spec.ts similarity index 100% rename from mana/packages/mana-syringe/src/module/index.spec.ts rename to packages/libro-common/src/mana-syringe/module/index.spec.ts diff --git a/mana/packages/mana-syringe/src/module/index.ts b/packages/libro-common/src/mana-syringe/module/index.ts similarity index 100% rename from mana/packages/mana-syringe/src/module/index.ts rename to packages/libro-common/src/mana-syringe/module/index.ts diff --git a/mana/packages/mana-syringe/src/module/syringe-module.ts b/packages/libro-common/src/mana-syringe/module/syringe-module.ts similarity index 100% rename from mana/packages/mana-syringe/src/module/syringe-module.ts rename to packages/libro-common/src/mana-syringe/module/syringe-module.ts diff --git a/mana/packages/mana-syringe/src/register.spec.ts b/packages/libro-common/src/mana-syringe/register.spec.ts similarity index 100% rename from mana/packages/mana-syringe/src/register.spec.ts rename to packages/libro-common/src/mana-syringe/register.spec.ts diff --git a/mana/packages/mana-syringe/src/register.ts b/packages/libro-common/src/mana-syringe/register.ts similarity index 100% rename from mana/packages/mana-syringe/src/register.ts rename to packages/libro-common/src/mana-syringe/register.ts diff --git a/mana/packages/mana-syringe/src/side-option.spec.ts b/packages/libro-common/src/mana-syringe/side-option.spec.ts similarity index 100% rename from mana/packages/mana-syringe/src/side-option.spec.ts rename to packages/libro-common/src/mana-syringe/side-option.spec.ts diff --git a/mana/packages/mana-syringe/src/side-option.ts b/packages/libro-common/src/mana-syringe/side-option.ts similarity index 100% rename from mana/packages/mana-syringe/src/side-option.ts rename to packages/libro-common/src/mana-syringe/side-option.ts