@tridion-docs/extensions 2.1.2 → 2.1.4

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,5 +1,17 @@
1
1
  # @tridion-docs/extensions
2
2
 
3
+ ## 2.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed dependencies for known vulnerabilities
8
+
9
+ ## 2.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated types for compatibility with 15.2 and 15.3
14
+
3
15
  ## 2.1.2
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -9,7 +9,7 @@ Copyright © 2026 RWS Holdings plc including its subsidiaries and affiliated com
9
9
 
10
10
  # Compatibility
11
11
 
12
- This version of the package is compatible with Tridion Docs 15.2
12
+ This version of the package is compatible with Tridion Docs 15.2 and 15.3
13
13
 
14
14
  # Upgrade instruction
15
15
 
@@ -1,6 +1,6 @@
1
1
  import type { FrontendExtension } from './FrontendExtension';
2
2
  /**
3
- * Model describing a frontend addon
3
+ * Model as returned by the /api/extensions call
4
4
  */
5
5
  export type FrontendAddon<Id extends string = string, Configuration extends object = any> = {
6
6
  readonly $type: string;
@@ -1,5 +1,5 @@
1
1
  import type { FrontendAddon } from './FrontendAddon';
2
2
  /**
3
- * * Model describing a frontend addon
3
+ * * Model as returned by the /api/extensions call
4
4
  */
5
5
  export type FrontendAddons = FrontendAddon[];
@@ -1,8 +1,17 @@
1
1
  /**
2
- * Model describing a frontend addon
2
+ * Model as returned by the /api/extensions call
3
+ */
4
+ export declare const ExtensionType: {
5
+ readonly OrganizeSpace: "OrganizeSpaceExtension";
6
+ readonly Sidebar: "SidebarExtension";
7
+ };
8
+ export type ExtensionTypeType = (typeof ExtensionType)[keyof typeof ExtensionType];
9
+ /**
10
+ * Model as returned by the /api/extensions call
3
11
  */
4
12
  export type FrontendExtension = {
5
13
  readonly $type: string;
6
14
  readonly name: string;
15
+ readonly type: ExtensionTypeType;
7
16
  readonly contents: string[];
8
17
  };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Model as returned by the /api/extensions call
3
+ */
4
+ const ExtensionType = {
5
+ OrganizeSpace: 'OrganizeSpaceExtension',
6
+ Sidebar: 'SidebarExtension',
7
+ };
8
+
9
+ export { ExtensionType };
package/dist/index.js CHANGED
@@ -14,6 +14,7 @@ export { FolderType } from './api/typings/FolderType.js';
14
14
  export { MessageSeverity } from './api/typings/Notification.js';
15
15
  export { NavigationItemIdType, PositioningType } from './api/typings/Position.js';
16
16
  export { ViewType } from './api/typings/ViewType.js';
17
+ export { ExtensionType } from './api/typings/FrontendExtension.js';
17
18
  export { PublicationObjectType } from './api/typings/PublicationObjectType.js';
18
19
  export { initializeExtensionApiStorage } from './apiStorage/apiStorage.js';
19
20
  import 'react';
@@ -1,9 +1,9 @@
1
- const version = "2.1.2";
1
+ const version = "2.1.4";
2
2
  const peerDependencies = {
3
3
  react: "18.3.1",
4
4
  "react-dom": "18.3.1",
5
5
  "react-is": "18.3.1",
6
- "styled-components": "6.1.19"
6
+ "styled-components": "^6.3"
7
7
  };
8
8
 
9
9
  export { peerDependencies, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tridion-docs/extensions",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Tridion Docs Extensions API",
5
5
  "author": "RWS Group for and on behalf of its affiliates and subsidiaries",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -24,13 +24,14 @@
24
24
  "start:remote": "yarn run start",
25
25
  "lint": "biome lint .",
26
26
  "lint:fix": "biome lint . --write && biome format . --write",
27
+ "publish": "node ../../../scripts/publish-with-version.js ./package.json",
27
28
  "prepublish": "yarn build"
28
29
  },
29
30
  "peerDependencies": {
30
31
  "react": "18.3.1",
31
32
  "react-dom": "18.3.1",
32
33
  "react-is": "18.3.1",
33
- "styled-components": "6.1.19"
34
+ "styled-components": "^6.3"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@rollup/plugin-commonjs": "29.0.0",