From af0ea45a612cc35c98bfce81178ee8b29bad2eed Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Thu, 30 May 2024 17:25:30 +0800 Subject: [PATCH 01/10] =?UTF-8?q?build:=20esm=20=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=8C=89=E7=9B=AE=E5=BD=95=E6=89=93=E5=8C=85,=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20bundless=20=E7=9A=84=E6=96=B9=E5=BC=8F=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20tree=20shaking?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.config.base.mjs | 129 +++++++++++++++++++++++++++++ packages/s2-core/rollup.config.mjs | 46 ++++------ packages/s2-react/vite.config.ts | 112 ++++--------------------- packages/s2-vue/vite.config.ts | 88 ++++---------------- 4 files changed, 175 insertions(+), 200 deletions(-) create mode 100644 build.config.base.mjs diff --git a/build.config.base.mjs b/build.config.base.mjs new file mode 100644 index 0000000000..1c0f48ab7d --- /dev/null +++ b/build.config.base.mjs @@ -0,0 +1,129 @@ +import { viteCommonjs } from '@originjs/vite-plugin-commonjs'; +import peerDepsExternal from 'rollup-plugin-peer-deps-external'; +import { visualizer } from 'rollup-plugin-visualizer'; + +export const getBaseConfig = () => { + const entry = './src/index.ts'; + + const OUT_DIR_NAME_MAP = { + es: 'esm', + cjs: 'lib', + umd: 'dist', + }; + + const format = process.env.FORMAT; + const isAnalysisMode = process.env.ANALYSIS; + const isDevMode = process.env.PLAYGROUND; + const outDir = OUT_DIR_NAME_MAP[format]; + const isUMD = format === 'umd'; + const isESM = format === 'es'; + + const define = { + 'process.env.NODE_ENV': JSON.stringify( + isDevMode ? 'development' : 'production', + ), + }; + + const output = { + dir: outDir, + entryFileNames: `[name]${isUMD ? '.min' : ''}.js`, + assetFileNames: `[name]${isUMD ? '.min' : ''}.[ext]`, + globals: { + vue: 'Vue', + react: 'React', + 'react-dom': 'ReactDOM', + '@antv/s2': 'S2', + }, + preserveModules: isESM, + preserveModulesRoot: isESM ? 'src' : undefined, + }; + + const resolve = { + mainFields: ['src', 'module', 'main'], + alias: [ + { + find: 'lodash', + replacement: 'lodash-es', + }, + ], + }; + + if (isDevMode) { + // 防止开发模式下直接加载 s2-core 中的主题 less + resolve.alias.push({ + find: /^(.*)\/theme\/(.*)\.less$/, + replacement: '$1/theme/$2.less?inline', + }); + } + + const getViteConfig = ( + { port, libName, plugins } = { port: 3001, plugins: [] }, + ) => { + return { + server: { + port, + hmr: true, + }, + + resolve, + + define: { + 'process.env.NODE_ENV': JSON.stringify( + isDevMode ? 'development' : 'production', + ), + }, + + plugins: [ + peerDepsExternal(), + !isDevMode && viteCommonjs(), + isAnalysisMode && visualizer({ gzipSize: true }), + ...plugins, + ].filter(Boolean), + + css: { + preprocessorOptions: { + less: { + javascriptEnabled: true, + }, + }, + modules: { + /** + * 样式小驼峰转化 + * css: goods-list => tsx: goodsList + */ + localsConvention: 'camelCase', + }, + }, + + build: { + target: 'es2015', + minify: isUMD ? 'esbuild' : false, + sourcemap: true, + lib: { + name: libName, + entry, + formats: [format], + }, + outDir, + rollupOptions: { + output, + }, + }, + }; + }; + + return { + entry, + getViteConfig, + define, + format, + resolve, + isAnalysisMode, + outDir, + output, + OUT_DIR_NAME_MAP, + isDevMode, + isUMD, + isESM, + }; +}; diff --git a/packages/s2-core/rollup.config.mjs b/packages/s2-core/rollup.config.mjs index 3c197ea994..8809384aa4 100644 --- a/packages/s2-core/rollup.config.mjs +++ b/packages/s2-core/rollup.config.mjs @@ -8,32 +8,23 @@ import terser from '@rollup/plugin-terser'; import typescript from 'rollup-plugin-typescript2'; import { visualizer } from 'rollup-plugin-visualizer'; import peerDepsExternal from 'rollup-plugin-peer-deps-external'; +import { getBaseConfig } from '../../build.config.base.mjs'; -const format = process.env.FORMAT; -const enableAnalysis = process.env.ANALYSIS; - -const OUT_DIR_NAME_MAP = { - es: 'esm', - cjs: 'lib', - umd: 'dist', -}; - -const outDir = OUT_DIR_NAME_MAP[format]; - -const isUmdFormat = format === 'umd'; - -const output = { - format, - exports: 'named', - name: 'S2', - sourcemap: true, -}; +const { + isUMD, + define, + resolve: resolveConfig, + entry, + output, + outDir, + isAnalysisMode, +} = getBaseConfig(); const plugins = [ peerDepsExternal(), alias({ entries: [ - { find: 'lodash', replacement: 'lodash-es' }, + ...resolveConfig.alias, { find: /^(?.*).less\?inline$/, replacement: '$1.less', @@ -41,7 +32,7 @@ const plugins = [ ], }), replace({ - 'process.env.NODE_ENV': JSON.stringify('production'), + ...define, preventAssignment: true, }), commonjs(), @@ -56,13 +47,13 @@ const plugins = [ }), postcss({ exclude: ['**/styles/theme/*.less'], - minimize: isUmdFormat, + minimize: isUMD, use: { sass: null, stylus: null, less: { javascriptEnabled: true }, }, - extract: `style${isUmdFormat ? '.min' : ''}.css`, + extract: `style${isUMD ? '.min' : ''}.css`, }), /** 主题变量 less 不需要 extract&inject */ postcss({ @@ -77,20 +68,17 @@ const plugins = [ }), ]; -if (enableAnalysis) { +if (isAnalysisMode) { plugins.push(visualizer({ gzipSize: true })); } -if (isUmdFormat) { - output.file = 'dist/index.min.js'; +if (isUMD) { plugins.push(terser()); -} else { - output.dir = outDir; } // eslint-disable-next-line import/no-default-export export default { - input: 'src/index.ts', + input: entry, output, plugins, }; diff --git a/packages/s2-react/vite.config.ts b/packages/s2-react/vite.config.ts index 5c178ab7ae..57074a0628 100644 --- a/packages/s2-react/vite.config.ts +++ b/packages/s2-react/vite.config.ts @@ -1,113 +1,29 @@ /* eslint-disable import/no-extraneous-dependencies */ /* eslint-disable prefer-named-capture-group */ import path from 'path'; -import { viteCommonjs } from '@originjs/vite-plugin-commonjs'; import react from '@vitejs/plugin-react'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import { visualizer } from 'rollup-plugin-visualizer'; +import type { UserConfig } from 'vite'; +import { defineConfig } from 'vite'; import svgr from 'vite-plugin-svgr'; -import { - defineConfig, - type LibraryFormats, - type PluginOption, - type Alias, -} from 'vite'; +import { getBaseConfig } from '../../build.config.base.mjs'; -const OUT_DIR_NAME_MAP: { [key in LibraryFormats]?: string } = { - es: 'esm', - cjs: 'lib', - umd: 'dist', -}; +const { getViteConfig, isDevMode } = getBaseConfig(); -const format = process.env.FORMAT as LibraryFormats; -const outDir = OUT_DIR_NAME_MAP[format]; -const isUmdFormat = format === 'umd'; - -const isAnalysisMode = process.env.ANALYSIS; -const isDevMode = process.env.PLAYGROUND; const root = path.join(__dirname, isDevMode ? 'playground' : ''); -const alias: Alias[] = [ - { - find: 'lodash', - replacement: 'lodash-es', - }, -]; - -if (isDevMode) { - // 防止开发模式下直接加载s2-core中的主题less - alias.push({ - find: /^(.*)\/theme\/(.*)\.less$/, - replacement: '$1/theme/$2.less?inline', - }); -} - // eslint-disable-next-line import/no-default-export export default defineConfig({ // 开发配置 root, - server: { - port: 3001, - hmr: true, - }, - - // 打包配置 - resolve: { - mainFields: ['src', 'module', 'main'], - alias, - }, - define: { - 'process.env.NODE_ENV': JSON.stringify( - isDevMode ? 'development' : 'production', - ), - }, - - plugins: [ - peerDepsExternal(), - !isDevMode && viteCommonjs(), - react({ - jsxRuntime: 'classic', - }), - svgr(), - isAnalysisMode && visualizer({ gzipSize: true }), - ].filter(Boolean) as PluginOption[], - - css: { - preprocessorOptions: { - less: { - javascriptEnabled: true, - }, - }, - modules: { - /* - * 样式小驼峰转化 - * css: goods-list => tsx: goodsList - */ - localsConvention: 'camelCase', - }, - }, - - build: { - target: 'es2015', - minify: isUmdFormat ? 'esbuild' : false, - sourcemap: true, - lib: { - name: 'S2-React', - entry: './src/index.ts', - formats: [format], - }, - outDir, - rollupOptions: { - output: { - entryFileNames: `[name]${isUmdFormat ? '.min' : ''}.js`, - assetFileNames: `[name]${isUmdFormat ? '.min' : ''}.[ext]`, - globals: { - react: 'React', - 'react-dom': 'ReactDOM', - '@antv/s2': 'S2', - }, - }, - }, - }, + ...(getViteConfig({ + port: 3001, + libName: 'S2-React', + plugins: [ + react({ + jsxRuntime: 'classic', + }), + svgr(), + ] as UserConfig['plugins'], + }) as UserConfig), }); diff --git a/packages/s2-vue/vite.config.ts b/packages/s2-vue/vite.config.ts index d82c8d3870..db6d5bf6fa 100644 --- a/packages/s2-vue/vite.config.ts +++ b/packages/s2-vue/vite.config.ts @@ -1,25 +1,13 @@ /* eslint-disable import/no-extraneous-dependencies */ import path from 'path'; -import { defineConfig, type LibraryFormats, type PluginOption } from 'vite'; import vue from '@vitejs/plugin-vue'; import vueJsx from '@vitejs/plugin-vue-jsx'; -import { viteCommonjs } from '@originjs/vite-plugin-commonjs'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; -import { visualizer } from 'rollup-plugin-visualizer'; +import { defineConfig } from 'vite'; import svgLoader from 'vite-svg-loader'; +import type { UserConfig } from 'vite'; +import { getBaseConfig } from '../../build.config.base.mjs'; -const OUT_DIR_NAME_MAP: { [key in LibraryFormats]?: string } = { - es: 'esm', - cjs: 'lib', - umd: 'dist', -}; - -const format = process.env.FORMAT as LibraryFormats; -const outDir = OUT_DIR_NAME_MAP[format] as string; -const isUmdFormat = format === 'umd'; - -const isAnalysisMode = process.env.ANALYSIS; -const isDevMode = process.env.PLAYGROUND; +const { getViteConfig, isDevMode } = getBaseConfig(); const root = path.join(__dirname, isDevMode ? 'playground' : ''); // eslint-disable-next-line import/no-default-export @@ -27,61 +15,15 @@ export default defineConfig({ // 开发配置 root, - server: { + ...getViteConfig({ port: 5050, - hmr: true, - }, - - // 打包配置 - resolve: { - mainFields: ['src', 'module', 'main'], - alias: { - lodash: 'lodash-es', - }, - }, - - define: { - 'process.env.NODE_ENV': JSON.stringify( - isDevMode ? 'development' : 'production', - ), - }, - plugins: [ - peerDepsExternal(), - !isDevMode && viteCommonjs(), - vue(), - svgLoader({ - defaultImport: 'component', - }), - vueJsx(), - isAnalysisMode && visualizer({ gzipSize: true }), - ].filter(Boolean) as PluginOption[], - css: { - preprocessorOptions: { - less: { - javascriptEnabled: true, - }, - }, - }, - - build: { - target: 'es2015', - minify: isUmdFormat ? 'esbuild' : false, - sourcemap: true, - lib: { - name: 'S2-Vue', - entry: './src/index.ts', - formats: [format], - }, - outDir, - rollupOptions: { - output: { - entryFileNames: `[name]${isUmdFormat ? '.min' : ''}.js`, - assetFileNames: `[name]${isUmdFormat ? '.min' : ''}.[ext]`, - globals: { - vue: 'Vue', - '@antv/s2': 'S2', - }, - }, - }, - }, -}); + libName: 'S2-Vue', + plugins: [ + vue(), + svgLoader({ + defaultImport: 'component', + }), + vueJsx(), + ] as UserConfig['plugins'], + }), +} as UserConfig); From bb31640a4ff3a6f5496408d74b2b2bd3cb4b5773 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Thu, 30 May 2024 17:49:12 +0800 Subject: [PATCH 02/10] =?UTF-8?q?build:=20=E4=BF=AE=E5=A4=8D=E6=89=93?= =?UTF-8?q?=E5=8C=85=E5=B0=BA=E5=AF=B8=E6=A0=A1=E9=AA=8C=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/s2-core/package.json | 1 - packages/s2-react/package.json | 1 - packages/s2-vue/package.json | 1 - 3 files changed, 3 deletions(-) diff --git a/packages/s2-core/package.json b/packages/s2-core/package.json index 747599d694..a1dfcebb8f 100644 --- a/packages/s2-core/package.json +++ b/packages/s2-core/package.json @@ -89,7 +89,6 @@ "size-limit": [ { "path": "./dist/index.min.js", - "import": "{ createComponent }", "limit": "200 kB" }, { diff --git a/packages/s2-react/package.json b/packages/s2-react/package.json index 73f9bb6196..1da071ea2b 100644 --- a/packages/s2-react/package.json +++ b/packages/s2-react/package.json @@ -97,7 +97,6 @@ "size-limit": [ { "path": "./dist/index.min.js", - "import": "{ createComponent }", "limit": "70 kB" }, { diff --git a/packages/s2-vue/package.json b/packages/s2-vue/package.json index 1c26b1d3cf..4c53439761 100644 --- a/packages/s2-vue/package.json +++ b/packages/s2-vue/package.json @@ -79,7 +79,6 @@ "size-limit": [ { "path": "./dist/index.min.js", - "import": "{ createComponent }", "limit": "20 kB" }, { From 72b91b2d20824101e21a14dff01f6b9b9dd69653 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Thu, 30 May 2024 17:59:10 +0800 Subject: [PATCH 03/10] =?UTF-8?q?build:=20=E8=87=AA=E5=8A=A8=E6=89=93?= =?UTF-8?q?=E5=BC=80=E5=88=86=E6=9E=90=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.config.base.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.config.base.mjs b/build.config.base.mjs index 1c0f48ab7d..5c916098c5 100644 --- a/build.config.base.mjs +++ b/build.config.base.mjs @@ -76,7 +76,12 @@ export const getBaseConfig = () => { plugins: [ peerDepsExternal(), !isDevMode && viteCommonjs(), - isAnalysisMode && visualizer({ gzipSize: true }), + isAnalysisMode && + visualizer({ + open: true, + gzipSize: true, + brotliSize: true, + }), ...plugins, ].filter(Boolean), From 9a5820b270a3704582be3fed53f2dac407d95b75 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Thu, 20 Jun 2024 10:45:11 +0800 Subject: [PATCH 04/10] =?UTF-8?q?refactor:=20=E8=A7=A3=E5=86=B3=E6=89=80?= =?UTF-8?q?=E6=9C=89=E5=BE=AA=E7=8E=AF=E4=BE=9D=E8=B5=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 2 +- packages/s2-core/src/cell/merged-cell.ts | 6 +- .../src/facet/layout/build-gird-hierarchy.ts | 2 + .../facet/layout/build-header-hierarchy.ts | 14 +- .../src/facet/layout/build-table-hierarchy.ts | 1 + .../s2-core/src/facet/layout/interface.ts | 1 + .../s2-core/src/utils/cell/merged-cell.ts | 140 ++++++++++++++++++ .../s2-core/src/utils/export/copy/common.ts | 13 +- .../s2-core/src/utils/export/copy/core.ts | 25 ++-- .../utils/export/copy/pivot-data-cell-copy.ts | 2 +- .../src/utils/export/copy/table-copy.ts | 3 +- packages/s2-core/src/utils/export/index.ts | 10 +- packages/s2-core/src/utils/export/utils.ts | 17 --- .../src/utils/interaction/merge-cell.ts | 140 ------------------ .../src/utils/layout/generate-header-nodes.ts | 6 +- 15 files changed, 192 insertions(+), 190 deletions(-) create mode 100644 packages/s2-core/src/utils/cell/merged-cell.ts diff --git a/.eslintrc.js b/.eslintrc.js index d0205f56a7..bcba467ad5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -57,7 +57,7 @@ module.exports = { ], 'import/no-duplicates': [2, { considerQueryString: true }], 'import/no-deprecated': 1, - 'import/no-cycle': 1, + 'import/no-cycle': 2, 'import/order': [ 2, { diff --git a/packages/s2-core/src/cell/merged-cell.ts b/packages/s2-core/src/cell/merged-cell.ts index 4c7ca45b8c..c344240eee 100644 --- a/packages/s2-core/src/cell/merged-cell.ts +++ b/packages/s2-core/src/cell/merged-cell.ts @@ -2,12 +2,12 @@ import { isEmpty } from 'lodash'; import { CellType } from '../common/constant'; import { CellBorderPosition, type ViewMeta } from '../common/interface'; import type { SpreadSheet } from '../sheet-type'; -import { getBorderPositionAndStyle } from '../utils'; -import { renderLine, renderPolygon } from '../utils/g-renders'; +import { getBorderPositionAndStyle } from '../utils/cell/cell'; import { getPolygonPoints, getRightAndBottomCells, -} from '../utils/interaction/merge-cell'; +} from '../utils/cell/merged-cell'; +import { renderLine, renderPolygon } from '../utils/g-renders'; import { drawCustomContent } from '../utils/text'; import { DataCell } from './data-cell'; diff --git a/packages/s2-core/src/facet/layout/build-gird-hierarchy.ts b/packages/s2-core/src/facet/layout/build-gird-hierarchy.ts index e33c770bef..89dfcc2010 100644 --- a/packages/s2-core/src/facet/layout/build-gird-hierarchy.ts +++ b/packages/s2-core/src/facet/layout/build-gird-hierarchy.ts @@ -76,6 +76,7 @@ const buildTotalGridHierarchy = (params: GridHeaderParams) => { level: index, parentNode, query, + handler: buildTotalGridHierarchy, }); }; @@ -131,6 +132,7 @@ const buildNormalGridHierarchy = (params: GridHeaderParams) => { level: index, parentNode, query, + handler: buildNormalGridHierarchy, }); }; diff --git a/packages/s2-core/src/facet/layout/build-header-hierarchy.ts b/packages/s2-core/src/facet/layout/build-header-hierarchy.ts index 1048f3e3ae..5a6732d0e3 100644 --- a/packages/s2-core/src/facet/layout/build-header-hierarchy.ts +++ b/packages/s2-core/src/facet/layout/build-header-hierarchy.ts @@ -5,17 +5,17 @@ import { type CustomTreeNode, } from '../../common'; import type { PivotDataSet } from '../../data-set'; -import { buildGridHierarchy } from '../layout/build-gird-hierarchy'; -import { buildCustomTreeHierarchy } from '../layout/build-row-custom-tree-hierarchy'; -import { buildRowTreeHierarchy } from '../layout/build-row-tree-hierarchy'; -import { buildTableHierarchy } from '../layout/build-table-hierarchy'; -import { Hierarchy } from '../layout/hierarchy'; +import { buildGridHierarchy } from './build-gird-hierarchy'; +import { buildCustomTreeHierarchy } from './build-row-custom-tree-hierarchy'; +import { buildRowTreeHierarchy } from './build-row-tree-hierarchy'; +import { buildTableHierarchy } from './build-table-hierarchy'; +import { Hierarchy } from './hierarchy'; import type { BuildHeaderParams, BuildHeaderResult, HeaderParams, -} from '../layout/interface'; -import { Node } from '../layout/node'; +} from './interface'; +import { Node } from './node'; const handleCustomTreeHierarchy = (params: HeaderParams) => { const { rootNode, hierarchy, fields, spreadsheet, isRowHeader } = params; diff --git a/packages/s2-core/src/facet/layout/build-table-hierarchy.ts b/packages/s2-core/src/facet/layout/build-table-hierarchy.ts index 7f2abfcacd..cfcc0c1441 100644 --- a/packages/s2-core/src/facet/layout/build-table-hierarchy.ts +++ b/packages/s2-core/src/facet/layout/build-table-hierarchy.ts @@ -30,5 +30,6 @@ export const buildTableHierarchy = (params: HeaderParams) => { query: {}, addMeasureInTotalQuery: false, addTotalMeasureInTotal: false, + handler: buildTableHierarchy as () => void, }); }; diff --git a/packages/s2-core/src/facet/layout/interface.ts b/packages/s2-core/src/facet/layout/interface.ts index ec30f09da9..f458f5a266 100644 --- a/packages/s2-core/src/facet/layout/interface.ts +++ b/packages/s2-core/src/facet/layout/interface.ts @@ -43,6 +43,7 @@ export interface HeaderNodesParams extends GridHeaderParams { fieldValues: FieldValue[]; level: number; query: Record; + handler: (params: HeaderNodesParams) => void; } export interface HeaderParams { diff --git a/packages/s2-core/src/utils/cell/merged-cell.ts b/packages/s2-core/src/utils/cell/merged-cell.ts new file mode 100644 index 0000000000..378335f457 --- /dev/null +++ b/packages/s2-core/src/utils/cell/merged-cell.ts @@ -0,0 +1,140 @@ +import { find, forEach, includes, isEqual } from 'lodash'; +import type { DataCell } from '../../cell'; + +/** + * according to the coordinates of the starting point of the rectangle, + * return the four sides of the rectangle in a clockwise direction. + * [TopLeft] --- [TopRight] + * | | + * [BottomLeft] -[BottomRight] + * @param x + * @param y + * @param width + * @param height + */ +export const getRectangleEdges = ( + x: number, + y: number, + width: number, + height: number, +) => { + const topLeft: [number, number] = [x, y]; + + const topRight: [number, number] = [x + width, y]; + + const bottomRight: [number, number] = [x + width, y + height]; + + const bottomLeft: [number, number] = [x, y + height]; + + return [ + [topLeft, topRight], + [topRight, bottomRight], + [bottomRight, bottomLeft], + [bottomLeft, topLeft], + ]; +}; + +/** + * return the edges without overlapping edges + * @param edges the collection of edges + */ +export const unique = (edges: [number, number][][]) => { + const result: [number, number][][] = []; + + forEach(edges, (edge) => { + const reverseEdge = [edge[1], edge[0]]; + + if (!JSON.stringify(edges).includes(JSON.stringify(reverseEdge))) { + result.push(edge); + } + }); + + return result; +}; + +/** + * return the edge according to the coordinate of current edge + * eg: curEdge: [[0,0], [100,0]] then the next edge: [[100, 0 ], [100, 100]] + * @param curEdge the coordinate of current edge + * @param edges the collection of edges + */ +export const getNextEdge = ( + curEdge: [number, number][], + edges: [number, number][][], +): [number, number][] | undefined => + find(edges, (edge) => isEqual(edge[0], curEdge[1])); +/** + * return all the points of the polygon + * @param cells the collection of information of cells which needed be merged + */ +export const getPolygonPoints = (cells: DataCell[]) => { + let allEdges: [number, number][][] = []; + + cells.forEach((cell) => { + const meta = cell.getMeta(); + const { x, y, width, height } = meta; + + allEdges = allEdges.concat(getRectangleEdges(x, y, width, height)); + }); + allEdges = unique(allEdges); + + let allPoints: [number, number][] = []; + const startEdge = allEdges[0]; + let curEdge = startEdge; + let nextEdge: [number, number][] | undefined = []; + + while (!isEqual(startEdge, nextEdge)) { + allPoints = allPoints.concat(curEdge); + nextEdge = getNextEdge(curEdge, allEdges); + curEdge = nextEdge!; + } + + return allPoints; +}; + +export const getRightAndBottomCells = (cells: DataCell[]) => { + const right: DataCell[] = []; + const bottom: DataCell[] = []; + const bottomRightCornerCell: DataCell[] = []; + + cells.forEach((cell) => { + const [row, col] = cell.position || []; + + if ( + !find( + cells, + (temp) => temp.position?.[0] === row + 1 && temp.position?.[1] === col, + ) + ) { + bottom.push(cell); + } + + if ( + !find( + cells, + (temp) => temp.position?.[1] === col + 1 && temp.position?.[0] === row, + ) + ) { + right.push(cell); + } + }); + + // 在绘制了 right border 后,如果它上面的 cell 也是 merge cell 中的,且无需绘制 right 时,需要单独为其位置 bottomRight corner 的 border,反正连线会断 + right.forEach((cell) => { + const [row, col] = cell.position || []; + const top = find( + cells, + (temp) => temp.position?.[0] === row - 1 && temp.position?.[1] === col, + ); + + if (top && !includes(right, top)) { + bottomRightCornerCell.push(top); + } + }); + + return { + bottom, + right, + bottomRightCornerCell, + }; +}; diff --git a/packages/s2-core/src/utils/export/copy/common.ts b/packages/s2-core/src/utils/export/copy/common.ts index 9d33fc0169..c5a2c2fba9 100644 --- a/packages/s2-core/src/utils/export/copy/common.ts +++ b/packages/s2-core/src/utils/export/copy/common.ts @@ -1,5 +1,5 @@ import { escape, map, max } from 'lodash'; -import type { DataItem } from '../../../common'; +import type { CellMeta, DataItem } from '../../../common'; import { LINE_SEPARATOR, ROOT_NODE_ID, TAB_SEPARATOR } from '../../../common'; import { CopyMIMEType, @@ -13,6 +13,7 @@ import { type Transformer, } from '../../../common/interface/export'; import type { Node } from '../../../facet/layout/node'; +import type { SpreadSheet } from '../../../sheet-type/spread-sheet'; import type { BaseDataSet } from './../../../data-set/base-data-set'; // 把 string[][] 矩阵转换成 CopyablePlain @@ -241,3 +242,13 @@ export const getNodeFormatData = (leafNode: Node) => { return line; }; + +export const getHeaderNodeFromMeta = ( + meta: CellMeta, + spreadsheet: SpreadSheet, +) => { + const { rowIndex, colIndex } = meta; + const { facet } = spreadsheet; + + return [facet.getRowNodeByIndex(rowIndex), facet.getColNodeByIndex(colIndex)]; +}; diff --git a/packages/s2-core/src/utils/export/copy/core.ts b/packages/s2-core/src/utils/export/copy/core.ts index 109f9dd6da..920f1321ef 100644 --- a/packages/s2-core/src/utils/export/copy/core.ts +++ b/packages/s2-core/src/utils/export/copy/core.ts @@ -27,16 +27,6 @@ import { processSelectedTableByHeader, } from './table-copy'; -export const getHeaderNodeFromMeta = ( - meta: CellMeta, - spreadsheet: SpreadSheet, -) => { - const { rowIndex, colIndex } = meta; - const { facet } = spreadsheet; - - return [facet.getRowNodeByIndex(rowIndex), facet.getColNodeByIndex(colIndex)]; -}; - /** * 返回选中数据单元格生成的二维数组( CellMeta[][]) * @param { CellMeta[] } cells @@ -222,3 +212,18 @@ export const asyncProcessAllSelected = ( return asyncProcessSelectedAllTable(params); }; + +/** + * 异步获取文本数据 + * @example + const data = await asyncGetAllPlainData({ + sheetInstance: s2, + split: '\t', + formatOptions: true, + }); + */ +export const asyncGetAllPlainData = async (params: CopyAllDataParams) => { + const result = await asyncProcessAllSelected(params); + + return result[0].content; +}; diff --git a/packages/s2-core/src/utils/export/copy/pivot-data-cell-copy.ts b/packages/s2-core/src/utils/export/copy/pivot-data-cell-copy.ts index 18d2e06637..6f1fe6940a 100644 --- a/packages/s2-core/src/utils/export/copy/pivot-data-cell-copy.ts +++ b/packages/s2-core/src/utils/export/copy/pivot-data-cell-copy.ts @@ -38,10 +38,10 @@ import { assembleMatrix, completeMatrix, getFormatter, + getHeaderNodeFromMeta, getMaxRowLen, getNodeFormatData, } from './common'; -import { getHeaderNodeFromMeta } from './core'; export class PivotDataCellCopy extends BaseDataCellCopy { protected leafRowNodes: Node[] = []; diff --git a/packages/s2-core/src/utils/export/copy/table-copy.ts b/packages/s2-core/src/utils/export/copy/table-copy.ts index d83c929899..d940ebb8d6 100644 --- a/packages/s2-core/src/utils/export/copy/table-copy.ts +++ b/packages/s2-core/src/utils/export/copy/table-copy.ts @@ -18,8 +18,7 @@ import { getSelectedRows, } from '../method'; import { BaseDataCellCopy } from './base-data-cell-copy'; -import { assembleMatrix, getFormatter } from './common'; -import { getHeaderNodeFromMeta } from './core'; +import { assembleMatrix, getFormatter, getHeaderNodeFromMeta } from './common'; class TableDataCellCopy extends BaseDataCellCopy { private displayData: RawData[]; diff --git a/packages/s2-core/src/utils/export/index.ts b/packages/s2-core/src/utils/export/index.ts index f5998817fc..694abfb13a 100644 --- a/packages/s2-core/src/utils/export/index.ts +++ b/packages/s2-core/src/utils/export/index.ts @@ -1,11 +1,11 @@ -import type { +export type { CopyableList, FormatOptions, } from '../../common/interface/export'; -import { assembleMatrix, getMaxRowLen, getNodeFormatData } from './copy/common'; -import { getHeaderList } from './method'; + +export { assembleMatrix, getMaxRowLen, getNodeFormatData } from './copy/common'; +export { asyncGetAllPlainData } from './copy/core'; +export { getHeaderList } from './method'; export * from './copy'; export * from './utils'; -export { assembleMatrix, getHeaderList, getMaxRowLen, getNodeFormatData }; -export type { CopyableList, FormatOptions }; diff --git a/packages/s2-core/src/utils/export/utils.ts b/packages/s2-core/src/utils/export/utils.ts index 1b84c13d3e..7799d081bf 100644 --- a/packages/s2-core/src/utils/export/utils.ts +++ b/packages/s2-core/src/utils/export/utils.ts @@ -1,11 +1,9 @@ import { concat, get } from 'lodash'; import { CopyMIMEType, - type CopyAllDataParams, type Copyable, type CopyableItem, } from '../../common/interface/export'; -import { asyncProcessAllSelected } from './copy/core'; /** * 同步复制 @@ -114,18 +112,3 @@ export const download = (dataString: string, fileName: string) => { console.error(error); } }; - -/** - * 异步获取文本数据 - * @example - const data = await asyncGetAllPlainData({ - sheetInstance: s2, - split: '\t', - formatOptions: true, - }); - */ -export const asyncGetAllPlainData = async (params: CopyAllDataParams) => { - const result = await asyncProcessAllSelected(params); - - return result[0].content; -}; diff --git a/packages/s2-core/src/utils/interaction/merge-cell.ts b/packages/s2-core/src/utils/interaction/merge-cell.ts index 4804104755..4d4329c089 100644 --- a/packages/s2-core/src/utils/interaction/merge-cell.ts +++ b/packages/s2-core/src/utils/interaction/merge-cell.ts @@ -4,7 +4,6 @@ import { filter, find, forEach, - includes, isEmpty, isEqual, map, @@ -20,145 +19,6 @@ import type { } from '../../common/interface'; import type { SpreadSheet } from '../../sheet-type'; -/** - * according to the coordinates of the starting point of the rectangle, - * return the four sides of the rectangle in a clockwise direction. - * [TopLeft] --- [TopRight] - * | | - * [BottomLeft] -[BottomRight] - * @param x - * @param y - * @param width - * @param height - */ -export const getRectangleEdges = ( - x: number, - y: number, - width: number, - height: number, -) => { - const topLeft: [number, number] = [x, y]; - - const topRight: [number, number] = [x + width, y]; - - const bottomRight: [number, number] = [x + width, y + height]; - - const bottomLeft: [number, number] = [x, y + height]; - - return [ - [topLeft, topRight], - [topRight, bottomRight], - [bottomRight, bottomLeft], - [bottomLeft, topLeft], - ]; -}; - -/** - * return the edges without overlapping edges - * @param edges the collection of edges - */ -export const unique = (edges: [number, number][][]) => { - const result: [number, number][][] = []; - - forEach(edges, (edge) => { - const reverseEdge = [edge[1], edge[0]]; - - if (!JSON.stringify(edges).includes(JSON.stringify(reverseEdge))) { - result.push(edge); - } - }); - - return result; -}; - -/** - * return the edge according to the coordinate of current edge - * eg: curEdge: [[0,0], [100,0]] then the next edge: [[100, 0 ], [100, 100]] - * @param curEdge the coordinate of current edge - * @param edges the collection of edges - */ -export const getNextEdge = ( - curEdge: [number, number][], - edges: [number, number][][], -): [number, number][] | undefined => - find(edges, (edge) => isEqual(edge[0], curEdge[1])); - -/** - * return all the points of the polygon - * @param cells the collection of information of cells which needed be merged - */ -export const getPolygonPoints = (cells: DataCell[]) => { - let allEdges: [number, number][][] = []; - - cells.forEach((cell) => { - const meta = cell.getMeta(); - const { x, y, width, height } = meta; - - allEdges = allEdges.concat(getRectangleEdges(x, y, width, height)); - }); - allEdges = unique(allEdges); - - let allPoints: [number, number][] = []; - const startEdge = allEdges[0]; - let curEdge = startEdge; - let nextEdge: [number, number][] | undefined = []; - - while (!isEqual(startEdge, nextEdge)) { - allPoints = allPoints.concat(curEdge); - nextEdge = getNextEdge(curEdge, allEdges); - curEdge = nextEdge!; - } - - return allPoints; -}; - -export const getRightAndBottomCells = (cells: DataCell[]) => { - const right: DataCell[] = []; - const bottom: DataCell[] = []; - const bottomRightCornerCell: DataCell[] = []; - - cells.forEach((cell) => { - const [row, col] = cell.position || []; - - if ( - !find( - cells, - (temp) => temp.position?.[0] === row + 1 && temp.position?.[1] === col, - ) - ) { - bottom.push(cell); - } - - if ( - !find( - cells, - (temp) => temp.position?.[1] === col + 1 && temp.position?.[0] === row, - ) - ) { - right.push(cell); - } - }); - - // 在绘制了 right border 后,如果它上面的 cell 也是 merge cell 中的,且无需绘制 right 时,需要单独为其位置 bottomRight corner 的 border,反正连线会断 - right.forEach((cell) => { - const [row, col] = cell.position || []; - const top = find( - cells, - (temp) => temp.position?.[0] === row - 1 && temp.position?.[1] === col, - ); - - if (top && !includes(right, top)) { - bottomRightCornerCell.push(top); - } - }); - - return { - bottom, - right, - bottomRightCornerCell, - }; -}; - /** * get cells on the outside of visible area through mergeCellInfo * @param invisibleCellInfo diff --git a/packages/s2-core/src/utils/layout/generate-header-nodes.ts b/packages/s2-core/src/utils/layout/generate-header-nodes.ts index 83dc8a64a2..3dfb74678c 100644 --- a/packages/s2-core/src/utils/layout/generate-header-nodes.ts +++ b/packages/s2-core/src/utils/layout/generate-header-nodes.ts @@ -1,6 +1,5 @@ import { EMPTY_FIELD_VALUE, EXTRA_FIELD } from '../../common/constant'; import { i18n } from '../../common/i18n'; -import { buildGridHierarchy } from '../../facet/layout/build-gird-hierarchy'; import type { HeaderNodesParams } from '../../facet/layout/interface'; import { layoutHierarchy } from '../../facet/layout/layout-hooks'; import { Node } from '../../facet/layout/node'; @@ -22,6 +21,7 @@ export const generateHeaderNodes = (params: HeaderNodesParams) => { addMeasureInTotalQuery, addTotalMeasureInTotal, spreadsheet, + handler, } = params; const isTableMode = spreadsheet.isTableMode(); @@ -144,7 +144,7 @@ export const generateHeaderNodes = (params: HeaderNodesParams) => { hierarchy.pushIndexNode(node); node.rowIndex = hierarchy.getIndexNodes().length - 1; } else { - buildGridHierarchy({ + handler?.({ addTotalMeasureInTotal, addMeasureInTotalQuery, parentNode: node, @@ -152,7 +152,7 @@ export const generateHeaderNodes = (params: HeaderNodesParams) => { fields, hierarchy, spreadsheet, - }); + } as HeaderNodesParams); } } }; From 338e40f0f8631efe01c03d0b42e7c8cd8a7e3753 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Thu, 20 Jun 2024 15:51:36 +0800 Subject: [PATCH 05/10] =?UTF-8?q?build:=20=E4=BD=BF=E7=94=A8=20bundless?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 5 + .fatherrc.ts | 46 ++ .github/workflows/auto-release.yml | 3 + .github/workflows/lint.yml | 3 + build.config.base.mjs | 4 +- package.json | 5 +- packages/s2-core/.fatherrc.ts | 3 + packages/s2-core/package.json | 4 +- packages/s2-core/src/utils/theme.ts | 7 +- packages/s2-react-components/.fatherrc.ts | 3 + packages/s2-react-components/package.json | 4 +- packages/s2-react/.fatherrc.ts | 3 + packages/s2-react/package.json | 4 +- packages/s2-shared/src/utils/theme.ts | 7 +- packages/s2-vue/.fatherrc.ts | 3 + packages/s2-vue/package.json | 4 +- pnpm-lock.yaml | 740 ++++++++++++++++------ 17 files changed, 645 insertions(+), 203 deletions(-) create mode 100644 .fatherrc.ts create mode 100644 packages/s2-core/.fatherrc.ts create mode 100644 packages/s2-react-components/.fatherrc.ts create mode 100644 packages/s2-react/.fatherrc.ts create mode 100644 packages/s2-vue/.fatherrc.ts diff --git a/.eslintrc.js b/.eslintrc.js index bcba467ad5..a0d0701bbe 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -43,7 +43,12 @@ module.exports = { tabWidth: 2, trailingComma: 'all', printWidth: 80, + arrowParens: 'always', proseWrap: 'never', + htmlWhitespaceSensitivity: 'css', + embeddedLanguageFormatting: 'auto', + singleAttributePerLine: false, + bracketSpacing: true, overrides: [ { files: '.eslintrc', options: { parser: 'json' } }, { files: '.prettierrc', options: { parser: 'json' } }, diff --git a/.fatherrc.ts b/.fatherrc.ts new file mode 100644 index 0000000000..f4a1613d50 --- /dev/null +++ b/.fatherrc.ts @@ -0,0 +1,46 @@ +import { defineConfig } from 'father'; +import path from 'path'; + +export default (name: string) => { + return defineConfig({ + sourcemap: true, + alias: { + lodash: 'lodash-es', + '@antv/s2': path.resolve(__dirname, './packages/s2-core'), + '@antv/s2-shared': path.resolve(__dirname, './packages/s2-shared'), + '@/*': 's2-core/src/*', + 'tests/*': 's2-core/__tests__/*', + }, + define: { + 'process.env.NODE_ENV': JSON.stringify('production'), + }, + esm: { + output: 'esm', + }, + cjs: { + output: 'lib', + }, + umd: { + name, + output: 'dist', + externals: { + antd: 'antd', + react: 'react', + 'react-dom': 'ReactDOM', + }, + // chainWebpack(memo, { webpack }) { + // memo + // .plugin('NormalModuleReplacementPlugin') + // .use(webpack.NormalModuleReplacementPlugin, [ + // /^(?.*).less\?inline$/, + // (resource) => { + // resource.request = resource.request.replace('?inline', ''); + // }, + // ]) + // .end(); + + // return memo; + // }, + }, + }); +}; diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 000f900171..93cca60d9f 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -54,6 +54,9 @@ jobs: - name: Install dependencies run: pnpm bootstrap:ci + - name: Build doctor + run: pnpm build:doctor + - name: Build run: pnpm build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d1ba901521..9ba6177c3d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,6 +39,9 @@ jobs: - name: Lint scripts, type, style and docs run: pnpm lint + - name: Build doctor + run: pnpm build:doctor + - name: Build run: pnpm build diff --git a/build.config.base.mjs b/build.config.base.mjs index 5c916098c5..57cba1b315 100644 --- a/build.config.base.mjs +++ b/build.config.base.mjs @@ -33,9 +33,9 @@ export const getBaseConfig = () => { react: 'React', 'react-dom': 'ReactDOM', '@antv/s2': 'S2', + '@antv/s2-react': 'S2React', + lodash: '_', }, - preserveModules: isESM, - preserveModulesRoot: isESM ? 'src' : undefined, }; const resolve = { diff --git a/package.json b/package.json index f03c70a303..6da62e04d7 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "url": "https://github.com/antvis/S2.git" }, "license": "MIT", + "files": [], "scripts": { "preinstall": "npx only-allow pnpm", "bootstrap": "pnpm install", @@ -55,7 +56,8 @@ "build:umd": "pnpm -r --filter './packages/*' --stream build:umd", "build:size-limit": "pnpm -r --filter './packages/*' --stream build:size-limit", "build:size-limit-json": "pnpm -r --filter './packages/*' --stream build:size-limit-json", - "release": "pnpm -r --filter !@antv/s2-shared --filter !@antv/s2-site --workspace-concurrency=1 exec npx --no-install semantic-release", + "build:doctor": "father doctor", + "release": "pnpm -r --filter !@antv/s2-shared --filter !@antv/s2-site --filter !@antv/s2-react-components --workspace-concurrency=1 exec npx --no-install semantic-release", "release:preview": "pnpm release --dry-run --no-ci", "release:bump-version": "node ./scripts/bump-version.js", "test": "pnpm -r --filter './packages/*' --stream test", @@ -149,6 +151,7 @@ "eslint-plugin-react": "^7.34.2", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-vue": "^9.17.0", + "father": "^4.4.4", "gh-pages": "^3.2.3", "glob": "^10.3.10", "husky": "^8.0.3", diff --git a/packages/s2-core/.fatherrc.ts b/packages/s2-core/.fatherrc.ts new file mode 100644 index 0000000000..7d5c60c395 --- /dev/null +++ b/packages/s2-core/.fatherrc.ts @@ -0,0 +1,3 @@ +import fatherConfig from '../../.fatherrc'; + +export default fatherConfig('S2'); diff --git a/packages/s2-core/package.json b/packages/s2-core/package.json index bd9045b23f..25aee1d0ae 100644 --- a/packages/s2-core/package.json +++ b/packages/s2-core/package.json @@ -27,7 +27,7 @@ "dist/*" ], "main": "lib/index.js", - "unpkg": "dist/index.min.js", + "unpkg": "dist/s2.min.js", "module": "esm/index.js", "types": "esm/index.d.ts", "directories": { @@ -41,7 +41,7 @@ "README.md" ], "scripts": { - "build": "npm-run-all clean --parallel build:umd build:cjs build:esm build:dts", + "build": "father build && pnpm build:dts", "build:analysis": "cross-env FORMAT=esm ANALYSIS=true rollup -c rollup.config.mjs", "build:cjs": "cross-env FORMAT=cjs rollup -c rollup.config.mjs", "build:dts": "run-s dts:*", diff --git a/packages/s2-core/src/utils/theme.ts b/packages/s2-core/src/utils/theme.ts index f84f16242e..6cbf01a3e5 100644 --- a/packages/s2-core/src/utils/theme.ts +++ b/packages/s2-core/src/utils/theme.ts @@ -1,6 +1,6 @@ import { PALETTE_MAP, STYLE_ELEMENT_ID } from '../common/constant'; import type { Palette, ThemeName } from '../common/interface/theme'; -import DarkVars from '../styles/theme/dark.less?inline'; +import DarkVars from '../styles/theme/dark.less'; import { injectCssText } from './inject-css-text'; /** @@ -15,5 +15,8 @@ export const getPalette = (themeName?: ThemeName): Palette => { */ export const injectThemeVars = (themeName?: ThemeName) => { // 目前仅 dark 主题需要定制 - injectCssText(STYLE_ELEMENT_ID, themeName === 'dark' ? DarkVars : ''); + injectCssText( + STYLE_ELEMENT_ID, + themeName === 'dark' ? (DarkVars as string) : '', + ); }; diff --git a/packages/s2-react-components/.fatherrc.ts b/packages/s2-react-components/.fatherrc.ts new file mode 100644 index 0000000000..e1dbd68a1f --- /dev/null +++ b/packages/s2-react-components/.fatherrc.ts @@ -0,0 +1,3 @@ +import fatherConfig from '../../.fatherrc'; + +export default fatherConfig('S2ReactComponents'); diff --git a/packages/s2-react-components/package.json b/packages/s2-react-components/package.json index 094ae153c6..429f88df70 100644 --- a/packages/s2-react-components/package.json +++ b/packages/s2-react-components/package.json @@ -27,7 +27,7 @@ "license": "MIT", "author": "https://github.com/orgs/antvis/people", "main": "lib/index.js", - "unpkg": "dist/index.min.js", + "unpkg": "dist/s2-react-components.min.js", "module": "esm/index.js", "types": "esm/index.d.ts", "directories": { @@ -41,7 +41,7 @@ "README.md" ], "scripts": { - "build": "npm-run-all clean --parallel build:umd build:cjs build:esm build:dts", + "build": "father build && pnpm build:dts", "build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build", "build:cjs": "cross-env FORMAT=cjs vite build", "build:dts": "run-s dts:*", diff --git a/packages/s2-react/.fatherrc.ts b/packages/s2-react/.fatherrc.ts new file mode 100644 index 0000000000..a647caf412 --- /dev/null +++ b/packages/s2-react/.fatherrc.ts @@ -0,0 +1,3 @@ +import fatherConfig from '../../.fatherrc'; + +export default fatherConfig('S2React'); diff --git a/packages/s2-react/package.json b/packages/s2-react/package.json index fc2fc7c787..d234079736 100644 --- a/packages/s2-react/package.json +++ b/packages/s2-react/package.json @@ -22,7 +22,7 @@ "license": "MIT", "author": "https://github.com/orgs/antvis/people", "main": "lib/index.js", - "unpkg": "dist/index.min.js", + "unpkg": "dist/s2-react.min.js", "module": "esm/index.js", "types": "esm/index.d.ts", "directories": { @@ -36,7 +36,7 @@ "README.md" ], "scripts": { - "build": "npm-run-all clean --parallel build:umd build:cjs build:esm build:dts", + "build": "father build && pnpm build:dts", "build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build", "build:cjs": "cross-env FORMAT=cjs vite build", "build:dts": "run-s dts:*", diff --git a/packages/s2-shared/src/utils/theme.ts b/packages/s2-shared/src/utils/theme.ts index 7d13e9bda1..0742e44e79 100644 --- a/packages/s2-shared/src/utils/theme.ts +++ b/packages/s2-shared/src/utils/theme.ts @@ -1,11 +1,14 @@ import { injectCssText, type ThemeName } from '@antv/s2'; import { STYLE_ELEMENT_ID } from '../constant/theme'; -import DarkVars from '../styles/theme/dark.less?inline'; +import DarkVars from '../styles/theme/dark.less'; /** * 根据主题注入组件的 css 变量 */ export const injectThemeVars = (themeName?: ThemeName) => { // 目前仅dark主题需要定制 - injectCssText(STYLE_ELEMENT_ID, themeName === 'dark' ? DarkVars : ''); + injectCssText( + STYLE_ELEMENT_ID, + themeName === 'dark' ? (DarkVars as string) : '', + ); }; diff --git a/packages/s2-vue/.fatherrc.ts b/packages/s2-vue/.fatherrc.ts new file mode 100644 index 0000000000..f557b6da01 --- /dev/null +++ b/packages/s2-vue/.fatherrc.ts @@ -0,0 +1,3 @@ +import fatherConfig from '../../.fatherrc'; + +export default fatherConfig('S2Vue'); diff --git a/packages/s2-vue/package.json b/packages/s2-vue/package.json index a079959ccc..ccaec703e7 100644 --- a/packages/s2-vue/package.json +++ b/packages/s2-vue/package.json @@ -23,7 +23,7 @@ "license": "MIT", "author": "https://github.com/orgs/antvis/people", "main": "lib/index.js", - "unpkg": "dist/index.min.js", + "unpkg": "dist/s2-vue.min.js", "module": "esm/index.js", "types": "esm/index.d.ts", "directories": { @@ -37,7 +37,7 @@ "README.md" ], "scripts": { - "build": "npm-run-all clean --parallel build:umd build:cjs build:esm build:dts", + "build": "father build && pnpm build:dts", "build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build", "build:cjs": "cross-env FORMAT=cjs vite build", "build:dts": "run-s dts:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cc7523ac89..cd90ccd590 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -149,6 +149,9 @@ importers: eslint-plugin-vue: specifier: ^9.17.0 version: 9.26.0(eslint@8.57.0) + father: + specifier: ^4.4.4 + version: 4.4.4(@babel/core@7.24.7)(@types/node@20.14.2) gh-pages: specifier: ^3.2.3 version: 3.2.3 @@ -1660,7 +1663,6 @@ packages: engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 - dev: false /@babel/runtime@7.24.7: resolution: {integrity: sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==} @@ -1711,7 +1713,6 @@ packages: /@bloomberg/record-tuple-polyfill@0.0.4: resolution: {integrity: sha512-h0OYmPR3A5Dfbetra/GzxBAzQk8sH7LhRkRUTdagX6nrtlUgJGYCTv4bBK33jsTQw9HDd8PE2x1Ma+iRKEDUsw==} - dev: false /@cnakazawa/watch@1.0.4: resolution: {integrity: sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==} @@ -1922,7 +1923,6 @@ packages: '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.38) postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /@csstools/postcss-font-format-keywords@1.0.1(postcss@8.4.38): resolution: {integrity: sha512-ZgrlzuUAjXIOc2JueK0X5sZDjCtgimVp/O5CEqTcs5ShWBa6smhWYbS0x5cVc/+rycTDbjjzoP0KTDnUneZGOg==} @@ -1932,7 +1932,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /@csstools/postcss-hwb-function@1.0.2(postcss@8.4.38): resolution: {integrity: sha512-YHdEru4o3Rsbjmu6vHy4UKOXZD+Rn2zmkAmLRfPet6+Jz4Ojw8cbWxe1n42VaXQhD3CQUXXTooIy8OkVbUcL+w==} @@ -1942,7 +1941,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /@csstools/postcss-ic-unit@1.0.1(postcss@8.4.38): resolution: {integrity: sha512-Ot1rcwRAaRHNKC9tAqoqNZhjdYBzKk1POgWfhN4uCOE47ebGcLRqXjKkApVDpjifL6u2/55ekkpnFcp+s/OZUw==} @@ -1953,7 +1951,6 @@ packages: '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.38) postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /@csstools/postcss-is-pseudo-class@2.0.7(postcss@8.4.38): resolution: {integrity: sha512-7JPeVVZHd+jxYdULl87lvjgvWldYu+Bc62s9vD/ED6/QTGjy0jy0US/f6BG53sVMTBJ1lzKZFpYmofBN9eaRiA==} @@ -1964,7 +1961,6 @@ packages: '@csstools/selector-specificity': 2.2.0(postcss-selector-parser@6.1.0) postcss: 8.4.38 postcss-selector-parser: 6.1.0 - dev: false /@csstools/postcss-normalize-display-values@1.0.1(postcss@8.4.38): resolution: {integrity: sha512-jcOanIbv55OFKQ3sYeFD/T0Ti7AMXc9nM1hZWu8m/2722gOTxFg7xYu4RDLJLeZmPUVQlGzo4jhzvTUq3x4ZUw==} @@ -1974,7 +1970,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /@csstools/postcss-oklab-function@1.1.1(postcss@8.4.38): resolution: {integrity: sha512-nJpJgsdA3dA9y5pgyb/UfEzE7W5Ka7u0CX0/HIMVBNWzWemdcTH3XwANECU6anWv/ao4vVNLTMxhiPNZsTK6iA==} @@ -1985,7 +1980,6 @@ packages: '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.38) postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /@csstools/postcss-progressive-custom-properties@1.3.0(postcss@8.4.38): resolution: {integrity: sha512-ASA9W1aIy5ygskZYuWams4BzafD12ULvSypmaLJT2jvQ8G0M3I8PRQhC0h7mG0Z3LI05+agZjqSR9+K9yaQQjA==} @@ -1995,7 +1989,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /@csstools/postcss-stepped-value-functions@1.0.1(postcss@8.4.38): resolution: {integrity: sha512-dz0LNoo3ijpTOQqEJLY8nyaapl6umbmDcgj4AD0lgVQ572b2eqA1iGZYTTWhrcrHztWDDRAX2DGYyw2VBjvCvQ==} @@ -2005,7 +1998,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /@csstools/postcss-unset-value@1.0.2(postcss@8.4.38): resolution: {integrity: sha512-c8J4roPBILnelAsdLr4XOAR/GsTm0GJi4XpcfvoWk3U6KiTCqiFYc63KhRMQQX35jYMp4Ao8Ij9+IZRgMfJp1g==} @@ -2014,7 +2006,6 @@ packages: postcss: ^8.2 dependencies: postcss: 8.4.38 - dev: false /@csstools/selector-specificity@2.2.0(postcss-selector-parser@6.1.0): resolution: {integrity: sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw==} @@ -2023,7 +2014,6 @@ packages: postcss-selector-parser: ^6.0.10 dependencies: postcss-selector-parser: 6.1.0 - dev: false /@csstools/selector-specificity@3.1.1(postcss-selector-parser@6.1.0): resolution: {integrity: sha512-a7cxGcJ2wIlMFLlh8z2ONm+715QkPHiyJcxwQlKOz/03GPw1COpfhcmC9wm4xlZfp//jWHNNMwzjtqHXVWU9KA==} @@ -2130,6 +2120,15 @@ packages: requiresBuild: true optional: true + /@esbuild/android-arm64@0.17.19: + resolution: {integrity: sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + /@esbuild/android-arm64@0.18.20: resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} engines: {node: '>=12'} @@ -2156,6 +2155,15 @@ packages: requiresBuild: true optional: true + /@esbuild/android-arm@0.17.19: + resolution: {integrity: sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + /@esbuild/android-arm@0.18.20: resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==} engines: {node: '>=12'} @@ -2182,6 +2190,15 @@ packages: requiresBuild: true optional: true + /@esbuild/android-x64@0.17.19: + resolution: {integrity: sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: true + optional: true + /@esbuild/android-x64@0.18.20: resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==} engines: {node: '>=12'} @@ -2208,6 +2225,15 @@ packages: requiresBuild: true optional: true + /@esbuild/darwin-arm64@0.17.19: + resolution: {integrity: sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /@esbuild/darwin-arm64@0.18.20: resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==} engines: {node: '>=12'} @@ -2234,6 +2260,15 @@ packages: requiresBuild: true optional: true + /@esbuild/darwin-x64@0.17.19: + resolution: {integrity: sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /@esbuild/darwin-x64@0.18.20: resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==} engines: {node: '>=12'} @@ -2260,6 +2295,15 @@ packages: requiresBuild: true optional: true + /@esbuild/freebsd-arm64@0.17.19: + resolution: {integrity: sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + /@esbuild/freebsd-arm64@0.18.20: resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==} engines: {node: '>=12'} @@ -2286,6 +2330,15 @@ packages: requiresBuild: true optional: true + /@esbuild/freebsd-x64@0.17.19: + resolution: {integrity: sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + /@esbuild/freebsd-x64@0.18.20: resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==} engines: {node: '>=12'} @@ -2312,6 +2365,15 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-arm64@0.17.19: + resolution: {integrity: sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-arm64@0.18.20: resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==} engines: {node: '>=12'} @@ -2338,6 +2400,15 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-arm@0.17.19: + resolution: {integrity: sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-arm@0.18.20: resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==} engines: {node: '>=12'} @@ -2364,6 +2435,15 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-ia32@0.17.19: + resolution: {integrity: sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-ia32@0.18.20: resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==} engines: {node: '>=12'} @@ -2399,6 +2479,15 @@ packages: dev: true optional: true + /@esbuild/linux-loong64@0.17.19: + resolution: {integrity: sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-loong64@0.18.20: resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==} engines: {node: '>=12'} @@ -2425,6 +2514,15 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-mips64el@0.17.19: + resolution: {integrity: sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-mips64el@0.18.20: resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==} engines: {node: '>=12'} @@ -2451,6 +2549,15 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-ppc64@0.17.19: + resolution: {integrity: sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-ppc64@0.18.20: resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==} engines: {node: '>=12'} @@ -2477,6 +2584,15 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-riscv64@0.17.19: + resolution: {integrity: sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-riscv64@0.18.20: resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==} engines: {node: '>=12'} @@ -2503,6 +2619,15 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-s390x@0.17.19: + resolution: {integrity: sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-s390x@0.18.20: resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==} engines: {node: '>=12'} @@ -2529,6 +2654,15 @@ packages: requiresBuild: true optional: true + /@esbuild/linux-x64@0.17.19: + resolution: {integrity: sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-x64@0.18.20: resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==} engines: {node: '>=12'} @@ -2555,6 +2689,15 @@ packages: requiresBuild: true optional: true + /@esbuild/netbsd-x64@0.17.19: + resolution: {integrity: sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + /@esbuild/netbsd-x64@0.18.20: resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==} engines: {node: '>=12'} @@ -2581,6 +2724,15 @@ packages: requiresBuild: true optional: true + /@esbuild/openbsd-x64@0.17.19: + resolution: {integrity: sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + /@esbuild/openbsd-x64@0.18.20: resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==} engines: {node: '>=12'} @@ -2607,6 +2759,15 @@ packages: requiresBuild: true optional: true + /@esbuild/sunos-x64@0.17.19: + resolution: {integrity: sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + /@esbuild/sunos-x64@0.18.20: resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==} engines: {node: '>=12'} @@ -2633,6 +2794,15 @@ packages: requiresBuild: true optional: true + /@esbuild/win32-arm64@0.17.19: + resolution: {integrity: sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@esbuild/win32-arm64@0.18.20: resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==} engines: {node: '>=12'} @@ -2659,6 +2829,15 @@ packages: requiresBuild: true optional: true + /@esbuild/win32-ia32@0.17.19: + resolution: {integrity: sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@esbuild/win32-ia32@0.18.20: resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==} engines: {node: '>=12'} @@ -2685,6 +2864,15 @@ packages: requiresBuild: true optional: true + /@esbuild/win32-x64@0.17.19: + resolution: {integrity: sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@esbuild/win32-x64@0.18.20: resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==} engines: {node: '>=12'} @@ -3396,6 +3584,16 @@ packages: react: 18.3.1 dev: false + /@microsoft/api-extractor-model@7.28.4(@types/node@20.14.2): + resolution: {integrity: sha512-vucgyPmgHrJ/D4/xQywAmjTmSfxAx2/aDmD6TkIoLu51FdsAfuWRbijWA48AePy60OO+l+mmy9p2P/CEeBZqig==} + dependencies: + '@microsoft/tsdoc': 0.14.2 + '@microsoft/tsdoc-config': 0.16.2 + '@rushstack/node-core-library': 3.63.0(@types/node@20.14.2) + transitivePeerDependencies: + - '@types/node' + dev: true + /@microsoft/api-extractor-model@7.29.2(@types/node@20.14.2): resolution: {integrity: sha512-hAYajOjQan3uslhKJRwvvHIdLJ+ZByKqdSsJ/dgHFxPtEbdKpzMDO8zuW4K5gkSMYl5D0LbNwxkhxr51P2zsmw==} dependencies: @@ -3406,6 +3604,26 @@ packages: - '@types/node' dev: true + /@microsoft/api-extractor@7.39.1(@types/node@20.14.2): + resolution: {integrity: sha512-V0HtCufWa8hZZvSmlEzQZfINcJkHAU/bmpyJQj6w+zpI87EkR8DuBOW6RWrO9c7mUYFZoDaNgUTyKo83ytv+QQ==} + hasBin: true + dependencies: + '@microsoft/api-extractor-model': 7.28.4(@types/node@20.14.2) + '@microsoft/tsdoc': 0.14.2 + '@microsoft/tsdoc-config': 0.16.2 + '@rushstack/node-core-library': 3.63.0(@types/node@20.14.2) + '@rushstack/rig-package': 0.5.1 + '@rushstack/ts-command-line': 4.17.1 + colors: 1.2.5 + lodash: 4.17.21 + resolve: 1.22.8 + semver: 7.5.4 + source-map: 0.6.1 + typescript: 5.3.3 + transitivePeerDependencies: + - '@types/node' + dev: true + /@microsoft/api-extractor@7.47.0(@types/node@20.14.2): resolution: {integrity: sha512-LT8yvcWNf76EpDC+8/ArTVSYePvuDQ+YbAUrsTcpg3ptiZ93HIcMCozP/JOxDt+rrsFfFHcpfoselKfPyRI0GQ==} hasBin: true @@ -3427,6 +3645,15 @@ packages: - '@types/node' dev: true + /@microsoft/tsdoc-config@0.16.2: + resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==} + dependencies: + '@microsoft/tsdoc': 0.14.2 + ajv: 6.12.6 + jju: 1.4.0 + resolve: 1.19.0 + dev: true + /@microsoft/tsdoc-config@0.17.0: resolution: {integrity: sha512-v/EYRXnCAIHxOHW+Plb6OWuUoMotxTN0GLatnpOb1xq0KuTNw/WI3pamJx/UbsoJP5k9MCw1QxvvhPcF9pH3Zg==} dependencies: @@ -3436,6 +3663,10 @@ packages: resolve: 1.22.8 dev: true + /@microsoft/tsdoc@0.14.2: + resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==} + dev: true + /@microsoft/tsdoc@0.15.0: resolution: {integrity: sha512-HZpPoABogPvjeJOdzCOSJsXeL/SMCBgBZMVC3X3d7YYp2gf31MfxhUoYUNwf1ERPJOnQc0wkFn9trqI6ZEdZuA==} dev: true @@ -4054,6 +4285,24 @@ packages: resolution: {integrity: sha512-qC/xYId4NMebE6w/V33Fh9gWxLgURiNYgVNObbJl2LZv0GUUItCcCqC5axQSwRaAgaxl2mELq1rMzlswaQ0Zxg==} dev: true + /@rushstack/node-core-library@3.63.0(@types/node@20.14.2): + resolution: {integrity: sha512-Q7B3dVpBQF1v+mUfxNcNZh5uHVR8ntcnkN5GYjbBLrxUYHBGKbnCM+OdcN+hzCpFlLBH6Ob0dEHhZ0spQwf24A==} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true + dependencies: + '@types/node': 20.14.2 + colors: 1.2.5 + fs-extra: 7.0.1 + import-lazy: 4.0.0 + jju: 1.4.0 + resolve: 1.22.8 + semver: 7.5.4 + z-schema: 5.0.5 + dev: true + /@rushstack/node-core-library@5.4.1(@types/node@20.14.2): resolution: {integrity: sha512-WNnwdS8r9NZ/2K3u29tNoSRldscFa7SxU0RT+82B6Dy2I4Hl2MeCSKm4EXLXPKeNzLGvJ1cqbUhTLviSF8E6iA==} peerDependencies: @@ -4073,6 +4322,13 @@ packages: semver: 7.5.4 dev: true + /@rushstack/rig-package@0.5.1: + resolution: {integrity: sha512-pXRYSe29TjRw7rqxD4WS3HN/sRSbfr+tJs4a9uuaSIBAITbUggygdhuG0VrO0EO+QqH91GhYMN4S6KRtOEmGVA==} + dependencies: + resolve: 1.22.8 + strip-json-comments: 3.1.1 + dev: true + /@rushstack/rig-package@0.5.2: resolution: {integrity: sha512-mUDecIJeH3yYGZs2a48k+pbhM6JYwWlgjs2Ca5f2n1G2/kgdgP9D/07oglEGf6mRyXEnazhEENeYTSNDRCwdqA==} dependencies: @@ -4093,6 +4349,15 @@ packages: supports-color: 8.1.1 dev: true + /@rushstack/ts-command-line@4.17.1: + resolution: {integrity: sha512-2jweO1O57BYP5qdBGl6apJLB+aRIn5ccIRTPDyULh0KMwVzFqWtw6IZWt1qtUoZD/pD2RNkIOosH6Cq45rIYeg==} + dependencies: + '@types/argparse': 1.0.38 + argparse: 1.0.10 + colors: 1.2.5 + string-argv: 0.3.2 + dev: true + /@rushstack/ts-command-line@4.22.0(@types/node@20.14.2): resolution: {integrity: sha512-Qj28t6MO3HRgAZ72FDeFsrpdE6wBWxF3VENgvrXh7JF2qIT+CrXiOJIesW80VFZB9QwObSpkB1ilx794fGQg6g==} dependencies: @@ -4483,7 +4748,6 @@ packages: cosmiconfig: 7.1.0 deepmerge: 4.3.1 svgo: 2.8.0 - dev: false /@swc/core-darwin-arm64@1.4.2: resolution: {integrity: sha512-1uSdAn1MRK5C1m/TvLZ2RDvr0zLvochgrZ2xL+lRzugLlCTlSA+Q4TWtrZaOz+vnnFVliCpw7c7qu0JouhgQIw==} @@ -4998,7 +5262,6 @@ packages: /@types/hapi__joi@17.1.9: resolution: {integrity: sha512-oOMFT8vmCTFncsF1engrs04jatz8/Anwx3De9uxnOK4chgSEgWBvFtpSoJo8u3784JNO+ql5tzRR6phHoRnscQ==} - dev: false /@types/hast@2.3.10: resolution: {integrity: sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==} @@ -5054,7 +5317,6 @@ packages: /@types/json-schema@7.0.15: resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - dev: false /@types/json5@0.0.29: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} @@ -5565,7 +5827,6 @@ packages: core-js: 3.34.0 transitivePeerDependencies: - supports-color - dev: false /@umijs/bundler-esbuild@4.2.10: resolution: {integrity: sha512-rEFgLQTXjx3MK/X/v7mxprRV+8zNwm8qunNVUMZzaE1BIDyP6dR8Uwwgf8R7nVfpXj4aFN3cGF3p7QmvKRasPQ==} @@ -5579,7 +5840,6 @@ packages: postcss-preset-env: 7.5.0(postcss@8.4.38) transitivePeerDependencies: - supports-color - dev: false /@umijs/bundler-mako@0.5.4: resolution: {integrity: sha512-OJpgESkk491M3fVGub1k1tqJH15Wpf0vzhxOPbR/cEEmcgkEP0JBi5jArjMUmF0/3qQSQ5LGkAUABWE73Ccwjw==} @@ -5609,7 +5869,6 @@ packages: spdy: 4.0.2 transitivePeerDependencies: - supports-color - dev: false /@umijs/bundler-vite@4.2.10(@types/node@20.14.2)(postcss@8.4.38)(rollup@4.18.0)(sass@1.77.4): resolution: {integrity: sha512-hKbqwwZ/GW79y8i8LHLXeF6NxPR5xdqKx88gc8gVVMrvYU/Pr2LuFeEiSdbLpOHhKgRkD7cnpF6wrGSW4dEkgA==} @@ -5637,6 +5896,43 @@ packages: - terser dev: false + /@umijs/bundler-webpack@4.2.10(typescript@5.3.3): + resolution: {integrity: sha512-U/nSY/EYxe1QL8V9sd4CJyBglZmPMsuJeBmjmZTYJ21Hm9dXA2wuw/lIfXzggBp5XBVgkyxUbyY6qlMjioraAg==} + hasBin: true + dependencies: + '@svgr/core': 6.5.1 + '@svgr/plugin-jsx': 6.5.1(@svgr/core@6.5.1) + '@svgr/plugin-svgo': 6.5.1(@svgr/core@6.5.1) + '@types/hapi__joi': 17.1.9 + '@umijs/babel-preset-umi': 4.2.10 + '@umijs/bundler-utils': 4.2.10 + '@umijs/case-sensitive-paths-webpack-plugin': 1.0.1 + '@umijs/mfsu': 4.2.10 + '@umijs/react-refresh-webpack-plugin': 0.5.11(react-refresh@0.14.0) + '@umijs/utils': 4.2.10 + cors: 2.8.5 + css-loader: 6.7.1 + es5-imcompatible-versions: 0.1.90 + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.3.3) + jest-worker: 29.4.3 + lightningcss: 1.22.1 + node-libs-browser: 2.2.1 + postcss: 8.4.38 + postcss-preset-env: 7.5.0(postcss@8.4.38) + react-error-overlay: 6.0.9 + react-refresh: 0.14.0 + transitivePeerDependencies: + - '@types/webpack' + - sockjs-client + - supports-color + - type-fest + - typescript + - webpack + - webpack-dev-server + - webpack-hot-middleware + - webpack-plugin-serve + dev: true + /@umijs/bundler-webpack@4.2.10(typescript@5.4.5): resolution: {integrity: sha512-U/nSY/EYxe1QL8V9sd4CJyBglZmPMsuJeBmjmZTYJ21Hm9dXA2wuw/lIfXzggBp5XBVgkyxUbyY6qlMjioraAg==} hasBin: true @@ -5676,7 +5972,6 @@ packages: /@umijs/case-sensitive-paths-webpack-plugin@1.0.1: resolution: {integrity: sha512-kDKJ8yTarxwxGJDInG33hOpaQRZ//XpNuuznQ/1Mscypw6kappzFmrBr2dOYave++K7JHouoANF354UpbEQw0Q==} - dev: false /@umijs/core@4.2.10: resolution: {integrity: sha512-UGYLBZT4yAN56RB7MH6K1r+4c+YRxWMAiqaVcKlTIX0b6BHFC5HfyH3wK622hTDOiN+LQHw2ieJXDlJJVWpuOQ==} @@ -5685,7 +5980,6 @@ packages: '@umijs/utils': 4.2.10 transitivePeerDependencies: - supports-color - dev: false /@umijs/did-you-know@1.0.3: resolution: {integrity: sha512-9EZ+rgY9+2HEaE+Z9dGkal2ccw8L4uuz77tCB5WpskW7NBZX5nOj82sqF/shEtA5tU3SWO/Mi4n35K3iONvDtw==} @@ -5895,7 +6189,6 @@ packages: is-equal: 1.7.0 transitivePeerDependencies: - supports-color - dev: false /@umijs/plugin-run@4.2.10: resolution: {integrity: sha512-gxkFLY3toskZMIQOVhoNnr3ZKZhwrO4VpfjCS+Lc5nosXOAFaLIanftYQQ9jqS+/MjMpKHVmAq94AdPOVoEQzg==} @@ -5999,7 +6292,6 @@ packages: react-refresh: 0.14.0 schema-utils: 3.3.0 source-map: 0.7.4 - dev: false /@umijs/renderer-react@4.2.10(react-dom@18.1.0)(react@18.1.0): resolution: {integrity: sha512-FTVW6FoqkwuT1/LX1vtTYW0Yg8wnWIInefURp11guzhF7n2v/p4nlsuW40wGUNQXTf+xbxlbETBj1pGvCbREvg==} @@ -6068,7 +6360,6 @@ packages: dependencies: chokidar: 3.5.3 pino: 7.11.0 - dev: false /@umijs/zod2ts@4.2.10: resolution: {integrity: sha512-CPNV6VcGSqdgoy4zii8edC1BPpOxFhcULuJsOt56spBijwTXKdTgPYULJZwLL3QTzl7wZ88xOKtrK3Y08DImbg==} @@ -6077,6 +6368,11 @@ packages: /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + /@vercel/ncc@0.33.3: + resolution: {integrity: sha512-JGZ11QV+/ZcfudW2Cz2JVp54/pJNXbsuWRgSh2ZmmZdQBKXqBtIGrwI1Wyx8nlbzAiEFe7FHi4K1zX4//jxTnQ==} + hasBin: true + dev: true + /@vitejs/plugin-react@4.0.0(vite@4.5.2): resolution: {integrity: sha512-HX0XzMjL3hhOYm+0s95pb0Z7F8O81G7joUHgfDd/9J/ZZf5k4xX6QAMFkKsHFxaHlf6X7GD7+XuaZ66ULiJuhQ==} engines: {node: ^14.18.0 || >=16.0.0} @@ -6553,7 +6849,6 @@ packages: ajv: ^6.9.1 dependencies: ajv: 6.12.6 - dev: false /ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} @@ -6674,7 +6969,6 @@ packages: resolution: {integrity: sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==} engines: {'0': node >= 0.8.0} hasBin: true - dev: false /ansi-regex@2.1.1: resolution: {integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==} @@ -7106,7 +7400,6 @@ packages: bn.js: 4.12.0 inherits: 2.0.4 minimalistic-assert: 1.0.1 - dev: false /asn1@0.2.6: resolution: {integrity: sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==} @@ -7129,7 +7422,6 @@ packages: dependencies: object.assign: 4.1.5 util: 0.10.4 - dev: false /assign-symbols@1.0.0: resolution: {integrity: sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==} @@ -7180,7 +7472,6 @@ packages: /atomic-sleep@1.0.0: resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} engines: {node: '>=8.0.0'} - dev: false /autocomplete.js@0.36.0: resolution: {integrity: sha512-jEwUXnVMeCHHutUt10i/8ZiRaCb0Wo+ZyKxeGsYwBDtw6EJHqEeDrq4UwZRD8YBSvp3g6klP678il2eeiVXN2Q==} @@ -7202,7 +7493,6 @@ packages: picocolors: 1.0.1 postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /available-typed-arrays@1.0.7: resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} @@ -7303,7 +7593,6 @@ packages: resolution: {integrity: sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ==} dependencies: object.assign: 4.1.5 - dev: false /babel-plugin-istanbul@5.2.0: resolution: {integrity: sha512-5LphC0USA8t4i1zCtjbbNb6jJj/9+X6P37Qfirc/70EQ34xKlMW+a1RHGwxGI+SwWpNwZ27HqvzAobeqaXwiZw==} @@ -7355,6 +7644,17 @@ packages: '@types/babel__traverse': 7.20.6 dev: false + /babel-plugin-module-resolver@4.1.0: + resolution: {integrity: sha512-MlX10UDheRr3lb3P0WcaIdtCSRlxdQsB1sBqL7W0raF070bGl1HQQq5K3T2vf2XAYie+ww+5AKC/WrkjRO2knA==} + engines: {node: '>= 8.0.0'} + dependencies: + find-babel-config: 1.2.2 + glob: 7.2.3 + pkg-up: 3.1.0 + reselect: 4.1.8 + resolve: 1.22.8 + dev: true + /babel-plugin-react-compiler@0.0.0-experimental-c23de8d-20240515: resolution: {integrity: sha512-0XN2gmpT55QtAz5n7d5g91y1AuO9tRhWBaLgCRyc4ExHrlr7+LfxW+YTb3mOwxngkkiggwM8HyYsaEK9MqhnlQ==} dependencies: @@ -7367,6 +7667,29 @@ packages: zod-validation-error: 2.1.0(zod@3.23.8) dev: false + /babel-plugin-styled-components@2.1.4(@babel/core@7.24.7): + resolution: {integrity: sha512-Xgp9g+A/cG47sUyRwwYxGM4bR/jDRg5N6it/8+HxCnbT5XNKSKDT9xm4oag/osgqjC2It/vH0yXsomOG6k558g==} + peerDependencies: + styled-components: '>= 2' + dependencies: + '@babel/helper-annotate-as-pure': 7.24.7 + '@babel/helper-module-imports': 7.24.7 + '@babel/plugin-syntax-jsx': 7.24.7(@babel/core@7.24.7) + lodash: 4.17.21 + picomatch: 2.3.1 + transitivePeerDependencies: + - '@babel/core' + - supports-color + dev: true + + /babel-plugin-transform-define@2.0.1: + resolution: {integrity: sha512-7lDR1nFGSJHmhq/ScQtp9LTDmNE2yKPoLtwfiu+WQZnj84XL/J/5AZWZXwYcOwbDtUPhtg+y0yxTiP/oGDU6Kw==} + engines: {node: '>= 8.x.x'} + dependencies: + lodash: 4.17.21 + traverse: 0.6.6 + dev: true + /babel-preset-current-node-syntax@1.0.1(@babel/core@7.24.7): resolution: {integrity: sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==} peerDependencies: @@ -7465,7 +7788,6 @@ packages: /big.js@5.2.2: resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==} - dev: false /bignumber.js@9.1.2: resolution: {integrity: sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==} @@ -7513,11 +7835,9 @@ packages: /bn.js@4.12.0: resolution: {integrity: sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==} - dev: false /bn.js@5.2.1: resolution: {integrity: sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==} - dev: false /body-parser@1.20.2: resolution: {integrity: sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==} @@ -7617,7 +7937,6 @@ packages: /brorand@1.1.0: resolution: {integrity: sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==} - dev: false /browser-process-hrtime@1.0.0: resolution: {integrity: sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==} @@ -7637,7 +7956,6 @@ packages: evp_bytestokey: 1.0.3 inherits: 2.0.4 safe-buffer: 5.2.1 - dev: false /browserify-cipher@1.0.1: resolution: {integrity: sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==} @@ -7645,7 +7963,6 @@ packages: browserify-aes: 1.2.0 browserify-des: 1.0.2 evp_bytestokey: 1.0.3 - dev: false /browserify-des@1.0.2: resolution: {integrity: sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==} @@ -7654,14 +7971,12 @@ packages: des.js: 1.1.0 inherits: 2.0.4 safe-buffer: 5.2.1 - dev: false /browserify-rsa@4.1.0: resolution: {integrity: sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==} dependencies: bn.js: 5.2.1 randombytes: 2.1.0 - dev: false /browserify-sign@4.2.3: resolution: {integrity: sha512-JWCZW6SKhfhjJxO8Tyiiy+XYB7cqd2S5/+WeYHsKdNKFlCBhKbblba1A/HN/90YwtxKc8tCErjffZl++UNmGiw==} @@ -7677,13 +7992,11 @@ packages: parse-asn1: 5.1.7 readable-stream: 2.3.8 safe-buffer: 5.2.1 - dev: false /browserify-zlib@0.2.0: resolution: {integrity: sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==} dependencies: pako: 1.0.11 - dev: false /browserslist@4.23.0: resolution: {integrity: sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==} @@ -7736,7 +8049,6 @@ packages: /buffer-xor@1.0.3: resolution: {integrity: sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==} - dev: false /buffer@4.9.2: resolution: {integrity: sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==} @@ -7744,7 +8056,6 @@ packages: base64-js: 1.5.1 ieee754: 1.2.1 isarray: 1.0.0 - dev: false /buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} @@ -7760,7 +8071,6 @@ packages: /builtin-status-codes@3.0.0: resolution: {integrity: sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==} - dev: false /builtins@1.0.3: resolution: {integrity: sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==} @@ -8050,7 +8360,6 @@ packages: readdirp: 3.6.0 optionalDependencies: fsevents: 2.3.3 - dev: false /chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} @@ -8080,14 +8389,12 @@ packages: /ci-info@3.9.0: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} - dev: false /cipher-base@1.0.4: resolution: {integrity: sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==} dependencies: inherits: 2.0.4 safe-buffer: 5.2.1 - dev: false /cjs-module-lexer@0.6.0: resolution: {integrity: sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==} @@ -8346,6 +8653,11 @@ packages: resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} dev: true + /colors@1.2.5: + resolution: {integrity: sha512-erNRLao/Y3Fv54qUa0LBB+//Uf3YwMUmdJinN20yMXm9zdKKqH9wt7R9IIVZ+K7ShzfpLV/Zg8+VyrBJYB4lpg==} + engines: {node: '>=0.1.90'} + dev: true + /combined-stream@1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -8391,9 +8703,15 @@ packages: engines: {node: '>= 12'} dev: false + /commander@9.5.0: + resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} + engines: {node: ^12.20.0 || >=14} + requiresBuild: true + dev: true + optional: true + /common-path-prefix@3.0.0: resolution: {integrity: sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==} - dev: false /commondir@1.0.1: resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} @@ -8504,11 +8822,9 @@ packages: /console-browserify@1.2.0: resolution: {integrity: sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==} - dev: false /constants-browserify@1.0.0: resolution: {integrity: sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==} - dev: false /content-disposition@0.5.4: resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==} @@ -8639,7 +8955,6 @@ packages: /core-js-pure@3.37.1: resolution: {integrity: sha512-J/r5JTHSmzTxbiYYrzXg9w1VpqrYt+gexenBE9pugeyhwPZTAEJddyiReJWsLO6uNQ8xJZFbod6XC7KKwatCiA==} requiresBuild: true - dev: false /core-js@2.6.12: resolution: {integrity: sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==} @@ -8650,7 +8965,6 @@ packages: /core-js@3.34.0: resolution: {integrity: sha512-aDdvlDder8QmY91H88GzNi9EtQi2TjvQhpCX6B1v/dAZHU1AuLgHvRh54RiOerpEhEW46Tkf+vgAViB/CWC0ag==} requiresBuild: true - dev: false /core-js@3.37.1: resolution: {integrity: sha512-Xn6qmxrQZyB0FFY8E3bgRXei3lWDJHhvI+u0q9TKIYM49G8pAr0FgnnrFRAmsbptZL1yxRADVXn+x5AGsbBfyw==} @@ -8669,7 +8983,6 @@ packages: dependencies: object-assign: 4.1.1 vary: 1.1.2 - dev: false /cosmiconfig-typescript-loader@5.0.0(@types/node@20.14.2)(cosmiconfig@9.0.0)(typescript@5.4.5): resolution: {integrity: sha512-+8cK7jRAReYkMwMiG+bxhcNKiHJDM6bR9FD/nGBXOWdMLuYawjF5cGrtLilJ+LGd3ZjCXnJjR5DkfWPoIVlqJA==} @@ -8750,7 +9063,6 @@ packages: dependencies: bn.js: 4.12.0 elliptic: 6.5.5 - dev: false /create-error-class@3.0.2: resolution: {integrity: sha512-gYTKKexFO3kh200H1Nit76sRwRtOY32vQd3jpAQKpLtZqyNsSQNfI4N7o3eP2wUjV35pTWKRYqFUDBvUha/Pkw==} @@ -8767,7 +9079,6 @@ packages: md5.js: 1.3.5 ripemd160: 2.0.2 sha.js: 2.4.11 - dev: false /create-hmac@1.1.7: resolution: {integrity: sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==} @@ -8778,7 +9089,6 @@ packages: ripemd160: 2.0.2 safe-buffer: 5.2.1 sha.js: 2.4.11 - dev: false /cross-env@7.0.3: resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} @@ -8827,7 +9137,6 @@ packages: public-encrypt: 4.0.3 randombytes: 2.1.0 randomfill: 1.0.4 - dev: false /crypto-random-string@1.0.0: resolution: {integrity: sha512-GsVpkFPlycH7/fRR7Dhcmnoii54gV1nz7y4CWyeFS14N+JVBBhY+r8amRHE4BwSYal7BPTDp8isvAlCxyFt3Hg==} @@ -8848,7 +9157,6 @@ packages: dependencies: postcss: 8.4.38 postcss-selector-parser: 6.1.0 - dev: false /css-box-model@1.2.1: resolution: {integrity: sha512-a7Vr4Q/kd/aw96bnJG332W9V9LkJO69JRcaCYDUqjp6/z0w6VcZjgAcTbgFxEPfBgdnAwlh3iwu+hLopa+flJw==} @@ -8878,7 +9186,6 @@ packages: dependencies: postcss: 8.4.38 postcss-selector-parser: 6.1.0 - dev: false /css-in-js-utils@3.1.0: resolution: {integrity: sha512-fJAcud6B3rRu+KHYk+Bwf+WFL2MDCJJ1XG9x137tJQ0xYxor7XziQtuGFbWNdqrvF4Tk26O3H73nfVqXt/fW1A==} @@ -8900,7 +9207,6 @@ packages: postcss-modules-values: 4.0.0(postcss@8.4.38) postcss-value-parser: 4.2.0 semver: 7.6.2 - dev: false /css-prefers-color-scheme@6.0.3(postcss@8.4.38): resolution: {integrity: sha512-4BqMbZksRkJQx2zAjrokiGMd07RqOa2IxIrrN10lyBe9xhn9DEvjUK79J6jkeiv9D9hQFXKb6g1jwU62jziJZA==} @@ -8910,7 +9216,6 @@ packages: postcss: ^8.4 dependencies: postcss: 8.4.38 - dev: false /css-select-base-adapter@0.1.1: resolution: {integrity: sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==} @@ -8984,7 +9289,6 @@ packages: /cssdb@6.6.3: resolution: {integrity: sha512-7GDvDSmE+20+WcSMhP17Q1EVWUrLlbxxpMDqG731n8P99JhnQZHR9YvtjPvEHfjFUjvQJvdpKCjlKOX+xe4UVA==} - dev: false /cssesc@3.0.0: resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} @@ -9537,7 +9841,6 @@ packages: dependencies: inherits: 2.0.4 minimalistic-assert: 1.0.1 - dev: false /destroy@1.2.0: resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} @@ -9552,7 +9855,6 @@ packages: resolution: {integrity: sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==} engines: {node: '>=0.10'} hasBin: true - dev: false /detect-newline@2.1.0: resolution: {integrity: sha512-CwffZFvlJffUg9zZA0uqrjQayUTC8ob94pnr5sFwaVv3IOmkfUHcWH+jXaQK3askE51Cqe8/9Ql/0uXNwqZ8Zg==} @@ -9600,7 +9902,6 @@ packages: bn.js: 4.12.0 miller-rabin: 4.0.1 randombytes: 2.1.0 - dev: false /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} @@ -9681,7 +9982,6 @@ packages: /domain-browser@1.2.0: resolution: {integrity: sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==} engines: {node: '>=0.4', npm: '>=1.2'} - dev: false /domelementtype@1.3.1: resolution: {integrity: sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==} @@ -9981,7 +10281,6 @@ packages: inherits: 2.0.4 minimalistic-assert: 1.0.1 minimalistic-crypto-utils: 1.0.1 - dev: false /email-addresses@3.1.0: resolution: {integrity: sha512-k0/r7GrWVL32kZlGwfPNgB2Y/mMXVTq/decgLczm/j34whdaspNrZO8CnXPf1laaHxI6ptUlsnAxN+UAPw+fzg==} @@ -10012,7 +10311,6 @@ packages: /emojis-list@3.0.0: resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==} engines: {node: '>= 4'} - dev: false /encodeurl@1.0.2: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} @@ -10043,7 +10341,6 @@ packages: dependencies: graceful-fs: 4.2.11 tapable: 2.2.1 - dev: false /enquire.js@2.1.6: resolution: {integrity: sha512-/KujNpO+PT63F7Hlpu4h3pE3TokKRHN26JYmQpPyjkRD/N57R7bPDNojMXdi7uveAKjYB7yQnartCxZnFWr0Xw==} @@ -10108,7 +10405,6 @@ packages: resolution: {integrity: sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==} dependencies: stackframe: 1.3.4 - dev: false /es-abstract@1.23.3: resolution: {integrity: sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==} @@ -10235,7 +10531,6 @@ packages: /es5-imcompatible-versions@0.1.90: resolution: {integrity: sha512-2MPI0t/VV4j/oz1qbMekb4gCW81dewTpM2XJHKnPpZiPGu+1rVWmhTnwcq1vt8AFwWrkNF4RE7OZ9ibnKFYKwg==} - dev: false /es6-error@4.1.1: resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==} @@ -10472,6 +10767,36 @@ packages: esbuild-windows-arm64: 0.14.54 dev: true + /esbuild@0.17.19: + resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/android-arm': 0.17.19 + '@esbuild/android-arm64': 0.17.19 + '@esbuild/android-x64': 0.17.19 + '@esbuild/darwin-arm64': 0.17.19 + '@esbuild/darwin-x64': 0.17.19 + '@esbuild/freebsd-arm64': 0.17.19 + '@esbuild/freebsd-x64': 0.17.19 + '@esbuild/linux-arm': 0.17.19 + '@esbuild/linux-arm64': 0.17.19 + '@esbuild/linux-ia32': 0.17.19 + '@esbuild/linux-loong64': 0.17.19 + '@esbuild/linux-mips64el': 0.17.19 + '@esbuild/linux-ppc64': 0.17.19 + '@esbuild/linux-riscv64': 0.17.19 + '@esbuild/linux-s390x': 0.17.19 + '@esbuild/linux-x64': 0.17.19 + '@esbuild/netbsd-x64': 0.17.19 + '@esbuild/openbsd-x64': 0.17.19 + '@esbuild/sunos-x64': 0.17.19 + '@esbuild/win32-arm64': 0.17.19 + '@esbuild/win32-ia32': 0.17.19 + '@esbuild/win32-x64': 0.17.19 + dev: true + /esbuild@0.18.20: resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==} engines: {node: '>=12'} @@ -11065,14 +11390,12 @@ packages: /events@3.3.0: resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} engines: {node: '>=0.8.x'} - dev: false /evp_bytestokey@1.0.3: resolution: {integrity: sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==} dependencies: md5.js: 1.3.5 safe-buffer: 5.2.1 - dev: false /exec-sh@0.3.6: resolution: {integrity: sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==} @@ -11361,7 +11684,6 @@ packages: glob-parent: 5.1.2 merge2: 1.4.1 micromatch: 4.0.7 - dev: false /fast-glob@3.3.2: resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} @@ -11386,7 +11708,6 @@ packages: /fast-redact@3.5.0: resolution: {integrity: sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==} engines: {node: '>=6'} - dev: false /fast-shallow-equal@1.0.0: resolution: {integrity: sha512-HPtaa38cPgWvaCFmRNhlc6NG7pv6NUHqjPgVAkWGoB9mQMwYB27/K0CvOM5Czy+qpT3e8XJ6Q4aPAnzpNpzNaw==} @@ -11409,6 +11730,46 @@ packages: dependencies: reusify: 1.0.4 + /father@4.4.4(@babel/core@7.24.7)(@types/node@20.14.2): + resolution: {integrity: sha512-PGB3D7ckEbVsIFvsZij3rB/vfAWetGDUmqgD3aPCMquKGe3Yu63qJW+si80P94Xqbiwz/dWODpdiH7WKNZBZIQ==} + hasBin: true + dependencies: + '@microsoft/api-extractor': 7.39.1(@types/node@20.14.2) + '@umijs/babel-preset-umi': 4.2.10 + '@umijs/bundler-utils': 4.2.10 + '@umijs/bundler-webpack': 4.2.10(typescript@5.3.3) + '@umijs/case-sensitive-paths-webpack-plugin': 1.0.1 + '@umijs/core': 4.2.10 + '@umijs/utils': 4.2.10 + '@vercel/ncc': 0.33.3 + babel-plugin-dynamic-import-node: 2.3.3 + babel-plugin-module-resolver: 4.1.0 + babel-plugin-styled-components: 2.1.4(@babel/core@7.24.7) + babel-plugin-transform-define: 2.0.1 + enhanced-resolve: 5.9.3 + esbuild: 0.17.19 + fast-glob: 3.2.12 + file-system-cache: 2.0.0 + loader-runner: 4.2.0 + minimatch: 3.1.2 + tsconfig-paths: 4.0.0 + typescript: 5.3.3 + typescript-transform-paths: 3.4.6(typescript@5.3.3) + v8-compile-cache: 2.3.0 + transitivePeerDependencies: + - '@babel/core' + - '@types/node' + - '@types/webpack' + - sockjs-client + - styled-components + - supports-color + - type-fest + - webpack + - webpack-dev-server + - webpack-hot-middleware + - webpack-plugin-serve + dev: true + /fault@2.0.1: resolution: {integrity: sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==} dependencies: @@ -11475,6 +11836,13 @@ packages: engines: {node: '>=0.10.0'} dev: false + /file-system-cache@2.0.0: + resolution: {integrity: sha512-QlYut2ZtxRgdW/dboSmiKZWM8FsnpLaLI549hN/RWgwn3FawSil7Jc2n7nFHheclvYxa4LJqwEOvNUYv9VsCXg==} + dependencies: + fs-extra: 10.1.0 + ramda: 0.28.0 + dev: true + /file-system-cache@2.4.4: resolution: {integrity: sha512-vCYhn8pb5nlC3Gs2FFCOkmf4NEg2Ym3ulJwkmS9o6p9oRShGj6CwTMFvpgZihBlsh373NaM0XgAgDHXQIlS4LQ==} dependencies: @@ -11563,6 +11931,14 @@ packages: - supports-color dev: false + /find-babel-config@1.2.2: + resolution: {integrity: sha512-oK59njMyw2y3yxto1BCfVK7MQp/OYf4FleHu0RgosH3riFJ1aOuo/7naLDLAObfrgn3ueFhw5sAT/cp0QuJI3Q==} + engines: {node: '>=4.0.0'} + dependencies: + json5: 1.0.2 + path-exists: 3.0.0 + dev: true + /find-cache-dir@3.3.2: resolution: {integrity: sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==} engines: {node: '>=8'} @@ -11704,6 +12080,28 @@ packages: /forever-agent@0.6.1: resolution: {integrity: sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==} + /fork-ts-checker-webpack-plugin@8.0.0(typescript@5.3.3): + resolution: {integrity: sha512-mX3qW3idpueT2klaQXBzrIM/pHw+T0B/V9KHEvNrqijTq9NFnMZU6oreVxDYcf33P8a5cW+67PjodNHthGnNVg==} + engines: {node: '>=12.13.0', yarn: '>=1.0.0'} + peerDependencies: + typescript: '>3.6.0' + webpack: ^5.11.0 + dependencies: + '@babel/code-frame': 7.24.7 + chalk: 4.1.2 + chokidar: 3.6.0 + cosmiconfig: 7.1.0 + deepmerge: 4.3.1 + fs-extra: 10.1.0 + memfs: 3.5.3 + minimatch: 3.1.2 + node-abort-controller: 3.1.1 + schema-utils: 3.3.0 + semver: 7.6.2 + tapable: 2.2.1 + typescript: 5.3.3 + dev: true + /fork-ts-checker-webpack-plugin@8.0.0(typescript@5.4.5): resolution: {integrity: sha512-mX3qW3idpueT2klaQXBzrIM/pHw+T0B/V9KHEvNrqijTq9NFnMZU6oreVxDYcf33P8a5cW+67PjodNHthGnNVg==} engines: {node: '>=12.13.0', yarn: '>=1.0.0'} @@ -11761,7 +12159,6 @@ packages: /fraction.js@4.3.7: resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==} - dev: false /fragment-cache@0.2.1: resolution: {integrity: sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==} @@ -11852,7 +12249,6 @@ packages: /fs-monkey@1.0.6: resolution: {integrity: sha512-b1FMfwetIKymC0eioW7mTywihSQE4oLzQn1dB6rZB5fx/3NpNEdAWeCSMB+60/AeT0TCXsxzAlcYVEFCTAksWg==} - dev: false /fs-write-stream-atomic@1.0.10: resolution: {integrity: sha512-gehEzmPn2nAwr39eay+x3X34Ra+M2QlVUTLhkXPjWdeO8RF9kszk116avgBJM3ZyNHgHXBNx+VmPaFC36k0PzA==} @@ -12439,7 +12835,6 @@ packages: /handle-thing@2.0.1: resolution: {integrity: sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==} - dev: false /handlebars@4.7.8: resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==} @@ -12547,7 +12942,6 @@ packages: dependencies: inherits: 2.0.4 safe-buffer: 5.2.1 - dev: false /hash-base@3.1.0: resolution: {integrity: sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==} @@ -12556,14 +12950,12 @@ packages: inherits: 2.0.4 readable-stream: 3.6.2 safe-buffer: 5.2.1 - dev: false /hash.js@1.1.7: resolution: {integrity: sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==} dependencies: inherits: 2.0.4 minimalistic-assert: 1.0.1 - dev: false /hasown@2.0.2: resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} @@ -12876,7 +13268,6 @@ packages: hash.js: 1.1.7 minimalistic-assert: 1.0.1 minimalistic-crypto-utils: 1.0.1 - dev: false /hogan.js@3.0.2: resolution: {integrity: sha512-RqGs4wavGYJWE07t35JQccByczmNUXQT0E12ZYV1VKYu5UiAU9lsos/yBAcf840+zrUQQxgVduCR5/B8nNtibg==} @@ -12927,7 +13318,6 @@ packages: obuf: 1.1.2 readable-stream: 2.3.8 wbuf: 1.7.3 - dev: false /htm@3.1.1: resolution: {integrity: sha512-983Vyg8NwUE7JkZ6NmOqpCZ+sh1bKv2iYTlUkzlWmA5JD2acKoxd4KVxbMmxX/85mtfdnDmTFoNKcg5DGAvxNQ==} @@ -12947,7 +13337,6 @@ packages: /html-entities@2.5.2: resolution: {integrity: sha512-K//PSRMQk4FZ78Kyau+mZurHn3FH0Vwr+H36eE0rPbeYkRRi9YxceYPhuN60UwWorxyKHhqoAJl2OFKa4BVtaA==} - dev: false /html-escaper@2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} @@ -13051,7 +13440,6 @@ packages: /http-deceiver@1.2.7: resolution: {integrity: sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==} - dev: false /http-errors@2.0.0: resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==} @@ -13115,7 +13503,6 @@ packages: /https-browserify@1.0.0: resolution: {integrity: sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==} - dev: false /https-proxy-agent@2.2.4: resolution: {integrity: sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==} @@ -13322,7 +13709,6 @@ packages: /inherits@2.0.3: resolution: {integrity: sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==} - dev: false /inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} @@ -13500,7 +13886,6 @@ packages: engines: {node: '>= 0.4'} dependencies: is-callable: 1.2.7 - dev: false /is-async-function@2.0.0: resolution: {integrity: sha512-Y1JXKrfykRJGdlDwdKlLpLyMIiWqWvuSd17TvZk68PLAOGOoF4Xyav1z0Xhoi+gCYjZVeC5SI+hYFOfvXmGRCA==} @@ -13652,7 +14037,6 @@ packages: object.getprototypeof: 1.0.6 which-boxed-primitive: 1.0.2 which-collection: 1.0.2 - dev: false /is-extendable@0.1.1: resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==} @@ -14956,7 +15340,6 @@ packages: ci-info: 3.9.0 graceful-fs: 4.2.11 picomatch: 2.3.1 - dev: false /jest-validate@24.9.0: resolution: {integrity: sha512-HPIt6C5ACwiqSiwi+OfSSHbK8sG7akG8eATl+IPKaeIjtPOeBUd/g3J7DghugzxrGjI93qS/+RPKe1H6PqvhRQ==} @@ -15017,7 +15400,6 @@ packages: jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 - dev: false /jest-worker@29.7.0: resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==} @@ -15474,7 +15856,6 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true - dev: false optional: true /lightningcss-darwin-x64@1.22.1: @@ -15483,7 +15864,6 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true - dev: false optional: true /lightningcss-freebsd-x64@1.22.1: @@ -15492,7 +15872,6 @@ packages: cpu: [x64] os: [freebsd] requiresBuild: true - dev: false optional: true /lightningcss-linux-arm-gnueabihf@1.22.1: @@ -15501,7 +15880,6 @@ packages: cpu: [arm] os: [linux] requiresBuild: true - dev: false optional: true /lightningcss-linux-arm64-gnu@1.22.1: @@ -15511,7 +15889,6 @@ packages: os: [linux] libc: [glibc] requiresBuild: true - dev: false optional: true /lightningcss-linux-arm64-musl@1.22.1: @@ -15521,7 +15898,6 @@ packages: os: [linux] libc: [musl] requiresBuild: true - dev: false optional: true /lightningcss-linux-x64-gnu@1.22.1: @@ -15531,7 +15907,6 @@ packages: os: [linux] libc: [glibc] requiresBuild: true - dev: false optional: true /lightningcss-linux-x64-musl@1.22.1: @@ -15541,7 +15916,6 @@ packages: os: [linux] libc: [musl] requiresBuild: true - dev: false optional: true /lightningcss-win32-x64-msvc@1.22.1: @@ -15550,7 +15924,6 @@ packages: cpu: [x64] os: [win32] requiresBuild: true - dev: false optional: true /lightningcss@1.22.1: @@ -15568,7 +15941,6 @@ packages: lightningcss-linux-x64-gnu: 1.22.1 lightningcss-linux-x64-musl: 1.22.1 lightningcss-win32-x64-msvc: 1.22.1 - dev: false /lilconfig@2.1.0: resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} @@ -15634,6 +16006,11 @@ packages: resolution: {integrity: sha512-kPEjMFtZvwL9TaZo0uZ2ml+Ye9HUMmPwbYRJ324qF9tqMejwykJ5ggTyvzmrbBeapCAbk98BSbTeovHEEP1uCA==} dev: false + /loader-runner@4.2.0: + resolution: {integrity: sha512-92+huvxMvYlMzMt0iIOukcwYBFpkYJdpl2xsZ7LrlayO7E8SOv+JJUEK17B/dJIHAOLMfh2dZZ/Y18WgmGtYNw==} + engines: {node: '>=6.11.5'} + dev: true + /loader-utils@2.0.4: resolution: {integrity: sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==} engines: {node: '>=8.9.0'} @@ -15641,7 +16018,6 @@ packages: big.js: 5.2.2 emojis-list: 3.0.0 json5: 2.2.3 - dev: false /loader-utils@3.3.1: resolution: {integrity: sha512-FMJTLMXfCLMLfJxcX9PFqX5qD88Z5MRGaZCVzfuqeZSPsyiBzs+pahDQjbIWz2QIzPZz0NX9Zy4FX3lmK6YHIg==} @@ -15707,6 +16083,14 @@ packages: resolution: {integrity: sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==} dev: true + /lodash.get@4.4.2: + resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} + dev: true + + /lodash.isequal@4.5.0: + resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} + dev: true + /lodash.ismatch@4.4.0: resolution: {integrity: sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==} dev: true @@ -16039,7 +16423,6 @@ packages: hash-base: 3.1.0 inherits: 2.0.4 safe-buffer: 5.2.1 - dev: false /mdast-util-definitions@5.1.2: resolution: {integrity: sha512-8SVPMuHqlPME/z3gqVwWY4zVXn8lqKv/pAhC57FuJ40ImXyBpmO5ukh98zB2v7Blql2FiHjHv9LVztSIqjY+MA==} @@ -16412,7 +16795,6 @@ packages: engines: {node: '>= 4.0.0'} dependencies: fs-monkey: 1.0.6 - dev: false /memoize-one@5.2.1: resolution: {integrity: sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==} @@ -17016,7 +17398,6 @@ packages: dependencies: bn.js: 4.12.0 brorand: 1.1.0 - dev: false /mime-db@1.52.0: resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} @@ -17081,11 +17462,9 @@ packages: /minimalistic-assert@1.0.1: resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==} - dev: false /minimalistic-crypto-utils@1.0.1: resolution: {integrity: sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==} - dev: false /minimatch@3.0.8: resolution: {integrity: sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==} @@ -17365,7 +17744,6 @@ packages: /node-abort-controller@3.1.1: resolution: {integrity: sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==} - dev: false /node-domexception@1.0.0: resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} @@ -17471,7 +17849,6 @@ packages: url: 0.11.3 util: 0.11.1 vm-browserify: 1.1.2 - dev: false /node-notifier@8.0.2: resolution: {integrity: sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg==} @@ -17533,7 +17910,6 @@ packages: /normalize-range@0.1.2: resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==} engines: {node: '>=0.10.0'} - dev: false /normalize-url@4.5.1: resolution: {integrity: sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==} @@ -17792,7 +18168,6 @@ packages: define-properties: 1.2.1 es-object-atoms: 1.0.0 reflect.getprototypeof: 1.0.6 - dev: false /object.groupby@1.0.3: resolution: {integrity: sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==} @@ -17835,7 +18210,6 @@ packages: /obuf@1.1.2: resolution: {integrity: sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==} - dev: false /omit-deep@0.3.0: resolution: {integrity: sha512-Lbl/Ma59sss2b15DpnWnGmECBRL8cRl/PjPbPMVW+Y8zIQzRrwMaI65Oy6HvxyhYeILVKBJb2LWeG81bj5zbMg==} @@ -17847,7 +18221,6 @@ packages: /on-exit-leak-free@0.2.0: resolution: {integrity: sha512-dqaz3u44QbRXQooZLTUKU41ZrzYrcvLISVgbrzbyCMxpmSLJvZ3ZamIJIZ29P6OhZIkNIQKosdeM6t1LYbA9hg==} - dev: false /on-finished@2.4.1: resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} @@ -17985,7 +18358,6 @@ packages: /os-browserify@0.3.0: resolution: {integrity: sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==} - dev: false /os-homedir@1.0.2: resolution: {integrity: sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==} @@ -18169,7 +18541,6 @@ packages: /pako@1.0.11: resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} - dev: false /parallel-transform@1.2.0: resolution: {integrity: sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==} @@ -18201,7 +18572,6 @@ packages: hash-base: 3.0.4 pbkdf2: 3.1.2 safe-buffer: 5.2.1 - dev: false /parse-entities@4.0.1: resolution: {integrity: sha512-SWzvYcSJh4d/SGLIOQfZ/CoNv6BTlI6YEQ7Nj82oDVnRpwe/Z/F1EMx42x3JAOwGBlCjeCH0BRJQbQ/opHL17w==} @@ -18311,7 +18681,6 @@ packages: /path-browserify@0.0.1: resolution: {integrity: sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==} - dev: false /path-browserify@1.0.1: resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==} @@ -18399,7 +18768,6 @@ packages: ripemd160: 2.0.2 safe-buffer: 5.2.1 sha.js: 2.4.11 - dev: false /pdfast@0.2.0: resolution: {integrity: sha512-cq6TTu6qKSFUHwEahi68k/kqN2mfepjkGrG9Un70cgdRRKLKY6Rf8P8uvP2NvZktaQZNF3YE7agEkLj0vGK9bA==} @@ -18468,11 +18836,9 @@ packages: dependencies: duplexify: 4.1.3 split2: 4.2.0 - dev: false /pino-std-serializers@4.0.0: resolution: {integrity: sha512-cK0pekc1Kjy5w9V2/n+8MkZwusa6EyyxfeQCB799CQRhRt/CqYKiWs5adeu8Shve2ZNffvfC/7J64A2PJo1W/Q==} - dev: false /pino@7.11.0: resolution: {integrity: sha512-dMACeu63HtRLmCG8VKdy4cShCPKaYDR4youZqoSWLxl5Gu99HUw8bw75thbPv9Nip+H+QYX8o3ZJbTdVZZ2TVg==} @@ -18489,7 +18855,6 @@ packages: safe-stable-stringify: 2.4.3 sonic-boom: 2.8.0 thread-stream: 0.15.2 - dev: false /pirates@4.0.6: resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} @@ -18516,6 +18881,13 @@ packages: find-up: 2.1.0 dev: true + /pkg-up@3.1.0: + resolution: {integrity: sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==} + engines: {node: '>=8'} + dependencies: + find-up: 3.0.0 + dev: true + /pluralize@8.0.0: resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} engines: {node: '>=4'} @@ -18554,7 +18926,6 @@ packages: dependencies: postcss: 8.4.38 postcss-selector-parser: 6.1.0 - dev: false /postcss-calc@8.2.4(postcss@8.4.38): resolution: {integrity: sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==} @@ -18574,7 +18945,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-color-functional-notation@4.2.4(postcss@8.4.38): resolution: {integrity: sha512-2yrTAUZUab9s6CpxkxC4rVgFEVaR6/2Pipvi6qcgvnYiVqZcbDHEoBDhrXzyb7Efh2CCfHQNtcqWcIruDTIUeg==} @@ -18584,7 +18954,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-color-hex-alpha@8.0.4(postcss@8.4.38): resolution: {integrity: sha512-nLo2DCRC9eE4w2JmuKgVA3fGL3d01kGq752pVALF68qpGLmx2Qrk91QTKkdUqqp45T1K1XV8IhQpcu1hoAQflQ==} @@ -18594,7 +18963,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-color-rebeccapurple@7.1.1(postcss@8.4.38): resolution: {integrity: sha512-pGxkuVEInwLHgkNxUc4sdg4g3py7zUeCQ9sMfwyHAT+Ezk8a4OaaVZ8lIY5+oNqA/BXXgLyXv0+5wHP68R79hg==} @@ -18604,7 +18972,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-colormin@5.3.1(postcss@8.4.38): resolution: {integrity: sha512-UsWQG0AqTFQmpBegeLLc1+c3jIqBNB0zlDGRWR+dQ3pRKJL1oeMzyqmH3o2PIfn9MBdNrVPWhDbT769LxCTLJQ==} @@ -18638,7 +19005,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-custom-properties@12.1.11(postcss@8.4.38): resolution: {integrity: sha512-0IDJYhgU8xDv1KY6+VgUwuQkVtmYzRwu+dMjnmdMafXYv86SWqfxkc7qdDvWS38vsjaEtv8e0vGOUQrAiMBLpQ==} @@ -18648,7 +19014,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-custom-selectors@6.0.3(postcss@8.4.38): resolution: {integrity: sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg==} @@ -18658,7 +19023,6 @@ packages: dependencies: postcss: 8.4.38 postcss-selector-parser: 6.1.0 - dev: false /postcss-dir-pseudo-class@6.0.5(postcss@8.4.38): resolution: {integrity: sha512-eqn4m70P031PF7ZQIvSgy9RSJ5uI2171O/OO/zcRNYpJbvaeKFUlar1aJ7rmgiQtbm0FSPsRewjpdS0Oew7MPA==} @@ -18668,7 +19032,6 @@ packages: dependencies: postcss: 8.4.38 postcss-selector-parser: 6.1.0 - dev: false /postcss-discard-comments@5.1.2(postcss@8.4.38): resolution: {integrity: sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==} @@ -18715,7 +19078,6 @@ packages: '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.38) postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-env-function@4.0.6(postcss@8.4.38): resolution: {integrity: sha512-kpA6FsLra+NqcFnL81TnsU+Z7orGtDTxcOhl6pwXeEq1yFPpRMkCDpHhrz8CFQDr/Wfm0jLiNQ1OsGGPjlqPwA==} @@ -18725,7 +19087,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-flexbugs-fixes@5.0.2(postcss@8.4.38): resolution: {integrity: sha512-18f9voByak7bTktR2QgDveglpn9DTbBWPUzSOe9g0N4WR/2eSt6Vrcbf0hmspvMI6YWGywz6B9f7jzpFNJJgnQ==} @@ -18733,7 +19094,6 @@ packages: postcss: ^8.1.4 dependencies: postcss: 8.4.38 - dev: false /postcss-focus-visible@6.0.4(postcss@8.4.38): resolution: {integrity: sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw==} @@ -18743,7 +19103,6 @@ packages: dependencies: postcss: 8.4.38 postcss-selector-parser: 6.1.0 - dev: false /postcss-focus-within@5.0.4(postcss@8.4.38): resolution: {integrity: sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ==} @@ -18753,7 +19112,6 @@ packages: dependencies: postcss: 8.4.38 postcss-selector-parser: 6.1.0 - dev: false /postcss-font-variant@5.0.0(postcss@8.4.38): resolution: {integrity: sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA==} @@ -18761,7 +19119,6 @@ packages: postcss: ^8.1.0 dependencies: postcss: 8.4.38 - dev: false /postcss-gap-properties@3.0.5(postcss@8.4.38): resolution: {integrity: sha512-IuE6gKSdoUNcvkGIqdtjtcMtZIFyXZhmFd5RUlg97iVEvp1BZKV5ngsAjCjrVy+14uhGBQl9tzmi1Qwq4kqVOg==} @@ -18770,7 +19127,6 @@ packages: postcss: ^8.2 dependencies: postcss: 8.4.38 - dev: false /postcss-image-set-function@4.0.7(postcss@8.4.38): resolution: {integrity: sha512-9T2r9rsvYzm5ndsBE8WgtrMlIT7VbtTfE7b3BQnudUqnBcBo7L758oc+o+pdj/dUV0l5wjwSdjeOH2DZtfv8qw==} @@ -18780,7 +19136,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-initial@4.0.1(postcss@8.4.38): resolution: {integrity: sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ==} @@ -18788,7 +19143,6 @@ packages: postcss: ^8.0.0 dependencies: postcss: 8.4.38 - dev: false /postcss-lab-function@4.2.1(postcss@8.4.38): resolution: {integrity: sha512-xuXll4isR03CrQsmxyz92LJB2xX9n+pZJ5jE9JgcnmsCammLyKdlzrBin+25dy6wIjfhJpKBAN80gsTlCgRk2w==} @@ -18799,7 +19153,6 @@ packages: '@csstools/postcss-progressive-custom-properties': 1.3.0(postcss@8.4.38) postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-less@6.0.0(postcss@8.4.38): resolution: {integrity: sha512-FPX16mQLyEjLzEuuJtxA8X3ejDLNGGEG503d2YGZR5Ask1SpDN8KmZUMpzCvyalWRywAn1n1VOA5dcqfCLo5rg==} @@ -18833,7 +19186,6 @@ packages: postcss: ^8.4 dependencies: postcss: 8.4.38 - dev: false /postcss-media-minmax@5.0.0(postcss@8.4.38): resolution: {integrity: sha512-yDUvFf9QdFZTuCUg0g0uNSHVlJ5X1lSzDZjPSFaiCWvjgsvu8vEVxtahPrLMinIDEEGnx6cBe6iqdx5YWz08wQ==} @@ -18842,7 +19194,6 @@ packages: postcss: ^8.1.0 dependencies: postcss: 8.4.38 - dev: false /postcss-merge-longhand@5.1.7(postcss@8.4.38): resolution: {integrity: sha512-YCI9gZB+PLNskrK0BB3/2OzPnGhPkBEwmwhfYk1ilBHYVAZB7/tkTHFBAnCrvBBOmeYyMYw3DMjT55SyxMBzjQ==} @@ -18974,7 +19325,6 @@ packages: '@csstools/selector-specificity': 2.2.0(postcss-selector-parser@6.1.0) postcss: 8.4.38 postcss-selector-parser: 6.1.0 - dev: false /postcss-normalize-charset@5.1.0(postcss@8.4.38): resolution: {integrity: sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==} @@ -19074,7 +19424,6 @@ packages: postcss: ^8.2 dependencies: postcss: 8.4.38 - dev: false /postcss-ordered-values@5.1.3(postcss@8.4.38): resolution: {integrity: sha512-9UO79VUhPwEkzbb3RNpqqghc6lcYej1aveQteWY+4POIwlqkYE21HKWaLDF6lWNuqCobEAyTovVhtI32Rbv2RQ==} @@ -19095,7 +19444,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-page-break@3.0.4(postcss@8.4.38): resolution: {integrity: sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ==} @@ -19103,7 +19451,6 @@ packages: postcss: ^8 dependencies: postcss: 8.4.38 - dev: false /postcss-place@7.0.5(postcss@8.4.38): resolution: {integrity: sha512-wR8igaZROA6Z4pv0d+bvVrvGY4GVHihBCBQieXFY3kuSuMyOmEnnfFzHl/tQuqHZkfkIVBEbDvYcFfHmpSet9g==} @@ -19113,7 +19460,6 @@ packages: dependencies: postcss: 8.4.38 postcss-value-parser: 4.2.0 - dev: false /postcss-prefix-selector@1.16.0(postcss@8.4.38): resolution: {integrity: sha512-rdVMIi7Q4B0XbXqNUEI+Z4E+pueiu/CS5E6vRCQommzdQ/sgsS4dK42U7GX8oJR+TJOtT+Qv3GkNo6iijUMp3Q==} @@ -19175,7 +19521,6 @@ packages: postcss-replace-overflow-wrap: 4.0.0(postcss@8.4.38) postcss-selector-not: 5.0.0(postcss@8.4.38) postcss-value-parser: 4.2.0 - dev: false /postcss-pseudo-class-any-link@7.1.6(postcss@8.4.38): resolution: {integrity: sha512-9sCtZkO6f/5ML9WcTLcIyV1yz9D1rf0tWc+ulKcvV30s0iZKS/ONyETvoWsr6vnrmW+X+KmuK3gV/w5EWnT37w==} @@ -19185,7 +19530,6 @@ packages: dependencies: postcss: 8.4.38 postcss-selector-parser: 6.1.0 - dev: false /postcss-reduce-initial@5.1.2(postcss@8.4.38): resolution: {integrity: sha512-dE/y2XRaqAi6OvjzD22pjTUQ8eOfc6m/natGHgKFBK9DxFmIm69YmaRVQrGgFlEfc1HePIurY0TmDeROK05rIg==} @@ -19214,7 +19558,6 @@ packages: postcss: ^8.0.3 dependencies: postcss: 8.4.38 - dev: false /postcss-resolve-nested-selector@0.1.1: resolution: {integrity: sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==} @@ -19234,7 +19577,6 @@ packages: dependencies: balanced-match: 1.0.2 postcss: 8.4.38 - dev: false /postcss-selector-parser@6.1.0: resolution: {integrity: sha512-UMz42UD0UY0EApS0ZL9o1XnLhSTtvvvLe5Dc2H2O56fvRZi+KulDyf5ctDhhtYJBGKStV2FL1fy6253cmLgqVQ==} @@ -19452,12 +19794,10 @@ packages: /process-warning@1.0.0: resolution: {integrity: sha512-du4wfLyj4yCZq1VupnVSZmRsPJsNuxoDQFdCFHLaYiEbFBD7QE0a+I4D7hOxrVnh78QE/YipFAj9lXHiXocV+Q==} - dev: false /process@0.11.10: resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} engines: {node: '>= 0.6.0'} - dev: false /progress@2.0.3: resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} @@ -19612,7 +19952,6 @@ packages: parse-asn1: 5.1.7 randombytes: 2.1.0 safe-buffer: 5.2.1 - dev: false /pump@1.0.3: resolution: {integrity: sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw==} @@ -19653,7 +19992,6 @@ packages: /punycode@1.4.1: resolution: {integrity: sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==} - dev: false /punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} @@ -19682,7 +20020,6 @@ packages: engines: {node: '>=0.6'} dependencies: side-channel: 1.0.6 - dev: false /qs@6.5.3: resolution: {integrity: sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==} @@ -19701,7 +20038,6 @@ packages: /querystring-es3@0.2.1: resolution: {integrity: sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==} engines: {node: '>=0.4.x'} - dev: false /querystringify@2.2.0: resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} @@ -19717,7 +20053,6 @@ packages: /quick-format-unescaped@4.0.4: resolution: {integrity: sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==} - dev: false /quick-lru@4.0.1: resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==} @@ -19739,6 +20074,10 @@ packages: resolution: {integrity: sha512-GXpfrYVPwx3K7RQ6aYT8KPS8XViSXUVJT1ONhoKPE9VAleW42YE+U+8VEyGWt41EnEQW7gwecYJriTI0pKoecQ==} dev: true + /ramda@0.28.0: + resolution: {integrity: sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==} + dev: true + /ramda@0.29.0: resolution: {integrity: sha512-BBea6L67bYLtdbOqfp8f58fPMqEwx0doL+pAi8TZyp2YWz8R9G8z9x75CZI8W+ftqhFHCpEX2cRnUUXK130iKA==} dev: false @@ -19762,7 +20101,6 @@ packages: dependencies: randombytes: 2.1.0 safe-buffer: 5.2.1 - dev: false /range-parser@1.2.1: resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==} @@ -20882,7 +21220,6 @@ packages: /react-error-overlay@6.0.9: resolution: {integrity: sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==} - dev: false /react-fast-compare@3.2.2: resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==} @@ -21030,7 +21367,6 @@ packages: /react-refresh@0.14.0: resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==} engines: {node: '>=0.10.0'} - dev: false /react-refresh@0.14.2: resolution: {integrity: sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==} @@ -21302,7 +21638,6 @@ packages: /real-require@0.1.0: resolution: {integrity: sha512-r/H9MzAWtrv8aSVjPCMFpDMl5q66GqtmmRkRjpHTsp4zBAa+snZyiQNlMONiUmEJcsnaw0wCauJ2GWODr/aFkg==} engines: {node: '>= 12.13.0'} - dev: false /realpath-native@1.1.0: resolution: {integrity: sha512-wlgPA6cCIIg9gKz0fgAPjnzh4yR/LnXovwuo9hvyGvx3h8nX4+/iLZplfUWasXpqD8BdnGnP5njOFjkUwPzvjA==} @@ -21362,11 +21697,9 @@ packages: engines: {node: '>=4'} dependencies: regenerate: 1.4.2 - dev: false /regenerate@1.4.2: resolution: {integrity: sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==} - dev: false /regenerator-runtime@0.11.1: resolution: {integrity: sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==} @@ -21740,6 +22073,10 @@ packages: lodash: 4.17.21 dev: true + /reselect@4.1.8: + resolution: {integrity: sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==} + dev: true + /resize-observer-polyfill@1.5.1: resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==} @@ -21777,6 +22114,13 @@ packages: resolution: {integrity: sha512-9znBF0vBcaSN3W2j7wKvdERPwqTxSpCq+if5C0WoTCyV9n24rua28jeuQ2pL/HOf+yUe/Mef+H/5p60K0Id3bg==} dev: true + /resolve@1.19.0: + resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==} + dependencies: + is-core-module: 2.13.1 + path-parse: 1.0.7 + dev: true + /resolve@1.22.8: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true @@ -21891,7 +22235,6 @@ packages: dependencies: hash-base: 3.1.0 inherits: 2.0.4 - dev: false /roarr@2.15.4: resolution: {integrity: sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==} @@ -22160,7 +22503,6 @@ packages: /safe-stable-stringify@2.4.3: resolution: {integrity: sha512-e2bDA2WJT0wxseVd4lsDP4+3ONX6HpMXQa1ZhFQ7SU+GjvORCmShbCMltrtIDfkYhVHrOcPtj+KhmDBdPdZD1g==} engines: {node: '>=10'} - dev: false /safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} @@ -22224,7 +22566,6 @@ packages: '@types/json-schema': 7.0.15 ajv: 6.12.6 ajv-keywords: 3.5.2(ajv@6.12.6) - dev: false /screenfull@5.2.0: resolution: {integrity: sha512-9BakfsO2aUQN2K9Fdbj87RJIEZ82Q9IGim7FqM5OsebfoFC6ZHXgDq/KvniuLTPdeM8wY2o6Dj3WQ7KeQCj3cA==} @@ -22249,7 +22590,6 @@ packages: /select-hose@2.0.0: resolution: {integrity: sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==} - dev: false /semantic-release-monorepo@7.0.8(semantic-release@19.0.5): resolution: {integrity: sha512-L2n7FZEYvjxXop6C7svk8xZH1/2N58CV1dN+veeAGZ8363FG+AKNKLN1r4wAL86e5xIu1HiOOASm10X+rN6XWg==} @@ -22453,7 +22793,6 @@ packages: /setimmediate@1.0.5: resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==} - dev: false /setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} @@ -22465,7 +22804,6 @@ packages: dependencies: inherits: 2.0.4 safe-buffer: 5.2.1 - dev: false /shallow-equal@1.2.1: resolution: {integrity: sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==} @@ -22684,7 +23022,6 @@ packages: resolution: {integrity: sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==} dependencies: atomic-sleep: 1.0.0 - dev: false /sort-object-keys@1.1.3: resolution: {integrity: sha512-855pvK+VkU7PaKYPc+Jjnmt4EzejQHyhhF33q31qG8x7maDzkeFhAAThdCYay11CISO+qAMwjOBP+fPZe0IPyg==} @@ -22814,7 +23151,6 @@ packages: wbuf: 1.7.3 transitivePeerDependencies: - supports-color - dev: false /spdy@4.0.2: resolution: {integrity: sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==} @@ -22827,7 +23163,6 @@ packages: spdy-transport: 3.0.0 transitivePeerDependencies: - supports-color - dev: false /split-on-first@1.1.0: resolution: {integrity: sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==} @@ -22922,7 +23257,6 @@ packages: /stackframe@1.3.4: resolution: {integrity: sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==} - dev: false /stacktrace-gps@3.1.2: resolution: {integrity: sha512-GcUgbO4Jsqqg6RxfyTHFiPxdPqF+3LFmQhm7MgCuYQOYuWyqxo5pwRPz5d/u6/WYJdEnWfK4r+jGbyD8TSggXQ==} @@ -22976,7 +23310,6 @@ packages: dependencies: inherits: 2.0.4 readable-stream: 2.3.8 - dev: false /stream-combiner2@1.1.1: resolution: {integrity: sha512-3PnJbYgS56AeWgtKF5jtJRT6uFJe56Z0Hc5Ngg/6sI6rIt8iiMBTa9cvdyFfpMQjaVHr8dusbNeFGIIonxOvKw==} @@ -23006,7 +23339,6 @@ packages: readable-stream: 2.3.8 to-arraybuffer: 1.0.1 xtend: 4.0.2 - dev: false /stream-shift@1.0.3: resolution: {integrity: sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==} @@ -23535,7 +23867,6 @@ packages: /tapable@2.2.1: resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} engines: {node: '>=6'} - dev: false /tape@4.17.0: resolution: {integrity: sha512-KCuXjYxCZ3ru40dmND+oCLsXyuA8hoseu2SS404Px5ouyS0A99v8X/mdiLqsR5MTAyamMBN7PRwt2Dv3+xGIxw==} @@ -23687,7 +24018,6 @@ packages: resolution: {integrity: sha512-UkEhKIg2pD+fjkHQKyJO3yoIvAP3N6RlNFt2dUhcS1FGvCD1cQa1M/PGknCLFIyZdtJOWQjejp7bdNqmN7zwdA==} dependencies: real-require: 0.1.0 - dev: false /throat@4.1.0: resolution: {integrity: sha512-wCVxLDcFxw7ujDxaeJC6nfl2XfHJNYs8yUYJnvMgtPEFlttP9tHSfRUv2vBe6C4hkVFPWoP1P6ZccbYjmSEkKA==} @@ -23730,7 +24060,6 @@ packages: engines: {node: '>=0.6.0'} dependencies: setimmediate: 1.0.5 - dev: false /tiny-invariant@1.3.3: resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==} @@ -23767,7 +24096,6 @@ packages: /to-arraybuffer@1.0.1: resolution: {integrity: sha512-okFlQcoGTi4LQBG/PgSYblw9VOyptsz2KJZqc6qtgGdes8VktzUQkj4BI2blit072iS8VODNcMA+tvnS9dnuMA==} - dev: false /to-buffer@1.1.1: resolution: {integrity: sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==} @@ -23858,6 +24186,10 @@ packages: resolution: {integrity: sha512-tdtC3wxVEuzU7X/ydL131Q3JU5cPMEn37oqVLITjRDSDsnSHVFzW2JiCLfZLIQEgWzZHdSy3J6bZzvKEN24jGA==} dev: false + /traverse@0.6.6: + resolution: {integrity: sha512-kdf4JKs8lbARxWdp7RKdNzoJBhGUcIalSYibuGyHJbmk40pOysQ0+QPvlkCOICOivDWU2IJo2rkrxyTK2AH4fw==} + dev: true + /traverse@0.6.9: resolution: {integrity: sha512-7bBrcF+/LQzSgFmT0X5YclVqQxtv7TDJ1f8Wj7ibBu/U6BMLeOpUxuZjV7rMc44UtKxlnMFigdhFAIszSX1DMg==} engines: {node: '>= 0.4'} @@ -23932,6 +24264,14 @@ packages: strip-bom: 3.0.0 dev: true + /tsconfig-paths@4.0.0: + resolution: {integrity: sha512-SLBg2GBKlR6bVtMgJJlud/o3waplKtL7skmLkExomIiaAtLGtVsoXIqP3SYdjbcH9lq/KVv7pMZeCBpLYOit6Q==} + dependencies: + json5: 2.2.3 + minimist: 1.2.8 + strip-bom: 3.0.0 + dev: true + /tsconfig@7.0.0: resolution: {integrity: sha512-vZXmzPrL+EmC4T/4rVlT2jNVMWCi/O4DIiSj3UHg1OE5kCKbk4mfrXc6dZksLgRM/TZlKnousKH9bbTazUWRRw==} dependencies: @@ -23970,7 +24310,6 @@ packages: /tty-browserify@0.0.0: resolution: {integrity: sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw==} - dev: false /tunnel-agent@0.6.0: resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} @@ -24115,6 +24454,21 @@ packages: ts-toolbelt: 9.6.0 dev: false + /typescript-transform-paths@3.4.6(typescript@5.3.3): + resolution: {integrity: sha512-qdgpCk9oRHkIBhznxaHAapCFapJt5e4FbFik7Y4qdqtp6VyC3smAIPoDEIkjZ2eiF7x5+QxUPYNwJAtw0thsTw==} + peerDependencies: + typescript: '>=3.6.5' + dependencies: + minimatch: 3.1.2 + typescript: 5.3.3 + dev: true + + /typescript@5.3.3: + resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} + engines: {node: '>=14.17'} + hasBin: true + dev: true + /typescript@5.4.2: resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} engines: {node: '>=14.17'} @@ -24518,7 +24872,6 @@ packages: dependencies: punycode: 1.4.1 qs: 6.12.1 - dev: false /use-isomorphic-layout-effect@1.1.2(react@18.1.0): resolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==} @@ -24592,13 +24945,11 @@ packages: resolution: {integrity: sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==} dependencies: inherits: 2.0.3 - dev: false /util@0.11.1: resolution: {integrity: sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==} dependencies: inherits: 2.0.3 - dev: false /utila@0.4.0: resolution: {integrity: sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==} @@ -24635,7 +24986,6 @@ packages: /v8-compile-cache@2.3.0: resolution: {integrity: sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==} - dev: false /v8-to-istanbul@7.1.2: resolution: {integrity: sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow==} @@ -24657,6 +25007,11 @@ packages: builtins: 1.0.3 dev: false + /validator@13.12.0: + resolution: {integrity: sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==} + engines: {node: '>= 0.10'} + dev: true + /valtio@1.13.2(react@18.3.1): resolution: {integrity: sha512-Qik0o+DSy741TmkqmRfjq+0xpZBXi/Y6+fXZLn0xNF1z/waFMbE3rkivv5Zcf9RrMUp6zswf2J7sbh2KBlba5A==} engines: {node: '>=12.20.0'} @@ -24678,7 +25033,6 @@ packages: /vary@1.1.2: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} - dev: false /verror@1.10.0: resolution: {integrity: sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==} @@ -24859,7 +25213,6 @@ packages: /vm-browserify@1.1.2: resolution: {integrity: sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==} - dev: false /vue-component-type-helpers@2.0.19: resolution: {integrity: sha512-cN3f1aTxxKo4lzNeQAkVopswuImUrb5Iurll9Gaw5cqpnbTAxtEMM1mgi6ou4X79OCyqYv1U1mzBHJkzmiK82w==} @@ -24997,7 +25350,6 @@ packages: resolution: {integrity: sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==} dependencies: minimalistic-assert: 1.0.1 - dev: false /wcwidth@1.0.1: resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} @@ -25443,6 +25795,18 @@ packages: engines: {node: '>=12.20'} dev: true + /z-schema@5.0.5: + resolution: {integrity: sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==} + engines: {node: '>=8.0.0'} + hasBin: true + dependencies: + lodash.get: 4.4.2 + lodash.isequal: 4.5.0 + validator: 13.12.0 + optionalDependencies: + commander: 9.5.0 + dev: true + /zepto@1.2.0: resolution: {integrity: sha512-C1x6lfvBICFTQIMgbt3JqMOno3VOtkWat/xEakLTOurskYIHPmzJrzd1e8BnmtdDVJlGuk5D+FxyCA8MPmkIyA==} dev: false From deb3514e0646f50ca554b1e55db6d089569b2811 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Thu, 20 Jun 2024 16:13:13 +0800 Subject: [PATCH 06/10] =?UTF-8?q?docs:=20=E6=96=B0=E5=A2=9E=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en-US.md | 2 +- README.md | 2 +- packages/s2-core/README.md | 8 +++--- packages/s2-core/package.json | 4 +-- packages/s2-react-components/README.md | 6 ++-- packages/s2-react-components/package.json | 3 +- .../s2-react-components/playground/index.tsx | 2 +- packages/s2-react/README.md | 8 +++--- packages/s2-react/package.json | 4 +-- packages/s2-vue/README.md | 8 +++--- packages/s2-vue/package.json | 4 +-- s2-site/.dumi/global.ts | 6 ++-- s2-site/docs/common/browser.en.md | 12 ++++---- s2-site/docs/common/browser.zh.md | 10 +++---- s2-site/docs/common/packages.zh.md | 2 +- .../manual/advanced/analysis/advanced.en.md | 2 +- .../manual/advanced/analysis/advanced.zh.md | 2 +- .../manual/advanced/analysis/drill-down.zh.md | 2 +- .../advanced/analysis/editable-mode.en.md | 2 +- .../advanced/analysis/editable-mode.zh.md | 2 +- .../manual/advanced/analysis/strategy.en.md | 2 +- .../manual/advanced/analysis/strategy.zh.md | 2 +- .../manual/advanced/analysis/switcher.zh.md | 2 +- .../manual/basic/analysis/editable-mode.zh.md | 2 +- .../manual/basic/sheet-type/pivot-mode.en.md | 2 +- .../manual/basic/sheet-type/pivot-mode.zh.md | 2 +- .../manual/basic/sheet-type/table-mode.en.md | 2 +- .../manual/basic/sheet-type/table-mode.zh.md | 2 +- s2-site/docs/manual/basic/tooltip.en.md | 6 ++-- s2-site/docs/manual/basic/tooltip.zh.md | 6 ++-- s2-site/docs/manual/getting-started.en.md | 6 ++-- s2-site/docs/manual/getting-started.zh.md | 6 ++-- s2-site/docs/manual/introduction.zh.md | 2 +- s2-site/docs/manual/migration-v2.zh.md | 28 +++++++++++++++++-- .../examples/analysis/sort/demo/advanced.tsx | 2 +- .../analysis/sort/demo/group-sort-base.ts | 2 +- .../analysis/sort/demo/group-sort.tsx | 2 +- .../analysis/sort/demo/table-sort.tsx | 2 +- s2-site/examples/case/art/demo/lost-text.tsx | 2 +- s2-site/examples/case/art/demo/mosaic.tsx | 2 +- .../case/art/demo/time-spend-abstract.tsx | 2 +- .../comparison/demo/measure-comparison.tsx | 2 +- .../demo/multiple-people-comparison.tsx | 2 +- .../case/comparison/demo/philosophers.tsx | 2 +- .../case/comparison/demo/time-spend.tsx | 2 +- .../examples/case/data-preview/demo/excel.tsx | 2 +- .../examples/case/data-preview/demo/index.tsx | 2 +- .../examples/case/kpi-strategy/demo/basic.tsx | 2 +- .../case/kpi-strategy/demo/covid-trend.tsx | 2 +- .../case/performance-compare/demo/basic.tsx | 2 +- .../case/proportion/demo/group-drill-down.tsx | 2 +- .../demo/single-population-proportion.tsx | 2 +- .../demo/custom-header-action-icon.ts | 2 +- .../interaction/advanced/demo/intercepts.ts | 4 +-- .../advanced/demo/pivot-hide-columns.ts | 2 +- .../advanced/demo/table-hide-columns.ts | 8 +++--- .../custom/demo/disable-context-menu.ts | 4 +-- .../custom/demo/row-col-hover-tooltip.ts | 4 +-- .../layout/multi-line-text/demo/pivot.ts | 2 +- .../layout/multi-line-text/demo/table.ts | 2 +- .../drill-down/demo/for-pivot.tsx | 2 +- .../react-component/export/demo/export.tsx | 2 +- .../react-component/header/demo/default.tsx | 2 +- .../react-component/pagination/demo/pivot.tsx | 2 +- .../react-component/pagination/demo/table.tsx | 2 +- .../react-component/sheet/demo/pivot.tsx | 2 +- .../sheet/demo/strategy-mini-chart.tsx | 2 +- .../react-component/sheet/demo/strategy.tsx | 2 +- .../react-component/sheet/demo/table.tsx | 2 +- .../switcher/demo/pivot-header.tsx | 2 +- .../switcher/demo/pivot-with-children.tsx | 2 +- .../react-component/switcher/demo/pivot.tsx | 2 +- .../react-component/switcher/demo/table.tsx | 2 +- .../react-component/tooltip/demo/basic.tsx | 2 +- .../demo/custom-click-show-tooltip.tsx | 2 +- .../tooltip/demo/custom-content-base.ts | 2 +- .../tooltip/demo/custom-content-react.tsx | 2 +- .../tooltip/demo/custom-description.tsx | 2 +- .../demo/custom-hover-show-tooltip.tsx | 2 +- .../tooltip/demo/custom-operation.tsx | 2 +- .../tooltip/demo/custom-show-tooltip.tsx | 2 +- .../tooltip/demo/custom-tooltip.tsx | 2 +- .../tooltip/demo/operation.tsx | 2 +- .../custom/demo/custom-generate-palette.tsx | 2 +- .../custom/demo/custom-manual-palette.tsx | 2 +- s2-site/playground/sheet-component/index.tsx | 12 ++++---- 86 files changed, 155 insertions(+), 132 deletions(-) diff --git a/README.en-US.md b/README.en-US.md index 95392e2148..c585e3cc75 100644 --- a/README.en-US.md +++ b/README.en-US.md @@ -30,7 +30,7 @@ A practical visualization library for tabular analysis.

- npm bundle size + npm bundle size GitHub discussions diff --git a/README.md b/README.md index ebb7941e60..dbfff04784 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@

- npm bundle size + npm bundle size GitHub discussions diff --git a/packages/s2-core/README.md b/packages/s2-core/README.md index c6dca6a56e..b6e2271302 100644 --- a/packages/s2-core/README.md +++ b/packages/s2-core/README.md @@ -29,7 +29,7 @@

- npm bundle size + npm bundle size GitHub discussions @@ -73,9 +73,9 @@ S2 是 AntV 在多维交叉分析表格领域的解决方案,完全基于数 ## 📦 安装 ```bash -$ pnpm add @antv/s2 -# yarn add @antv/s2 -# npm install @antv/s2 --save +$ pnpm add @antv/s2@next +# yarn add @antv/s2@next +# npm install @antv/s2@next --save ``` ## 🔨 使用 diff --git a/packages/s2-core/package.json b/packages/s2-core/package.json index 25aee1d0ae..a1a061a5da 100644 --- a/packages/s2-core/package.json +++ b/packages/s2-core/package.json @@ -90,11 +90,11 @@ }, "size-limit": [ { - "path": "./dist/index.min.js", + "path": "./dist/s2.min.js", "limit": "200 kB" }, { - "path": "./dist/style.min.css", + "path": "./dist/s2.min.css", "limit": "5 kB" } ], diff --git a/packages/s2-react-components/README.md b/packages/s2-react-components/README.md index 141029469f..f1c3f0f4d1 100644 --- a/packages/s2-react-components/README.md +++ b/packages/s2-react-components/README.md @@ -24,9 +24,9 @@ TODO: ## 📦 安装 ```bash -$ pnpm add @antv/s2-react-components -# npm install @antv/s2-react-components --save -# yarn add @antv/s2-react-components +$ pnpm add @antv/s2-react-components@next +# npm install @antv/s2-react-components@next --save +# yarn add @antv/s2-react-components@next ``` ## 🔨 使用 diff --git a/packages/s2-react-components/package.json b/packages/s2-react-components/package.json index 429f88df70..cb3dfa7971 100644 --- a/packages/s2-react-components/package.json +++ b/packages/s2-react-components/package.json @@ -108,8 +108,7 @@ }, "size-limit": [ { - "path": "./dist/index.min.js", - "import": "{ createComponent }", + "path": "./dist/s2-react-components.min.js", "limit": "70 kB" } ], diff --git a/packages/s2-react-components/playground/index.tsx b/packages/s2-react-components/playground/index.tsx index bb41bdf42f..ea63b506f1 100644 --- a/packages/s2-react-components/playground/index.tsx +++ b/packages/s2-react-components/playground/index.tsx @@ -17,7 +17,7 @@ import pkg from '../package.json'; import { ThemePanel } from '../src'; import { s2DataConfig, s2Options } from './config'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import './index.less'; function MainLayout() { diff --git a/packages/s2-react/README.md b/packages/s2-react/README.md index 86e3959e61..b2afd835e5 100644 --- a/packages/s2-react/README.md +++ b/packages/s2-react/README.md @@ -24,9 +24,9 @@ ## 📦 安装 ```bash -$ pnpm add @antv/s2-react -# npm install @antv/s2-react --save -# yarn add @antv/s2-react +$ pnpm add @antv/s2-react@next +# npm install @antv/s2-react@next --save +# yarn add @antv/s2-react@next ``` ## 🔨 使用 @@ -143,7 +143,7 @@ const s2Options = { ```tsx import React from 'React' import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; const App = () => { return ( diff --git a/packages/s2-react/package.json b/packages/s2-react/package.json index d234079736..74c066c66c 100644 --- a/packages/s2-react/package.json +++ b/packages/s2-react/package.json @@ -98,11 +98,11 @@ }, "size-limit": [ { - "path": "./dist/index.min.js", + "path": "./dist/s2-react.min.js", "limit": "70 kB" }, { - "path": "./dist/style.min.css", + "path": "./dist/s2-react.min.css", "limit": "5 kB" } ], diff --git a/packages/s2-vue/README.md b/packages/s2-vue/README.md index 477983a152..d953acecdf 100644 --- a/packages/s2-vue/README.md +++ b/packages/s2-vue/README.md @@ -24,9 +24,9 @@ ## 📦 安装 ```bash -$ pnpm add @antv/s2-vue -# yarn add @antv/s2-vue -# npm install @antv/s2-vue --save +$ pnpm add @antv/s2-vue@next +# yarn add @antv/s2-vue@next +# npm install @antv/s2-vue@next --save ``` ## 🔨 使用 @@ -316,7 +316,7 @@ const rawOptions: S2Options = { import type { S2DataConfig, S2Options } from '@antv/s2'; import { SheetComponent } from '@antv/s2-vue'; import { defineComponent, onMounted, reactive, shallowRef } from 'vue'; -import "@antv/s2-vue/dist/style.min.css"; +import "@antv/s2-vue/dist/s2-vue.min.css"; export default defineComponent({ setup() { diff --git a/packages/s2-vue/package.json b/packages/s2-vue/package.json index ccaec703e7..c040540613 100644 --- a/packages/s2-vue/package.json +++ b/packages/s2-vue/package.json @@ -81,11 +81,11 @@ }, "size-limit": [ { - "path": "./dist/index.min.js", + "path": "./dist/s2-vue.min.js", "limit": "20 kB" }, { - "path": "./dist/style.min.css", + "path": "./dist/s2-vue.min.css", "limit": "5 kB" } ], diff --git a/s2-site/.dumi/global.ts b/s2-site/.dumi/global.ts index c692fbed89..0e50180ae0 100644 --- a/s2-site/.dumi/global.ts +++ b/s2-site/.dumi/global.ts @@ -22,8 +22,10 @@ if (window) { // 本地通过 monorepoRedirect link 时不需要引入样式, 发布时引入, 避免样式丢失 if (process.env.NODE_ENV === 'production') { - (window as any).s2CSS = require('@antv/s2/dist/style.min.css'); - (window as any).s2ReactCSS = require('@antv/s2-react/dist/style.min.css'); + (window as any).s2CSS = require('@antv/s2/dist/s2.min.css'); + ( + window as any + ).s2ReactCSS = require('@antv/s2-react/dist/s2-react.min.css'); } // 码云和老网站统一跳转 antgroup 新域名 diff --git a/s2-site/docs/common/browser.en.md b/s2-site/docs/common/browser.en.md index 7c9ee1a3ec..f4c7916f2a 100644 --- a/s2-site/docs/common/browser.en.md +++ b/s2-site/docs/common/browser.en.md @@ -7,10 +7,10 @@ Check out the example: [![Edit @antv/s2 import in browser](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antv-s2-import-in-browser-z6uspx?autoresize=1\&fontsize=14\&hidenavigation=1\&theme=dark) -We provide the `UMD` compilation file of the `dist` directory, import `dist/index.min.js` , and access the global variable `window.S2` +We provide the `UMD` compilation file of the `dist` directory, import `dist/s2.min.js` , and access the global variable `window.S2` ```ts - + + // React 需额外引入样式: - + // Vue3 版本 需额外引入样式: - + ``` diff --git a/s2-site/docs/common/browser.zh.md b/s2-site/docs/common/browser.zh.md index 879633c565..3d13d41069 100644 --- a/s2-site/docs/common/browser.zh.md +++ b/s2-site/docs/common/browser.zh.md @@ -7,10 +7,10 @@ order: 5 [![Edit @antv/s2 import in browser](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antv-s2-import-in-browser-z6uspx?autoresize=1&fontsize=14&hidenavigation=1&theme=dark) -我们提供了 `dist` 目录的 `UMD` 编译文件,引入 `dist/index.min.js` , 可访问全局变量 `window.S2` +我们提供了 `dist` 目录的 `UMD` 编译文件,引入 `dist/s2.min.js` , 可访问全局变量 `window.S2` ```ts - + + // React 需额外引入样式: - + // Vue3 版本 需额外引入样式: - + ``` diff --git a/s2-site/docs/common/packages.zh.md b/s2-site/docs/common/packages.zh.md index 98030a5c2d..3ef303058b 100644 --- a/s2-site/docs/common/packages.zh.md +++ b/s2-site/docs/common/packages.zh.md @@ -23,7 +23,7 @@ order: 5 :::info{title='如何获取新版本发布通知?'} - 订阅:[https://github.com/antvis/S2/releases.atom](https://github.com/antvis/S2/releases.atom) 来获得新版本发布的通知。 -- 加入钉钉交流群,新版本发布后,会通过🤖 群机器人推送。 +- 加入钉钉交流群,新版本发布后,会通过 🤖 群机器人推送。 - `Watch` [S2 代码仓库](https://github.com/antvis/S2), 选择 `Custom - Releases` 来获取消息推送。 ![preview](https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*NKYFSKFV_scAAAAAAAAAAAAADmJ7AQ/original) diff --git a/s2-site/docs/manual/advanced/analysis/advanced.en.md b/s2-site/docs/manual/advanced/analysis/advanced.en.md index 611730e285..d644cbf21c 100644 --- a/s2-site/docs/manual/advanced/analysis/advanced.en.md +++ b/s2-site/docs/manual/advanced/analysis/advanced.en.md @@ -17,7 +17,7 @@ import React, { useState } from 'react'; import ReactDOM from 'react-dom'; import { SortParams } from '@antv/s2'; import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; const AdvancedSortDemo = () => { const [dataCfg, setDataCfg] = useState(s2DataConfig); diff --git a/s2-site/docs/manual/advanced/analysis/advanced.zh.md b/s2-site/docs/manual/advanced/analysis/advanced.zh.md index 54d272d8cd..48ef6ad4b1 100644 --- a/s2-site/docs/manual/advanced/analysis/advanced.zh.md +++ b/s2-site/docs/manual/advanced/analysis/advanced.zh.md @@ -19,7 +19,7 @@ tag: Updated ```tsx import React from 'react'; import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; export const AdvancedSortDemo = () => { const [dataCfg, setDataCfg] = React.useState(s2DataConfig); diff --git a/s2-site/docs/manual/advanced/analysis/drill-down.zh.md b/s2-site/docs/manual/advanced/analysis/drill-down.zh.md index 83e820a82a..536e0b4824 100644 --- a/s2-site/docs/manual/advanced/analysis/drill-down.zh.md +++ b/s2-site/docs/manual/advanced/analysis/drill-down.zh.md @@ -91,7 +91,7 @@ const PartDrillDown = { ```tsx import React from 'react'; import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; const s2Options = { hierarchyType: 'tree', // 树形结构 diff --git a/s2-site/docs/manual/advanced/analysis/editable-mode.en.md b/s2-site/docs/manual/advanced/analysis/editable-mode.en.md index 00907eee9f..19a7b3d00f 100644 --- a/s2-site/docs/manual/advanced/analysis/editable-mode.en.md +++ b/s2-site/docs/manual/advanced/analysis/editable-mode.en.md @@ -21,7 +21,7 @@ The edit table is one of the derived forms of the `S2` schedule. In addition to import React from "react"; import ReactDOM from "react-dom"; import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; // 1. 准备数据 const data = [ diff --git a/s2-site/docs/manual/advanced/analysis/editable-mode.zh.md b/s2-site/docs/manual/advanced/analysis/editable-mode.zh.md index 5bc335ff4a..c94611d48e 100644 --- a/s2-site/docs/manual/advanced/analysis/editable-mode.zh.md +++ b/s2-site/docs/manual/advanced/analysis/editable-mode.zh.md @@ -126,7 +126,7 @@ order: 3 ```tsx import React from "react"; import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; const s2DataCfg = { fields: { diff --git a/s2-site/docs/manual/advanced/analysis/strategy.en.md b/s2-site/docs/manual/advanced/analysis/strategy.en.md index 9c64817e80..6dfafc41df 100644 --- a/s2-site/docs/manual/advanced/analysis/strategy.en.md +++ b/s2-site/docs/manual/advanced/analysis/strategy.en.md @@ -70,7 +70,7 @@ The trend analysis table component uses various capabilities provided by S2 for import React from "react"; import ReactDOM from "react-dom"; import { SheetComponent } from "@antv/s2-react"; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; ReactDOM.render( { return ( diff --git a/s2-site/docs/manual/advanced/analysis/switcher.zh.md b/s2-site/docs/manual/advanced/analysis/switcher.zh.md index d4d0303e75..83e6c78470 100644 --- a/s2-site/docs/manual/advanced/analysis/switcher.zh.md +++ b/s2-site/docs/manual/advanced/analysis/switcher.zh.md @@ -35,7 +35,7 @@ const switcherFields = { ```tsx import React from "react"; import { Switcher } from "@antv/s2-react"; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; const onSubmit = (result) => { console.log("result:", result); diff --git a/s2-site/docs/manual/basic/analysis/editable-mode.zh.md b/s2-site/docs/manual/basic/analysis/editable-mode.zh.md index 165468e54b..6bf8193c6a 100644 --- a/s2-site/docs/manual/basic/analysis/editable-mode.zh.md +++ b/s2-site/docs/manual/basic/analysis/editable-mode.zh.md @@ -25,7 +25,7 @@ order: 3 import React from "react"; import ReactDOM from "react-dom"; import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; // 1. 准备数据 const data = [ diff --git a/s2-site/docs/manual/basic/sheet-type/pivot-mode.en.md b/s2-site/docs/manual/basic/sheet-type/pivot-mode.en.md index 8b27fcb960..63b5f74a5e 100644 --- a/s2-site/docs/manual/basic/sheet-type/pivot-mode.en.md +++ b/s2-site/docs/manual/basic/sheet-type/pivot-mode.en.md @@ -22,7 +22,7 @@ Pivot table is also called cross table or multi-dimensional table. It is a table import React from "react"; import ReactDOM from "react-dom"; import { SheetComponent } from "@antv/s2-react"; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; // 1. 准备数据 const data = [ diff --git a/s2-site/docs/manual/basic/sheet-type/pivot-mode.zh.md b/s2-site/docs/manual/basic/sheet-type/pivot-mode.zh.md index fa83b26e14..83dad6ae1e 100644 --- a/s2-site/docs/manual/basic/sheet-type/pivot-mode.zh.md +++ b/s2-site/docs/manual/basic/sheet-type/pivot-mode.zh.md @@ -130,7 +130,7 @@ const App = () => { ```tsx import React from "react"; import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; const s2Options = { width: 400, diff --git a/s2-site/docs/manual/basic/sheet-type/table-mode.en.md b/s2-site/docs/manual/basic/sheet-type/table-mode.en.md index 7a1b174183..e4892f5160 100644 --- a/s2-site/docs/manual/basic/sheet-type/table-mode.en.md +++ b/s2-site/docs/manual/basic/sheet-type/table-mode.en.md @@ -23,7 +23,7 @@ Schedules and pivot tables share [basic interactions](/manual/advanced/interacti import React from "react"; import ReactDOM from "react-dom"; import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; // 1. 准备数据 const data = [ diff --git a/s2-site/docs/manual/basic/sheet-type/table-mode.zh.md b/s2-site/docs/manual/basic/sheet-type/table-mode.zh.md index 546adf3505..d491f57ce7 100644 --- a/s2-site/docs/manual/basic/sheet-type/table-mode.zh.md +++ b/s2-site/docs/manual/basic/sheet-type/table-mode.zh.md @@ -126,7 +126,7 @@ const App = () => { ```tsx import React from "react"; import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; const s2Options = { width: 400, diff --git a/s2-site/docs/manual/basic/tooltip.en.md b/s2-site/docs/manual/basic/tooltip.en.md index f5ea31fa16..f051331b5e 100644 --- a/s2-site/docs/manual/basic/tooltip.en.md +++ b/s2-site/docs/manual/basic/tooltip.en.md @@ -25,7 +25,7 @@ and the `Vue3` version [concrete implementation](https://github.com/antvis/S2/bl - Don't forget to import styles ```ts -import "@antv/s2/dist/style.min.css"; +import "@antv/s2/dist/s2.min.css"; ``` ## use @@ -396,7 +396,7 @@ You can also override the `renderContent` method to render any component you enc ```ts import { BaseTooltip, SpreadSheet } from '@antv/s2'; // import `tooltip` style file -import "@antv/s2/dist/style.min.css"; +import "@antv/s2/dist/s2.min.css"; export class CustomTooltip extends BaseTooltip { constructor(spreadsheet: SpreadSheet) { @@ -536,7 +536,7 @@ export default defineComponent({ import { defineCustomElement, render, createVNode } from "vue"; import { BaseTooltip, PivotSheet } from "@antv/s2"; import TooltipContent from "./TooltipContent.vue"; -import "@antv/s2/dist/style.min.css"; +import "@antv/s2/dist/s2.min.css"; class CustomTooltip extends BaseTooltip { constructor(spreadsheet) { diff --git a/s2-site/docs/manual/basic/tooltip.zh.md b/s2-site/docs/manual/basic/tooltip.zh.md index 9dabb1a7ed..d8d9ba36fa 100644 --- a/s2-site/docs/manual/basic/tooltip.zh.md +++ b/s2-site/docs/manual/basic/tooltip.zh.md @@ -27,7 +27,7 @@ tag: Updated - 别忘了引入样式。 ```ts -import "@antv/s2/dist/style.min.css"; +import "@antv/s2/dist/s2.min.css"; ``` ## 使用 @@ -478,7 +478,7 @@ const s2Options = { ```ts import { BaseTooltip, SpreadSheet } from '@antv/s2'; // 引入 `tooltip` 样式文件 -import "@antv/s2/dist/style.min.css"; +import "@antv/s2/dist/s2.min.css"; export class CustomTooltip extends BaseTooltip { constructor(spreadsheet: SpreadSheet) { @@ -611,7 +611,7 @@ export default defineComponent({ import { defineCustomElement, render, createVNode } from "vue"; import { BaseTooltip, PivotSheet } from "@antv/s2"; import TooltipContent from "./TooltipContent.vue"; -import "@antv/s2/dist/style.min.css"; +import "@antv/s2/dist/s2.min.css"; class CustomTooltip extends BaseTooltip { constructor(spreadsheet) { diff --git a/s2-site/docs/manual/getting-started.en.md b/s2-site/docs/manual/getting-started.en.md index 7a4827f501..1b7434bcb1 100644 --- a/s2-site/docs/manual/getting-started.en.md +++ b/s2-site/docs/manual/getting-started.en.md @@ -192,7 +192,7 @@ run(); import React from 'react'; import ReactDOM from 'react-dom'; import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; const container = document.getElementById('container'); @@ -227,7 +227,7 @@ yarn add antd @ant-design/icons import type { S2DataConfig, S2Options } from '@antv/s2'; import { SheetComponent } from '@antv/s2-vue'; import { defineComponent, onMounted, reactive, ref, shallowRef } from 'vue'; -import "@antv/s2-vue/dist/style.min.css"; +import "@antv/s2-vue/dist/s2-vue.min.css"; export default defineComponent({ setup() { @@ -270,7 +270,7 @@ yarn add ant-design-vue ``` ```ts -import "@antv/s2-vue/dist/style.min.css"; +import "@antv/s2-vue/dist/s2-vue.min.css"; ``` ​📊 Check out [the Vue3 version pivot table demo](https://codesandbox.io/s/s2-vue-hwg64q) . diff --git a/s2-site/docs/manual/getting-started.zh.md b/s2-site/docs/manual/getting-started.zh.md index f618c51604..33483e0a7e 100644 --- a/s2-site/docs/manual/getting-started.zh.md +++ b/s2-site/docs/manual/getting-started.zh.md @@ -200,7 +200,7 @@ bootstrap(); ```tsx import React from 'react'; import { SheetComponent } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; const App = () => { return ( @@ -235,7 +235,7 @@ pnpm add antd @ant-design/icons import type { S2DataConfig, S2Options } from '@antv/s2'; import { SheetComponent } from '@antv/s2-vue'; import { defineComponent, onMounted, reactive, ref, shallowRef } from 'vue'; -import "@antv/s2-vue/dist/style.min.css"; +import "@antv/s2-vue/dist/s2-vue.min.css"; export default defineComponent({ setup() { @@ -281,7 +281,7 @@ pnpm add ant-design-vue@3.x ::: ```ts -import "@antv/s2-vue/dist/style.min.css"; +import "@antv/s2-vue/dist/s2-vue.min.css"; ``` ​📊 查看 [Vue3 版本透视表 demo](https://codesandbox.io/s/s2-vue-hwg64q)。 diff --git a/s2-site/docs/manual/introduction.zh.md b/s2-site/docs/manual/introduction.zh.md index 5a3076417d..c281ab8528 100644 --- a/s2-site/docs/manual/introduction.zh.md +++ b/s2-site/docs/manual/introduction.zh.md @@ -30,7 +30,7 @@ redirect_from:

- npm bundle size + npm bundle size GitHub discussions diff --git a/s2-site/docs/manual/migration-v2.zh.md b/s2-site/docs/manual/migration-v2.zh.md index 6edf19957f..ee441b1ae0 100644 --- a/s2-site/docs/manual/migration-v2.zh.md +++ b/s2-site/docs/manual/migration-v2.zh.md @@ -55,14 +55,36 @@ $ npm install @antv/s2-vue@next ant-design-vue@3.x --save | Package | Version | Size | Download | | -------------------------------------------------------------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | -| [@antv/s2](https://github.com/antvis/S2/tree/next/packages/s2-core) | ![next](https://img.shields.io/npm/v/@antv/s2/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2@next/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2.svg) | -| [@antv/s2-react](https://github.com/antvis/S2/tree/next/packages/s2-react) | ![next](https://img.shields.io/npm/v/@antv/s2-react/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react@next/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-react.svg) | -| [@antv/s2-vue](https://github.com/antvis/S2/tree/next/packages/s2-vue) | ![next](https://img.shields.io/npm/v/@antv/s2-vue/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-vue@next/dist/index.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-vue.svg) | +| [@antv/s2](https://github.com/antvis/S2/tree/next/packages/s2-core) | ![next](https://img.shields.io/npm/v/@antv/s2/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2@next/dist/s2.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2.svg) | +| [@antv/s2-react](https://github.com/antvis/S2/tree/next/packages/s2-react) | ![next](https://img.shields.io/npm/v/@antv/s2-react/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-react@next/dist/s2-react.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-react.svg) | +| [@antv/s2-vue](https://github.com/antvis/S2/tree/next/packages/s2-vue) | ![next](https://img.shields.io/npm/v/@antv/s2-vue/next.svg) | ![size](https://img.badgesize.io/https:/unpkg.com/@antv/s2-vue@next/dist/s2-vue.min.js?label=gzip%20size&compression=gzip) | ![download](https://img.shields.io/npm/dm/@antv/s2-vue.svg) | ## ⭐ 新增功能 官网目录标记为 NewUpdated 则表示新增功能,也可以查看官方语雀博客 [S2 2.0 表格看数新纪元](https://www.yuque.com/antv/blog/1122_7_s2). +## 📦 构建产物调整 + +- `ESModule/CommonJS` + +所有包的 `ESModule (esm)` 和 `CommonJS (lib)` 构建产物从 `Bundle` 调整为 `Bundless`, 其所依赖的子模块会被直接拷贝输出,不再做编译,以便于更好的支持代码 `tree shaking`, 减少包体积。 + +- `UMD` + +所有包的 `UMD (dist)` 构建产物依然为 `Bundle` 单文件,**文件名**和**全局变量名**有所调整: + +| 包名 | 文件名(修改前) | 文件名(修改后) | +| -------- | ------ | --------- | +| `@antv/s2` | `dist/index.min.js` `dist/style.min.css` | `dist/s2.min.css` `dist/s2.min.css` | +| `@antv/s2-react` | `dist/index.min.js` `dist/style.min.css` | `dist/s2-react.min.css` `dist/s2-react.min.css` | +| `@antv/s2-vue` | `dist/index.min.js` `dist/style.min.css` | `dist/s2-vue.min.css` `dist/s2-vue.min.css` | + +| 包名 | 全局变量名(修改前) | 全局变量名(修改后) | +| -------- | ------ | --------- | +| `@antv/s2` | `S2` | `S2` | +| `@antv/s2-react` | `S2-React` | `S2React` | +| `@antv/s2-vue` | `S2-Vue` | `S2Vue` | + ## 📣 不兼容的变化 ### 基础包 @antv/s2 diff --git a/s2-site/examples/analysis/sort/demo/advanced.tsx b/s2-site/examples/analysis/sort/demo/advanced.tsx index 241e939fad..083112797b 100644 --- a/s2-site/examples/analysis/sort/demo/advanced.tsx +++ b/s2-site/examples/analysis/sort/demo/advanced.tsx @@ -4,7 +4,7 @@ import { S2DataConfig } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; import insertCSS from 'insert-css'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch('https://render.alipay.com/p/yuyan/180020010001215413/s2/basic.json') .then((res) => res.json()) diff --git a/s2-site/examples/analysis/sort/demo/group-sort-base.ts b/s2-site/examples/analysis/sort/demo/group-sort-base.ts index a06c1836a6..65a505838e 100644 --- a/s2-site/examples/analysis/sort/demo/group-sort-base.ts +++ b/s2-site/examples/analysis/sort/demo/group-sort-base.ts @@ -1,6 +1,6 @@ import { PivotSheet, S2DataConfig, S2Event } from '@antv/s2'; import { SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch('https://render.alipay.com/p/yuyan/180020010001215413/s2/basic.json') .then((res) => res.json()) diff --git a/s2-site/examples/analysis/sort/demo/group-sort.tsx b/s2-site/examples/analysis/sort/demo/group-sort.tsx index a4c0225eff..7018614635 100644 --- a/s2-site/examples/analysis/sort/demo/group-sort.tsx +++ b/s2-site/examples/analysis/sort/demo/group-sort.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { S2DataConfig } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch('https://render.alipay.com/p/yuyan/180020010001215413/s2/basic.json') .then((res) => res.json()) diff --git a/s2-site/examples/analysis/sort/demo/table-sort.tsx b/s2-site/examples/analysis/sort/demo/table-sort.tsx index ac40f1ae11..37fae194ad 100644 --- a/s2-site/examples/analysis/sort/demo/table-sort.tsx +++ b/s2-site/examples/analysis/sort/demo/table-sort.tsx @@ -5,7 +5,7 @@ import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; import { Button } from 'antd'; import insertCSS from 'insert-css'; import { orderBy } from 'lodash'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch('https://assets.antv.antgroup.com/s2/basic-table-mode.json') .then((res) => res.json()) diff --git a/s2-site/examples/case/art/demo/lost-text.tsx b/s2-site/examples/case/art/demo/lost-text.tsx index e4181636f1..0e62f68eeb 100644 --- a/s2-site/examples/case/art/demo/lost-text.tsx +++ b/s2-site/examples/case/art/demo/lost-text.tsx @@ -11,7 +11,7 @@ import { getTheme, } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import { Tag } from 'antd'; const Theme: S2Theme = { diff --git a/s2-site/examples/case/art/demo/mosaic.tsx b/s2-site/examples/case/art/demo/mosaic.tsx index e6fdaa449a..ee6cf906e5 100644 --- a/s2-site/examples/case/art/demo/mosaic.tsx +++ b/s2-site/examples/case/art/demo/mosaic.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { LayoutWidthType, ThemeCfg } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; // 了解更多: https://observablehq.com/@pearmini/mosaic-antv-s2 fetch( diff --git a/s2-site/examples/case/art/demo/time-spend-abstract.tsx b/s2-site/examples/case/art/demo/time-spend-abstract.tsx index 27ab12c858..11645f80a4 100644 --- a/s2-site/examples/case/art/demo/time-spend-abstract.tsx +++ b/s2-site/examples/case/art/demo/time-spend-abstract.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { Image as GImage } from '@antv/g'; import { DataCell, ThemeCfg } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; const paletteLegendMap = [ diff --git a/s2-site/examples/case/comparison/demo/measure-comparison.tsx b/s2-site/examples/case/comparison/demo/measure-comparison.tsx index f825fe0411..685d60815a 100644 --- a/s2-site/examples/case/comparison/demo/measure-comparison.tsx +++ b/s2-site/examples/case/comparison/demo/measure-comparison.tsx @@ -12,7 +12,7 @@ import { S2DataConfig, } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; // 上涨颜色 const UP_COLOR = '#F46649'; diff --git a/s2-site/examples/case/comparison/demo/multiple-people-comparison.tsx b/s2-site/examples/case/comparison/demo/multiple-people-comparison.tsx index 9f652fa45c..1c3e14aa21 100644 --- a/s2-site/examples/case/comparison/demo/multiple-people-comparison.tsx +++ b/s2-site/examples/case/comparison/demo/multiple-people-comparison.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { Rect } from '@antv/g'; import { ColCell, S2DataConfig, S2Theme } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; const PALETTE_COLORS = [ diff --git a/s2-site/examples/case/comparison/demo/philosophers.tsx b/s2-site/examples/case/comparison/demo/philosophers.tsx index e1c01b08c7..d523c42642 100644 --- a/s2-site/examples/case/comparison/demo/philosophers.tsx +++ b/s2-site/examples/case/comparison/demo/philosophers.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { S2DataConfig } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; import { max, min, replace } from 'lodash'; diff --git a/s2-site/examples/case/comparison/demo/time-spend.tsx b/s2-site/examples/case/comparison/demo/time-spend.tsx index 042518200a..0fd0a01c09 100644 --- a/s2-site/examples/case/comparison/demo/time-spend.tsx +++ b/s2-site/examples/case/comparison/demo/time-spend.tsx @@ -4,7 +4,7 @@ import React from 'react'; import { Circle, Line } from '@antv/g'; import { DataCell, Frame, ResizeType, ThemeCfg } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; const paletteLegendMap = [ diff --git a/s2-site/examples/case/data-preview/demo/excel.tsx b/s2-site/examples/case/data-preview/demo/excel.tsx index 9c33e9114d..626f8d7303 100644 --- a/s2-site/examples/case/data-preview/demo/excel.tsx +++ b/s2-site/examples/case/data-preview/demo/excel.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { S2DataConfig, type SpreadSheet } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; // 初始化配置 const s2Options: SheetComponentOptions = { diff --git a/s2-site/examples/case/data-preview/demo/index.tsx b/s2-site/examples/case/data-preview/demo/index.tsx index 01e4ee6555..166843ee71 100644 --- a/s2-site/examples/case/data-preview/demo/index.tsx +++ b/s2-site/examples/case/data-preview/demo/index.tsx @@ -13,7 +13,7 @@ import { TableCornerCell, } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import { Button, Checkbox, diff --git a/s2-site/examples/case/kpi-strategy/demo/basic.tsx b/s2-site/examples/case/kpi-strategy/demo/basic.tsx index 36220e1986..fabbab8a92 100644 --- a/s2-site/examples/case/kpi-strategy/demo/basic.tsx +++ b/s2-site/examples/case/kpi-strategy/demo/basic.tsx @@ -4,7 +4,7 @@ import React from 'react'; import { Line, Rect } from '@antv/g'; import { DataCell, S2DataConfig, S2Theme } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; // 进度条 const PROGRESS_BAR = { diff --git a/s2-site/examples/case/kpi-strategy/demo/covid-trend.tsx b/s2-site/examples/case/kpi-strategy/demo/covid-trend.tsx index dd937b3472..6c5d0b4fd7 100644 --- a/s2-site/examples/case/kpi-strategy/demo/covid-trend.tsx +++ b/s2-site/examples/case/kpi-strategy/demo/covid-trend.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { isUpDataValue } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import { isNil } from 'lodash'; // 临时处理老数据格式 diff --git a/s2-site/examples/case/performance-compare/demo/basic.tsx b/s2-site/examples/case/performance-compare/demo/basic.tsx index 7aee1d3a69..618b069742 100644 --- a/s2-site/examples/case/performance-compare/demo/basic.tsx +++ b/s2-site/examples/case/performance-compare/demo/basic.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { S2DataConfig } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import { compact } from 'lodash'; const disableColor = '#d3d7d4'; diff --git a/s2-site/examples/case/proportion/demo/group-drill-down.tsx b/s2-site/examples/case/proportion/demo/group-drill-down.tsx index 9bdafa297c..3b7934c5a8 100644 --- a/s2-site/examples/case/proportion/demo/group-drill-down.tsx +++ b/s2-site/examples/case/proportion/demo/group-drill-down.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { LayoutWidthType, isUpDataValue } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; fetch( diff --git a/s2-site/examples/case/proportion/demo/single-population-proportion.tsx b/s2-site/examples/case/proportion/demo/single-population-proportion.tsx index a9a6ca9a53..8301430619 100644 --- a/s2-site/examples/case/proportion/demo/single-population-proportion.tsx +++ b/s2-site/examples/case/proportion/demo/single-population-proportion.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { LayoutWidthType, S2DataConfig } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; const PALETTE_COLORS = [ diff --git a/s2-site/examples/custom/custom-icon/demo/custom-header-action-icon.ts b/s2-site/examples/custom/custom-icon/demo/custom-header-action-icon.ts index 868f769143..3e4c729c9e 100644 --- a/s2-site/examples/custom/custom-icon/demo/custom-header-action-icon.ts +++ b/s2-site/examples/custom/custom-icon/demo/custom-header-action-icon.ts @@ -1,5 +1,5 @@ import { PivotSheet, S2Options } from '@antv/s2'; -import '@antv/s2/dist/style.min.css'; +import '@antv/s2/dist/s2.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', diff --git a/s2-site/examples/interaction/advanced/demo/intercepts.ts b/s2-site/examples/interaction/advanced/demo/intercepts.ts index 4763420c79..1d87e2013b 100644 --- a/s2-site/examples/interaction/advanced/demo/intercepts.ts +++ b/s2-site/examples/interaction/advanced/demo/intercepts.ts @@ -1,5 +1,5 @@ -import { S2Event, PivotSheet, S2Options, InterceptType } from '@antv/s2'; -import '@antv/s2/dist/style.min.css'; +import { InterceptType, PivotSheet, S2Event, S2Options } from '@antv/s2'; +import '@antv/s2/dist/s2.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', diff --git a/s2-site/examples/interaction/advanced/demo/pivot-hide-columns.ts b/s2-site/examples/interaction/advanced/demo/pivot-hide-columns.ts index 49c524b5ae..502f131e14 100644 --- a/s2-site/examples/interaction/advanced/demo/pivot-hide-columns.ts +++ b/s2-site/examples/interaction/advanced/demo/pivot-hide-columns.ts @@ -1,5 +1,5 @@ import { PivotSheet, S2Event, S2Options } from '@antv/s2'; -import '@antv/s2/dist/style.min.css'; +import '@antv/s2/dist/s2.min.css'; function hideSelectedColumns(s2) { // 兼容多选 diff --git a/s2-site/examples/interaction/advanced/demo/table-hide-columns.ts b/s2-site/examples/interaction/advanced/demo/table-hide-columns.ts index ff868e8b35..7a7333357a 100644 --- a/s2-site/examples/interaction/advanced/demo/table-hide-columns.ts +++ b/s2-site/examples/interaction/advanced/demo/table-hide-columns.ts @@ -1,14 +1,14 @@ /* eslint-disable no-console */ import { - TableSheet, + S2CellType, + S2DataConfig, S2Event, S2Options, - S2DataConfig, SpreadSheet, - S2CellType, + TableSheet, TooltipShowOptions, } from '@antv/s2'; -import '@antv/s2/dist/style.min.css'; +import '@antv/s2/dist/s2.min.css'; function hideSelectedColumns(s2: SpreadSheet) { // 兼容多选 diff --git a/s2-site/examples/interaction/custom/demo/disable-context-menu.ts b/s2-site/examples/interaction/custom/demo/disable-context-menu.ts index 5d2fcd15c0..659060563a 100644 --- a/s2-site/examples/interaction/custom/demo/disable-context-menu.ts +++ b/s2-site/examples/interaction/custom/demo/disable-context-menu.ts @@ -1,5 +1,5 @@ -import { PivotSheet, BaseEvent, S2Options } from '@antv/s2'; -import '@antv/s2/dist/style.min.css'; +import { BaseEvent, PivotSheet, S2Options } from '@antv/s2'; +import '@antv/s2/dist/s2.min.css'; class DisableContextMenuInteraction extends BaseEvent { bindEvents() { diff --git a/s2-site/examples/interaction/custom/demo/row-col-hover-tooltip.ts b/s2-site/examples/interaction/custom/demo/row-col-hover-tooltip.ts index 1d89560494..3502282c1a 100644 --- a/s2-site/examples/interaction/custom/demo/row-col-hover-tooltip.ts +++ b/s2-site/examples/interaction/custom/demo/row-col-hover-tooltip.ts @@ -1,5 +1,5 @@ -import { PivotSheet, BaseEvent, S2Event, S2Options } from '@antv/s2'; -import '@antv/s2/dist/style.min.css'; +import { BaseEvent, PivotSheet, S2Event, S2Options } from '@antv/s2'; +import '@antv/s2/dist/s2.min.css'; class RowColumnHoverTooltipInteraction extends BaseEvent { bindEvents() { diff --git a/s2-site/examples/layout/multi-line-text/demo/pivot.ts b/s2-site/examples/layout/multi-line-text/demo/pivot.ts index 979b972c97..dfa7342637 100644 --- a/s2-site/examples/layout/multi-line-text/demo/pivot.ts +++ b/s2-site/examples/layout/multi-line-text/demo/pivot.ts @@ -4,7 +4,7 @@ import { S2DataConfig, S2Options, } from '@antv/s2'; -import '@antv/s2/dist/style.min.css'; +import '@antv/s2/dist/s2.min.css'; fetch('https://assets.antv.antgroup.com/s2/basic.json') .then((res) => res.json()) diff --git a/s2-site/examples/layout/multi-line-text/demo/table.ts b/s2-site/examples/layout/multi-line-text/demo/table.ts index 696b4b1d67..03762ba288 100644 --- a/s2-site/examples/layout/multi-line-text/demo/table.ts +++ b/s2-site/examples/layout/multi-line-text/demo/table.ts @@ -4,7 +4,7 @@ import { S2Options, TableSheet, } from '@antv/s2'; -import '@antv/s2/dist/style.min.css'; +import '@antv/s2/dist/s2.min.css'; fetch('https://assets.antv.antgroup.com/s2/basic.json') .then((res) => res.json()) diff --git a/s2-site/examples/react-component/drill-down/demo/for-pivot.tsx b/s2-site/examples/react-component/drill-down/demo/for-pivot.tsx index d0988c16e2..d210866db0 100644 --- a/s2-site/examples/react-component/drill-down/demo/for-pivot.tsx +++ b/s2-site/examples/react-component/drill-down/demo/for-pivot.tsx @@ -6,7 +6,7 @@ import { SheetComponentOptions, SheetComponentProps, } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/cd9814d0-6dfa-42a6-8455-5a6bd0ff93ca.json', diff --git a/s2-site/examples/react-component/export/demo/export.tsx b/s2-site/examples/react-component/export/demo/export.tsx index 51fa6c69ac..900434917c 100644 --- a/s2-site/examples/react-component/export/demo/export.tsx +++ b/s2-site/examples/react-component/export/demo/export.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { S2DataConfig } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/cd9814d0-6dfa-42a6-8455-5a6bd0ff93ca.json', diff --git a/s2-site/examples/react-component/header/demo/default.tsx b/s2-site/examples/react-component/header/demo/default.tsx index c1a9418d84..025fb812cb 100644 --- a/s2-site/examples/react-component/header/demo/default.tsx +++ b/s2-site/examples/react-component/header/demo/default.tsx @@ -6,7 +6,7 @@ import { SheetComponentOptions, SheetComponentProps, } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import { Button } from 'antd'; import insertCSS from 'insert-css'; diff --git a/s2-site/examples/react-component/pagination/demo/pivot.tsx b/s2-site/examples/react-component/pagination/demo/pivot.tsx index e083039b28..0c7009b2fe 100644 --- a/s2-site/examples/react-component/pagination/demo/pivot.tsx +++ b/s2-site/examples/react-component/pagination/demo/pivot.tsx @@ -1,7 +1,7 @@ // organize-imports-ignore import React from 'react'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', diff --git a/s2-site/examples/react-component/pagination/demo/table.tsx b/s2-site/examples/react-component/pagination/demo/table.tsx index 19510e3549..6743ccce30 100644 --- a/s2-site/examples/react-component/pagination/demo/table.tsx +++ b/s2-site/examples/react-component/pagination/demo/table.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { S2DataConfig } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch('https://assets.antv.antgroup.com/s2/basic-table-mode.json') .then((res) => res.json()) diff --git a/s2-site/examples/react-component/sheet/demo/pivot.tsx b/s2-site/examples/react-component/sheet/demo/pivot.tsx index f2b724d6ae..e6db51ece3 100644 --- a/s2-site/examples/react-component/sheet/demo/pivot.tsx +++ b/s2-site/examples/react-component/sheet/demo/pivot.tsx @@ -2,7 +2,7 @@ import React from 'react'; import type { S2RenderOptions, SpreadSheet } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', diff --git a/s2-site/examples/react-component/sheet/demo/strategy-mini-chart.tsx b/s2-site/examples/react-component/sheet/demo/strategy-mini-chart.tsx index 06a4484da9..b6a1a9c891 100644 --- a/s2-site/examples/react-component/sheet/demo/strategy-mini-chart.tsx +++ b/s2-site/examples/react-component/sheet/demo/strategy-mini-chart.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { S2DataConfig } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; // 临时处理老数据格式 function process(children) { diff --git a/s2-site/examples/react-component/sheet/demo/strategy.tsx b/s2-site/examples/react-component/sheet/demo/strategy.tsx index 99ffba6bf3..e71eb78bfb 100644 --- a/s2-site/examples/react-component/sheet/demo/strategy.tsx +++ b/s2-site/examples/react-component/sheet/demo/strategy.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { S2DataConfig, isUpDataValue } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import { isNil } from 'lodash'; // 临时处理老数据格式 diff --git a/s2-site/examples/react-component/sheet/demo/table.tsx b/s2-site/examples/react-component/sheet/demo/table.tsx index ee4b9b5719..ae2c777bab 100644 --- a/s2-site/examples/react-component/sheet/demo/table.tsx +++ b/s2-site/examples/react-component/sheet/demo/table.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { S2DataConfig, type S2RenderOptions, type SpreadSheet } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch('https://assets.antv.antgroup.com/s2/basic-table-mode.json') .then((res) => res.json()) diff --git a/s2-site/examples/react-component/switcher/demo/pivot-header.tsx b/s2-site/examples/react-component/switcher/demo/pivot-header.tsx index cfb6834eed..2de538e9fc 100644 --- a/s2-site/examples/react-component/switcher/demo/pivot-header.tsx +++ b/s2-site/examples/react-component/switcher/demo/pivot-header.tsx @@ -1,7 +1,7 @@ // organize-imports-ignore import React from 'react'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; fetch( diff --git a/s2-site/examples/react-component/switcher/demo/pivot-with-children.tsx b/s2-site/examples/react-component/switcher/demo/pivot-with-children.tsx index f342d53f72..0ee36231d5 100644 --- a/s2-site/examples/react-component/switcher/demo/pivot-with-children.tsx +++ b/s2-site/examples/react-component/switcher/demo/pivot-with-children.tsx @@ -5,7 +5,7 @@ import { SheetComponentOptions, Switcher, } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; fetch( diff --git a/s2-site/examples/react-component/switcher/demo/pivot.tsx b/s2-site/examples/react-component/switcher/demo/pivot.tsx index f230c2eeb2..3d23308322 100644 --- a/s2-site/examples/react-component/switcher/demo/pivot.tsx +++ b/s2-site/examples/react-component/switcher/demo/pivot.tsx @@ -6,7 +6,7 @@ import { SheetComponentOptions, Switcher, } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; fetch( diff --git a/s2-site/examples/react-component/switcher/demo/table.tsx b/s2-site/examples/react-component/switcher/demo/table.tsx index e68525e89c..adaf56f4cd 100644 --- a/s2-site/examples/react-component/switcher/demo/table.tsx +++ b/s2-site/examples/react-component/switcher/demo/table.tsx @@ -5,7 +5,7 @@ import { SheetComponentOptions, Switcher, } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; fetch( diff --git a/s2-site/examples/react-component/tooltip/demo/basic.tsx b/s2-site/examples/react-component/tooltip/demo/basic.tsx index da4e437455..0a9109881a 100644 --- a/s2-site/examples/react-component/tooltip/demo/basic.tsx +++ b/s2-site/examples/react-component/tooltip/demo/basic.tsx @@ -1,7 +1,7 @@ // organize-imports-ignore import React from 'react'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', diff --git a/s2-site/examples/react-component/tooltip/demo/custom-click-show-tooltip.tsx b/s2-site/examples/react-component/tooltip/demo/custom-click-show-tooltip.tsx index 8f0881e259..25e8c61271 100644 --- a/s2-site/examples/react-component/tooltip/demo/custom-click-show-tooltip.tsx +++ b/s2-site/examples/react-component/tooltip/demo/custom-click-show-tooltip.tsx @@ -7,7 +7,7 @@ import { SheetComponentOptions, SheetComponentProps, } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', diff --git a/s2-site/examples/react-component/tooltip/demo/custom-content-base.ts b/s2-site/examples/react-component/tooltip/demo/custom-content-base.ts index f57b2de93a..099d6a3a2f 100644 --- a/s2-site/examples/react-component/tooltip/demo/custom-content-base.ts +++ b/s2-site/examples/react-component/tooltip/demo/custom-content-base.ts @@ -1,5 +1,5 @@ import { PivotSheet, S2Options } from '@antv/s2'; -import '@antv/s2/dist/style.min.css'; +import '@antv/s2/dist/s2.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', diff --git a/s2-site/examples/react-component/tooltip/demo/custom-content-react.tsx b/s2-site/examples/react-component/tooltip/demo/custom-content-react.tsx index 9abeffe43b..53e07b037b 100644 --- a/s2-site/examples/react-component/tooltip/demo/custom-content-react.tsx +++ b/s2-site/examples/react-component/tooltip/demo/custom-content-react.tsx @@ -2,7 +2,7 @@ // organize-imports-ignore import React from 'react'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import { Button } from 'antd'; import insertCSS from 'insert-css'; diff --git a/s2-site/examples/react-component/tooltip/demo/custom-description.tsx b/s2-site/examples/react-component/tooltip/demo/custom-description.tsx index da1cc9986a..b48425e2e7 100644 --- a/s2-site/examples/react-component/tooltip/demo/custom-description.tsx +++ b/s2-site/examples/react-component/tooltip/demo/custom-description.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { S2DataConfig } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch('https://render.alipay.com/p/yuyan/180020010001215413/s2/basic.json') .then((res) => res.json()) diff --git a/s2-site/examples/react-component/tooltip/demo/custom-hover-show-tooltip.tsx b/s2-site/examples/react-component/tooltip/demo/custom-hover-show-tooltip.tsx index 43ddda66bd..c3186f9f51 100644 --- a/s2-site/examples/react-component/tooltip/demo/custom-hover-show-tooltip.tsx +++ b/s2-site/examples/react-component/tooltip/demo/custom-hover-show-tooltip.tsx @@ -7,7 +7,7 @@ import { SheetComponentOptions, SheetComponentProps, } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', diff --git a/s2-site/examples/react-component/tooltip/demo/custom-operation.tsx b/s2-site/examples/react-component/tooltip/demo/custom-operation.tsx index 0ec2873075..0445e62c00 100644 --- a/s2-site/examples/react-component/tooltip/demo/custom-operation.tsx +++ b/s2-site/examples/react-component/tooltip/demo/custom-operation.tsx @@ -2,7 +2,7 @@ // organize-imports-ignore import React from 'react'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', diff --git a/s2-site/examples/react-component/tooltip/demo/custom-show-tooltip.tsx b/s2-site/examples/react-component/tooltip/demo/custom-show-tooltip.tsx index 4fca0aa29f..36d354d7a7 100644 --- a/s2-site/examples/react-component/tooltip/demo/custom-show-tooltip.tsx +++ b/s2-site/examples/react-component/tooltip/demo/custom-show-tooltip.tsx @@ -2,7 +2,7 @@ // organize-imports-ignore import React from 'react'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; fetch( diff --git a/s2-site/examples/react-component/tooltip/demo/custom-tooltip.tsx b/s2-site/examples/react-component/tooltip/demo/custom-tooltip.tsx index 0a1a8bbae2..0c510f01df 100644 --- a/s2-site/examples/react-component/tooltip/demo/custom-tooltip.tsx +++ b/s2-site/examples/react-component/tooltip/demo/custom-tooltip.tsx @@ -8,7 +8,7 @@ import { SheetComponentOptions, TooltipOperatorMenuOptions, } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; import insertCSS from 'insert-css'; const MyCustomTooltipContent = () => ( diff --git a/s2-site/examples/react-component/tooltip/demo/operation.tsx b/s2-site/examples/react-component/tooltip/demo/operation.tsx index 2bd34601a3..2d52405bcf 100644 --- a/s2-site/examples/react-component/tooltip/demo/operation.tsx +++ b/s2-site/examples/react-component/tooltip/demo/operation.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { CellType } from '@antv/s2'; import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', diff --git a/s2-site/examples/theme/custom/demo/custom-generate-palette.tsx b/s2-site/examples/theme/custom/demo/custom-generate-palette.tsx index 04660e7d6c..48ddd1d2ac 100644 --- a/s2-site/examples/theme/custom/demo/custom-generate-palette.tsx +++ b/s2-site/examples/theme/custom/demo/custom-generate-palette.tsx @@ -5,7 +5,7 @@ import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; import { ChromePicker } from 'react-color'; import { Button, Popover, Space } from 'antd'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; fetch( 'https://gw.alipayobjects.com/os/bmw-prod/2a5dbbc8-d0a7-4d02-b7c9-34f6ca63cff6.json', diff --git a/s2-site/examples/theme/custom/demo/custom-manual-palette.tsx b/s2-site/examples/theme/custom/demo/custom-manual-palette.tsx index 92689c6cea..01d26eb89b 100644 --- a/s2-site/examples/theme/custom/demo/custom-manual-palette.tsx +++ b/s2-site/examples/theme/custom/demo/custom-manual-palette.tsx @@ -8,7 +8,7 @@ import copy from 'copy-to-clipboard'; import { debounce, isObjectLike } from 'lodash'; import { SketchPicker } from 'react-color'; -import '@antv/s2-react/dist/style.min.css'; +import '@antv/s2-react/dist/s2-react.min.css'; const s2Options: SheetComponentOptions = { width: 500, diff --git a/s2-site/playground/sheet-component/index.tsx b/s2-site/playground/sheet-component/index.tsx index 2d3b559b52..b36edc7878 100644 --- a/s2-site/playground/sheet-component/index.tsx +++ b/s2-site/playground/sheet-component/index.tsx @@ -1,14 +1,14 @@ -import React, { useEffect } from 'react'; -import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; import { + generatePalette, + getPalette, type S2DataConfig, type ThemeCfg, - getPalette, - generatePalette, } from '@antv/s2'; -import type { SheetType, Adaptive } from '@antv/s2-shared'; -import '@antv/s2-react/dist/style.min.css'; +import { SheetComponent, SheetComponentOptions } from '@antv/s2-react'; +import '@antv/s2-react/dist/s2-react.min.css'; +import type { Adaptive, SheetType } from '@antv/s2-shared'; import { concat, isEmpty, merge } from 'lodash'; +import React, { useEffect } from 'react'; import { sheetDataCfg, subTotalsDimensions } from './config'; import './index.less'; From 2f03e1a3af8ddfc05a6cc7cc5764ddde95d99a40 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Thu, 20 Jun 2024 18:06:57 +0800 Subject: [PATCH 07/10] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=20size-limit?= =?UTF-8?q?=20=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .fatherrc.ts | 18 ++++-------------- .github/workflows/compressed-size.yml | 2 +- packages/s2-core/package.json | 3 ++- packages/s2-react-components/package.json | 8 +++++++- packages/s2-react/package.json | 8 +++++++- packages/s2-vue/package.json | 8 +++++++- 6 files changed, 28 insertions(+), 19 deletions(-) diff --git a/.fatherrc.ts b/.fatherrc.ts index f4a1613d50..bf1f238c95 100644 --- a/.fatherrc.ts +++ b/.fatherrc.ts @@ -24,23 +24,13 @@ export default (name: string) => { name, output: 'dist', externals: { + '@antv/s2': 'S2', antd: 'antd', - react: 'react', + react: 'React', 'react-dom': 'ReactDOM', + vue: 'Vue', + 'ant-design-vue': 'AntDesignVue', }, - // chainWebpack(memo, { webpack }) { - // memo - // .plugin('NormalModuleReplacementPlugin') - // .use(webpack.NormalModuleReplacementPlugin, [ - // /^(?.*).less\?inline$/, - // (resource) => { - // resource.request = resource.request.replace('?inline', ''); - // }, - // ]) - // .end(); - - // return memo; - // }, }, }); }; diff --git a/.github/workflows/compressed-size.yml b/.github/workflows/compressed-size.yml index fe79eec36a..6e8ea597d5 100644 --- a/.github/workflows/compressed-size.yml +++ b/.github/workflows/compressed-size.yml @@ -31,5 +31,5 @@ jobs: with: repo-token: "${{ secrets.GITHUB_TOKEN }}" pattern: "./packages/{s2-core,s2-react,s2-vue}/dist/**/*.{js,css}" - build-script: "build:umd" + build-script: "build" clean-script: "clean" diff --git a/packages/s2-core/package.json b/packages/s2-core/package.json index a1a061a5da..8ad9209127 100644 --- a/packages/s2-core/package.json +++ b/packages/s2-core/package.json @@ -91,7 +91,8 @@ "size-limit": [ { "path": "./dist/s2.min.js", - "limit": "200 kB" + "import": "{ createComponent }", + "limit": "230 kB" }, { "path": "./dist/s2.min.css", diff --git a/packages/s2-react-components/package.json b/packages/s2-react-components/package.json index cb3dfa7971..0774471584 100644 --- a/packages/s2-react-components/package.json +++ b/packages/s2-react-components/package.json @@ -109,7 +109,13 @@ "size-limit": [ { "path": "./dist/s2-react-components.min.js", - "limit": "70 kB" + "import": "{ createComponent }", + "limit": "70 kB", + "ignore": [ + "S2", + "React", + "ReactDOM" + ] } ], "tnpm": { diff --git a/packages/s2-react/package.json b/packages/s2-react/package.json index 74c066c66c..5b8cba4f14 100644 --- a/packages/s2-react/package.json +++ b/packages/s2-react/package.json @@ -99,7 +99,13 @@ "size-limit": [ { "path": "./dist/s2-react.min.js", - "limit": "70 kB" + "import": "{ createComponent }", + "limit": "75 kB", + "ignore": [ + "S2", + "React", + "ReactDOM" + ] }, { "path": "./dist/s2-react.min.css", diff --git a/packages/s2-vue/package.json b/packages/s2-vue/package.json index c040540613..b3d52697f2 100644 --- a/packages/s2-vue/package.json +++ b/packages/s2-vue/package.json @@ -82,7 +82,13 @@ "size-limit": [ { "path": "./dist/s2-vue.min.js", - "limit": "20 kB" + "import": "{ createComponent }", + "limit": "35 kB", + "ignore": [ + "S2", + "Vue", + "AntDesignVue" + ] }, { "path": "./dist/s2-vue.min.css", From 4e02f6cfe9bf465d2b345cbf59883948a5a8306a Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Fri, 21 Jun 2024 09:50:15 +0800 Subject: [PATCH 08/10] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E5=88=AB?= =?UTF-8?q?=E5=90=8D=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .fatherrc.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.fatherrc.ts b/.fatherrc.ts index bf1f238c95..22b29c89ba 100644 --- a/.fatherrc.ts +++ b/.fatherrc.ts @@ -1,16 +1,13 @@ import { defineConfig } from 'father'; -import path from 'path'; export default (name: string) => { return defineConfig({ sourcemap: true, - alias: { - lodash: 'lodash-es', - '@antv/s2': path.resolve(__dirname, './packages/s2-core'), - '@antv/s2-shared': path.resolve(__dirname, './packages/s2-shared'), - '@/*': 's2-core/src/*', - 'tests/*': 's2-core/__tests__/*', - }, + // alias: { + // lodash: 'lodash-es', + // '@antv/s2': path.resolve(__dirname, './packages/s2-core'), + // '@antv/s2-shared': path.resolve(__dirname, './packages/s2-shared'), + // }, define: { 'process.env.NODE_ENV': JSON.stringify('production'), }, From d2197f756c04abd95e35bdbc60a5c0c921aba1c1 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Fri, 21 Jun 2024 17:09:19 +0800 Subject: [PATCH 09/10] =?UTF-8?q?build:=20=E9=A2=84=E7=BC=96=E8=AF=91=20s2?= =?UTF-8?q?-shared,=20=E8=A7=A3=E5=86=B3=20bundless=20=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .fatherrc.ts | 12 +++++++----- .gitignore | 3 +++ packages/s2-react-components/package.json | 6 ++++-- packages/s2-react/package.json | 6 ++++-- packages/s2-vue/package.json | 6 ++++-- tsconfig.base.json | 2 +- 6 files changed, 23 insertions(+), 12 deletions(-) diff --git a/.fatherrc.ts b/.fatherrc.ts index 22b29c89ba..08460d0c7b 100644 --- a/.fatherrc.ts +++ b/.fatherrc.ts @@ -1,21 +1,23 @@ import { defineConfig } from 'father'; +import path from 'path'; export default (name: string) => { + const alias = { + '@antv/s2-shared': path.relative(process.cwd(), './src/shared'), + }; + return defineConfig({ sourcemap: true, - // alias: { - // lodash: 'lodash-es', - // '@antv/s2': path.resolve(__dirname, './packages/s2-core'), - // '@antv/s2-shared': path.resolve(__dirname, './packages/s2-shared'), - // }, define: { 'process.env.NODE_ENV': JSON.stringify('production'), }, esm: { output: 'esm', + alias, }, cjs: { output: 'lib', + alias, }, umd: { name, diff --git a/.gitignore b/.gitignore index 9936a09d18..4b4416a3f3 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,7 @@ packages/s2-*/temp/ packages/s2-*/coverage/ packages/s2-*/stats.html +# pre bundle +packages/s2-*/src/shared + .swc diff --git a/packages/s2-react-components/package.json b/packages/s2-react-components/package.json index 0774471584..e3aa12e8da 100644 --- a/packages/s2-react-components/package.json +++ b/packages/s2-react-components/package.json @@ -41,15 +41,17 @@ "README.md" ], "scripts": { - "build": "father build && pnpm build:dts", + "build": "pnpm clean && pnpm build:pre-bundle && father build && pnpm clean:pre-bundle", "build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build", "build:cjs": "cross-env FORMAT=cjs vite build", "build:dts": "run-s dts:*", "build:esm": "cross-env FORMAT=es vite build", + "build:pre-bundle": "cp -r ../s2-shared/src ./src/shared", "build:size-limit": "size-limit", "build:size-limit-json": "pnpm build:size-limit -- --json", "build:umd": "cross-env FORMAT=umd vite build", - "clean": "rimraf lib esm dist temp", + "clean": "rimraf lib esm dist temp src/shared", + "clean:pre-bundle": "rimraf src/shared", "dts:build": "tsc -p tsconfig.declaration.json", "dts:extract": "cross-env LIB=s2-react-components node ../../scripts/dts.js", "start": "cross-env PLAYGROUND=true vite", diff --git a/packages/s2-react/package.json b/packages/s2-react/package.json index 5b8cba4f14..bcd0935a0c 100644 --- a/packages/s2-react/package.json +++ b/packages/s2-react/package.json @@ -36,15 +36,17 @@ "README.md" ], "scripts": { - "build": "father build && pnpm build:dts", + "build": "pnpm clean && pnpm build:pre-bundle && father build && pnpm clean:pre-bundle", "build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build", "build:cjs": "cross-env FORMAT=cjs vite build", "build:dts": "run-s dts:*", "build:esm": "cross-env FORMAT=es vite build", + "build:pre-bundle": "cp -r ../s2-shared/src ./src/shared", "build:size-limit": "size-limit", "build:size-limit-json": "pnpm build:size-limit -- --json", "build:umd": "cross-env FORMAT=umd vite build", - "clean": "rimraf lib esm dist temp", + "clean": "rimraf lib esm dist temp src/shared", + "clean:pre-bundle": "rimraf src/shared", "dts:build": "tsc -p tsconfig.declaration.json", "dts:extract": "cross-env LIB=s2-react node ../../scripts/dts.js", "start": "cross-env PLAYGROUND=true vite", diff --git a/packages/s2-vue/package.json b/packages/s2-vue/package.json index b3d52697f2..ea3c799bc0 100644 --- a/packages/s2-vue/package.json +++ b/packages/s2-vue/package.json @@ -37,15 +37,17 @@ "README.md" ], "scripts": { - "build": "father build && pnpm build:dts", + "build": "pnpm clean && pnpm build:pre-bundle && father build && pnpm clean:pre-bundle", "build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build", "build:cjs": "cross-env FORMAT=cjs vite build", "build:dts": "run-s dts:*", "build:esm": "cross-env FORMAT=es vite build", + "build:pre-bundle": "cp -r ../s2-shared/src ./src/shared", "build:size-limit": "size-limit", "build:size-limit-json": "pnpm build:size-limit -- --json", "build:umd": "cross-env FORMAT=umd vite build", - "clean": "rimraf lib esm dist temp", + "clean": "rimraf lib esm dist temp src/shared", + "clean:pre-bundle": "rimraf src/shared", "dts:build": "vue-tsc -p tsconfig.declaration.json", "dts:extract": "cross-env LIB=s2-vue node ../../scripts/dts.js", "start": "cross-env PLAYGROUND=true vite", diff --git a/tsconfig.base.json b/tsconfig.base.json index e83b28cba9..3bdc0eac98 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -5,7 +5,7 @@ "strictPropertyInitialization": false, "allowSyntheticDefaultImports": true, "module": "esnext", - "declaration": false, + "declaration": true, "sourceMap": true, "target": "es5", "importHelpers": true, From fe6b0ce1cc39dc31846f7ec7587cb3258094ee2b Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Wed, 26 Jun 2024 17:08:43 +0800 Subject: [PATCH 10/10] =?UTF-8?q?build:=20=E4=BF=AE=E5=A4=8D=20react-compo?= =?UTF-8?q?nents=20=E5=92=8C=20vue=20=E6=89=93=E5=8C=85=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .fatherrc.ts | 8 +++++--- packages/s2-core/package.json | 2 +- packages/s2-vue/package.json | 2 +- packages/s2-vue/tsconfig.json | 2 ++ 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.fatherrc.ts b/.fatherrc.ts index 08460d0c7b..8c22996b8e 100644 --- a/.fatherrc.ts +++ b/.fatherrc.ts @@ -3,23 +3,25 @@ import path from 'path'; export default (name: string) => { const alias = { - '@antv/s2-shared': path.relative(process.cwd(), './src/shared'), + '@antv/s2-shared': path.resolve(process.cwd(), './src/shared'), }; return defineConfig({ sourcemap: true, + alias, define: { 'process.env.NODE_ENV': JSON.stringify('production'), }, esm: { output: 'esm', - alias, }, cjs: { output: 'lib', - alias, }, umd: { + alias: { + '@antv/s2': path.resolve(__dirname, 'packages/s2-core'), + }, name, output: 'dist', externals: { diff --git a/packages/s2-core/package.json b/packages/s2-core/package.json index 66447d4ace..8632a3b6e9 100644 --- a/packages/s2-core/package.json +++ b/packages/s2-core/package.json @@ -41,7 +41,7 @@ "README.md" ], "scripts": { - "build": "father build && pnpm build:dts", + "build": "father build", "build:analysis": "cross-env FORMAT=esm ANALYSIS=true rollup -c rollup.config.mjs", "build:cjs": "cross-env FORMAT=cjs rollup -c rollup.config.mjs", "build:dts": "run-s dts:*", diff --git a/packages/s2-vue/package.json b/packages/s2-vue/package.json index ac800ca00b..fb649a4813 100644 --- a/packages/s2-vue/package.json +++ b/packages/s2-vue/package.json @@ -37,7 +37,7 @@ "README.md" ], "scripts": { - "build": "pnpm clean && pnpm build:pre-bundle && father build && pnpm clean:pre-bundle", + "build": "pnpm clean && pnpm build:pre-bundle && father build && pnpm clean:pre-bundle && pnpm build:dts", "build:analysis": "cross-env FORMAT=es ANALYSIS=true vite build", "build:cjs": "cross-env FORMAT=cjs vite build", "build:dts": "run-s dts:*", diff --git a/packages/s2-vue/tsconfig.json b/packages/s2-vue/tsconfig.json index a81fe8b72e..7a4a1eaca9 100644 --- a/packages/s2-vue/tsconfig.json +++ b/packages/s2-vue/tsconfig.json @@ -4,6 +4,8 @@ "target": "ESNext", "jsx": "preserve", "strict": false, + // father 对于 vue 打包有点问题, 还是使用单独打包 dts 的方式 + "declaration": false, "noImplicitAny": false, }, "exclude": ["node_modules", "coverage", "esm", "lib", "dist", "temp"],