@gitlab/duo-ui 1.0.0 → 2.0.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # [2.0.0](https://gitlab.com/gitlab-org/duo-ui/compare/v1.0.0...v2.0.0) (2024-11-12)
2
+
3
+
4
+ ### Features
5
+
6
+ * Update Duo Components to match GitLab UI v102.0.0 ([cf10f9d](https://gitlab.com/gitlab-org/duo-ui/commit/cf10f9d251e4e919f9e171fce676cb93d5b06d82))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * Synced Duo components with GitLab UI v102.0.0
12
+ see: https://gitlab.com/gitlab-org/gitlab-ui/-/releases/v102.0.0
13
+
1
14
  # [1.0.0](https://gitlab.com/gitlab-org/duo-ui/compare/v0.4.0...v1.0.0) (2024-11-12)
2
15
 
3
16
 
@@ -90,6 +90,9 @@ var script = {
90
90
  if (this.contextItem.category !== CONTEXT_ITEM_CATEGORY_DEPENDENCY) {
91
91
  return null;
92
92
  }
93
+ if (!this.contextItem.content) {
94
+ return null;
95
+ }
93
96
  try {
94
97
  return JSON.parse(this.contextItem.content);
95
98
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/duo-ui",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "Duo UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@gitlab/svgs": "^1.116.0 || ^2.0.0 || ^3.0.0",
86
- "@gitlab/ui": "^101.16.0",
86
+ "@gitlab/ui": "^101 || ^102",
87
87
  "bootstrap": ">=4.5.3 <=4.6.2",
88
88
  "dompurify": ">=2.5.2 <3.0.0 || >=3.1.2",
89
89
  "emoji-regex": ">=10.0.0",
@@ -103,6 +103,9 @@ export default {
103
103
  if (this.contextItem.category !== CONTEXT_ITEM_CATEGORY_DEPENDENCY) {
104
104
  return null;
105
105
  }
106
+ if (!this.contextItem.content) {
107
+ return null;
108
+ }
106
109
 
107
110
  try {
108
111
  return JSON.parse(this.contextItem.content);