create-packer 1.43.9 → 1.43.11
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/package.json +1 -1
- package/template/lib/workspace/.storybook/main.ts +1 -8
- package/template/lib/workspace/package.json +8 -8
- package/template/lib/workspace/packages/react/src/button/button.stories.ts +2 -1
- package/template/web-app/vue/.stylelintrc +6 -0
- package/template/web-app/vue/eslint.config.js +1 -0
- package/template/web-app/vue/package.json +1 -0
- package/template/web-app/vue/tsconfig.json +1 -0
- package/template/web-app/vue-rsbuild/.stylelintrc +6 -0
- package/template/web-app/vue-rsbuild/eslint.config.js +1 -0
- package/template/web-app/vue-rsbuild/package.json +1 -0
- package/template/web-app/vue-rsbuild/tsconfig.json +1 -0
- package/template/web-extension/shared/content/message.ts +4 -3
package/package.json
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import svgr from '@svgr/rollup'
|
|
2
2
|
import type { StorybookConfig } from '@storybook/react-vite'
|
|
3
3
|
|
|
4
|
-
function createStories(lib: string): string[] {
|
|
5
|
-
return [
|
|
6
|
-
`../packages/${lib}/src/**/*.mdx`,
|
|
7
|
-
`../packages/${lib}/src/**/*.stories.@(js|jsx|ts|tsx)`
|
|
8
|
-
]
|
|
9
|
-
}
|
|
10
|
-
|
|
11
4
|
const config: StorybookConfig = {
|
|
12
|
-
stories: [
|
|
5
|
+
stories: [`../packages/**/*.mdx`, `../packages/**/*.stories.@(js|jsx|ts|tsx)`],
|
|
13
6
|
addons: [
|
|
14
7
|
'@storybook/addon-links',
|
|
15
8
|
'@storybook/addon-essentials',
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@changesets/cli": "2.26.2",
|
|
45
45
|
"@eslint/js": "9.15.0",
|
|
46
|
-
"@storybook/addon-essentials": "8.
|
|
47
|
-
"@storybook/addon-interactions": "8.
|
|
48
|
-
"@storybook/addon-links": "8.
|
|
49
|
-
"@storybook/blocks": "8.
|
|
50
|
-
"@storybook/react": "8.
|
|
51
|
-
"@storybook/react-vite": "8.
|
|
46
|
+
"@storybook/addon-essentials": "8.6.12",
|
|
47
|
+
"@storybook/addon-interactions": "8.6.12",
|
|
48
|
+
"@storybook/addon-links": "8.6.12",
|
|
49
|
+
"@storybook/blocks": "8.6.12",
|
|
50
|
+
"@storybook/react": "8.6.12",
|
|
51
|
+
"@storybook/react-vite": "8.6.12",
|
|
52
52
|
"@storybook/testing-library": "0.2.2",
|
|
53
53
|
"@svgr/rollup": "8.1.0",
|
|
54
54
|
"@types/node": "20.3.2",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"eslint-plugin-import": "2.31.0",
|
|
61
61
|
"eslint-plugin-react": "7.37.2",
|
|
62
62
|
"eslint-plugin-react-hooks": "5.1.0",
|
|
63
|
-
"eslint-plugin-storybook": "0.
|
|
63
|
+
"eslint-plugin-storybook": "0.12.0",
|
|
64
64
|
"globals": "15.12.0",
|
|
65
65
|
"inquirer": "^8.1.2",
|
|
66
66
|
"postcss": "8.4.31",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"prop-types": "15.8.1",
|
|
73
73
|
"react": "18.2.0",
|
|
74
74
|
"react-dom": "18.2.0",
|
|
75
|
-
"storybook": "8.
|
|
75
|
+
"storybook": "8.6.12",
|
|
76
76
|
"stylelint": "16.10.0",
|
|
77
77
|
"stylelint-config-standard-scss": "13.0.0",
|
|
78
78
|
"ts-node": "10.9.1",
|
|
@@ -10,10 +10,11 @@ const meta: Meta<typeof Button> = {
|
|
|
10
10
|
backgroundColor: { control: 'color' }
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
type Story = StoryObj<typeof meta>
|
|
14
13
|
|
|
15
14
|
export default meta
|
|
16
15
|
|
|
16
|
+
type Story = StoryObj<typeof Button>
|
|
17
|
+
|
|
17
18
|
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
18
19
|
export const Primary: Story = {
|
|
19
20
|
args: {
|
|
@@ -6,17 +6,17 @@ export type messageType = {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
export const { sendMessage, onMessage } = defineExtensionMessaging<messageType>()
|
|
9
|
-
|
|
10
9
|
export async function sendToAllContent<A extends keyof messageType>(
|
|
11
10
|
action: A,
|
|
12
11
|
data?: Parameters<messageType[A]>[0]
|
|
13
12
|
) {
|
|
14
13
|
const tabs = await chrome.tabs.query({ url: CONTENT_MATCHES })
|
|
15
|
-
|
|
14
|
+
const result = await Promise.all(
|
|
16
15
|
tabs.map(tab => {
|
|
17
16
|
return sendMessage(action, data as never, { tabId: tab.id! })
|
|
18
17
|
})
|
|
19
18
|
)
|
|
19
|
+
return result
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export async function sendToCurrentContent<A extends keyof messageType>(
|
|
@@ -24,5 +24,6 @@ export async function sendToCurrentContent<A extends keyof messageType>(
|
|
|
24
24
|
data?: Parameters<messageType[A]>[0]
|
|
25
25
|
) {
|
|
26
26
|
const tabs = await chrome.tabs.query({ active: true, url: CONTENT_MATCHES })
|
|
27
|
-
|
|
27
|
+
const result = await sendMessage(action, data as never, { tabId: tabs[0].id! })
|
|
28
|
+
return result
|
|
28
29
|
}
|