@linagora/linid-im-front-corelib 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +3 -3
  2. package/dist/core-lib.es.js +923 -852
  3. package/dist/core-lib.umd.js +9 -9
  4. package/dist/package.json +19 -14
  5. package/dist/tsconfig.lib.tsbuildinfo +1 -0
  6. package/dist/types/src/index.d.ts +4 -0
  7. package/dist/types/src/services/httpClientService.d.ts +13 -0
  8. package/dist/types/src/services/linIdConfigurationService.d.ts +21 -0
  9. package/dist/types/src/stores/linIdConfigurationStore.d.ts +79 -0
  10. package/dist/types/src/types/linidConfiguration.d.ts +42 -0
  11. package/package.json +18 -13
  12. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -83
  13. package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -90
  14. package/.github/ISSUE_TEMPLATE/question.yml +0 -31
  15. package/.github/ISSUE_TEMPLATE/security.yml +0 -69
  16. package/.github/actions/setup-node-pnpm/action.yml +0 -29
  17. package/.github/workflows/pull-request.yml +0 -147
  18. package/.github/workflows/release.yml +0 -90
  19. package/.prettierignore +0 -7
  20. package/.prettierrc.json +0 -5
  21. package/.vscode/extensions.json +0 -3
  22. package/.vscode/settings.json +0 -9
  23. package/CHANGELOG.md +0 -40
  24. package/CONTRIBUTING.md +0 -269
  25. package/COPYRIGHT +0 -23
  26. package/docs/components-plugin-zones.md +0 -168
  27. package/docs/helpers.md +0 -188
  28. package/docs/module-lifecycle.md +0 -717
  29. package/docs/types-and-interfaces.md +0 -92
  30. package/eslint.config.js +0 -136
  31. package/src/components/LinidZoneRenderer.vue +0 -77
  32. package/src/index.ts +0 -51
  33. package/src/lifecycle/skeleton.ts +0 -147
  34. package/src/services/federationService.ts +0 -44
  35. package/src/stores/linidZoneStore.ts +0 -62
  36. package/src/types/linidZone.ts +0 -48
  37. package/src/types/module.ts +0 -96
  38. package/src/types/moduleLifecycle.ts +0 -154
  39. package/tests/unit/components/LinidZoneRenderer.spec.js +0 -135
  40. package/tests/unit/lifecycle/skeleton.spec.js +0 -138
  41. package/tests/unit/services/federationService.spec.js +0 -146
  42. package/tests/unit/stores/linidZoneStore.spec.js +0 -94
  43. package/tsconfig.json +0 -14
  44. package/tsconfig.lib.json +0 -20
  45. package/tsconfig.node.json +0 -9
  46. package/tsconfig.spec.json +0 -16
  47. package/vite.config.ts +0 -37
  48. package/vitest.config.ts +0 -19
@@ -1,31 +0,0 @@
1
- name: ❓ Question / Help
2
- description: Ask a question about the tool, a feature, or usage
3
- title: "[QUESTION] - <title>"
4
- labels: ["question", "🆕 Needs triage"]
5
- assignees: []
6
-
7
- body:
8
- - type: markdown
9
- attributes:
10
- value: "Please provide as much information as possible so we can answer your question effectively."
11
-
12
- - type: textarea
13
- id: question_summary
14
- attributes:
15
- label: "Question summary"
16
- description: "Provide a brief summary of your question"
17
- placeholder: "E.g., How do I enable feature X?"
18
-
19
- - type: textarea
20
- id: detailed_description
21
- attributes:
22
- label: "Detailed description"
23
- description: "Explain your question in detail"
24
- placeholder: "Include context, what you have tried, and what you want to achieve."
25
-
26
- - type: input
27
- id: app_version
28
- attributes:
29
- label: "App version"
30
- description: "Which version of the application are you using?"
31
- placeholder: "e.g., 1.2.3"
@@ -1,69 +0,0 @@
1
- name: 🔒 Security / Dependency Issue
2
- description: Report a security vulnerability or dependency issue
3
- title: "[SECURITY] - <title>"
4
- labels: ["security", "🆕 Needs triage"]
5
- assignees: []
6
-
7
- body:
8
- - type: markdown
9
- attributes:
10
- value: |
11
- ⚠️ **Do not include sensitive information in this public issue.**
12
- If this is a vulnerability, please follow responsible disclosure procedures.
13
-
14
- **Important:** If this is a **critical vulnerability** or could **endanger the application**, please **contact the project maintainers directly** via a private message/email. You will be **credited** for reporting the issue and/or helping to fix it.
15
-
16
- - type: textarea
17
- id: issue_summary
18
- attributes:
19
- label: "Summary of the issue"
20
- description: "Provide a short summary of the security or dependency problem"
21
- placeholder: "E.g., Outdated library X with known vulnerability CVE-1234"
22
-
23
- - type: textarea
24
- id: detailed_description
25
- attributes:
26
- label: "Detailed description"
27
- description: "Describe the problem in detail, without including sensitive information"
28
- placeholder: "Include context, version numbers, and affected modules"
29
-
30
- - type: textarea
31
- id: steps_to_reproduce
32
- attributes:
33
- label: "Steps to reproduce / observe"
34
- description: "Explain how the issue can be observed without exposing sensitive data"
35
- placeholder: "Step 1: ..., Step 2: ..."
36
-
37
- - type: input
38
- id: app_version
39
- attributes:
40
- label: "App version"
41
- description: "Which version of the application is affected?"
42
- placeholder: "e.g., 1.2.3"
43
-
44
- - type: input
45
- id: dependencies
46
- attributes:
47
- label: "Dependencies involved"
48
- description: "List the affected libraries/plugins and their versions"
49
- placeholder: "E.g., library X v1.0.0, plugin Y v2.3.1"
50
-
51
- - type: dropdown
52
- id: severity
53
- attributes:
54
- label: "Severity"
55
- description: "Estimate the severity of the issue"
56
- options:
57
- - "Low"
58
- - "Medium"
59
- - "High"
60
- - "Urgent"
61
-
62
- - type: dropdown
63
- id: disclosure_preference
64
- attributes:
65
- label: "Disclosure preference"
66
- description: "Should this be handled privately?"
67
- options:
68
- - "Public discussion is OK"
69
- - "Report privately (recommended for vulnerabilities)"
@@ -1,29 +0,0 @@
1
- name: 'Setup Node.js and pnpm'
2
- description: 'Setup Node.js, pnpm and install dependencies'
3
-
4
- inputs:
5
- node-version:
6
- description: 'Node.js version to use'
7
- required: true
8
- pnpm-version:
9
- description: 'pnpm version to use'
10
- required: true
11
-
12
- runs:
13
- using: 'composite'
14
- steps:
15
- - name: Setup pnpm
16
- uses: pnpm/action-setup@v4
17
- with:
18
- version: ${{ inputs.pnpm-version }}
19
-
20
- - name: Setup Node.js
21
- uses: actions/setup-node@v4
22
- with:
23
- node-version: ${{ inputs.node-version }}
24
- cache: 'pnpm'
25
- registry-url: 'https://registry.npmjs.org'
26
-
27
- - name: Install dependencies
28
- shell: bash
29
- run: pnpm install --frozen-lockfile
@@ -1,147 +0,0 @@
1
- name: Pull request
2
-
3
- on:
4
- pull_request:
5
- types: [opened, synchronize, reopened]
6
-
7
- env:
8
- NODE_VERSION: 22.19
9
- PNPM_VERSION: 10.20.0
10
-
11
- jobs:
12
- delete-comments:
13
- name: Delete bot comment(s)
14
- runs-on: ubuntu-latest
15
- steps:
16
- - uses: izhangzhihao/delete-comment@master
17
- with:
18
- github_token: ${{ secrets.GITHUB_TOKEN }}
19
- delete_user_name: github-actions[bot]
20
- issue_number: ${{ github.event.number }}
21
-
22
- branch-naming-rules:
23
- name: Check branch name
24
- runs-on: ubuntu-latest
25
- steps:
26
- - uses: deepakputhraya/action-branch-name@master
27
- with:
28
- regex: '^(feature|bugfix|improvement|release|hotfix)\/[a-z0-9_.-]+$'
29
- allowed_prefixes: 'feature,bugfix,improvement,release,hotfix'
30
- ignore: main
31
- min_length: 5
32
- max_length: 50
33
-
34
- build:
35
- name: Setup app
36
- runs-on: ubuntu-latest
37
- steps:
38
- - uses: actions/checkout@v4
39
-
40
- - name: Setup Node.js and pnpm
41
- uses: ./.github/actions/setup-node-pnpm
42
- with:
43
- node-version: ${{ env.NODE_VERSION }}
44
- pnpm-version: ${{ env.PNPM_VERSION }}
45
-
46
- - name: Build application
47
- run: pnpm build
48
-
49
- commit-checks:
50
- name: Check commit messages
51
- runs-on: ubuntu-latest
52
- needs: [build]
53
- steps:
54
- - uses: actions/checkout@v4
55
- with:
56
- fetch-depth: 0
57
-
58
- - name: Setup Node.js and pnpm
59
- uses: ./.github/actions/setup-node-pnpm
60
- with:
61
- node-version: ${{ env.NODE_VERSION }}
62
- pnpm-version: ${{ env.PNPM_VERSION }}
63
-
64
- - name: Install commitlint
65
- run: pnpm add -D @commitlint/config-conventional @commitlint/cli
66
-
67
- - name: Run commitlint
68
- run: |
69
- echo "module.exports = { extends: ['@commitlint/config-conventional'] };" > commitlint.config.cjs
70
- pnpm exec commitlint --from=origin/main --to=HEAD --verbose
71
-
72
- check-dependencies:
73
- name: Check dependencies
74
- runs-on: ubuntu-latest
75
- needs: [build]
76
- steps:
77
- - uses: actions/checkout@v4
78
-
79
- - name: Setup Node.js and pnpm
80
- uses: ./.github/actions/setup-node-pnpm
81
- with:
82
- node-version: ${{ env.NODE_VERSION }}
83
- pnpm-version: ${{ env.PNPM_VERSION }}
84
-
85
- - name: Check outdated dependencies
86
- run: |
87
- pnpm add -D npm-check-updates
88
- echo '```bash' > dependencies.txt
89
- npx ncu >> dependencies.txt
90
- echo '```' >> dependencies.txt
91
-
92
- - name: Comment PR
93
- uses: JoseThen/comment-pr@v1.2.0
94
- with:
95
- file_path: ./dependencies.txt
96
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97
-
98
- check-style:
99
- name: Code style
100
- runs-on: ubuntu-latest
101
- needs: [build]
102
- steps:
103
- - uses: actions/checkout@v4
104
-
105
- - name: Setup Node.js and pnpm
106
- uses: ./.github/actions/setup-node-pnpm
107
- with:
108
- node-version: ${{ env.NODE_VERSION }}
109
- pnpm-version: ${{ env.PNPM_VERSION }}
110
-
111
- - name: Check style
112
- run: pnpm validate
113
-
114
- security-check:
115
- name: Supply Chain Malware Scan
116
- runs-on: ubuntu-latest
117
- steps:
118
- - uses: actions/checkout@v4
119
-
120
- - uses: gensecaihq/Shai-Hulud-2.0-Detector@v1
121
- with:
122
- fail-on-critical: true
123
-
124
- unit-tests:
125
- name: Unit tests
126
- runs-on: ubuntu-latest
127
- needs: [build]
128
- steps:
129
- - uses: actions/checkout@v4
130
-
131
- - name: Setup Node.js and pnpm
132
- uses: ./.github/actions/setup-node-pnpm
133
- with:
134
- node-version: ${{ env.NODE_VERSION }}
135
- pnpm-version: ${{ env.PNPM_VERSION }}
136
-
137
- - name: Run unit tests
138
- run: |
139
- echo '```bash' > coverage.txt
140
- pnpm test:ci | sed 's/\x1b\[[0-9;]*m//g' >> coverage.txt
141
- echo '```' >> coverage.txt
142
-
143
- - name: Comment PR
144
- uses: JoseThen/comment-pr@v1.2.0
145
- with:
146
- file_path: ./coverage.txt
147
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,90 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- env:
9
- NODE_VERSION: 22.19
10
- PNPM_VERSION: 10.20.0
11
-
12
- permissions:
13
- contents: write
14
- issues: write
15
- pull-requests: write
16
-
17
- jobs:
18
- release:
19
- name: Release with Release Please
20
- runs-on: ubuntu-latest
21
- outputs:
22
- release_created: ${{ steps.set_output.outputs.release_created }}
23
- steps:
24
- - name: Checkout repository
25
- uses: actions/checkout@v4
26
- with:
27
- fetch-depth: 0
28
-
29
- - name: Setup Node.js and pnpm
30
- uses: ./.github/actions/setup-node-pnpm
31
- with:
32
- node-version: ${{ env.NODE_VERSION }}
33
- pnpm-version: ${{ env.PNPM_VERSION }}
34
-
35
- - name: Run release
36
- run: |
37
- git config user.name "github-actions[bot]"
38
- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
39
- pnpx standard-version
40
-
41
- - name: Push changes and tags
42
- run: |
43
- git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
44
- git push origin main
45
- git push origin --tags
46
-
47
- - name: Set release_created output
48
- id: set_output
49
- run: |
50
- TAG=$(git describe --tags --abbrev=0)
51
- PREV_TAG=$(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1))
52
- if [ "$TAG" != "$PREV_TAG" ]; then
53
- echo "release_created=true" >> $GITHUB_OUTPUT
54
- else
55
- echo "release_created=false" >> $GITHUB_OUTPUT
56
- fi
57
-
58
-
59
- publish-npm:
60
- name: Publish to npm
61
- runs-on: ubuntu-latest
62
- needs: [release]
63
- if: ${{ needs.release.outputs.release_created == 'true' }}
64
- steps:
65
- - name: Checkout repository
66
- uses: actions/checkout@v4
67
- with:
68
- fetch-depth: 0
69
-
70
- - name: Fetch all tags
71
- run: git fetch --tags --force
72
-
73
- - name: Checkout latest tag
74
- run: |
75
- LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
76
- git checkout $LATEST_TAG
77
-
78
- - name: Setup Node.js and pnpm
79
- uses: ./.github/actions/setup-node-pnpm
80
- with:
81
- node-version: ${{ env.NODE_VERSION }}
82
- pnpm-version: ${{ env.PNPM_VERSION }}
83
-
84
- - name: Build library
85
- run: pnpm build
86
-
87
- - name: Publish to npm
88
- run: pnpm publish --access public --no-git-checks
89
- env:
90
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_IN_VAULT }}
package/.prettierignore DELETED
@@ -1,7 +0,0 @@
1
- dist/
2
- node_modules/
3
- coverage/
4
- pnpm-lock.yaml
5
- package-lock.json
6
- *.min.js
7
- *.min.css
package/.prettierrc.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "singleQuote": true,
4
- "singleAttributePerLine": true
5
- }
@@ -1,3 +0,0 @@
1
- {
2
- "recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "Vue.volar"]
3
- }
@@ -1,9 +0,0 @@
1
- {
2
- "editor.formatOnSave": true,
3
- "editor.defaultFormatter": "esbenp.prettier-vscode",
4
- "editor.codeActionsOnSave": {
5
- "source.fixAll.eslint": "explicit"
6
- },
7
- "eslint.validate": ["javascript", "typescript", "vue"],
8
- "prettier.requireConfig": true
9
- }
package/CHANGELOG.md DELETED
@@ -1,40 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ### [0.0.5](https://github.com/linagora/linid-im-front-corelib/compare/v0.0.4...v0.0.5) (2025-12-03)
6
-
7
- ### [0.0.4](https://github.com/linagora/linid-im-front-corelib/compare/v0.0.3...v0.0.4) (2025-12-01)
8
-
9
-
10
- ### Features
11
-
12
- * add lifecycle in RemoteModule and remove app usage ([04d0163](https://github.com/linagora/linid-im-front-corelib/commit/04d01635a3711168daa50c58e7a0c6dba7abdeaa))
13
-
14
- ### [0.0.3](https://github.com/linagora/linid-im-front-corelib/compare/v0.0.2...v0.0.3) (2025-11-28)
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * retrieve valid tag for npm release ([f295e3c](https://github.com/linagora/linid-im-front-corelib/commit/f295e3c54d27b6f42970b50ccb6fd856966aa776))
20
-
21
- ### [0.0.2](https://github.com/linagora/linid-im-front-corelib/compare/v0.0.1...v0.0.2) (2025-11-28)
22
-
23
-
24
- ### Features
25
-
26
- * add module lifecycle skeleton class ([c2332e2](https://github.com/linagora/linid-im-front-corelib/commit/c2332e25fee58a148faaf63ec5c1ebf2b9ea7b17))
27
- * add module lifecycle type definitions ([6c6beb3](https://github.com/linagora/linid-im-front-corelib/commit/6c6beb3675f6810f2f7d106f1572d98111df4af2))
28
- * export module lifecycle types and utilities ([691a2ec](https://github.com/linagora/linid-im-front-corelib/commit/691a2ec86f472cadd3cb1cbe80525de25f4bb995))
29
- * expose source files via exports field ([cf87a3d](https://github.com/linagora/linid-im-front-corelib/commit/cf87a3d8626f399675c52419c2bff7d46b0e3521))
30
- * load zone component with module-federation/enhanced ([858ffce](https://github.com/linagora/linid-im-front-corelib/commit/858ffce1f91aca52506559b5eb070a96e0a42fad))
31
- * migrate project to use pnpm ([d00cb63](https://github.com/linagora/linid-im-front-corelib/commit/d00cb638c311058ff5bf1dadeac799df1d2ebc45))
32
- * setup library ([774e827](https://github.com/linagora/linid-im-front-corelib/commit/774e8279334c087407615ff4e1217edbc206eeda))
33
- * setup pull-request workflow ([1094c6a](https://github.com/linagora/linid-im-front-corelib/commit/1094c6a3340fc3e8d57b2b6f94dcf938cdecca46))
34
- * setup release workflow ([18a9c0b](https://github.com/linagora/linid-im-front-corelib/commit/18a9c0bc98f9cdb9e2c007a71e0ea500c684f83b))
35
-
36
-
37
- ### Bug Fixes
38
-
39
- * **lint:** warning message of missing jsdoc in ArrowFunctionExpression ([a95b065](https://github.com/linagora/linid-im-front-corelib/commit/a95b0657d9afe69ccf08a8d9da22cdd1007262ae))
40
- * remove redundant config with the modules.json file ([f3614cc](https://github.com/linagora/linid-im-front-corelib/commit/f3614cc6bb4a97574ccf09543b46fb5b25fcdc24))