@forge/react 11.10.0-next.3 → 11.10.0-next.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,11 @@
1
1
  # @forge/react
2
2
 
3
+ ## 11.10.0-next.4
4
+
5
+ ### Minor Changes
6
+
7
+ - 37d13e9: Added Global component
8
+
3
9
  ## 11.10.0-next.3
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { ForgeElement } from '../../types';
3
+ interface InternalGlobalProps {
4
+ children: React.ReactNode;
5
+ }
6
+ export declare const Global: {
7
+ ({ children, ...rest }: InternalGlobalProps): import("react/jsx-runtime").JSX.Element;
8
+ Main({ children, ...rest }: any): import("react/jsx-runtime").JSX.Element;
9
+ Sidebar({ children, ...rest }: any): import("react/jsx-runtime").JSX.Element;
10
+ ExpandMenuItem({ children, ...rest }: any): import("react/jsx-runtime").JSX.Element;
11
+ LinkMenuItem: () => ForgeElement;
12
+ };
13
+ export {};
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAYD,eAAO,MAAM,MAAM;4BAA2B,mBAAmB;gCAK3B,GAAG;mCAKA,GAAG;0CAKI,GAAG;wBAIa,YAAY;CAjB3E,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Global = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ // eslint-disable-next-line
6
+ const GlobalPrimitive = 'Global'; // Refine props and type checking
7
+ // eslint-disable-next-line
8
+ const GlobalMainPrimitive = 'Global.Main';
9
+ // eslint-disable-next-line
10
+ const GlobalSidebarPrimitive = 'Global.Sidebar';
11
+ // eslint-disable-next-line
12
+ const GlobalExpandMenuItemPrimitive = 'Global.ExpandMenuItem';
13
+ // Top level component
14
+ const Global = ({ children, ...rest }) => {
15
+ return (0, jsx_runtime_1.jsx)(GlobalPrimitive, { ...rest, children: children });
16
+ };
17
+ exports.Global = Global;
18
+ // eslint-disable-next-line
19
+ exports.Global.Main = ({ children, ...rest }) => {
20
+ return (0, jsx_runtime_1.jsx)(GlobalMainPrimitive, { ...rest, children: children });
21
+ };
22
+ // eslint-disable-next-line
23
+ exports.Global.Sidebar = ({ children, ...rest }) => {
24
+ return (0, jsx_runtime_1.jsx)(GlobalSidebarPrimitive, { ...rest, children: children });
25
+ };
26
+ // eslint-disable-next-line
27
+ exports.Global.ExpandMenuItem = ({ children, ...rest }) => {
28
+ return (0, jsx_runtime_1.jsx)(GlobalExpandMenuItemPrimitive, { ...rest, children: children });
29
+ };
30
+ exports.Global.LinkMenuItem = 'Global.LinkMenuItem';
@@ -6,6 +6,7 @@ export { Popup } from './popup';
6
6
  export { Comment } from './comment';
7
7
  export { AdfRenderer } from './adf-renderer';
8
8
  export { UserPickerValue } from '../types/index';
9
+ export { Global } from './global';
9
10
  declare type UserProps = {
10
11
  accountId: string;
11
12
  hideDisplayName?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,eAAe,IAAI,SAAS,EAC5B,qBAAqB,IAAI,eAAe,EACxC,cAAc,EACd,UAAU,EACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,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exports.Strong = exports.Strike = exports.Em = exports.UserGroup = exports.UserPicker = exports.Link = exports.Image = exports.User = exports.AdfRenderer = exports.Comment = exports.Popup = exports.InlineEdit = exports.DynamicTable = void 0;
3
+ exports.CheckboxGroup = exports.Frame = exports.Strong = exports.Strike = exports.Em = exports.UserGroup = exports.UserPicker = exports.Link = exports.Image = exports.User = exports.Global = exports.AdfRenderer = exports.Comment = exports.Popup = exports.InlineEdit = exports.DynamicTable = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  var dynamic_table_1 = require("./dynamic-table");
6
6
  Object.defineProperty(exports, "DynamicTable", { enumerable: true, get: function () { return dynamic_table_1.DynamicTable; } });
@@ -12,6 +12,8 @@ var comment_1 = require("./comment");
12
12
  Object.defineProperty(exports, "Comment", { enumerable: true, get: function () { return comment_1.Comment; } });
13
13
  var adf_renderer_1 = require("./adf-renderer");
14
14
  Object.defineProperty(exports, "AdfRenderer", { enumerable: true, get: function () { return adf_renderer_1.AdfRenderer; } });
15
+ var global_1 = require("./global");
16
+ Object.defineProperty(exports, "Global", { enumerable: true, get: function () { return global_1.Global; } });
15
17
  /**
16
18
  * A component that represents a user, displaying details such as name and profile picture.
17
19
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/react",
3
- "version": "11.10.0-next.3",
3
+ "version": "11.10.0-next.4",
4
4
  "description": "Forge React reconciler",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -22,6 +22,10 @@
22
22
  "./jira": {
23
23
  "types": "./out/components/jira/index.d.ts",
24
24
  "default": "./out/components/jira/index.js"
25
+ },
26
+ "./global": {
27
+ "types": "./out/components/global/index.d.ts",
28
+ "default": "./out/components/global/index.js"
25
29
  }
26
30
  },
27
31
  "dependencies": {