Skip to content

Commit 853f1fd

Browse files
authored
Move callout into the native directory (#4201)
* move fallout to new location * finish off callout move with instruction and link changes
1 parent 4c18559 commit 853f1fd

60 files changed

Lines changed: 94 additions & 23 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/calm-bees-brush.md

Lines changed: 13 additions & 0 deletions

.oxfmtrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"**/*.generated.*",
1111
"**/lib-commonjs/**",
1212
"**/dist/**",
13-
"packages/components/Callout/windows/Callout/codegen/**",
13+
"packages/native/Callout/windows/Callout/codegen/**",
1414
"**/esrp-npm-release-temp/**",
1515
"**/CHANGELOG.*",
1616
"**/CODE_OF_CONDUCT.md",

AGENTS.md

Lines changed: 7 additions & 3 deletions

apps/fluent-tester/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"include": ["src"],
1212
"references": [
1313
{
14-
"path": "../../packages/components/Callout/tsconfig.json"
14+
"path": "../../packages/native/Callout/tsconfig.json"
1515
},
1616
{
1717
"path": "../../packages/experimental/AppearanceAdditions/tsconfig.json"

apps/storybook/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { StorybookConfig } from '@storybook/react-native';
77
* that are linked into this application.
88
*/
99
const main: StorybookConfig = {
10-
stories: ['../../src/**/*.stories.?(ts|tsx)', '../../../components/Callout/src/**/*.stories.?(ts|tsx)'],
10+
stories: ['../../src/**/*.stories.?(ts|tsx)', '../../../native/Callout/src/**/*.stories.?(ts|tsx)'],
1111
addons: [],
1212
deviceAddons: ['@storybook/addon-ondevice-controls', '@storybook/addon-ondevice-actions'],
1313
};

apps/storybook/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"exclude": ["node_modules", "dist", ".cache"],
1616
"references": [
1717
{
18-
"path": "../../packages/components/Callout/tsconfig.json"
18+
"path": "../../packages/native/Callout/tsconfig.json"
1919
},
2020
{
2121
"path": "../../packages/agentic-components/tsconfig.json"

apps/tester-core/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"path": "../../packages/components/Button/tsconfig.json"
3030
},
3131
{
32-
"path": "../../packages/components/Callout/tsconfig.json"
32+
"path": "../../packages/native/Callout/tsconfig.json"
3333
},
3434
{
3535
"path": "../../packages/components/Chip/tsconfig.json"

packages/agentic-components/specs/popover/blockers.md

Lines changed: 1 addition & 1 deletion
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/* do not change this file, it is auto generated by storybook. */
2+
/// <reference types="@storybook/react-native/metro-env" />
3+
import { start, updateView, type View, type Features } from '@storybook/react-native';
4+
5+
import '@storybook/addon-ondevice-controls/register';
6+
import '@storybook/addon-ondevice-actions/register';
7+
8+
const normalizedStories = [
9+
{
10+
titlePrefix: '',
11+
directory: '../src',
12+
files: '**/*.stories.?(ts|tsx)',
13+
importPathMatcher: /^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx)?)$/,
14+
req: require.context('../../src', true, /^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx)?)$/),
15+
},
16+
{
17+
titlePrefix: '',
18+
directory: '../../native/Callout/src',
19+
files: '**/*.stories.?(ts|tsx)',
20+
importPathMatcher: /^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx)?)$/,
21+
req: require.context(
22+
'../../../native/Callout/src',
23+
true,
24+
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx)?)$/,
25+
),
26+
},
27+
];
28+
29+
declare global {
30+
var view: View;
31+
var STORIES: typeof normalizedStories;
32+
var STORYBOOK_WEBSOCKET: { host?: string; port?: number; secured?: boolean } | undefined;
33+
var FEATURES: Features;
34+
}
35+
36+
const annotations = [require('./preview'), require('@storybook/react-native/preview')];
37+
38+
globalThis.STORIES = normalizedStories;
39+
40+
module?.hot?.accept?.();
41+
42+
const options = {};
43+
44+
if (!globalThis.view) {
45+
globalThis.view = start({
46+
annotations,
47+
storyEntries: normalizedStories,
48+
options,
49+
});
50+
} else {
51+
updateView(globalThis.view, annotations, normalizedStories, options);
52+
}
53+
54+
export const view: View = globalThis.view;

packages/agentic-components/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"exclude": ["**/*.stories.ts", "**/*.stories.tsx"],
1111
"references": [
1212
{
13-
"path": "../components/Callout/tsconfig.json"
13+
"path": "../native/Callout/tsconfig.json"
1414
},
1515
{
1616
"path": "../agentic-design/tsconfig.json"

0 commit comments

Comments
 (0)