@forge/react 11.14.2-next.0 → 11.14.2-next.1-experimental-5b726e6

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,18 @@
1
1
  # @forge/react
2
2
 
3
+ ## 11.14.2-next.1-experimental-5b726e6
4
+
5
+ ### Patch Changes
6
+
7
+ - ee5e9d6: Move all Global components to same export entry point
8
+ - @forge/bridge@5.15.2-next.0-experimental-5b726e6
9
+
10
+ ## 11.14.2-next.1
11
+
12
+ ### Patch Changes
13
+
14
+ - ee5e9d6: Move all Global components to same export entry point
15
+
3
16
  ## 11.14.2-next.0
4
17
 
5
18
  ### Patch Changes
@@ -122,7 +122,7 @@ describe('Global component reconciliation', () => {
122
122
  beforeAll(async () => {
123
123
  bridgeCalls = (0, testUtils_1.setupBridge)();
124
124
  const App = () => {
125
- return ((0, jsx_runtime_1.jsxs)(global_1.Global, { children: [(0, jsx_runtime_1.jsxs)(global_1.Global.Sidebar, { forYouUrl: "for-you-test", children: [(0, jsx_runtime_1.jsx)(global_1.Global.LinkMenuItem, { label: "Link item 1", href: "1" }), (0, jsx_runtime_1.jsx)(global_1.Global.LinkMenuItem, { label: "Link item 2", href: "2" }), (0, jsx_runtime_1.jsx)(global_1.Global.LinkMenuItem, { label: "Link item 3", href: "3" }), (0, jsx_runtime_1.jsxs)(global_1.Global.ExpandableMenuItem, { label: `Campaign 49`, children: [(0, jsx_runtime_1.jsx)(global_1.Global.LinkMenuItem, { label: `Campaign 49 Home`, href: `campaigns/49` }), (0, jsx_runtime_1.jsx)(global_1.Global.LinkMenuItem, { label: `Feedback for Campaign 49`, href: `campaigns/49/feedback` })] }, 49), (0, jsx_runtime_1.jsxs)(global_1.Global.ExpandableMenuItem, { label: `Campaign 23`, children: [(0, jsx_runtime_1.jsx)(global_1.Global.LinkMenuItem, { label: `Campaign 23 Home`, href: `campaigns/23` }), (0, jsx_runtime_1.jsx)(global_1.Global.LinkMenuItem, { label: `Feedback for Campaign 23`, href: `campaigns/23/feedback` })] }, 23)] }), (0, jsx_runtime_1.jsx)(global_1.Global.Main, { children: (0, jsx_runtime_1.jsx)(components_1.Text, { children: "hello" }) })] }));
125
+ return ((0, jsx_runtime_1.jsxs)(global_1.Global, { children: [(0, jsx_runtime_1.jsxs)(global_1.Sidebar, { forYouUrl: "for-you-test", children: [(0, jsx_runtime_1.jsx)(global_1.LinkMenuItem, { label: "Link item 1", href: "1" }), (0, jsx_runtime_1.jsx)(global_1.LinkMenuItem, { label: "Link item 2", href: "2" }), (0, jsx_runtime_1.jsx)(global_1.LinkMenuItem, { label: "Link item 3", href: "3" }), (0, jsx_runtime_1.jsxs)(global_1.ExpandableMenuItem, { label: `Campaign 49`, children: [(0, jsx_runtime_1.jsx)(global_1.LinkMenuItem, { label: `Campaign 49 Home`, href: `campaigns/49` }), (0, jsx_runtime_1.jsx)(global_1.LinkMenuItem, { label: `Feedback for Campaign 49`, href: `campaigns/49/feedback` })] }, 49), (0, jsx_runtime_1.jsxs)(global_1.ExpandableMenuItem, { label: `Campaign 23`, children: [(0, jsx_runtime_1.jsx)(global_1.LinkMenuItem, { label: `Campaign 23 Home`, href: `campaigns/23` }), (0, jsx_runtime_1.jsx)(global_1.LinkMenuItem, { label: `Feedback for Campaign 23`, href: `campaigns/23/feedback` })] }, 23)] }), (0, jsx_runtime_1.jsx)(global_1.Main, { children: (0, jsx_runtime_1.jsx)(components_1.Text, { children: "hello" }) })] }));
126
126
  };
127
127
  resetKeyCount();
128
128
  await reconcilerTestRenderer_1.default.create((0, jsx_runtime_1.jsx)(App, {}));
@@ -1,11 +1,15 @@
1
- import type { TGlobalFlyOutMenuItem, TGlobalExpandableMenuItem, TGlobalLinkMenuItem, TGlobalSidebar, TGlobalMain, GlobalProps } from '@atlaskit/forge-react-types';
1
+ import type { TFlyOutMenuItem, TExpandableMenuItem, TLinkMenuItem, TSidebar, TMain, TGlobal, TCreateButton, TCreateMenuItem, THelpLink, TPersonalSettings, TPersonalSettingsItem } from '@atlaskit/forge-react-types/global';
2
2
  import type { ForgeElement } from '../../types';
3
- export declare const Global: {
4
- (props: GlobalProps): import("react/jsx-runtime").JSX.Element;
5
- Main: TGlobalMain<ForgeElement<Record<string, any>>>;
6
- Sidebar: TGlobalSidebar<ForgeElement<Record<string, any>>>;
7
- LinkMenuItem: TGlobalLinkMenuItem<ForgeElement<Record<string, any>>>;
8
- ExpandableMenuItem: TGlobalExpandableMenuItem<ForgeElement<Record<string, any>>>;
9
- FlyOutMenuItem: TGlobalFlyOutMenuItem<ForgeElement<Record<string, any>>>;
10
- };
3
+ export declare const Global: TGlobal<ForgeElement<Record<string, any>>>;
4
+ export declare const Main: TMain<ForgeElement<Record<string, any>>>;
5
+ export declare const Sidebar: TSidebar<ForgeElement<Record<string, any>>>;
6
+ export declare const LinkMenuItem: TLinkMenuItem<ForgeElement<Record<string, any>>>;
7
+ export declare const ExpandableMenuItem: TExpandableMenuItem<ForgeElement<Record<string, any>>>;
8
+ export declare const FlyOutMenuItem: TFlyOutMenuItem<ForgeElement<Record<string, any>>>;
9
+ export declare const CreateButton: TCreateButton<ForgeElement<Record<string, any>>>;
10
+ export declare const CreateMenuItem: TCreateMenuItem<ForgeElement<Record<string, any>>>;
11
+ export declare const HelpLink: THelpLink<ForgeElement<Record<string, any>>>;
12
+ export declare const PersonalSettings: TPersonalSettings<ForgeElement<Record<string, any>>>;
13
+ export declare const PersonalSettingsItems: TPersonalSettingsItem<ForgeElement<Record<string, any>>>;
14
+ export type { GlobalProps, MainProps, SidebarProps, LinkMenuItemProps, ExpandableMenuItemProps, FlyOutMenuItemProps, CreateButtonProps, CreateMenuItemProps, HelpLinkProps, PersonalSettingsProps, PersonalSettingsItemProps } from '@atlaskit/forge-react-types/global';
11
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,cAAc,EACd,WAAW,EAEX,WAAW,EACZ,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,eAAO,MAAM,MAAM;YAAW,WAAW;;;;;;CAExC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,KAAK,EACL,OAAO,EACP,aAAa,EACb,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,MAAM,4CAA+C,CAAC;AACnE,eAAO,MAAM,IAAI,0CAA2C,CAAC;AAC7D,eAAO,MAAM,OAAO,6CAAiD,CAAC;AACtE,eAAO,MAAM,YAAY,kDAA2D,CAAC;AACrF,eAAO,MAAM,kBAAkB,wDAAuE,CAAC;AACvG,eAAO,MAAM,cAAc,oDAA+D,CAAC;AAC3F,eAAO,MAAM,YAAY,kDAA2D,CAAC;AACrF,eAAO,MAAM,cAAc,oDAA+D,CAAC;AAC3F,eAAO,MAAM,QAAQ,8CAAmD,CAAC;AACzE,eAAO,MAAM,gBAAgB,sDAAmE,CAAC;AACjG,eAAO,MAAM,qBAAqB,0DAA4E,CAAC;AAG/G,YAAY,EACV,WAAW,EACX,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,oCAAoC,CAAC"}
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Global = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const GlobalPrimitive = 'Global';
6
- const Global = (props) => {
7
- return (0, jsx_runtime_1.jsx)(GlobalPrimitive, { children: props.children });
8
- };
9
- exports.Global = Global;
10
- exports.Global.Main = 'Global.Main';
11
- exports.Global.Sidebar = 'Global.Sidebar';
12
- exports.Global.LinkMenuItem = 'Global.LinkMenuItem';
13
- exports.Global.ExpandableMenuItem = 'Global.ExpandableMenuItem';
14
- exports.Global.FlyOutMenuItem = 'Global.FlyOutMenuItem';
3
+ exports.PersonalSettingsItems = exports.PersonalSettings = exports.HelpLink = exports.CreateMenuItem = exports.CreateButton = exports.FlyOutMenuItem = exports.ExpandableMenuItem = exports.LinkMenuItem = exports.Sidebar = exports.Main = exports.Global = void 0;
4
+ exports.Global = 'Global';
5
+ exports.Main = 'Main';
6
+ exports.Sidebar = 'Sidebar';
7
+ exports.LinkMenuItem = 'LinkMenuItem';
8
+ exports.ExpandableMenuItem = 'ExpandableMenuItem';
9
+ exports.FlyOutMenuItem = 'FlyOutMenuItem';
10
+ exports.CreateButton = 'CreateButton';
11
+ exports.CreateMenuItem = 'CreateMenuItem';
12
+ exports.HelpLink = 'HelpLink';
13
+ exports.PersonalSettings = 'PersonalSettings';
14
+ exports.PersonalSettingsItems = 'PersonalSettingsItems';
package/out/index.d.ts CHANGED
@@ -15,5 +15,4 @@ export { useForm } from './hooks/useForm';
15
15
  export { useObjectStore } from './hooks/useObjectStore';
16
16
  export type { XCSSObject, DocNode, Event } from './package-types';
17
17
  export type { AdfRendererProps, BadgeProps, BoxProps, ButtonGroupProps, ButtonProps, CalendarProps, CheckboxProps, CheckboxGroupProps, CodeBlockProps, CodeProps, CommentProps, DatePickerProps, DynamicTableProps, EmptyStateProps, ErrorMessageProps, FlexProps, FormFooterProps, FormHeaderProps, FormProps, FormSectionProps, GridProps, HeadingProps, HelperMessageProps, IconProps, InlineProps, LabelProps, LinkButtonProps, ListProps, ListItemProps, LoadingButtonProps, LozengeProps, ModalBodyProps, ModalFooterProps, ModalHeaderProps, ModalProps, ModalTitleProps, ModalTransitionProps, ProgressBarProps, ProgressTrackerProps, RadioGroupProps, RadioProps, RangeProps, SectionMessageActionProps, SectionMessageProps, SelectProps, SpinnerProps, StackProps, TabListProps, TabPanelProps, TabProps, TabsProps, TagGroupProps, TagProps, TextProps, TextAreaProps, TextfieldProps, ToggleProps, TooltipProps, TimePickerProps, ValidMessageProps, PopupProps, InlineEditProps, ChromelessEditorProps, CommentEditorProps, PressableProps, BarChartProps, StackBarChartProps, HorizontalStackBarChartProps, HorizontalBarChartProps, LineChartProps, DonutChartProps, PieChartProps, ChartColorTokens } from '@atlaskit/forge-react-types';
18
- export type { GlobalProps, GlobalMainProps, GlobalSidebarProps, GlobalLinkMenuItemProps, GlobalExpandableMenuItemProps } from '@atlaskit/forge-react-types';
19
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,eAAO,MAAM,IAAI,UAAW,UAAU,KAAG,UAAmB,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC3B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAG1D,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;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Aa,EACb,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,UAAU,EACV,eAAe,EACf,SAAS,EACT,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,UAAU,EACV,UAAU,EACV,yBAAyB,EACzB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,SAAS,EACT,aAAa,EACb,QAAQ,EACR,SAAS,EACT,aAAa,EACb,cAAc,EACd,WAAW,EACX,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,4BAA4B,EAC5B,uBAAuB,EACvB,cAAc,EACd,eAAe,EACf,aAAa,EACb,gBAAgB,EACjB,MAAM,6BAA6B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/react",
3
- "version": "11.14.2-next.0",
3
+ "version": "11.14.2-next.1-experimental-5b726e6",
4
4
  "description": "Forge React reconciler",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -31,8 +31,8 @@
31
31
  "dependencies": {
32
32
  "@atlaskit/adf-schema": "^48.0.0",
33
33
  "@atlaskit/adf-utils": "^19.19.0",
34
- "@atlaskit/forge-react-types": "^0.65.0",
35
- "@forge/bridge": "^5.15.2-next.0",
34
+ "@atlaskit/forge-react-types": "^1.0.2",
35
+ "@forge/bridge": "^5.15.2-next.0-experimental-5b726e6",
36
36
  "@forge/egress": "^2.3.2",
37
37
  "@forge/i18n": "0.0.7",
38
38
  "@types/react": "^18.2.64",