@forge/react 11.16.2-next.1-experimental-49a346a → 11.17.0-experimental-04cc2b9

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 (120) hide show
  1. package/CHANGELOG.md +24 -10
  2. package/out/__test__/reconcilerTestRenderer.d.ts +5 -5
  3. package/out/__test__/reconcilerTestRenderer.d.ts.map +1 -1
  4. package/out/__test__/testUtils.d.ts +6 -6
  5. package/out/__test__/testUtils.d.ts.map +1 -1
  6. package/out/components/adf-renderer.d.ts +1 -1
  7. package/out/components/adf-renderer.d.ts.map +1 -1
  8. package/out/components/comment.d.ts.map +1 -1
  9. package/out/components/dynamic-table.d.ts.map +1 -1
  10. package/out/components/global/index.d.ts +11 -11
  11. package/out/components/global/index.d.ts.map +1 -1
  12. package/out/components/global/index.js +2 -2
  13. package/out/components/index.d.ts +1 -1
  14. package/out/components/index.d.ts.map +1 -1
  15. package/out/components/inline-edit.d.ts.map +1 -1
  16. package/out/components/jira/custom-field-edit.d.ts.map +1 -1
  17. package/out/components/popup.d.ts.map +1 -1
  18. package/out/components/ui-kit-components.d.ts +79 -80
  19. package/out/components/ui-kit-components.d.ts.map +1 -1
  20. package/out/components/utils/content-wrapper.d.ts +1 -1
  21. package/out/components/utils/content-wrapper.d.ts.map +1 -1
  22. package/out/components/utils/replaceUnsupportedDocumentNodes.d.ts.map +1 -1
  23. package/out/hooks/__test__/usePermissions.test.js +2 -2
  24. package/out/hooks/confluenceEntity.d.ts.map +1 -1
  25. package/out/hooks/jiraEntity.d.ts.map +1 -1
  26. package/out/hooks/types/confEntityProps.d.ts +4 -4
  27. package/out/hooks/types/confEntityProps.d.ts.map +1 -1
  28. package/out/hooks/types/entityProps.d.ts +12 -12
  29. package/out/hooks/types/entityProps.d.ts.map +1 -1
  30. package/out/hooks/types/jiraEntityProps.d.ts +2 -2
  31. package/out/hooks/types/jiraEntityProps.d.ts.map +1 -1
  32. package/out/hooks/types/objectStoreProps.d.ts +6 -6
  33. package/out/hooks/types/objectStoreProps.d.ts.map +1 -1
  34. package/out/hooks/useContentProperty.d.ts.map +1 -1
  35. package/out/hooks/useEntityProperty.d.ts.map +1 -1
  36. package/out/hooks/useForm.d.ts +3 -3
  37. package/out/hooks/useForm.d.ts.map +1 -1
  38. package/out/hooks/useForm.js +2 -3
  39. package/out/hooks/useIssueProperty.d.ts +1 -1
  40. package/out/hooks/useIssueProperty.d.ts.map +1 -1
  41. package/out/hooks/useObjectStore.d.ts.map +1 -1
  42. package/out/hooks/useObjectStore.js +1 -2
  43. package/out/hooks/usePermissions.d.ts.map +1 -1
  44. package/out/hooks/useSpaceProperty.d.ts +1 -1
  45. package/out/hooks/useSpaceProperty.d.ts.map +1 -1
  46. package/out/hooks/useTheme.d.ts +1 -1
  47. package/out/hooks/useTheme.d.ts.map +1 -1
  48. package/out/hooks/useTranslation.d.ts +1 -1
  49. package/out/hooks/useTranslation.d.ts.map +1 -1
  50. package/out/hooks/utils/apiRequestUtils.d.ts.map +1 -1
  51. package/out/hooks/utils/valueUtils.d.ts +1 -1
  52. package/out/hooks/utils/valueUtils.d.ts.map +1 -1
  53. package/out/index.d.ts.map +1 -1
  54. package/out/package-types.d.ts +2 -2
  55. package/out/package-types.d.ts.map +1 -1
  56. package/out/reconciler.d.ts +17 -17
  57. package/out/reconciler.d.ts.map +1 -1
  58. package/out/types/components.d.ts +41 -41
  59. package/out/types/components.d.ts.map +1 -1
  60. package/out/types/effect.d.ts +6 -6
  61. package/out/types/effect.d.ts.map +1 -1
  62. package/out/types/effect.js +2 -2
  63. package/out/types/forge.d.ts +8 -8
  64. package/out/types/forge.d.ts.map +1 -1
  65. package/out/types/forge.js +3 -3
  66. package/out/types/icons.d.ts +1 -1
  67. package/out/types/icons.d.ts.map +1 -1
  68. package/out/types/legacy-effect.d.ts +3 -3
  69. package/out/types/legacy-effect.d.ts.map +1 -1
  70. package/out/types/legacy-effect.js +2 -2
  71. package/package.json +15 -11
  72. package/tsconfig.tsbuildinfo +1 -1
  73. package/out/router/components/ParamsContext.d.ts +0 -3
  74. package/out/router/components/ParamsContext.d.ts.map +0 -1
  75. package/out/router/components/ParamsContext.js +0 -5
  76. package/out/router/components/Route.d.ts +0 -7
  77. package/out/router/components/Route.d.ts.map +0 -1
  78. package/out/router/components/Route.js +0 -25
  79. package/out/router/components/Router.d.ts +0 -7
  80. package/out/router/components/Router.d.ts.map +0 -1
  81. package/out/router/components/Router.js +0 -43
  82. package/out/router/components/RouterContext.d.ts +0 -9
  83. package/out/router/components/RouterContext.d.ts.map +0 -1
  84. package/out/router/components/RouterContext.js +0 -5
  85. package/out/router/components/__test__/Router.test.d.ts +0 -2
  86. package/out/router/components/__test__/Router.test.d.ts.map +0 -1
  87. package/out/router/components/__test__/Router.test.js +0 -77
  88. package/out/router/components/index.d.ts +0 -3
  89. package/out/router/components/index.d.ts.map +0 -1
  90. package/out/router/components/index.js +0 -7
  91. package/out/router/hooks/__test__/useLocation.test.d.ts +0 -2
  92. package/out/router/hooks/__test__/useLocation.test.d.ts.map +0 -1
  93. package/out/router/hooks/__test__/useLocation.test.js +0 -59
  94. package/out/router/hooks/__test__/useNavigate.test.d.ts +0 -2
  95. package/out/router/hooks/__test__/useNavigate.test.d.ts.map +0 -1
  96. package/out/router/hooks/__test__/useNavigate.test.js +0 -159
  97. package/out/router/hooks/__test__/useParams.test.d.ts +0 -2
  98. package/out/router/hooks/__test__/useParams.test.d.ts.map +0 -1
  99. package/out/router/hooks/__test__/useParams.test.js +0 -69
  100. package/out/router/hooks/useLocation.d.ts +0 -3
  101. package/out/router/hooks/useLocation.d.ts.map +0 -1
  102. package/out/router/hooks/useLocation.js +0 -13
  103. package/out/router/hooks/useNavigate.d.ts +0 -6
  104. package/out/router/hooks/useNavigate.d.ts.map +0 -1
  105. package/out/router/hooks/useNavigate.js +0 -45
  106. package/out/router/hooks/useParams.d.ts +0 -2
  107. package/out/router/hooks/useParams.d.ts.map +0 -1
  108. package/out/router/hooks/useParams.js +0 -13
  109. package/out/router/index.d.ts +0 -5
  110. package/out/router/index.d.ts.map +0 -1
  111. package/out/router/index.js +0 -12
  112. package/out/router/utils/__test__/matchPath.test.d.ts +0 -2
  113. package/out/router/utils/__test__/matchPath.test.d.ts.map +0 -1
  114. package/out/router/utils/__test__/matchPath.test.js +0 -56
  115. package/out/router/utils/matchPath.d.ts +0 -5
  116. package/out/router/utils/matchPath.d.ts.map +0 -1
  117. package/out/router/utils/matchPath.js +0 -34
  118. package/out/router/utils/test-utils.d.ts +0 -10
  119. package/out/router/utils/test-utils.d.ts.map +0 -1
  120. package/out/router/utils/test-utils.js +0 -23
@@ -1 +0,0 @@
1
- {"version":3,"file":"useParams.d.ts","sourceRoot":"","sources":["../../../src/router/hooks/useParams.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAAO,OAAO,MAAM,EAAE,MAAM,CAMjD,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useParams = void 0;
4
- const react_1 = require("react");
5
- const ParamsContext_1 = require("../components/ParamsContext");
6
- const useParams = () => {
7
- const context = (0, react_1.useContext)(ParamsContext_1.ParamsContext);
8
- if (context === null) {
9
- throw new Error('useParams must be used within a Route component');
10
- }
11
- return context;
12
- };
13
- exports.useParams = useParams;
@@ -1,5 +0,0 @@
1
- export { Router, Route, type RouterProps, type RouteProps } from './components';
2
- export { useNavigate } from './hooks/useNavigate';
3
- export { useLocation } from './hooks/useLocation';
4
- export { useParams } from './hooks/useParams';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/router/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useParams = exports.useLocation = exports.useNavigate = exports.Route = exports.Router = void 0;
4
- var components_1 = require("./components");
5
- Object.defineProperty(exports, "Router", { enumerable: true, get: function () { return components_1.Router; } });
6
- Object.defineProperty(exports, "Route", { enumerable: true, get: function () { return components_1.Route; } });
7
- var useNavigate_1 = require("./hooks/useNavigate");
8
- Object.defineProperty(exports, "useNavigate", { enumerable: true, get: function () { return useNavigate_1.useNavigate; } });
9
- var useLocation_1 = require("./hooks/useLocation");
10
- Object.defineProperty(exports, "useLocation", { enumerable: true, get: function () { return useLocation_1.useLocation; } });
11
- var useParams_1 = require("./hooks/useParams");
12
- Object.defineProperty(exports, "useParams", { enumerable: true, get: function () { return useParams_1.useParams; } });
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=matchPath.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"matchPath.test.d.ts","sourceRoot":"","sources":["../../../../src/router/utils/__test__/matchPath.test.ts"],"names":[],"mappings":""}
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const matchPath_1 = require("../matchPath");
4
- describe('matchPath', () => {
5
- it('matches exact static paths', () => {
6
- expect((0, matchPath_1.matchPath)('/', '/')).toEqual({ params: {} });
7
- expect((0, matchPath_1.matchPath)('/settings', '/settings')).toEqual({ params: {} });
8
- });
9
- it('returns null for non-matching static paths', () => {
10
- expect((0, matchPath_1.matchPath)('/settings', '/about')).toBeNull();
11
- expect((0, matchPath_1.matchPath)('/settings', '/')).toBeNull();
12
- });
13
- it('extracts a single param', () => {
14
- expect((0, matchPath_1.matchPath)('/posts/:id', '/posts/123')).toEqual({ params: { id: '123' } });
15
- });
16
- it('extracts multiple params', () => {
17
- expect((0, matchPath_1.matchPath)('/posts/:postId/comments/:commentId', '/posts/42/comments/7')).toEqual({
18
- params: { postId: '42', commentId: '7' }
19
- });
20
- });
21
- it('returns null when segment count differs', () => {
22
- expect((0, matchPath_1.matchPath)('/posts/:id', '/posts')).toBeNull();
23
- expect((0, matchPath_1.matchPath)('/posts/:id', '/posts/123/extra')).toBeNull();
24
- });
25
- it('returns null when static segments do not match', () => {
26
- expect((0, matchPath_1.matchPath)('/posts/:id', '/users/123')).toBeNull();
27
- });
28
- it('matches paths with mixed static and dynamic segments', () => {
29
- expect((0, matchPath_1.matchPath)('/users/:userId/posts/:postId', '/users/alice/posts/99')).toEqual({
30
- params: { userId: 'alice', postId: '99' }
31
- });
32
- });
33
- it('matches catchall pattern and captures remaining segments', () => {
34
- expect((0, matchPath_1.matchPath)('/files/*', '/files/docs/report.pdf')).toEqual({
35
- params: { '*': 'docs/report.pdf' }
36
- });
37
- });
38
- it('matches catchall with empty remainder', () => {
39
- expect((0, matchPath_1.matchPath)('/files/*', '/files')).toEqual({
40
- params: { '*': '' }
41
- });
42
- });
43
- it('matches bare catchall against any path', () => {
44
- expect((0, matchPath_1.matchPath)('*', '/anything/at/all')).toEqual({
45
- params: { '*': 'anything/at/all' }
46
- });
47
- });
48
- it('matches catchall combined with dynamic params', () => {
49
- expect((0, matchPath_1.matchPath)('/posts/:id/*', '/posts/42/comments/7')).toEqual({
50
- params: { id: '42', '*': 'comments/7' }
51
- });
52
- });
53
- it('returns null when static segments before catchall do not match', () => {
54
- expect((0, matchPath_1.matchPath)('/files/*', '/users/alice')).toBeNull();
55
- });
56
- });
@@ -1,5 +0,0 @@
1
- export interface MatchResult {
2
- params: Record<string, string>;
3
- }
4
- export declare const matchPath: (pattern: string, pathname: string) => MatchResult | null;
5
- //# sourceMappingURL=matchPath.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"matchPath.d.ts","sourceRoot":"","sources":["../../../src/router/utils/matchPath.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,SAAS,YAAa,MAAM,YAAY,MAAM,KAAG,WAAW,GAAG,IAiC3E,CAAC"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.matchPath = void 0;
4
- const matchPath = (pattern, pathname) => {
5
- const patternSegments = pattern.split('/').filter(Boolean);
6
- const pathSegments = pathname.split('/').filter(Boolean);
7
- const hasCatchall = patternSegments.length > 0 && patternSegments[patternSegments.length - 1] === '*';
8
- const matchSegments = hasCatchall ? patternSegments.slice(0, -1) : patternSegments;
9
- if (hasCatchall) {
10
- if (pathSegments.length < matchSegments.length) {
11
- return null;
12
- }
13
- }
14
- else if (patternSegments.length !== pathSegments.length) {
15
- return null;
16
- }
17
- const params = {};
18
- for (let i = 0; i < matchSegments.length; i++) {
19
- const patternSegment = matchSegments[i];
20
- const pathSegment = pathSegments[i];
21
- if (patternSegment.startsWith(':')) {
22
- const paramName = patternSegment.slice(1);
23
- params[paramName] = pathSegment;
24
- }
25
- else if (patternSegment !== pathSegment) {
26
- return null;
27
- }
28
- }
29
- if (hasCatchall) {
30
- params['*'] = pathSegments.slice(matchSegments.length).join('/');
31
- }
32
- return { params };
33
- };
34
- exports.matchPath = matchPath;
@@ -1,10 +0,0 @@
1
- import { History } from 'history';
2
- /**
3
- * Creates a mock history object that emulates the v4 history API.
4
- * The bridge returns a v4-style history object at runtime where `listen`
5
- * calls back with `location` directly, but `createMemoryHistory` from
6
- * the installed history v5 package passes `{ action, location }`.
7
- * This wrapper adapts the v5 listener to behave like v4.
8
- */
9
- export declare const createMockHistory: (initialPath?: string) => History;
10
- //# sourceMappingURL=test-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../src/router/utils/test-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,4BAAwB,OAYrD,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createMockHistory = void 0;
4
- const history_1 = require("history");
5
- /**
6
- * Creates a mock history object that emulates the v4 history API.
7
- * The bridge returns a v4-style history object at runtime where `listen`
8
- * calls back with `location` directly, but `createMemoryHistory` from
9
- * the installed history v5 package passes `{ action, location }`.
10
- * This wrapper adapts the v5 listener to behave like v4.
11
- */
12
- const createMockHistory = (initialPath = '/') => {
13
- const history = (0, history_1.createMemoryHistory)({ initialEntries: [initialPath] });
14
- const originalListen = history.listen.bind(history);
15
- history.listen = (callback) => {
16
- return originalListen(({ location }) => callback(location));
17
- };
18
- jest.spyOn(history, 'push');
19
- jest.spyOn(history, 'replace');
20
- jest.spyOn(history, 'go');
21
- return history;
22
- };
23
- exports.createMockHistory = createMockHistory;