@teambit/ui 0.0.894 → 0.0.896

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ require("core-js/modules/es.regexp.constructor.js");
5
+ require("core-js/modules/es.regexp.exec.js");
4
6
  Object.defineProperty(exports, "__esModule", {
5
7
  value: true
6
8
  });
@@ -91,6 +93,9 @@ function createBrowserConfig(workspaceDir, title, publicDir) {
91
93
  // This is only used in production mode
92
94
  new (_terserWebpackPlugin().default)({
93
95
  terserOptions: {
96
+ // this ensures the Class Names for all Schema Classes is not minimized
97
+ // so that schemaObjToClass can match the correct Class Name during runtime
98
+ keep_classnames: new RegExp('.*(Schema)$'),
94
99
  parse: {
95
100
  // We want terser to parse ecma 8 code. However, we don't want it
96
101
  // to apply any minification steps that turns valid ecma 5 code
@@ -1 +1 @@
1
- {"version":3,"names":["createWebpackConfig","workspaceDir","entryFiles","title","publicDir","baseConfig","createBaseConfig","browserConfig","createBrowserConfig","combined","merge","output","path","resolve","publicPath","optimization","minimize","minimizer","TerserPlugin","terserOptions","parse","ecma","compress","warnings","comparisons","inline","mangle","safari10","comments","ascii_only","CssMinimizerPlugin","minimizerOptions","preset","minifyFontValues","removeQuotes","splitChunks","chunks","name","runtimeChunk","entrypoint","plugins","HtmlWebpackPlugin","inject","templateContent","html","minify","removeComments","collapseWhitespace","removeRedundantAttributes","useShortDoctype","removeEmptyAttributes","removeStyleLinkTypeAttributes","keepClosingSlash","minifyJS","minifyCSS","minifyURLs","ProvidePlugin","process","fallbacksProvidePluginConfig"],"sources":["webpack.browser.config.ts"],"sourcesContent":["import { Configuration, ProvidePlugin } from 'webpack';\nimport TerserPlugin from 'terser-webpack-plugin';\nimport CssMinimizerPlugin from 'css-minimizer-webpack-plugin';\nimport path from 'path';\nimport HtmlWebpackPlugin from 'html-webpack-plugin';\nimport { merge } from 'webpack-merge';\nimport { fallbacksProvidePluginConfig } from '@teambit/webpack';\n\nimport { html } from './html';\nimport createBaseConfig from './webpack.base.config';\n\nexport default function createWebpackConfig(\n workspaceDir: string,\n entryFiles: string[],\n title: string,\n publicDir: string\n): Configuration {\n const baseConfig = createBaseConfig(workspaceDir, entryFiles);\n const browserConfig = createBrowserConfig(workspaceDir, title, publicDir);\n\n const combined = merge(baseConfig, browserConfig);\n\n return combined;\n}\n\nfunction createBrowserConfig(workspaceDir: string, title: string, publicDir: string) {\n const browserConfig: Configuration = {\n // target: 'web', // already default\n\n output: {\n path: path.resolve(workspaceDir, publicDir),\n // webpack uses `publicPath` to determine where the app is being served from.\n // It requires a trailing slash, or the file assets will get an incorrect path.\n // We inferred the \"public path\" (such as / or /my-project) from homepage.\n publicPath: '/',\n },\n\n optimization: {\n minimize: true,\n minimizer: [\n // This is only used in production mode\n new TerserPlugin({\n terserOptions: {\n parse: {\n // We want terser to parse ecma 8 code. However, we don't want it\n // to apply any minification steps that turns valid ecma 5 code\n // into invalid ecma 5 code. This is why the 'compress' and 'output'\n // sections only apply transformations that are ecma 5 safe\n // https://github.com/facebook/create-react-app/pull/4234\n ecma: 8,\n },\n compress: {\n ecma: 5,\n warnings: false,\n // Disabled because of an issue with Uglify breaking seemingly valid code:\n // https://github.com/facebook/create-react-app/issues/2376\n // Pending further investigation:\n // https://github.com/mishoo/UglifyJS2/issues/2011\n comparisons: false,\n // Disabled because of an issue with Terser breaking valid code:\n // https://github.com/facebook/create-react-app/issues/5250\n // Pending further investigation:\n // https://github.com/terser-js/terser/issues/120\n inline: 2,\n },\n mangle: {\n safari10: true,\n },\n output: {\n ecma: 5,\n comments: false,\n // Turned on because emoji and regex is not minified properly using default\n // https://github.com/facebook/create-react-app/issues/2488\n ascii_only: true,\n },\n },\n }),\n new CssMinimizerPlugin({\n minimizerOptions: {\n preset: [\n 'default',\n {\n minifyFontValues: { removeQuotes: false },\n },\n ],\n },\n }),\n ],\n // Automatically split vendor and commons\n // https://twitter.com/wSokra/status/969633336732905474\n // https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366\n splitChunks: {\n chunks: 'all',\n name: false,\n },\n // Keep the runtime chunk separated to enable long term caching\n // https://twitter.com/wSokra/status/969679223278505985\n // https://github.com/facebook/create-react-app/issues/5358\n runtimeChunk: {\n name: (entrypoint) => `runtime-${entrypoint.name}`,\n },\n },\n\n plugins: [\n new HtmlWebpackPlugin({\n inject: true,\n templateContent: html(title),\n\n minify: {\n removeComments: true,\n collapseWhitespace: true,\n removeRedundantAttributes: true,\n useShortDoctype: true,\n removeEmptyAttributes: true,\n removeStyleLinkTypeAttributes: true,\n keepClosingSlash: true,\n minifyJS: true,\n minifyCSS: true,\n minifyURLs: true,\n },\n }),\n new ProvidePlugin({ process: fallbacksProvidePluginConfig.process }),\n ],\n };\n\n return browserConfig;\n}\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEe,SAASA,mBAAmB,CACzCC,YAAoB,EACpBC,UAAoB,EACpBC,KAAa,EACbC,SAAiB,EACF;EACf,MAAMC,UAAU,GAAG,IAAAC,sBAAgB,EAACL,YAAY,EAAEC,UAAU,CAAC;EAC7D,MAAMK,aAAa,GAAGC,mBAAmB,CAACP,YAAY,EAAEE,KAAK,EAAEC,SAAS,CAAC;EAEzE,MAAMK,QAAQ,GAAG,IAAAC,qBAAK,EA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,IAAI;MACZC,eAAe,EAAE,IAAAC,YAAI,EAACzC,KAAK,CAAC;MAE5B0C,MAAM,EAAE;QACNC,cAAc,EAAE,IAAI;QACpBC,kBAAkB,EAAE,IAAI;QACxBC,yBAAyB,EAAE,IAAI;QAC/BC,eAAe,EAAE,IAAI;QACrBC,qBAAqB,EAAE,IAAI;QAC3BC,6BAA6B,EAAE,IAAI;QACnCC,gBAAgB,EAAE,IAAI;QACtBC,QAAQ,EAAE,IAAI;QACdC,SAAS,EAAE,IAAI;QACfC,UAAU,EAAE;MACd;IACF,CAAC,CAAC,EACF,KAAIC,wBAAa,EAAC;MAAEC,OAAO,EAAEC,wCAA4B,CAACD;IAAQ,CAAC,CAAC;EAExE,CAAC;EAED,OAAOlD,aAAa;AACtB"}
1
+ {"version":3,"names":["createWebpackConfig","workspaceDir","entryFiles","title","publicDir","baseConfig","createBaseConfig","browserConfig","createBrowserConfig","combined","merge","output","path","resolve","publicPath","optimization","minimize","minimizer","TerserPlugin","terserOptions","keep_classnames","RegExp","parse","ecma","compress","warnings","comparisons","inline","mangle","safari10","comments","ascii_only","CssMinimizerPlugin","minimizerOptions","preset","minifyFontValues","removeQuotes","splitChunks","chunks","name","runtimeChunk","entrypoint","plugins","HtmlWebpackPlugin","inject","templateContent","html","minify","removeComments","collapseWhitespace","removeRedundantAttributes","useShortDoctype","removeEmptyAttributes","removeStyleLinkTypeAttributes","keepClosingSlash","minifyJS","minifyCSS","minifyURLs","ProvidePlugin","process","fallbacksProvidePluginConfig"],"sources":["webpack.browser.config.ts"],"sourcesContent":["import { Configuration, ProvidePlugin } from 'webpack';\nimport TerserPlugin from 'terser-webpack-plugin';\nimport CssMinimizerPlugin from 'css-minimizer-webpack-plugin';\nimport path from 'path';\nimport HtmlWebpackPlugin from 'html-webpack-plugin';\nimport { merge } from 'webpack-merge';\nimport { fallbacksProvidePluginConfig } from '@teambit/webpack';\n\nimport { html } from './html';\nimport createBaseConfig from './webpack.base.config';\n\nexport default function createWebpackConfig(\n workspaceDir: string,\n entryFiles: string[],\n title: string,\n publicDir: string\n): Configuration {\n const baseConfig = createBaseConfig(workspaceDir, entryFiles);\n const browserConfig = createBrowserConfig(workspaceDir, title, publicDir);\n\n const combined = merge(baseConfig, browserConfig);\n\n return combined;\n}\n\nfunction createBrowserConfig(workspaceDir: string, title: string, publicDir: string) {\n const browserConfig: Configuration = {\n // target: 'web', // already default\n\n output: {\n path: path.resolve(workspaceDir, publicDir),\n // webpack uses `publicPath` to determine where the app is being served from.\n // It requires a trailing slash, or the file assets will get an incorrect path.\n // We inferred the \"public path\" (such as / or /my-project) from homepage.\n publicPath: '/',\n },\n\n optimization: {\n minimize: true,\n minimizer: [\n // This is only used in production mode\n new TerserPlugin({\n terserOptions: {\n // this ensures the Class Names for all Schema Classes is not minimized\n // so that schemaObjToClass can match the correct Class Name during runtime\n keep_classnames: new RegExp('.*(Schema)$'),\n parse: {\n // We want terser to parse ecma 8 code. However, we don't want it\n // to apply any minification steps that turns valid ecma 5 code\n // into invalid ecma 5 code. This is why the 'compress' and 'output'\n // sections only apply transformations that are ecma 5 safe\n // https://github.com/facebook/create-react-app/pull/4234\n ecma: 8,\n },\n compress: {\n ecma: 5,\n warnings: false,\n // Disabled because of an issue with Uglify breaking seemingly valid code:\n // https://github.com/facebook/create-react-app/issues/2376\n // Pending further investigation:\n // https://github.com/mishoo/UglifyJS2/issues/2011\n comparisons: false,\n // Disabled because of an issue with Terser breaking valid code:\n // https://github.com/facebook/create-react-app/issues/5250\n // Pending further investigation:\n // https://github.com/terser-js/terser/issues/120\n inline: 2,\n },\n mangle: {\n safari10: true,\n },\n output: {\n ecma: 5,\n comments: false,\n // Turned on because emoji and regex is not minified properly using default\n // https://github.com/facebook/create-react-app/issues/2488\n ascii_only: true,\n },\n },\n }),\n new CssMinimizerPlugin({\n minimizerOptions: {\n preset: [\n 'default',\n {\n minifyFontValues: { removeQuotes: false },\n },\n ],\n },\n }),\n ],\n // Automatically split vendor and commons\n // https://twitter.com/wSokra/status/969633336732905474\n // https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366\n splitChunks: {\n chunks: 'all',\n name: false,\n },\n // Keep the runtime chunk separated to enable long term caching\n // https://twitter.com/wSokra/status/969679223278505985\n // https://github.com/facebook/create-react-app/issues/5358\n runtimeChunk: {\n name: (entrypoint) => `runtime-${entrypoint.name}`,\n },\n },\n\n plugins: [\n new HtmlWebpackPlugin({\n inject: true,\n templateContent: html(title),\n\n minify: {\n removeComments: true,\n collapseWhitespace: true,\n removeRedundantAttributes: true,\n useShortDoctype: true,\n removeEmptyAttributes: true,\n removeStyleLinkTypeAttributes: true,\n keepClosingSlash: true,\n minifyJS: true,\n minifyCSS: true,\n minifyURLs: true,\n },\n }),\n new ProvidePlugin({ process: fallbacksProvidePluginConfig.process }),\n ],\n };\n\n return browserConfig;\n}\n"],"mappings":";;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEe,SAASA,mBAAmB,CACzCC,YAAoB,EACpBC,UAAoB,EACpBC,KAAa,EACbC,SAAiB,EACF;EACf,MAAMC,UAAU,GAAG,IAAAC,sBAAgB,EAACL,YAAY,EAAEC,UAAU,CAAC;EAC7D,MAAMK,aAAa,GAAGC,mBAAmB,CAACP,YAAY,EAAEE,KAAK,EAAEC,SAAS,CAAC;EAEzE,MAAMK,QAAQ,GAAG,IAAAC,qBAAK,EAACL,UAAU,EAAEE,aAAa,CAAC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,4BAAiB,EAAC;MACpBC,MAAM,EAAE,IAAI;MACZC,eAAe,EAAE,IAAAC,YAAI,EAAC3C,KAAK,CAAC;MAE5B4C,MAAM,EAAE;QACNC,cAAc,EAAE,IAAI;QACpBC,kBAAkB,EAAE,IAAI;QACxBC,yBAAyB,EAAE,IAAI;QAC/BC,eAAe,EAAE,IAAI;QACrBC,qBAAqB,EAAE,IAAI;QAC3BC,6BAA6B,EAAE,IAAI;QACnCC,gBAAgB,EAAE,IAAI;QACtBC,QAAQ,EAAE,IAAI;QACdC,SAAS,EAAE,IAAI;QACfC,UAAU,EAAE;MACd;IACF,CAAC,CAAC,EACF,KAAIC,wBAAa,EAAC;MAAEC,OAAO,EAAEC,wCAA4B,CAACD;IAAQ,CAAC,CAAC;EAExE,CAAC;EAED,OAAOpD,aAAa;AACtB"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/ui",
3
- "version": "0.0.894",
3
+ "version": "0.0.896",
4
4
  "homepage": "https://bit.dev/teambit/ui-foundation/ui",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.ui-foundation",
8
8
  "name": "ui",
9
- "version": "0.0.894"
9
+ "version": "0.0.896"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -50,28 +50,28 @@
50
50
  "@teambit/base-ui.loaders.loader-ribbon": "1.0.0",
51
51
  "@teambit/base-ui.theme.fonts.roboto": "1.0.0",
52
52
  "@teambit/design.themes.theme-toggler": "0.1.3",
53
- "@teambit/aspect-loader": "0.0.894",
53
+ "@teambit/aspect-loader": "0.0.896",
54
54
  "@teambit/toolbox.path.to-windows-compatible-path": "0.0.490",
55
55
  "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.498",
56
56
  "@teambit/bit-error": "0.0.402",
57
57
  "@teambit/cli": "0.0.599",
58
58
  "@teambit/logger": "0.0.692",
59
59
  "@teambit/ui-foundation.cli.ui-server-console": "0.0.498",
60
- "@teambit/bundler": "0.0.894",
61
- "@teambit/component": "0.0.894",
60
+ "@teambit/bundler": "0.0.896",
61
+ "@teambit/component": "0.0.896",
62
62
  "@teambit/express": "0.0.697",
63
- "@teambit/graphql": "0.0.894",
63
+ "@teambit/graphql": "0.0.896",
64
64
  "@teambit/toolbox.network.get-port": "0.0.121",
65
- "@teambit/aspect": "0.0.894",
65
+ "@teambit/aspect": "0.0.896",
66
66
  "@teambit/cache": "0.0.692",
67
- "@teambit/pubsub": "0.0.894",
68
- "@teambit/react-router": "0.0.894",
67
+ "@teambit/pubsub": "0.0.896",
68
+ "@teambit/react-router": "0.0.896",
69
69
  "@teambit/design.theme.icons-font": "2.0.24",
70
70
  "@teambit/design.ui.tooltip": "0.0.359",
71
71
  "@teambit/ui-foundation.ui.global-loader": "0.0.495",
72
72
  "@teambit/webpack.modules.generate-style-loaders": "0.0.110",
73
73
  "@teambit/webpack.modules.style-regexps": "0.0.139",
74
- "@teambit/webpack": "0.0.894"
74
+ "@teambit/webpack": "0.0.896"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@types/lodash": "4.14.165",
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.894/dist/ui.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.894/dist/ui.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.896/dist/ui.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.896/dist/ui.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -41,6 +41,9 @@ function createBrowserConfig(workspaceDir: string, title: string, publicDir: str
41
41
  // This is only used in production mode
42
42
  new TerserPlugin({
43
43
  terserOptions: {
44
+ // this ensures the Class Names for all Schema Classes is not minimized
45
+ // so that schemaObjToClass can match the correct Class Name during runtime
46
+ keep_classnames: new RegExp('.*(Schema)$'),
44
47
  parse: {
45
48
  // We want terser to parse ecma 8 code. However, we don't want it
46
49
  // to apply any minification steps that turns valid ecma 5 code
Binary file