@emulsify/core 1.1.1 → 1.2.0
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/.github/workflows/addtoprojects.yml +1 -1
- package/.github/workflows/contributors.yml +1 -1
- package/.history/.github/workflows/addtoprojects_20240130164835.yml +21 -0
- package/.history/.github/workflows/addtoprojects_20240607213528.yml +21 -0
- package/.history/.github/workflows/contributors_20240130164835.yml +23 -0
- package/.history/.github/workflows/contributors_20240607213836.yml +23 -0
- package/.history/.storybook/main_20240722083211.js +153 -0
- package/.history/.storybook/preview_20240610083720.js +37 -0
- package/.history/.storybook/preview_20240610083852.js +30 -0
- package/.history/config/webpack/loaders_20240401184511.js +87 -0
- package/.history/config/webpack/loaders_20240610084138.js +87 -0
- package/.history/{package_20240607145546.json → package_20240722085509.json} +6 -6
- package/.history/{package_20240607155640.json → package_20240722085523.json} +8 -9
- package/.history/{package_20240607135337.json → package_20240722085530.json} +16 -8
- package/.history/package_20240722085550.json +135 -0
- package/.history/package_20240722085556.json +135 -0
- package/.history/package_20240722085606.json +135 -0
- package/.history/package_20240722091526.json +135 -0
- package/.history/{package_20240607163353.json → package_20240722091548.json} +5 -5
- package/.storybook/main.js +137 -6
- package/.storybook/preview.js +2 -12
- package/config/webpack/loaders.js +2 -2
- package/package.json +5 -5
- package/.history/.storybook/main_20240401184129.js +0 -22
- package/.history/.storybook/main_20240607162805.js +0 -22
- package/.history/package_20240607132936.json +0 -121
- package/.history/package_20240607135135.json +0 -121
- package/.history/package_20240607135150.json +0 -121
- package/.history/package_20240607135242.json +0 -124
- package/.history/package_20240607135251.json +0 -124
- package/.storybook/manager-head.html +0 -122
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Add to projects
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issues:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
pull_request:
|
|
8
|
+
types:
|
|
9
|
+
- opened
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
add-to-project:
|
|
13
|
+
name: Add issue to project
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/add-to-project@v0.3.0
|
|
17
|
+
with:
|
|
18
|
+
# You can target a repository in a different organization
|
|
19
|
+
# to the issue
|
|
20
|
+
project-url: https://github.com/orgs/emulsify-ds/projects/6
|
|
21
|
+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Add to projects
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issues:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
pull_request:
|
|
8
|
+
types:
|
|
9
|
+
- opened
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
add-to-project:
|
|
13
|
+
name: Add issue to project
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/add-to-project@v0.3.0
|
|
17
|
+
with:
|
|
18
|
+
# You can target a repository in a different organization
|
|
19
|
+
# to the issue
|
|
20
|
+
project-url: https://github.com/orgs/emulsify-ds/projects/6
|
|
21
|
+
token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Add contributors
|
|
2
|
+
on:
|
|
3
|
+
schedule:
|
|
4
|
+
- cron: "20 20 * * *"
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- master
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
add-contributors:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v2
|
|
14
|
+
- uses: BobAnkh/add-contributors@master
|
|
15
|
+
with:
|
|
16
|
+
CONTRIBUTOR: "### Contributors"
|
|
17
|
+
COLUMN_PER_ROW: "6"
|
|
18
|
+
ACCESS_TOKEN: ${{secrets.ADD_TO_PROJECT_PAT}}
|
|
19
|
+
IMG_WIDTH: "100"
|
|
20
|
+
FONT_SIZE: "14"
|
|
21
|
+
PATH: "/README.md"
|
|
22
|
+
COMMIT_MESSAGE: "docs(README): update contributors"
|
|
23
|
+
AVATAR_SHAPE: "round"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Add contributors
|
|
2
|
+
on:
|
|
3
|
+
schedule:
|
|
4
|
+
- cron: "20 20 * * *"
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
add-contributors:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v2
|
|
14
|
+
- uses: BobAnkh/add-contributors@master
|
|
15
|
+
with:
|
|
16
|
+
CONTRIBUTOR: "### Contributors"
|
|
17
|
+
COLUMN_PER_ROW: "6"
|
|
18
|
+
ACCESS_TOKEN: ${{secrets.ADD_TO_PROJECT_PAT}}
|
|
19
|
+
IMG_WIDTH: "100"
|
|
20
|
+
FONT_SIZE: "14"
|
|
21
|
+
PATH: "/README.md"
|
|
22
|
+
COMMIT_MESSAGE: "docs(README): update contributors"
|
|
23
|
+
AVATAR_SHAPE: "round"
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
const { configOverrides } = require('../../../../config/emulsify-core/storybook/main');
|
|
2
|
+
|
|
3
|
+
const defaultConfig = {
|
|
4
|
+
stories: [
|
|
5
|
+
'../../../../components/**/*.stories.@(js|jsx|ts|tsx)',
|
|
6
|
+
],
|
|
7
|
+
addons: [
|
|
8
|
+
'../../../@storybook/addon-a11y',
|
|
9
|
+
'../../../@storybook/addon-links',
|
|
10
|
+
'../../../@storybook/addon-essentials',
|
|
11
|
+
'../../../@storybook/addon-themes',
|
|
12
|
+
'../../../@storybook/addon-styling-webpack'
|
|
13
|
+
],
|
|
14
|
+
core: {
|
|
15
|
+
builder: 'webpack5',
|
|
16
|
+
},
|
|
17
|
+
framework: {
|
|
18
|
+
name: '@storybook/html-webpack5',
|
|
19
|
+
options: {},
|
|
20
|
+
},
|
|
21
|
+
docs: {
|
|
22
|
+
autodocs: true,
|
|
23
|
+
},
|
|
24
|
+
managerHead: (head) => `
|
|
25
|
+
${head}
|
|
26
|
+
<style>
|
|
27
|
+
:root {
|
|
28
|
+
--colors-emulsify-blue-100: #e6f5fc;
|
|
29
|
+
--colors-emulsify-blue-200: #CCECFA;
|
|
30
|
+
--colors-emulsify-blue-300: #99D9F4;
|
|
31
|
+
--colors-emulsify-blue-400: #66c5ef;
|
|
32
|
+
--colors-emulsify-blue-500: #33b2e9;
|
|
33
|
+
--colors-emulsify-blue-600: #009fe4;
|
|
34
|
+
--colors-emulsify-blue-700: #007FB6;
|
|
35
|
+
--colors-emulsify-blue-800: #005f89;
|
|
36
|
+
--colors-emulsify-blue-900: #00405b;
|
|
37
|
+
--colors-emulsify-blue-1000: #00202e;
|
|
38
|
+
--colors-purple: #8B1E7E;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sidebar-container {
|
|
42
|
+
background: url('https://raw.githubusercontent.com/fourkitchens/emulsify-core/main/assets/images/corner-bkg.png?token=GHSAT0AAAAAACIEXLVDMX56QK3ZIZWHWHTEZNYFYIA') no-repeat top left;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sidebar-container .sidebar-subheading {
|
|
46
|
+
color: var(--colors-emulsify-blue-200);
|
|
47
|
+
font-size: 13px;
|
|
48
|
+
letter-spacing: 0.15em;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.sidebar-container .sidebar-subheading button:focus {
|
|
52
|
+
color: var(--colors-emulsify-blue-300);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** Triangle icon **/
|
|
56
|
+
.sidebar-container .sidebar-subheading button span {
|
|
57
|
+
color: var(--colors-emulsify-blue-300);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.sidebar-container .search-field input {
|
|
61
|
+
border-color: var(--colors-emulsify-blue-700);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.sidebar-container .search-field input:active {
|
|
65
|
+
border-color: var(--colors-emulsify-blue-700);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.sidebar-container .search-result-recentlyOpened,
|
|
69
|
+
.sidebar-container .search-result-back,
|
|
70
|
+
.sidebar-container .search-result-clearHistory {
|
|
71
|
+
color: var(--colors-emulsify-blue-300) !important;
|
|
72
|
+
letter-spacing: 0.15em;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.sidebar-container .search-result-back span,
|
|
76
|
+
.sidebar-container .search-result-back svg,
|
|
77
|
+
.sidebar-container .search-result-clearHistory span,
|
|
78
|
+
.sidebar-container .search-result-clearHistory svg {
|
|
79
|
+
letter-spacing: normal;
|
|
80
|
+
color: white;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.sidebar-container .sidebar-item svg {
|
|
84
|
+
margin-top: 1px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.sidebar-container .sidebar-item span {
|
|
88
|
+
margin-top: 4px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.sidebar-container .sidebar-subheading-action svg {
|
|
92
|
+
color: var(--colors-emulsify-blue-400);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.sidebar-container .sidebar-subheading-action:hover svg {
|
|
96
|
+
color: var(--colors-emulsify-blue-300);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.sidebar-header button[title="Shortcuts"] {
|
|
100
|
+
box-shadow: none;
|
|
101
|
+
border: 1px solid var(--colors-emulsify-blue-700);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.sidebar-header button[title="Shortcuts"]:active {
|
|
105
|
+
border: 1px solid var(--colors-emulsify-blue-500);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.sidebar-header button[title="Shortcuts"]:focus {
|
|
109
|
+
background: transparent;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
#shortcuts {
|
|
113
|
+
border-bottom-color: var(--colors-emulsify-blue-900) !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[role="main"]:not(:nth-child(3)) {
|
|
117
|
+
top: 1rem !important;
|
|
118
|
+
height: calc(100vh - 2rem) !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[role="main"] .os-host .os-content button:hover {
|
|
122
|
+
background: var(--colors-emulsify-blue-100);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[role="main"] .os-host .os-content button:hover svg {
|
|
126
|
+
color: var(--colors-emulsify-blue-900);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
#panel-tab-content,
|
|
130
|
+
#panel-tab-content>* {
|
|
131
|
+
color: var(--colors-emulsify-blue-1000) !important;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
#panel-tab-content a,
|
|
135
|
+
#panel-tab-content a span,
|
|
136
|
+
#panel-tab-content a span svg {
|
|
137
|
+
color: var(--colors-emulsify-blue-800);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
#panel-tab-content>div>div>div>div>div>div {
|
|
141
|
+
background: transparent;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
#panel-tab-content>div>div>div>div>div>div>div {
|
|
145
|
+
color: var(--colors-emulsify-blue-1000) !important;
|
|
146
|
+
}
|
|
147
|
+
</style>
|
|
148
|
+
`,
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
const config = Object.keys(configOverrides).length ? configOverrides : defaultConfig;
|
|
152
|
+
|
|
153
|
+
module.exports = config;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useEffect } from '@storybook/client-api';
|
|
2
|
+
import Twig from 'twig';
|
|
3
|
+
import { setupTwig } from './setupTwig';
|
|
4
|
+
|
|
5
|
+
(async () => {
|
|
6
|
+
let compiled;
|
|
7
|
+
let preview;
|
|
8
|
+
// GLOBAL CSS
|
|
9
|
+
try {
|
|
10
|
+
compiled = await import('../../../dist/css/style.css');
|
|
11
|
+
} catch (e) { }
|
|
12
|
+
// Custom theme preview config if it exists.
|
|
13
|
+
try {
|
|
14
|
+
preview = await import('../../../../config/emulsify-core/storybook/preview');
|
|
15
|
+
} catch (e) {}
|
|
16
|
+
})();
|
|
17
|
+
|
|
18
|
+
// If in a Drupal project, it's recommended to import a symlinked version of drupal.js.
|
|
19
|
+
import './_drupal.js';
|
|
20
|
+
|
|
21
|
+
export const decorators = [
|
|
22
|
+
(Story, { args }) => {
|
|
23
|
+
const { renderAs } = args || {};
|
|
24
|
+
|
|
25
|
+
// Usual emulsify hack to add Drupal behaviors.
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
Drupal.attachBehaviors();
|
|
28
|
+
}, [args]);
|
|
29
|
+
return Story();
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
setupTwig(Twig);
|
|
34
|
+
|
|
35
|
+
export const parameters = {
|
|
36
|
+
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
37
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useEffect } from '@storybook/client-api';
|
|
2
|
+
import Twig from 'twig';
|
|
3
|
+
import { setupTwig } from './setupTwig';
|
|
4
|
+
|
|
5
|
+
// GLOBAL CSS
|
|
6
|
+
import('../../../../dist/css/style.css');
|
|
7
|
+
|
|
8
|
+
// Custom theme preview config if it exists.
|
|
9
|
+
import('../../../../config/emulsify-core/storybook/preview');
|
|
10
|
+
|
|
11
|
+
// If in a Drupal project, it's recommended to import a symlinked version of drupal.js.
|
|
12
|
+
import './_drupal.js';
|
|
13
|
+
|
|
14
|
+
export const decorators = [
|
|
15
|
+
(Story, { args }) => {
|
|
16
|
+
const { renderAs } = args || {};
|
|
17
|
+
|
|
18
|
+
// Usual emulsify hack to add Drupal behaviors.
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
Drupal.attachBehaviors();
|
|
21
|
+
}, [args]);
|
|
22
|
+
return Story();
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
setupTwig(Twig);
|
|
27
|
+
|
|
28
|
+
export const parameters = {
|
|
29
|
+
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
30
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
2
|
+
const globImporter = require('node-sass-glob-importer');
|
|
3
|
+
const fs = require('fs-extra');
|
|
4
|
+
|
|
5
|
+
let babelConfig;
|
|
6
|
+
let postcssConfig;
|
|
7
|
+
|
|
8
|
+
// Check if custom babel config is available.
|
|
9
|
+
if (fs.existsSync('./config/babel.config.js')) {
|
|
10
|
+
babelConfig = './config/babel.config.js';
|
|
11
|
+
} else {
|
|
12
|
+
babelConfig = './node_modules/emulsify-core/config/babel.config.js';
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Check if custom postcss config is available.
|
|
16
|
+
if (fs.existsSync('./config/postcss.config.js')) {
|
|
17
|
+
postcssConfig = './config/postcss.config.js';
|
|
18
|
+
} else {
|
|
19
|
+
postcssConfig = './node_modules/emulsify-core/config/postcss.config.js';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const JSLoader = {
|
|
23
|
+
test: /^(?!.*\.(stories|component)\.js$).*\.js$/,
|
|
24
|
+
exclude: /node_modules/,
|
|
25
|
+
loader: 'babel-loader',
|
|
26
|
+
options: {
|
|
27
|
+
configFile: babelConfig,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const ImageLoader = {
|
|
32
|
+
test: /\.(png|svg|jpg|gif)$/i,
|
|
33
|
+
exclude: /icons\/.*\.svg$/,
|
|
34
|
+
loader: 'file-loader',
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const CSSLoader = {
|
|
38
|
+
test: /\.s[ac]ss$/i,
|
|
39
|
+
exclude: /node_modules/,
|
|
40
|
+
use: [
|
|
41
|
+
MiniCssExtractPlugin.loader,
|
|
42
|
+
{
|
|
43
|
+
loader: 'css-loader',
|
|
44
|
+
options: {
|
|
45
|
+
sourceMap: true,
|
|
46
|
+
url: false,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
loader: 'postcss-loader',
|
|
51
|
+
options: {
|
|
52
|
+
sourceMap: true,
|
|
53
|
+
postcssOptions: {
|
|
54
|
+
config: postcssConfig,
|
|
55
|
+
plugins: [['autoprefixer']],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
loader: 'sass-loader',
|
|
61
|
+
options: {
|
|
62
|
+
sourceMap: true,
|
|
63
|
+
sassOptions: {
|
|
64
|
+
importer: globImporter(),
|
|
65
|
+
outputStyle: 'compressed',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const SVGSpriteLoader = {
|
|
73
|
+
test: /icons\/.*\.svg$/, // your icons directory
|
|
74
|
+
loader: 'svg-sprite-loader',
|
|
75
|
+
options: {
|
|
76
|
+
extract: true,
|
|
77
|
+
runtimeCompat: true,
|
|
78
|
+
spriteFilename: './icons.svg',
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
module.exports = {
|
|
83
|
+
JSLoader,
|
|
84
|
+
CSSLoader,
|
|
85
|
+
SVGSpriteLoader,
|
|
86
|
+
ImageLoader,
|
|
87
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
2
|
+
const globImporter = require('node-sass-glob-importer');
|
|
3
|
+
const fs = require('fs-extra');
|
|
4
|
+
|
|
5
|
+
let babelConfig;
|
|
6
|
+
let postcssConfig;
|
|
7
|
+
|
|
8
|
+
// Check if custom babel config is available.
|
|
9
|
+
if (fs.existsSync('./config/babel.config.js')) {
|
|
10
|
+
babelConfig = './config/babel.config.js';
|
|
11
|
+
} else {
|
|
12
|
+
babelConfig = './node_modules/@emulsify/core/config/babel.config.js';
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Check if custom postcss config is available.
|
|
16
|
+
if (fs.existsSync('./config/postcss.config.js')) {
|
|
17
|
+
postcssConfig = './config/postcss.config.js';
|
|
18
|
+
} else {
|
|
19
|
+
postcssConfig = './node_modules/@emulsify/core/config/postcss.config.js';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const JSLoader = {
|
|
23
|
+
test: /^(?!.*\.(stories|component)\.js$).*\.js$/,
|
|
24
|
+
exclude: /node_modules/,
|
|
25
|
+
loader: 'babel-loader',
|
|
26
|
+
options: {
|
|
27
|
+
configFile: babelConfig,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const ImageLoader = {
|
|
32
|
+
test: /\.(png|svg|jpg|gif)$/i,
|
|
33
|
+
exclude: /icons\/.*\.svg$/,
|
|
34
|
+
loader: 'file-loader',
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const CSSLoader = {
|
|
38
|
+
test: /\.s[ac]ss$/i,
|
|
39
|
+
exclude: /node_modules/,
|
|
40
|
+
use: [
|
|
41
|
+
MiniCssExtractPlugin.loader,
|
|
42
|
+
{
|
|
43
|
+
loader: 'css-loader',
|
|
44
|
+
options: {
|
|
45
|
+
sourceMap: true,
|
|
46
|
+
url: false,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
loader: 'postcss-loader',
|
|
51
|
+
options: {
|
|
52
|
+
sourceMap: true,
|
|
53
|
+
postcssOptions: {
|
|
54
|
+
config: postcssConfig,
|
|
55
|
+
plugins: [['autoprefixer']],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
loader: 'sass-loader',
|
|
61
|
+
options: {
|
|
62
|
+
sourceMap: true,
|
|
63
|
+
sassOptions: {
|
|
64
|
+
importer: globImporter(),
|
|
65
|
+
outputStyle: 'compressed',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const SVGSpriteLoader = {
|
|
73
|
+
test: /icons\/.*\.svg$/, // your icons directory
|
|
74
|
+
loader: 'svg-sprite-loader',
|
|
75
|
+
options: {
|
|
76
|
+
extract: true,
|
|
77
|
+
runtimeCompat: true,
|
|
78
|
+
spriteFilename: './icons.svg',
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
module.exports = {
|
|
83
|
+
JSLoader,
|
|
84
|
+
CSSLoader,
|
|
85
|
+
SVGSpriteLoader,
|
|
86
|
+
ImageLoader,
|
|
87
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emulsify/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Bundled tooling for Storybook development + Webpack Build",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"component library",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"postcss": "^8.4.38",
|
|
96
96
|
"postcss-loader": "^8.1.1",
|
|
97
97
|
"postcss-scss": "^4.0.9",
|
|
98
|
-
"ramda": "^0.
|
|
98
|
+
"ramda": "^0.30.1",
|
|
99
99
|
"react": "^18.2.0",
|
|
100
100
|
"react-dom": "^18.2.0",
|
|
101
101
|
"regenerator-runtime": "^0.14.1",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
108
108
|
"stylelint-prettier": "^5.0.0",
|
|
109
109
|
"stylelint-selector-bem-pattern": "^4.0.0",
|
|
110
|
-
"stylelint-webpack-plugin": "^5.0.
|
|
110
|
+
"stylelint-webpack-plugin": "^5.0.1",
|
|
111
111
|
"svg-sprite-loader": "^6.0.11",
|
|
112
112
|
"token-transformer": "^0.0.33",
|
|
113
113
|
"twig-drupal-filters": "^3.2.0",
|
|
@@ -119,15 +119,15 @@
|
|
|
119
119
|
"yaml": "^2.4.1"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
|
-
"@commitlint/cli": "^19.
|
|
122
|
+
"@commitlint/cli": "^19.3.0",
|
|
123
123
|
"@commitlint/config-conventional": "^19.1.0",
|
|
124
124
|
"@semantic-release/changelog": "^6.0.2",
|
|
125
125
|
"@semantic-release/commit-analyzer": "^11.1.0",
|
|
126
126
|
"@semantic-release/git": "^10.0.1",
|
|
127
127
|
"@semantic-release/github": "^10.0.2",
|
|
128
|
-
"@semantic-release/release-notes-generator": "^
|
|
128
|
+
"@semantic-release/release-notes-generator": "^14.0.0",
|
|
129
129
|
"husky": "^9.0.11",
|
|
130
|
-
"semantic-release": "^
|
|
130
|
+
"semantic-release": "^24.0.0"
|
|
131
131
|
},
|
|
132
132
|
"overrides": {
|
|
133
133
|
"graceful-fs": "^4.2.11"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emulsify/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Bundled tooling for Storybook development + Webpack Build",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"component library",
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
"node-sass-glob-importer": "^5.3.3",
|
|
92
92
|
"normalize.css": "^8.0.1",
|
|
93
93
|
"open-cli": "^8.0.0",
|
|
94
|
-
"pa11y": "^
|
|
94
|
+
"pa11y": "^8.0.0",
|
|
95
95
|
"postcss": "^8.4.38",
|
|
96
96
|
"postcss-loader": "^8.1.1",
|
|
97
97
|
"postcss-scss": "^4.0.9",
|
|
98
|
-
"ramda": "^0.
|
|
98
|
+
"ramda": "^0.30.1",
|
|
99
99
|
"react": "^18.2.0",
|
|
100
100
|
"react-dom": "^18.2.0",
|
|
101
101
|
"regenerator-runtime": "^0.14.1",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
108
108
|
"stylelint-prettier": "^5.0.0",
|
|
109
109
|
"stylelint-selector-bem-pattern": "^4.0.0",
|
|
110
|
-
"stylelint-webpack-plugin": "^5.0.
|
|
110
|
+
"stylelint-webpack-plugin": "^5.0.1",
|
|
111
111
|
"svg-sprite-loader": "^6.0.11",
|
|
112
112
|
"token-transformer": "^0.0.33",
|
|
113
113
|
"twig-drupal-filters": "^3.2.0",
|
|
@@ -119,18 +119,17 @@
|
|
|
119
119
|
"yaml": "^2.4.1"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
|
-
"@commitlint/cli": "^19.
|
|
122
|
+
"@commitlint/cli": "^19.3.0",
|
|
123
123
|
"@commitlint/config-conventional": "^19.1.0",
|
|
124
124
|
"@semantic-release/changelog": "^6.0.2",
|
|
125
125
|
"@semantic-release/commit-analyzer": "^11.1.0",
|
|
126
126
|
"@semantic-release/git": "^10.0.1",
|
|
127
127
|
"@semantic-release/github": "^10.0.2",
|
|
128
|
-
"@semantic-release/release-notes-generator": "^
|
|
128
|
+
"@semantic-release/release-notes-generator": "^14.0.0",
|
|
129
129
|
"husky": "^9.0.11",
|
|
130
|
-
"semantic-release": "^
|
|
130
|
+
"semantic-release": "^24.0.0"
|
|
131
131
|
},
|
|
132
132
|
"overrides": {
|
|
133
133
|
"graceful-fs": "^4.2.11"
|
|
134
|
-
}
|
|
135
|
-
"main": "commitlint.config.js"
|
|
134
|
+
}
|
|
136
135
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emulsify/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Bundled tooling for Storybook development + Webpack Build",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"component library",
|
|
@@ -15,6 +15,14 @@
|
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=20"
|
|
17
17
|
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/emulsify-ds/emulsify-core.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/emulsify-ds/emulsify-core/issues"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/emulsify-ds/emulsify-core#readme",
|
|
18
26
|
"publishConfig": {
|
|
19
27
|
"access": "public"
|
|
20
28
|
},
|
|
@@ -70,7 +78,7 @@
|
|
|
70
78
|
"eslint-webpack-plugin": "^4.1.0",
|
|
71
79
|
"file-loader": "^6.2.0",
|
|
72
80
|
"fs-extra": "^11.2.0",
|
|
73
|
-
"glob": "^
|
|
81
|
+
"glob": "^11.0.0",
|
|
74
82
|
"graceful-fs": "^4.2.11",
|
|
75
83
|
"html-webpack-plugin": "^5.6.0",
|
|
76
84
|
"imagemin-webpack-plugin": "^2.4.2",
|
|
@@ -83,11 +91,11 @@
|
|
|
83
91
|
"node-sass-glob-importer": "^5.3.3",
|
|
84
92
|
"normalize.css": "^8.0.1",
|
|
85
93
|
"open-cli": "^8.0.0",
|
|
86
|
-
"pa11y": "^
|
|
94
|
+
"pa11y": "^8.0.0",
|
|
87
95
|
"postcss": "^8.4.38",
|
|
88
96
|
"postcss-loader": "^8.1.1",
|
|
89
97
|
"postcss-scss": "^4.0.9",
|
|
90
|
-
"ramda": "^0.
|
|
98
|
+
"ramda": "^0.30.1",
|
|
91
99
|
"react": "^18.2.0",
|
|
92
100
|
"react-dom": "^18.2.0",
|
|
93
101
|
"regenerator-runtime": "^0.14.1",
|
|
@@ -99,7 +107,7 @@
|
|
|
99
107
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
100
108
|
"stylelint-prettier": "^5.0.0",
|
|
101
109
|
"stylelint-selector-bem-pattern": "^4.0.0",
|
|
102
|
-
"stylelint-webpack-plugin": "^5.0.
|
|
110
|
+
"stylelint-webpack-plugin": "^5.0.1",
|
|
103
111
|
"svg-sprite-loader": "^6.0.11",
|
|
104
112
|
"token-transformer": "^0.0.33",
|
|
105
113
|
"twig-drupal-filters": "^3.2.0",
|
|
@@ -111,15 +119,15 @@
|
|
|
111
119
|
"yaml": "^2.4.1"
|
|
112
120
|
},
|
|
113
121
|
"devDependencies": {
|
|
114
|
-
"@commitlint/cli": "^19.
|
|
122
|
+
"@commitlint/cli": "^19.3.0",
|
|
115
123
|
"@commitlint/config-conventional": "^19.1.0",
|
|
116
124
|
"@semantic-release/changelog": "^6.0.2",
|
|
117
125
|
"@semantic-release/commit-analyzer": "^11.1.0",
|
|
118
126
|
"@semantic-release/git": "^10.0.1",
|
|
119
127
|
"@semantic-release/github": "^10.0.2",
|
|
120
|
-
"@semantic-release/release-notes-generator": "^
|
|
128
|
+
"@semantic-release/release-notes-generator": "^14.0.0",
|
|
121
129
|
"husky": "^9.0.11",
|
|
122
|
-
"semantic-release": "^
|
|
130
|
+
"semantic-release": "^24.0.0"
|
|
123
131
|
},
|
|
124
132
|
"overrides": {
|
|
125
133
|
"graceful-fs": "^4.2.11"
|