Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v12.8.0 #2028

Merged
merged 9 commits into from
Nov 21, 2023
Merged

v12.8.0 #2028

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
12 changes: 0 additions & 12 deletions .storybook/.babelrc

This file was deleted.

63 changes: 35 additions & 28 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,43 @@
module.exports = {
stories: ["../src/**/*.stories.@(mdx|js)"],
import fsp from "node:fs/promises";

import { mergeConfig } from "vite";

// This is done because lasso does not work with readme.md?raw
// Lasso is being used to run our browser tests with @marko/test
// If we get rid of lasso we should remove this code and switch all readmes to use ?raw
const markdownMatch = /\.md$/;
const rawMarkdown = {
name: "markdown-loader",
async load(id) {
if (markdownMatch.test(id)) {
// raw query, read file and return as string
return `export default ${JSON.stringify(
await fsp.readFile(id, "utf-8")
)}`;
}
},
};

export default {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
framework: "@storybook/marko-vite",
addons: [
"./plugins/theme-switcher/register.jsx",
{
name: "@storybook/addon-docs",
options: {
transcludeMarkdown: true,
},
},
"@storybook/addon-essentials",
"@storybook/addon-a11y",
],
core: {
builder: "webpack5",
docs: {
autodocs: true,
defaultName: "Documentation",
},
features: {
previewMdx2: true,
},
webpackFinal: async (config, { configType }) => {
config.module.rules.push({
test: /\.less$/,
use: ["style-loader", "css-loader", "less-loader"],
});
config.module.rules.push({
test: /\.txt$/,
type: "asset/source",
async viteFinal(config) {
return mergeConfig(config, {
plugins: [rawMarkdown],
});
config.module.rules = [
{
oneOf: [
{
resourceQuery: /raw/,
type: "asset/source",
},
...config.module.rules,
],
},
];
return config;
},
};
18 changes: 16 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -2,12 +2,26 @@ import "./custom-styles.less";
import "@ebay/skin/tokens";
import "@ebay/skin/global";
import "@ebay/skin/marketsans";
import order from "./storyOrder";

export const parameters = {
layout: "centered",
controls: { expanded: true },
options: {
storySort: { order },
storySort: {
order: [
"Welcome",
"Getting Started",
"Contributing",
"buttons",
"dialogs",
"form input",
"graphics & icons",
"media",
"navigation & disclosure",
"notices & tips",
"progress",
"building blocks",
],
},
},
};
20 changes: 0 additions & 20 deletions .storybook/storyOrder.js

This file was deleted.

2 changes: 1 addition & 1 deletion .storybook/storybook-code-source/index.js
Original file line number Diff line number Diff line change
@@ -73,4 +73,4 @@ function argsToString(args, plurarls, indent) {
return { attrs, body };
}

module.exports = { tagToString };
export { tagToString };
4 changes: 1 addition & 3 deletions .storybook/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const { render } = require("@marko/testing-library");

function addRenderBodies(input) {
if (input && typeof input === "object") {
if (Array.isArray(input)) {
@@ -41,4 +39,4 @@ function buildExtensionTemplate(template, code, args = {}) {
return builder;
}

module.exports = { addRenderBodies, buildExtensionTemplate };
export { addRenderBodies, buildExtensionTemplate };
2 changes: 0 additions & 2 deletions docs/115.c01cff5a.iframe.bundle.js

This file was deleted.

11 changes: 0 additions & 11 deletions docs/115.c01cff5a.iframe.bundle.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion docs/229.7070840686a4d7b1a64b.manager.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/229.87f57062.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/295.24e06ce63ee07d1d19ec.manager.bundle.js

This file was deleted.

2 changes: 0 additions & 2 deletions docs/311.3f54e21b.iframe.bundle.js

This file was deleted.

60 changes: 0 additions & 60 deletions docs/311.3f54e21b.iframe.bundle.js.LICENSE.txt

This file was deleted.

2 changes: 0 additions & 2 deletions docs/51.7c33bd3abdae5f54234b.manager.bundle.js

This file was deleted.

8 changes: 0 additions & 8 deletions docs/51.7c33bd3abdae5f54234b.manager.bundle.js.LICENSE.txt

This file was deleted.

2 changes: 0 additions & 2 deletions docs/51.a025ef93.iframe.bundle.js

This file was deleted.

8 changes: 0 additions & 8 deletions docs/51.a025ef93.iframe.bundle.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion docs/551.25d8b303e41b77e049ae.manager.bundle.js

This file was deleted.

Loading
Loading