@vitus-labs/rocketstyle 0.14.9-alpha.0 → 0.15.2

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.
Files changed (59) hide show
  1. package/lib/analysis/vitus-labs-rocketstyle.js.html +22 -37
  2. package/lib/analysis/vitus-labs-rocketstyle.module.js.html +22 -37
  3. package/lib/analysis/vitus-labs-rocketstyle.umd.js.html +22 -37
  4. package/lib/analysis/vitus-labs-rocketstyle.umd.min.js.html +22 -37
  5. package/lib/index.d.ts +4 -9
  6. package/lib/types/hooks/useThemeOptions.d.ts +1 -1
  7. package/lib/types/types/configuration.d.ts +1 -1
  8. package/lib/types/types/rocketstyle.d.ts +0 -4
  9. package/lib/types/types/styleComponent.d.ts +2 -2
  10. package/lib/types/utils/collection.d.ts +4 -2
  11. package/lib/types/utils/dimensions.d.ts +10 -7
  12. package/lib/types/utils/theme.d.ts +2 -1
  13. package/lib/vitus-labs-rocketstyle.js +16 -26
  14. package/lib/vitus-labs-rocketstyle.js.map +1 -1
  15. package/lib/vitus-labs-rocketstyle.module.js +16 -27
  16. package/lib/vitus-labs-rocketstyle.module.js.map +1 -1
  17. package/lib/vitus-labs-rocketstyle.umd.js +16 -26
  18. package/lib/vitus-labs-rocketstyle.umd.js.map +1 -1
  19. package/lib/vitus-labs-rocketstyle.umd.min.js +2 -2
  20. package/lib/vitus-labs-rocketstyle.umd.min.js.map +1 -1
  21. package/package.json +9 -9
  22. package/lib/types/old_stories/Re-render.stories.d.ts +0 -1
  23. package/lib/types/old_stories/bootstrap-4/Badge/index.d.ts +0 -6
  24. package/lib/types/old_stories/bootstrap-4/Badge/stories.d.ts +0 -11
  25. package/lib/types/old_stories/bootstrap-4/Button/index.d.ts +0 -27
  26. package/lib/types/old_stories/bootstrap-4/Button/stories.d.ts +0 -17
  27. package/lib/types/old_stories/bootstrap-4/ButtonGroup/ButtonGroup/index.d.ts +0 -2
  28. package/lib/types/old_stories/bootstrap-4/ButtonGroup/ButtonToolbar/index.d.ts +0 -2
  29. package/lib/types/old_stories/bootstrap-4/ButtonGroup/index.d.ts +0 -4
  30. package/lib/types/old_stories/bootstrap-4/ButtonGroup/stories.d.ts +0 -10
  31. package/lib/types/old_stories/bootstrap-4/Card/Body/index.d.ts +0 -2
  32. package/lib/types/old_stories/bootstrap-4/Card/Card/index.d.ts +0 -2
  33. package/lib/types/old_stories/bootstrap-4/Card/Footer/index.d.ts +0 -2
  34. package/lib/types/old_stories/bootstrap-4/Card/Group/index.d.ts +0 -2
  35. package/lib/types/old_stories/bootstrap-4/Card/Header/index.d.ts +0 -2
  36. package/lib/types/old_stories/bootstrap-4/Card/Image/index.d.ts +0 -2
  37. package/lib/types/old_stories/bootstrap-4/Card/Subtitle/index.d.ts +0 -2
  38. package/lib/types/old_stories/bootstrap-4/Card/Title/index.d.ts +0 -2
  39. package/lib/types/old_stories/bootstrap-4/Card/base.d.ts +0 -2
  40. package/lib/types/old_stories/bootstrap-4/Card/index.d.ts +0 -10
  41. package/lib/types/old_stories/bootstrap-4/Card/stories.d.ts +0 -10
  42. package/lib/types/old_stories/bootstrap-4/Heading/index.d.ts +0 -9
  43. package/lib/types/old_stories/bootstrap-4/Heading/stories.d.ts +0 -7
  44. package/lib/types/old_stories/bootstrap-4/Link/index.d.ts +0 -10
  45. package/lib/types/old_stories/bootstrap-4/Link/stories.d.ts +0 -6
  46. package/lib/types/old_stories/bootstrap-4/List/List/index.d.ts +0 -2
  47. package/lib/types/old_stories/bootstrap-4/List/ListItem/index.d.ts +0 -2
  48. package/lib/types/old_stories/bootstrap-4/List/index.d.ts +0 -4
  49. package/lib/types/old_stories/bootstrap-4/List/stories.d.ts +0 -14
  50. package/lib/types/old_stories/bootstrap-4/Text/index.d.ts +0 -2
  51. package/lib/types/old_stories/bootstrap-4/Text/stories.d.ts +0 -12
  52. package/lib/types/old_stories/bootstrap-4/Utils/Box/index.d.ts +0 -2
  53. package/lib/types/old_stories/bootstrap-4/Utils/Box/stories.d.ts +0 -6
  54. package/lib/types/old_stories/bootstrap-4/Utils/Text/index.d.ts +0 -2
  55. package/lib/types/old_stories/bootstrap-4/Utils/Text/stories.d.ts +0 -6
  56. package/lib/types/old_stories/bootstrap-4/Utils/index.d.ts +0 -4
  57. package/lib/types/old_stories/bootstrap-4/base.d.ts +0 -98
  58. package/lib/types/old_stories/bootstrap-4/theme.d.ts +0 -83
  59. package/lib/types/old_stories/bootstrap-4/themeDecorator.d.ts +0 -2
@@ -6816,11 +6816,10 @@ var drawChart = (function (exports) {
6816
6816
  const Tooltip_marginX = 10;
6817
6817
  const Tooltip_marginY = 30;
6818
6818
  const Tooltip = ({ node, visible, sizeProperty }) => {
6819
- const { availableSizeProperties, importedByCache } = F(StaticContext);
6819
+ const { availableSizeProperties, data } = F(StaticContext);
6820
6820
  const ref = s();
6821
6821
  const [style, setStyle] = l({});
6822
6822
  const content = d(() => {
6823
- var _a;
6824
6823
  if (!node)
6825
6824
  return null;
6826
6825
  return (o$1(y$1, { children: [o$1("div", { children: node.id }, void 0),
@@ -6833,9 +6832,12 @@ var drawChart = (function (exports) {
6833
6832
  return (o$1("div", { children: [LABELS[sizeProp], ": ", format_1((_b = node[sizeProp]) !== null && _b !== void 0 ? _b : 0)] }, void 0));
6834
6833
  }
6835
6834
  }),
6836
- node.uid && importedByCache.has(node.uid) && (o$1("div", { children: [o$1("div", { children: [o$1("b", { children: "Imported By" }, void 0), ":"] }, void 0),
6837
- [...new Set((_a = importedByCache.get(node.uid)) === null || _a === void 0 ? void 0 : _a.map(({ id }) => id))].map((id) => (o$1("div", { children: id }, id)))] }, void 0))] }, void 0));
6838
- }, [availableSizeProperties, importedByCache, node, sizeProperty]);
6835
+ node.uid && (o$1("div", { children: [o$1("div", { children: [o$1("b", { children: "Imported By" }, void 0), ":"] }, void 0),
6836
+ data.nodeMetas[node.uid].importedBy.map(({ uid }) => {
6837
+ const { id } = data.nodeMetas[uid];
6838
+ return o$1("div", { children: id }, id);
6839
+ })] }, void 0))] }, void 0));
6840
+ }, [availableSizeProperties, data, node, sizeProperty]);
6839
6841
  const updatePosition = (mouseCoords) => {
6840
6842
  const pos = {
6841
6843
  left: mouseCoords.x + Tooltip_marginX,
@@ -6938,13 +6940,15 @@ var drawChart = (function (exports) {
6938
6940
  }
6939
6941
  const nodesCache = new Map(processedNodes.map((d) => [d.uid, d]));
6940
6942
  // webcola has weird types, layour require array of links to Node references, but Nodes are computed from later
6941
- const links = data.links
6942
- .map(({ source, target }) => {
6943
- return {
6944
- source: nodesCache.get(source),
6945
- target: nodesCache.get(target),
6946
- value: 1,
6947
- };
6943
+ const links = Object.entries(data.nodeMetas)
6944
+ .flatMap(([sourceUid, { imported }]) => {
6945
+ return imported.map(({ uid: targetUid }) => {
6946
+ return {
6947
+ source: nodesCache.get(sourceUid),
6948
+ target: nodesCache.get(targetUid),
6949
+ value: 1,
6950
+ };
6951
+ });
6948
6952
  })
6949
6953
  .filter(({ source, target }) => {
6950
6954
  return source && target;
@@ -7017,46 +7021,27 @@ var drawChart = (function (exports) {
7017
7021
  const StaticContext = q({});
7018
7022
  const createNodeInfo = (data, availableSizeProperties, uid) => {
7019
7023
  var _a;
7020
- const parts = data.nodeParts[uid];
7021
- const entries = Object.entries(parts).map(([bundleId, partUid]) => [
7022
- bundleId,
7023
- data.nodes[partUid],
7024
- ]);
7024
+ const meta = data.nodeMetas[uid];
7025
+ const entries = Object.values(meta.moduleParts).map((partUid) => data.nodeParts[partUid]);
7025
7026
  const sizes = Object.fromEntries(availableSizeProperties.map((key) => [key, 0]));
7026
- for (const [, renderInfo] of entries) {
7027
+ for (const renderInfo of entries) {
7027
7028
  for (const sizeKey of availableSizeProperties) {
7028
7029
  sizes[sizeKey] += (_a = renderInfo[sizeKey]) !== null && _a !== void 0 ? _a : 0;
7029
7030
  }
7030
7031
  }
7031
- const bundles = Object.fromEntries(entries);
7032
- return Object.assign(Object.assign({ uid, bundles }, sizes), { id: entries[0][1].id });
7032
+ return Object.assign(Object.assign({ uid }, sizes), meta);
7033
7033
  };
7034
7034
  const drawChart = (parentNode, data, width, height) => {
7035
- var _a, _b;
7036
7035
  const availableSizeProperties = getAvailableSizeOptions(data.options);
7037
- const importedByCache = new Map();
7038
- const importedCache = new Map();
7039
7036
  const nodes = {};
7040
- for (const uid of Object.keys(data.nodeParts)) {
7037
+ for (const uid of Object.keys(data.nodeMetas)) {
7041
7038
  nodes[uid] = createNodeInfo(data, availableSizeProperties, uid);
7042
7039
  }
7043
- for (const { source, target } of data.links) {
7044
- if (!importedByCache.has(target)) {
7045
- importedByCache.set(target, []);
7046
- }
7047
- if (!importedCache.has(source)) {
7048
- importedCache.set(source, []);
7049
- }
7050
- (_a = importedByCache.get(target)) === null || _a === void 0 ? void 0 : _a.push(nodes[source]);
7051
- (_b = importedCache.get(source)) === null || _b === void 0 ? void 0 : _b.push(nodes[target]);
7052
- }
7053
7040
  N(o$1(StaticContext.Provider, Object.assign({ value: {
7054
7041
  data,
7055
7042
  availableSizeProperties,
7056
7043
  width,
7057
7044
  height,
7058
- importedCache,
7059
- importedByCache,
7060
7045
  nodes,
7061
7046
  } }, { children: o$1(Main, {}, void 0) }), void 0), parentNode);
7062
7047
  };
@@ -7075,7 +7060,7 @@ var drawChart = (function (exports) {
7075
7060
  </script>
7076
7061
  <script>
7077
7062
  /*<!--*/
7078
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"e417-1","name":"usePseudoState.tsx"},{"uid":"e417-9","name":"useTheme.tsx"},{"uid":"e417-15","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"e417-3","name":"collection.ts"},{"uid":"e417-5","name":"dimensions.ts"},{"uid":"e417-7","name":"theme.ts"},{"uid":"e417-17","name":"attrs.ts"},{"uid":"e417-25","name":"styles.ts"}]},{"uid":"e417-11","name":"context.tsx"},{"name":"constants","children":[{"uid":"e417-13","name":"reservedKeys.ts"},{"uid":"e417-29","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"e417-19","name":"rocketstyleAttrsHoc.tsx"},{"uid":"e417-21","name":"localContext.tsx"},{"uid":"e417-23","name":"createProvider.tsx"}]},{"uid":"e417-27","name":"rocketstyle.tsx"},{"uid":"e417-31","name":"init.ts"},{"uid":"e417-33","name":"isRocketComponent.ts"},{"uid":"e417-35","name":"index.ts"}]}]}],"isRoot":true},"nodes":{"e417-1":{"renderedLength":1544,"gzipLength":371,"id":"/src/hooks/usePseudoState.tsx"},"e417-3":{"renderedLength":985,"gzipLength":353,"id":"/src/utils/collection.ts"},"e417-5":{"renderedLength":1914,"gzipLength":586,"id":"/src/utils/dimensions.ts"},"e417-7":{"renderedLength":2588,"gzipLength":779,"id":"/src/utils/theme.ts"},"e417-9":{"renderedLength":542,"gzipLength":295,"id":"/src/hooks/useTheme.tsx"},"e417-11":{"renderedLength":852,"gzipLength":334,"id":"/src/context.tsx"},"e417-13":{"renderedLength":566,"gzipLength":296,"id":"/src/constants/reservedKeys.ts"},"e417-15":{"renderedLength":331,"gzipLength":206,"id":"/src/hooks/useThemeOptions.tsx"},"e417-17":{"renderedLength":2427,"gzipLength":826,"id":"/src/utils/attrs.ts"},"e417-19":{"renderedLength":1029,"gzipLength":445,"id":"/src/internal/rocketstyleAttrsHoc.tsx"},"e417-21":{"renderedLength":43,"gzipLength":58,"id":"/src/internal/localContext.tsx"},"e417-23":{"renderedLength":785,"gzipLength":367,"id":"/src/internal/createProvider.tsx"},"e417-25":{"renderedLength":129,"gzipLength":112,"id":"/src/utils/styles.ts"},"e417-27":{"renderedLength":10516,"gzipLength":2672,"id":"/src/rocketstyle.tsx"},"e417-29":{"renderedLength":178,"gzipLength":128,"id":"/src/constants/defaultDimensions.ts"},"e417-31":{"renderedLength":1536,"gzipLength":557,"id":"/src/init.ts"},"e417-33":{"renderedLength":204,"gzipLength":148,"id":"/src/isRocketComponent.ts"},"e417-35":{"renderedLength":0,"gzipLength":0,"id":"/src/index.ts","isEntry":true},"e417-38":{"renderedLength":0,"id":"@vitus-labs/core","isExternal":true},"e417-42":{"renderedLength":0,"id":"react","isExternal":true},"e417-43":{"renderedLength":0,"id":"hoist-non-react-statics","isExternal":true},"e417-44":{"renderedLength":0,"id":"/src/hooks/index.ts"},"e417-45":{"renderedLength":0,"id":"/src/internal/index.ts"}},"nodeParts":{"e417-0":{"vitus-labs-rocketstyle.js":"e417-1"},"e417-2":{"vitus-labs-rocketstyle.js":"e417-3"},"e417-4":{"vitus-labs-rocketstyle.js":"e417-5"},"e417-6":{"vitus-labs-rocketstyle.js":"e417-7"},"e417-8":{"vitus-labs-rocketstyle.js":"e417-9"},"e417-10":{"vitus-labs-rocketstyle.js":"e417-11"},"e417-12":{"vitus-labs-rocketstyle.js":"e417-13"},"e417-14":{"vitus-labs-rocketstyle.js":"e417-15"},"e417-16":{"vitus-labs-rocketstyle.js":"e417-17"},"e417-18":{"vitus-labs-rocketstyle.js":"e417-19"},"e417-20":{"vitus-labs-rocketstyle.js":"e417-21"},"e417-22":{"vitus-labs-rocketstyle.js":"e417-23"},"e417-24":{"vitus-labs-rocketstyle.js":"e417-25"},"e417-26":{"vitus-labs-rocketstyle.js":"e417-27"},"e417-28":{"vitus-labs-rocketstyle.js":"e417-29"},"e417-30":{"vitus-labs-rocketstyle.js":"e417-31"},"e417-32":{"vitus-labs-rocketstyle.js":"e417-33"},"e417-34":{"vitus-labs-rocketstyle.js":"e417-35"},"e417-36":{"vitus-labs-rocketstyle.js":"e417-38"},"e417-37":{"vitus-labs-rocketstyle.js":"e417-42"},"e417-39":{"vitus-labs-rocketstyle.js":"e417-43"},"e417-40":{"vitus-labs-rocketstyle.js":"e417-44"},"e417-41":{"vitus-labs-rocketstyle.js":"e417-45"}},"links":[{"source":"e417-34","target":"e417-30"},{"source":"e417-34","target":"e417-10"},{"source":"e417-34","target":"e417-32"},{"source":"e417-30","target":"e417-36"},{"source":"e417-30","target":"e417-26"},{"source":"e417-30","target":"e417-4"},{"source":"e417-30","target":"e417-12"},{"source":"e417-30","target":"e417-28"},{"source":"e417-10","target":"e417-37"},{"source":"e417-10","target":"e417-36"},{"source":"e417-26","target":"e417-37"},{"source":"e417-26","target":"e417-39"},{"source":"e417-26","target":"e417-36"},{"source":"e417-26","target":"e417-40"},{"source":"e417-26","target":"e417-41"},{"source":"e417-26","target":"e417-6"},{"source":"e417-26","target":"e417-24"},{"source":"e417-26","target":"e417-2"},{"source":"e417-26","target":"e417-16"},{"source":"e417-26","target":"e417-12"},{"source":"e417-4","target":"e417-36"},{"source":"e417-40","target":"e417-0"},{"source":"e417-40","target":"e417-8"},{"source":"e417-40","target":"e417-14"},{"source":"e417-41","target":"e417-18"},{"source":"e417-41","target":"e417-22"},{"source":"e417-41","target":"e417-20"},{"source":"e417-6","target":"e417-36"},{"source":"e417-6","target":"e417-2"},{"source":"e417-6","target":"e417-4"},{"source":"e417-16","target":"e417-36"},{"source":"e417-0","target":"e417-37"},{"source":"e417-8","target":"e417-36"},{"source":"e417-8","target":"e417-6"},{"source":"e417-8","target":"e417-4"},{"source":"e417-14","target":"e417-37"},{"source":"e417-14","target":"e417-10"},{"source":"e417-14","target":"e417-12"},{"source":"e417-18","target":"e417-37"},{"source":"e417-18","target":"e417-36"},{"source":"e417-18","target":"e417-16"},{"source":"e417-18","target":"e417-40"},{"source":"e417-22","target":"e417-37"},{"source":"e417-22","target":"e417-40"},{"source":"e417-22","target":"e417-20"},{"source":"e417-20","target":"e417-37"}],"env":{"rollup":"2.45.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
7063
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"39ee-1","name":"usePseudoState.tsx"},{"uid":"39ee-9","name":"useTheme.tsx"},{"uid":"39ee-15","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"39ee-3","name":"collection.ts"},{"uid":"39ee-5","name":"dimensions.ts"},{"uid":"39ee-7","name":"theme.ts"},{"uid":"39ee-17","name":"attrs.ts"},{"uid":"39ee-25","name":"styles.ts"}]},{"uid":"39ee-11","name":"context.tsx"},{"name":"constants","children":[{"uid":"39ee-13","name":"reservedKeys.ts"},{"uid":"39ee-29","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"39ee-19","name":"rocketstyleAttrsHoc.tsx"},{"uid":"39ee-21","name":"localContext.tsx"},{"uid":"39ee-23","name":"createProvider.tsx"}]},{"uid":"39ee-27","name":"rocketstyle.tsx"},{"uid":"39ee-31","name":"init.ts"},{"uid":"39ee-33","name":"isRocketComponent.ts"},{"uid":"39ee-35","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"39ee-1":{"renderedLength":1544,"gzipLength":371,"brotliLength":0,"mainUid":"39ee-0"},"39ee-3":{"renderedLength":738,"gzipLength":344,"brotliLength":0,"mainUid":"39ee-2"},"39ee-5":{"renderedLength":1531,"gzipLength":574,"brotliLength":0,"mainUid":"39ee-4"},"39ee-7":{"renderedLength":2476,"gzipLength":787,"brotliLength":0,"mainUid":"39ee-6"},"39ee-9":{"renderedLength":542,"gzipLength":295,"brotliLength":0,"mainUid":"39ee-8"},"39ee-11":{"renderedLength":909,"gzipLength":373,"brotliLength":0,"mainUid":"39ee-10"},"39ee-13":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"39ee-12"},"39ee-15":{"renderedLength":399,"gzipLength":252,"brotliLength":0,"mainUid":"39ee-14"},"39ee-17":{"renderedLength":2625,"gzipLength":895,"brotliLength":0,"mainUid":"39ee-16"},"39ee-19":{"renderedLength":1043,"gzipLength":458,"brotliLength":0,"mainUid":"39ee-18"},"39ee-21":{"renderedLength":43,"gzipLength":58,"brotliLength":0,"mainUid":"39ee-20"},"39ee-23":{"renderedLength":842,"gzipLength":409,"brotliLength":0,"mainUid":"39ee-22"},"39ee-25":{"renderedLength":129,"gzipLength":112,"brotliLength":0,"mainUid":"39ee-24"},"39ee-27":{"renderedLength":10543,"gzipLength":2678,"brotliLength":0,"mainUid":"39ee-26"},"39ee-29":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"39ee-28"},"39ee-31":{"renderedLength":1576,"gzipLength":583,"brotliLength":0,"mainUid":"39ee-30"},"39ee-33":{"renderedLength":204,"gzipLength":148,"brotliLength":0,"mainUid":"39ee-32"},"39ee-35":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"39ee-34"}},"nodeMetas":{"39ee-0":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-1"},"imported":[{"uid":"39ee-37"}],"importedBy":[{"uid":"39ee-39"}]},"39ee-2":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-3"},"imported":[],"importedBy":[{"uid":"39ee-26"},{"uid":"39ee-6"}]},"39ee-4":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-5"},"imported":[{"uid":"39ee-36"}],"importedBy":[{"uid":"39ee-30"},{"uid":"39ee-6"},{"uid":"39ee-8"}]},"39ee-6":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-7"},"imported":[{"uid":"39ee-36"},{"uid":"39ee-2"},{"uid":"39ee-4"}],"importedBy":[{"uid":"39ee-26"},{"uid":"39ee-8"}]},"39ee-8":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-9"},"imported":[{"uid":"39ee-36"},{"uid":"39ee-6"},{"uid":"39ee-4"}],"importedBy":[{"uid":"39ee-39"}]},"39ee-10":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-11"},"imported":[{"uid":"39ee-37"},{"uid":"39ee-36"}],"importedBy":[{"uid":"39ee-34"},{"uid":"39ee-14"}]},"39ee-12":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-13"},"imported":[],"importedBy":[{"uid":"39ee-30"},{"uid":"39ee-26"},{"uid":"39ee-14"}]},"39ee-14":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-15"},"imported":[{"uid":"39ee-37"},{"uid":"39ee-10"},{"uid":"39ee-12"}],"importedBy":[{"uid":"39ee-39"}]},"39ee-16":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-17"},"imported":[{"uid":"39ee-36"}],"importedBy":[{"uid":"39ee-26"},{"uid":"39ee-18"}]},"39ee-18":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-19"},"imported":[{"uid":"39ee-37"},{"uid":"39ee-36"},{"uid":"39ee-16"},{"uid":"39ee-39"}],"importedBy":[{"uid":"39ee-40"}]},"39ee-20":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-21"},"imported":[{"uid":"39ee-37"}],"importedBy":[{"uid":"39ee-40"},{"uid":"39ee-22"}]},"39ee-22":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-23"},"imported":[{"uid":"39ee-37"},{"uid":"39ee-39"},{"uid":"39ee-20"}],"importedBy":[{"uid":"39ee-40"}]},"39ee-24":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-25"},"imported":[],"importedBy":[{"uid":"39ee-26"}]},"39ee-26":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-27"},"imported":[{"uid":"39ee-37"},{"uid":"39ee-38"},{"uid":"39ee-36"},{"uid":"39ee-39"},{"uid":"39ee-40"},{"uid":"39ee-6"},{"uid":"39ee-24"},{"uid":"39ee-2"},{"uid":"39ee-16"},{"uid":"39ee-12"}],"importedBy":[{"uid":"39ee-30"}]},"39ee-28":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-29"},"imported":[],"importedBy":[{"uid":"39ee-30"}]},"39ee-30":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-31"},"imported":[{"uid":"39ee-36"},{"uid":"39ee-26"},{"uid":"39ee-4"},{"uid":"39ee-12"},{"uid":"39ee-28"}],"importedBy":[{"uid":"39ee-34"}]},"39ee-32":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-33"},"imported":[],"importedBy":[{"uid":"39ee-34"}]},"39ee-34":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.js":"39ee-35"},"imported":[{"uid":"39ee-30"},{"uid":"39ee-10"},{"uid":"39ee-32"}],"importedBy":[],"isEntry":true},"39ee-36":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"39ee-30"},{"uid":"39ee-10"},{"uid":"39ee-26"},{"uid":"39ee-4"},{"uid":"39ee-6"},{"uid":"39ee-16"},{"uid":"39ee-8"},{"uid":"39ee-18"}],"isExternal":true},"39ee-37":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"39ee-10"},{"uid":"39ee-26"},{"uid":"39ee-0"},{"uid":"39ee-14"},{"uid":"39ee-18"},{"uid":"39ee-22"},{"uid":"39ee-20"}],"isExternal":true},"39ee-38":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"39ee-26"}],"isExternal":true},"39ee-39":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"39ee-0"},{"uid":"39ee-8"},{"uid":"39ee-14"}],"importedBy":[{"uid":"39ee-26"},{"uid":"39ee-18"},{"uid":"39ee-22"}]},"39ee-40":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"39ee-18"},{"uid":"39ee-22"},{"uid":"39ee-20"}],"importedBy":[{"uid":"39ee-26"}]}},"env":{"rollup":"2.56.3"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
7079
7064
 
7080
7065
  const run = () => {
7081
7066
  const width = window.innerWidth;
@@ -6816,11 +6816,10 @@ var drawChart = (function (exports) {
6816
6816
  const Tooltip_marginX = 10;
6817
6817
  const Tooltip_marginY = 30;
6818
6818
  const Tooltip = ({ node, visible, sizeProperty }) => {
6819
- const { availableSizeProperties, importedByCache } = F(StaticContext);
6819
+ const { availableSizeProperties, data } = F(StaticContext);
6820
6820
  const ref = s();
6821
6821
  const [style, setStyle] = l({});
6822
6822
  const content = d(() => {
6823
- var _a;
6824
6823
  if (!node)
6825
6824
  return null;
6826
6825
  return (o$1(y$1, { children: [o$1("div", { children: node.id }, void 0),
@@ -6833,9 +6832,12 @@ var drawChart = (function (exports) {
6833
6832
  return (o$1("div", { children: [LABELS[sizeProp], ": ", format_1((_b = node[sizeProp]) !== null && _b !== void 0 ? _b : 0)] }, void 0));
6834
6833
  }
6835
6834
  }),
6836
- node.uid && importedByCache.has(node.uid) && (o$1("div", { children: [o$1("div", { children: [o$1("b", { children: "Imported By" }, void 0), ":"] }, void 0),
6837
- [...new Set((_a = importedByCache.get(node.uid)) === null || _a === void 0 ? void 0 : _a.map(({ id }) => id))].map((id) => (o$1("div", { children: id }, id)))] }, void 0))] }, void 0));
6838
- }, [availableSizeProperties, importedByCache, node, sizeProperty]);
6835
+ node.uid && (o$1("div", { children: [o$1("div", { children: [o$1("b", { children: "Imported By" }, void 0), ":"] }, void 0),
6836
+ data.nodeMetas[node.uid].importedBy.map(({ uid }) => {
6837
+ const { id } = data.nodeMetas[uid];
6838
+ return o$1("div", { children: id }, id);
6839
+ })] }, void 0))] }, void 0));
6840
+ }, [availableSizeProperties, data, node, sizeProperty]);
6839
6841
  const updatePosition = (mouseCoords) => {
6840
6842
  const pos = {
6841
6843
  left: mouseCoords.x + Tooltip_marginX,
@@ -6938,13 +6940,15 @@ var drawChart = (function (exports) {
6938
6940
  }
6939
6941
  const nodesCache = new Map(processedNodes.map((d) => [d.uid, d]));
6940
6942
  // webcola has weird types, layour require array of links to Node references, but Nodes are computed from later
6941
- const links = data.links
6942
- .map(({ source, target }) => {
6943
- return {
6944
- source: nodesCache.get(source),
6945
- target: nodesCache.get(target),
6946
- value: 1,
6947
- };
6943
+ const links = Object.entries(data.nodeMetas)
6944
+ .flatMap(([sourceUid, { imported }]) => {
6945
+ return imported.map(({ uid: targetUid }) => {
6946
+ return {
6947
+ source: nodesCache.get(sourceUid),
6948
+ target: nodesCache.get(targetUid),
6949
+ value: 1,
6950
+ };
6951
+ });
6948
6952
  })
6949
6953
  .filter(({ source, target }) => {
6950
6954
  return source && target;
@@ -7017,46 +7021,27 @@ var drawChart = (function (exports) {
7017
7021
  const StaticContext = q({});
7018
7022
  const createNodeInfo = (data, availableSizeProperties, uid) => {
7019
7023
  var _a;
7020
- const parts = data.nodeParts[uid];
7021
- const entries = Object.entries(parts).map(([bundleId, partUid]) => [
7022
- bundleId,
7023
- data.nodes[partUid],
7024
- ]);
7024
+ const meta = data.nodeMetas[uid];
7025
+ const entries = Object.values(meta.moduleParts).map((partUid) => data.nodeParts[partUid]);
7025
7026
  const sizes = Object.fromEntries(availableSizeProperties.map((key) => [key, 0]));
7026
- for (const [, renderInfo] of entries) {
7027
+ for (const renderInfo of entries) {
7027
7028
  for (const sizeKey of availableSizeProperties) {
7028
7029
  sizes[sizeKey] += (_a = renderInfo[sizeKey]) !== null && _a !== void 0 ? _a : 0;
7029
7030
  }
7030
7031
  }
7031
- const bundles = Object.fromEntries(entries);
7032
- return Object.assign(Object.assign({ uid, bundles }, sizes), { id: entries[0][1].id });
7032
+ return Object.assign(Object.assign({ uid }, sizes), meta);
7033
7033
  };
7034
7034
  const drawChart = (parentNode, data, width, height) => {
7035
- var _a, _b;
7036
7035
  const availableSizeProperties = getAvailableSizeOptions(data.options);
7037
- const importedByCache = new Map();
7038
- const importedCache = new Map();
7039
7036
  const nodes = {};
7040
- for (const uid of Object.keys(data.nodeParts)) {
7037
+ for (const uid of Object.keys(data.nodeMetas)) {
7041
7038
  nodes[uid] = createNodeInfo(data, availableSizeProperties, uid);
7042
7039
  }
7043
- for (const { source, target } of data.links) {
7044
- if (!importedByCache.has(target)) {
7045
- importedByCache.set(target, []);
7046
- }
7047
- if (!importedCache.has(source)) {
7048
- importedCache.set(source, []);
7049
- }
7050
- (_a = importedByCache.get(target)) === null || _a === void 0 ? void 0 : _a.push(nodes[source]);
7051
- (_b = importedCache.get(source)) === null || _b === void 0 ? void 0 : _b.push(nodes[target]);
7052
- }
7053
7040
  N(o$1(StaticContext.Provider, Object.assign({ value: {
7054
7041
  data,
7055
7042
  availableSizeProperties,
7056
7043
  width,
7057
7044
  height,
7058
- importedCache,
7059
- importedByCache,
7060
7045
  nodes,
7061
7046
  } }, { children: o$1(Main, {}, void 0) }), void 0), parentNode);
7062
7047
  };
@@ -7075,7 +7060,7 @@ var drawChart = (function (exports) {
7075
7060
  </script>
7076
7061
  <script>
7077
7062
  /*<!--*/
7078
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.module.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"e417-47","name":"usePseudoState.tsx"},{"uid":"e417-55","name":"useTheme.tsx"},{"uid":"e417-61","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"e417-49","name":"collection.ts"},{"uid":"e417-51","name":"dimensions.ts"},{"uid":"e417-53","name":"theme.ts"},{"uid":"e417-63","name":"attrs.ts"},{"uid":"e417-71","name":"styles.ts"}]},{"uid":"e417-57","name":"context.tsx"},{"name":"constants","children":[{"uid":"e417-59","name":"reservedKeys.ts"},{"uid":"e417-75","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"e417-65","name":"rocketstyleAttrsHoc.tsx"},{"uid":"e417-67","name":"localContext.tsx"},{"uid":"e417-69","name":"createProvider.tsx"}]},{"uid":"e417-73","name":"rocketstyle.tsx"},{"uid":"e417-77","name":"init.ts"},{"uid":"e417-79","name":"isRocketComponent.ts"},{"uid":"e417-81","name":"index.ts"}]}]}],"isRoot":true},"nodes":{"e417-47":{"renderedLength":1526,"gzipLength":365,"id":"/src/hooks/usePseudoState.tsx"},"e417-49":{"renderedLength":985,"gzipLength":353,"id":"/src/utils/collection.ts"},"e417-51":{"renderedLength":1899,"gzipLength":579,"id":"/src/utils/dimensions.ts"},"e417-53":{"renderedLength":2558,"gzipLength":770,"id":"/src/utils/theme.ts"},"e417-55":{"renderedLength":537,"gzipLength":292,"id":"/src/hooks/useTheme.tsx"},"e417-57":{"renderedLength":758,"gzipLength":311,"id":"/src/context.tsx"},"e417-59":{"renderedLength":566,"gzipLength":296,"id":"/src/constants/reservedKeys.ts"},"e417-61":{"renderedLength":320,"gzipLength":199,"id":"/src/hooks/useThemeOptions.tsx"},"e417-63":{"renderedLength":2422,"gzipLength":824,"id":"/src/utils/attrs.ts"},"e417-65":{"renderedLength":983,"gzipLength":424,"id":"/src/internal/rocketstyleAttrsHoc.tsx"},"e417-67":{"renderedLength":37,"gzipLength":51,"id":"/src/internal/localContext.tsx"},"e417-69":{"renderedLength":739,"gzipLength":349,"id":"/src/internal/createProvider.tsx"},"e417-71":{"renderedLength":129,"gzipLength":112,"id":"/src/utils/styles.ts"},"e417-73":{"renderedLength":10373,"gzipLength":2635,"id":"/src/rocketstyle.tsx"},"e417-75":{"renderedLength":178,"gzipLength":128,"id":"/src/constants/defaultDimensions.ts"},"e417-77":{"renderedLength":1526,"gzipLength":553,"id":"/src/init.ts"},"e417-79":{"renderedLength":204,"gzipLength":148,"id":"/src/isRocketComponent.ts"},"e417-81":{"renderedLength":0,"gzipLength":0,"id":"/src/index.ts","isEntry":true},"e417-84":{"renderedLength":0,"id":"@vitus-labs/core","isExternal":true},"e417-88":{"renderedLength":0,"id":"react","isExternal":true},"e417-89":{"renderedLength":0,"id":"hoist-non-react-statics","isExternal":true},"e417-90":{"renderedLength":0,"id":"/src/hooks/index.ts"},"e417-91":{"renderedLength":0,"id":"/src/internal/index.ts"}},"nodeParts":{"e417-46":{"vitus-labs-rocketstyle.module.js":"e417-47"},"e417-48":{"vitus-labs-rocketstyle.module.js":"e417-49"},"e417-50":{"vitus-labs-rocketstyle.module.js":"e417-51"},"e417-52":{"vitus-labs-rocketstyle.module.js":"e417-53"},"e417-54":{"vitus-labs-rocketstyle.module.js":"e417-55"},"e417-56":{"vitus-labs-rocketstyle.module.js":"e417-57"},"e417-58":{"vitus-labs-rocketstyle.module.js":"e417-59"},"e417-60":{"vitus-labs-rocketstyle.module.js":"e417-61"},"e417-62":{"vitus-labs-rocketstyle.module.js":"e417-63"},"e417-64":{"vitus-labs-rocketstyle.module.js":"e417-65"},"e417-66":{"vitus-labs-rocketstyle.module.js":"e417-67"},"e417-68":{"vitus-labs-rocketstyle.module.js":"e417-69"},"e417-70":{"vitus-labs-rocketstyle.module.js":"e417-71"},"e417-72":{"vitus-labs-rocketstyle.module.js":"e417-73"},"e417-74":{"vitus-labs-rocketstyle.module.js":"e417-75"},"e417-76":{"vitus-labs-rocketstyle.module.js":"e417-77"},"e417-78":{"vitus-labs-rocketstyle.module.js":"e417-79"},"e417-80":{"vitus-labs-rocketstyle.module.js":"e417-81"},"e417-82":{"vitus-labs-rocketstyle.module.js":"e417-84"},"e417-83":{"vitus-labs-rocketstyle.module.js":"e417-88"},"e417-85":{"vitus-labs-rocketstyle.module.js":"e417-89"},"e417-86":{"vitus-labs-rocketstyle.module.js":"e417-90"},"e417-87":{"vitus-labs-rocketstyle.module.js":"e417-91"}},"links":[{"source":"e417-80","target":"e417-76"},{"source":"e417-80","target":"e417-56"},{"source":"e417-80","target":"e417-78"},{"source":"e417-76","target":"e417-82"},{"source":"e417-76","target":"e417-72"},{"source":"e417-76","target":"e417-50"},{"source":"e417-76","target":"e417-58"},{"source":"e417-76","target":"e417-74"},{"source":"e417-56","target":"e417-83"},{"source":"e417-56","target":"e417-82"},{"source":"e417-72","target":"e417-83"},{"source":"e417-72","target":"e417-85"},{"source":"e417-72","target":"e417-82"},{"source":"e417-72","target":"e417-86"},{"source":"e417-72","target":"e417-87"},{"source":"e417-72","target":"e417-52"},{"source":"e417-72","target":"e417-70"},{"source":"e417-72","target":"e417-48"},{"source":"e417-72","target":"e417-62"},{"source":"e417-72","target":"e417-58"},{"source":"e417-50","target":"e417-82"},{"source":"e417-86","target":"e417-46"},{"source":"e417-86","target":"e417-54"},{"source":"e417-86","target":"e417-60"},{"source":"e417-87","target":"e417-64"},{"source":"e417-87","target":"e417-68"},{"source":"e417-87","target":"e417-66"},{"source":"e417-52","target":"e417-82"},{"source":"e417-52","target":"e417-48"},{"source":"e417-52","target":"e417-50"},{"source":"e417-62","target":"e417-82"},{"source":"e417-46","target":"e417-83"},{"source":"e417-54","target":"e417-82"},{"source":"e417-54","target":"e417-52"},{"source":"e417-54","target":"e417-50"},{"source":"e417-60","target":"e417-83"},{"source":"e417-60","target":"e417-56"},{"source":"e417-60","target":"e417-58"},{"source":"e417-64","target":"e417-83"},{"source":"e417-64","target":"e417-82"},{"source":"e417-64","target":"e417-62"},{"source":"e417-64","target":"e417-86"},{"source":"e417-68","target":"e417-83"},{"source":"e417-68","target":"e417-86"},{"source":"e417-68","target":"e417-66"},{"source":"e417-66","target":"e417-83"}],"env":{"rollup":"2.45.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
7063
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.module.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"39ee-42","name":"usePseudoState.tsx"},{"uid":"39ee-50","name":"useTheme.tsx"},{"uid":"39ee-56","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"39ee-44","name":"collection.ts"},{"uid":"39ee-46","name":"dimensions.ts"},{"uid":"39ee-48","name":"theme.ts"},{"uid":"39ee-58","name":"attrs.ts"},{"uid":"39ee-66","name":"styles.ts"}]},{"uid":"39ee-52","name":"context.tsx"},{"name":"constants","children":[{"uid":"39ee-54","name":"reservedKeys.ts"},{"uid":"39ee-70","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"39ee-60","name":"rocketstyleAttrsHoc.tsx"},{"uid":"39ee-62","name":"localContext.tsx"},{"uid":"39ee-64","name":"createProvider.tsx"}]},{"uid":"39ee-68","name":"rocketstyle.tsx"},{"uid":"39ee-72","name":"init.ts"},{"uid":"39ee-74","name":"isRocketComponent.ts"},{"uid":"39ee-76","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"39ee-42":{"renderedLength":1526,"gzipLength":365,"brotliLength":0,"mainUid":"39ee-41"},"39ee-44":{"renderedLength":738,"gzipLength":344,"brotliLength":0,"mainUid":"39ee-43"},"39ee-46":{"renderedLength":1516,"gzipLength":566,"brotliLength":0,"mainUid":"39ee-45"},"39ee-48":{"renderedLength":2446,"gzipLength":778,"brotliLength":0,"mainUid":"39ee-47"},"39ee-50":{"renderedLength":537,"gzipLength":292,"brotliLength":0,"mainUid":"39ee-49"},"39ee-52":{"renderedLength":815,"gzipLength":350,"brotliLength":0,"mainUid":"39ee-51"},"39ee-54":{"renderedLength":566,"gzipLength":296,"brotliLength":0,"mainUid":"39ee-53"},"39ee-56":{"renderedLength":388,"gzipLength":242,"brotliLength":0,"mainUid":"39ee-55"},"39ee-58":{"renderedLength":2620,"gzipLength":893,"brotliLength":0,"mainUid":"39ee-57"},"39ee-60":{"renderedLength":997,"gzipLength":436,"brotliLength":0,"mainUid":"39ee-59"},"39ee-62":{"renderedLength":37,"gzipLength":51,"brotliLength":0,"mainUid":"39ee-61"},"39ee-64":{"renderedLength":796,"gzipLength":387,"brotliLength":0,"mainUid":"39ee-63"},"39ee-66":{"renderedLength":129,"gzipLength":112,"brotliLength":0,"mainUid":"39ee-65"},"39ee-68":{"renderedLength":10400,"gzipLength":2642,"brotliLength":0,"mainUid":"39ee-67"},"39ee-70":{"renderedLength":178,"gzipLength":128,"brotliLength":0,"mainUid":"39ee-69"},"39ee-72":{"renderedLength":1566,"gzipLength":580,"brotliLength":0,"mainUid":"39ee-71"},"39ee-74":{"renderedLength":204,"gzipLength":148,"brotliLength":0,"mainUid":"39ee-73"},"39ee-76":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"39ee-75"}},"nodeMetas":{"39ee-41":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-42"},"imported":[{"uid":"39ee-78"}],"importedBy":[{"uid":"39ee-80"}]},"39ee-43":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-44"},"imported":[],"importedBy":[{"uid":"39ee-67"},{"uid":"39ee-47"}]},"39ee-45":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-46"},"imported":[{"uid":"39ee-77"}],"importedBy":[{"uid":"39ee-71"},{"uid":"39ee-47"},{"uid":"39ee-49"}]},"39ee-47":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-48"},"imported":[{"uid":"39ee-77"},{"uid":"39ee-43"},{"uid":"39ee-45"}],"importedBy":[{"uid":"39ee-67"},{"uid":"39ee-49"}]},"39ee-49":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-50"},"imported":[{"uid":"39ee-77"},{"uid":"39ee-47"},{"uid":"39ee-45"}],"importedBy":[{"uid":"39ee-80"}]},"39ee-51":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-52"},"imported":[{"uid":"39ee-78"},{"uid":"39ee-77"}],"importedBy":[{"uid":"39ee-75"},{"uid":"39ee-55"}]},"39ee-53":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-54"},"imported":[],"importedBy":[{"uid":"39ee-71"},{"uid":"39ee-67"},{"uid":"39ee-55"}]},"39ee-55":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-56"},"imported":[{"uid":"39ee-78"},{"uid":"39ee-51"},{"uid":"39ee-53"}],"importedBy":[{"uid":"39ee-80"}]},"39ee-57":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-58"},"imported":[{"uid":"39ee-77"}],"importedBy":[{"uid":"39ee-67"},{"uid":"39ee-59"}]},"39ee-59":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-60"},"imported":[{"uid":"39ee-78"},{"uid":"39ee-77"},{"uid":"39ee-57"},{"uid":"39ee-80"}],"importedBy":[{"uid":"39ee-81"}]},"39ee-61":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-62"},"imported":[{"uid":"39ee-78"}],"importedBy":[{"uid":"39ee-81"},{"uid":"39ee-63"}]},"39ee-63":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-64"},"imported":[{"uid":"39ee-78"},{"uid":"39ee-80"},{"uid":"39ee-61"}],"importedBy":[{"uid":"39ee-81"}]},"39ee-65":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-66"},"imported":[],"importedBy":[{"uid":"39ee-67"}]},"39ee-67":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-68"},"imported":[{"uid":"39ee-78"},{"uid":"39ee-79"},{"uid":"39ee-77"},{"uid":"39ee-80"},{"uid":"39ee-81"},{"uid":"39ee-47"},{"uid":"39ee-65"},{"uid":"39ee-43"},{"uid":"39ee-57"},{"uid":"39ee-53"}],"importedBy":[{"uid":"39ee-71"}]},"39ee-69":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-70"},"imported":[],"importedBy":[{"uid":"39ee-71"}]},"39ee-71":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-72"},"imported":[{"uid":"39ee-77"},{"uid":"39ee-67"},{"uid":"39ee-45"},{"uid":"39ee-53"},{"uid":"39ee-69"}],"importedBy":[{"uid":"39ee-75"}]},"39ee-73":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-74"},"imported":[],"importedBy":[{"uid":"39ee-75"}]},"39ee-75":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.module.js":"39ee-76"},"imported":[{"uid":"39ee-71"},{"uid":"39ee-51"},{"uid":"39ee-73"}],"importedBy":[],"isEntry":true},"39ee-77":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"39ee-71"},{"uid":"39ee-51"},{"uid":"39ee-67"},{"uid":"39ee-45"},{"uid":"39ee-47"},{"uid":"39ee-57"},{"uid":"39ee-49"},{"uid":"39ee-59"}],"isExternal":true},"39ee-78":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"39ee-51"},{"uid":"39ee-67"},{"uid":"39ee-41"},{"uid":"39ee-55"},{"uid":"39ee-59"},{"uid":"39ee-63"},{"uid":"39ee-61"}],"isExternal":true},"39ee-79":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"39ee-67"}],"isExternal":true},"39ee-80":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"39ee-41"},{"uid":"39ee-49"},{"uid":"39ee-55"}],"importedBy":[{"uid":"39ee-67"},{"uid":"39ee-59"},{"uid":"39ee-63"}]},"39ee-81":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"39ee-59"},{"uid":"39ee-63"},{"uid":"39ee-61"}],"importedBy":[{"uid":"39ee-67"}]}},"env":{"rollup":"2.56.3"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
7079
7064
 
7080
7065
  const run = () => {
7081
7066
  const width = window.innerWidth;
@@ -6816,11 +6816,10 @@ var drawChart = (function (exports) {
6816
6816
  const Tooltip_marginX = 10;
6817
6817
  const Tooltip_marginY = 30;
6818
6818
  const Tooltip = ({ node, visible, sizeProperty }) => {
6819
- const { availableSizeProperties, importedByCache } = F(StaticContext);
6819
+ const { availableSizeProperties, data } = F(StaticContext);
6820
6820
  const ref = s();
6821
6821
  const [style, setStyle] = l({});
6822
6822
  const content = d(() => {
6823
- var _a;
6824
6823
  if (!node)
6825
6824
  return null;
6826
6825
  return (o$1(y$1, { children: [o$1("div", { children: node.id }, void 0),
@@ -6833,9 +6832,12 @@ var drawChart = (function (exports) {
6833
6832
  return (o$1("div", { children: [LABELS[sizeProp], ": ", format_1((_b = node[sizeProp]) !== null && _b !== void 0 ? _b : 0)] }, void 0));
6834
6833
  }
6835
6834
  }),
6836
- node.uid && importedByCache.has(node.uid) && (o$1("div", { children: [o$1("div", { children: [o$1("b", { children: "Imported By" }, void 0), ":"] }, void 0),
6837
- [...new Set((_a = importedByCache.get(node.uid)) === null || _a === void 0 ? void 0 : _a.map(({ id }) => id))].map((id) => (o$1("div", { children: id }, id)))] }, void 0))] }, void 0));
6838
- }, [availableSizeProperties, importedByCache, node, sizeProperty]);
6835
+ node.uid && (o$1("div", { children: [o$1("div", { children: [o$1("b", { children: "Imported By" }, void 0), ":"] }, void 0),
6836
+ data.nodeMetas[node.uid].importedBy.map(({ uid }) => {
6837
+ const { id } = data.nodeMetas[uid];
6838
+ return o$1("div", { children: id }, id);
6839
+ })] }, void 0))] }, void 0));
6840
+ }, [availableSizeProperties, data, node, sizeProperty]);
6839
6841
  const updatePosition = (mouseCoords) => {
6840
6842
  const pos = {
6841
6843
  left: mouseCoords.x + Tooltip_marginX,
@@ -6938,13 +6940,15 @@ var drawChart = (function (exports) {
6938
6940
  }
6939
6941
  const nodesCache = new Map(processedNodes.map((d) => [d.uid, d]));
6940
6942
  // webcola has weird types, layour require array of links to Node references, but Nodes are computed from later
6941
- const links = data.links
6942
- .map(({ source, target }) => {
6943
- return {
6944
- source: nodesCache.get(source),
6945
- target: nodesCache.get(target),
6946
- value: 1,
6947
- };
6943
+ const links = Object.entries(data.nodeMetas)
6944
+ .flatMap(([sourceUid, { imported }]) => {
6945
+ return imported.map(({ uid: targetUid }) => {
6946
+ return {
6947
+ source: nodesCache.get(sourceUid),
6948
+ target: nodesCache.get(targetUid),
6949
+ value: 1,
6950
+ };
6951
+ });
6948
6952
  })
6949
6953
  .filter(({ source, target }) => {
6950
6954
  return source && target;
@@ -7017,46 +7021,27 @@ var drawChart = (function (exports) {
7017
7021
  const StaticContext = q({});
7018
7022
  const createNodeInfo = (data, availableSizeProperties, uid) => {
7019
7023
  var _a;
7020
- const parts = data.nodeParts[uid];
7021
- const entries = Object.entries(parts).map(([bundleId, partUid]) => [
7022
- bundleId,
7023
- data.nodes[partUid],
7024
- ]);
7024
+ const meta = data.nodeMetas[uid];
7025
+ const entries = Object.values(meta.moduleParts).map((partUid) => data.nodeParts[partUid]);
7025
7026
  const sizes = Object.fromEntries(availableSizeProperties.map((key) => [key, 0]));
7026
- for (const [, renderInfo] of entries) {
7027
+ for (const renderInfo of entries) {
7027
7028
  for (const sizeKey of availableSizeProperties) {
7028
7029
  sizes[sizeKey] += (_a = renderInfo[sizeKey]) !== null && _a !== void 0 ? _a : 0;
7029
7030
  }
7030
7031
  }
7031
- const bundles = Object.fromEntries(entries);
7032
- return Object.assign(Object.assign({ uid, bundles }, sizes), { id: entries[0][1].id });
7032
+ return Object.assign(Object.assign({ uid }, sizes), meta);
7033
7033
  };
7034
7034
  const drawChart = (parentNode, data, width, height) => {
7035
- var _a, _b;
7036
7035
  const availableSizeProperties = getAvailableSizeOptions(data.options);
7037
- const importedByCache = new Map();
7038
- const importedCache = new Map();
7039
7036
  const nodes = {};
7040
- for (const uid of Object.keys(data.nodeParts)) {
7037
+ for (const uid of Object.keys(data.nodeMetas)) {
7041
7038
  nodes[uid] = createNodeInfo(data, availableSizeProperties, uid);
7042
7039
  }
7043
- for (const { source, target } of data.links) {
7044
- if (!importedByCache.has(target)) {
7045
- importedByCache.set(target, []);
7046
- }
7047
- if (!importedCache.has(source)) {
7048
- importedCache.set(source, []);
7049
- }
7050
- (_a = importedByCache.get(target)) === null || _a === void 0 ? void 0 : _a.push(nodes[source]);
7051
- (_b = importedCache.get(source)) === null || _b === void 0 ? void 0 : _b.push(nodes[target]);
7052
- }
7053
7040
  N(o$1(StaticContext.Provider, Object.assign({ value: {
7054
7041
  data,
7055
7042
  availableSizeProperties,
7056
7043
  width,
7057
7044
  height,
7058
- importedCache,
7059
- importedByCache,
7060
7045
  nodes,
7061
7046
  } }, { children: o$1(Main, {}, void 0) }), void 0), parentNode);
7062
7047
  };
@@ -7075,7 +7060,7 @@ var drawChart = (function (exports) {
7075
7060
  </script>
7076
7061
  <script>
7077
7062
  /*<!--*/
7078
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.umd.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"e417-93","name":"usePseudoState.tsx"},{"uid":"e417-101","name":"useTheme.tsx"},{"uid":"e417-107","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"e417-95","name":"collection.ts"},{"uid":"e417-97","name":"dimensions.ts"},{"uid":"e417-99","name":"theme.ts"},{"uid":"e417-109","name":"attrs.ts"},{"uid":"e417-117","name":"styles.ts"}]},{"uid":"e417-103","name":"context.tsx"},{"name":"constants","children":[{"uid":"e417-105","name":"reservedKeys.ts"},{"uid":"e417-121","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"e417-111","name":"rocketstyleAttrsHoc.tsx"},{"uid":"e417-113","name":"localContext.tsx"},{"uid":"e417-115","name":"createProvider.tsx"}]},{"uid":"e417-119","name":"rocketstyle.tsx"},{"uid":"e417-123","name":"init.ts"},{"uid":"e417-125","name":"isRocketComponent.ts"},{"uid":"e417-127","name":"index.ts"}]}]}],"isRoot":true},"nodes":{"e417-93":{"renderedLength":1666,"gzipLength":376,"id":"/src/hooks/usePseudoState.tsx"},"e417-95":{"renderedLength":1033,"gzipLength":356,"id":"/src/utils/collection.ts"},"e417-97":{"renderedLength":2012,"gzipLength":588,"id":"/src/utils/dimensions.ts"},"e417-99":{"renderedLength":2728,"gzipLength":784,"id":"/src/utils/theme.ts"},"e417-101":{"renderedLength":572,"gzipLength":298,"id":"/src/hooks/useTheme.tsx"},"e417-103":{"renderedLength":876,"gzipLength":335,"id":"/src/context.tsx"},"e417-105":{"renderedLength":618,"gzipLength":299,"id":"/src/constants/reservedKeys.ts"},"e417-107":{"renderedLength":345,"gzipLength":206,"id":"/src/hooks/useThemeOptions.tsx"},"e417-109":{"renderedLength":2553,"gzipLength":831,"id":"/src/utils/attrs.ts"},"e417-111":{"renderedLength":1081,"gzipLength":448,"id":"/src/internal/rocketstyleAttrsHoc.tsx"},"e417-113":{"renderedLength":45,"gzipLength":60,"id":"/src/internal/localContext.tsx"},"e417-115":{"renderedLength":819,"gzipLength":370,"id":"/src/internal/createProvider.tsx"},"e417-117":{"renderedLength":139,"gzipLength":114,"id":"/src/utils/styles.ts"},"e417-119":{"renderedLength":10938,"gzipLength":2683,"id":"/src/rocketstyle.tsx"},"e417-121":{"renderedLength":196,"gzipLength":130,"id":"/src/constants/defaultDimensions.ts"},"e417-123":{"renderedLength":1610,"gzipLength":558,"id":"/src/init.ts"},"e417-125":{"renderedLength":220,"gzipLength":151,"id":"/src/isRocketComponent.ts"},"e417-127":{"renderedLength":0,"gzipLength":0,"id":"/src/index.ts","isEntry":true},"e417-130":{"renderedLength":0,"id":"@vitus-labs/core","isExternal":true},"e417-134":{"renderedLength":0,"id":"react","isExternal":true},"e417-135":{"renderedLength":0,"id":"hoist-non-react-statics","isExternal":true},"e417-136":{"renderedLength":0,"id":"/src/hooks/index.ts"},"e417-137":{"renderedLength":0,"id":"/src/internal/index.ts"}},"nodeParts":{"e417-92":{"vitus-labs-rocketstyle.umd.js":"e417-93"},"e417-94":{"vitus-labs-rocketstyle.umd.js":"e417-95"},"e417-96":{"vitus-labs-rocketstyle.umd.js":"e417-97"},"e417-98":{"vitus-labs-rocketstyle.umd.js":"e417-99"},"e417-100":{"vitus-labs-rocketstyle.umd.js":"e417-101"},"e417-102":{"vitus-labs-rocketstyle.umd.js":"e417-103"},"e417-104":{"vitus-labs-rocketstyle.umd.js":"e417-105"},"e417-106":{"vitus-labs-rocketstyle.umd.js":"e417-107"},"e417-108":{"vitus-labs-rocketstyle.umd.js":"e417-109"},"e417-110":{"vitus-labs-rocketstyle.umd.js":"e417-111"},"e417-112":{"vitus-labs-rocketstyle.umd.js":"e417-113"},"e417-114":{"vitus-labs-rocketstyle.umd.js":"e417-115"},"e417-116":{"vitus-labs-rocketstyle.umd.js":"e417-117"},"e417-118":{"vitus-labs-rocketstyle.umd.js":"e417-119"},"e417-120":{"vitus-labs-rocketstyle.umd.js":"e417-121"},"e417-122":{"vitus-labs-rocketstyle.umd.js":"e417-123"},"e417-124":{"vitus-labs-rocketstyle.umd.js":"e417-125"},"e417-126":{"vitus-labs-rocketstyle.umd.js":"e417-127"},"e417-128":{"vitus-labs-rocketstyle.umd.js":"e417-130"},"e417-129":{"vitus-labs-rocketstyle.umd.js":"e417-134"},"e417-131":{"vitus-labs-rocketstyle.umd.js":"e417-135"},"e417-132":{"vitus-labs-rocketstyle.umd.js":"e417-136"},"e417-133":{"vitus-labs-rocketstyle.umd.js":"e417-137"}},"links":[{"source":"e417-126","target":"e417-122"},{"source":"e417-126","target":"e417-102"},{"source":"e417-126","target":"e417-124"},{"source":"e417-122","target":"e417-128"},{"source":"e417-122","target":"e417-118"},{"source":"e417-122","target":"e417-96"},{"source":"e417-122","target":"e417-104"},{"source":"e417-122","target":"e417-120"},{"source":"e417-102","target":"e417-129"},{"source":"e417-102","target":"e417-128"},{"source":"e417-118","target":"e417-129"},{"source":"e417-118","target":"e417-131"},{"source":"e417-118","target":"e417-128"},{"source":"e417-118","target":"e417-132"},{"source":"e417-118","target":"e417-133"},{"source":"e417-118","target":"e417-98"},{"source":"e417-118","target":"e417-116"},{"source":"e417-118","target":"e417-94"},{"source":"e417-118","target":"e417-108"},{"source":"e417-118","target":"e417-104"},{"source":"e417-96","target":"e417-128"},{"source":"e417-132","target":"e417-92"},{"source":"e417-132","target":"e417-100"},{"source":"e417-132","target":"e417-106"},{"source":"e417-133","target":"e417-110"},{"source":"e417-133","target":"e417-114"},{"source":"e417-133","target":"e417-112"},{"source":"e417-98","target":"e417-128"},{"source":"e417-98","target":"e417-94"},{"source":"e417-98","target":"e417-96"},{"source":"e417-108","target":"e417-128"},{"source":"e417-92","target":"e417-129"},{"source":"e417-100","target":"e417-128"},{"source":"e417-100","target":"e417-98"},{"source":"e417-100","target":"e417-96"},{"source":"e417-106","target":"e417-129"},{"source":"e417-106","target":"e417-102"},{"source":"e417-106","target":"e417-104"},{"source":"e417-110","target":"e417-129"},{"source":"e417-110","target":"e417-128"},{"source":"e417-110","target":"e417-108"},{"source":"e417-110","target":"e417-132"},{"source":"e417-114","target":"e417-129"},{"source":"e417-114","target":"e417-132"},{"source":"e417-114","target":"e417-112"},{"source":"e417-112","target":"e417-129"}],"env":{"rollup":"2.45.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
7063
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-rocketstyle.umd.js","children":[{"name":"src","children":[{"name":"hooks","children":[{"uid":"39ee-83","name":"usePseudoState.tsx"},{"uid":"39ee-91","name":"useTheme.tsx"},{"uid":"39ee-97","name":"useThemeOptions.tsx"}]},{"name":"utils","children":[{"uid":"39ee-85","name":"collection.ts"},{"uid":"39ee-87","name":"dimensions.ts"},{"uid":"39ee-89","name":"theme.ts"},{"uid":"39ee-99","name":"attrs.ts"},{"uid":"39ee-107","name":"styles.ts"}]},{"uid":"39ee-93","name":"context.tsx"},{"name":"constants","children":[{"uid":"39ee-95","name":"reservedKeys.ts"},{"uid":"39ee-111","name":"defaultDimensions.ts"}]},{"name":"internal","children":[{"uid":"39ee-101","name":"rocketstyleAttrsHoc.tsx"},{"uid":"39ee-103","name":"localContext.tsx"},{"uid":"39ee-105","name":"createProvider.tsx"}]},{"uid":"39ee-109","name":"rocketstyle.tsx"},{"uid":"39ee-113","name":"init.ts"},{"uid":"39ee-115","name":"isRocketComponent.ts"},{"uid":"39ee-117","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"39ee-83":{"renderedLength":1666,"gzipLength":376,"brotliLength":0,"mainUid":"39ee-82"},"39ee-85":{"renderedLength":776,"gzipLength":347,"brotliLength":0,"mainUid":"39ee-84"},"39ee-87":{"renderedLength":1613,"gzipLength":577,"brotliLength":0,"mainUid":"39ee-86"},"39ee-89":{"renderedLength":2610,"gzipLength":793,"brotliLength":0,"mainUid":"39ee-88"},"39ee-91":{"renderedLength":572,"gzipLength":298,"brotliLength":0,"mainUid":"39ee-90"},"39ee-93":{"renderedLength":935,"gzipLength":376,"brotliLength":0,"mainUid":"39ee-92"},"39ee-95":{"renderedLength":618,"gzipLength":299,"brotliLength":0,"mainUid":"39ee-94"},"39ee-97":{"renderedLength":415,"gzipLength":251,"brotliLength":0,"mainUid":"39ee-96"},"39ee-99":{"renderedLength":2757,"gzipLength":901,"brotliLength":0,"mainUid":"39ee-98"},"39ee-101":{"renderedLength":1095,"gzipLength":462,"brotliLength":0,"mainUid":"39ee-100"},"39ee-103":{"renderedLength":45,"gzipLength":60,"brotliLength":0,"mainUid":"39ee-102"},"39ee-105":{"renderedLength":878,"gzipLength":412,"brotliLength":0,"mainUid":"39ee-104"},"39ee-107":{"renderedLength":139,"gzipLength":114,"brotliLength":0,"mainUid":"39ee-106"},"39ee-109":{"renderedLength":10965,"gzipLength":2690,"brotliLength":0,"mainUid":"39ee-108"},"39ee-111":{"renderedLength":196,"gzipLength":130,"brotliLength":0,"mainUid":"39ee-110"},"39ee-113":{"renderedLength":1650,"gzipLength":585,"brotliLength":0,"mainUid":"39ee-112"},"39ee-115":{"renderedLength":220,"gzipLength":151,"brotliLength":0,"mainUid":"39ee-114"},"39ee-117":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"39ee-116"}},"nodeMetas":{"39ee-82":{"id":"/src/hooks/usePseudoState.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-83"},"imported":[{"uid":"39ee-119"}],"importedBy":[{"uid":"39ee-121"}]},"39ee-84":{"id":"/src/utils/collection.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-85"},"imported":[],"importedBy":[{"uid":"39ee-108"},{"uid":"39ee-88"}]},"39ee-86":{"id":"/src/utils/dimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-87"},"imported":[{"uid":"39ee-118"}],"importedBy":[{"uid":"39ee-112"},{"uid":"39ee-88"},{"uid":"39ee-90"}]},"39ee-88":{"id":"/src/utils/theme.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-89"},"imported":[{"uid":"39ee-118"},{"uid":"39ee-84"},{"uid":"39ee-86"}],"importedBy":[{"uid":"39ee-108"},{"uid":"39ee-90"}]},"39ee-90":{"id":"/src/hooks/useTheme.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-91"},"imported":[{"uid":"39ee-118"},{"uid":"39ee-88"},{"uid":"39ee-86"}],"importedBy":[{"uid":"39ee-121"}]},"39ee-92":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-93"},"imported":[{"uid":"39ee-119"},{"uid":"39ee-118"}],"importedBy":[{"uid":"39ee-116"},{"uid":"39ee-96"}]},"39ee-94":{"id":"/src/constants/reservedKeys.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-95"},"imported":[],"importedBy":[{"uid":"39ee-112"},{"uid":"39ee-108"},{"uid":"39ee-96"}]},"39ee-96":{"id":"/src/hooks/useThemeOptions.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-97"},"imported":[{"uid":"39ee-119"},{"uid":"39ee-92"},{"uid":"39ee-94"}],"importedBy":[{"uid":"39ee-121"}]},"39ee-98":{"id":"/src/utils/attrs.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-99"},"imported":[{"uid":"39ee-118"}],"importedBy":[{"uid":"39ee-108"},{"uid":"39ee-100"}]},"39ee-100":{"id":"/src/internal/rocketstyleAttrsHoc.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-101"},"imported":[{"uid":"39ee-119"},{"uid":"39ee-118"},{"uid":"39ee-98"},{"uid":"39ee-121"}],"importedBy":[{"uid":"39ee-122"}]},"39ee-102":{"id":"/src/internal/localContext.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-103"},"imported":[{"uid":"39ee-119"}],"importedBy":[{"uid":"39ee-122"},{"uid":"39ee-104"}]},"39ee-104":{"id":"/src/internal/createProvider.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-105"},"imported":[{"uid":"39ee-119"},{"uid":"39ee-121"},{"uid":"39ee-102"}],"importedBy":[{"uid":"39ee-122"}]},"39ee-106":{"id":"/src/utils/styles.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-107"},"imported":[],"importedBy":[{"uid":"39ee-108"}]},"39ee-108":{"id":"/src/rocketstyle.tsx","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-109"},"imported":[{"uid":"39ee-119"},{"uid":"39ee-120"},{"uid":"39ee-118"},{"uid":"39ee-121"},{"uid":"39ee-122"},{"uid":"39ee-88"},{"uid":"39ee-106"},{"uid":"39ee-84"},{"uid":"39ee-98"},{"uid":"39ee-94"}],"importedBy":[{"uid":"39ee-112"}]},"39ee-110":{"id":"/src/constants/defaultDimensions.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-111"},"imported":[],"importedBy":[{"uid":"39ee-112"}]},"39ee-112":{"id":"/src/init.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-113"},"imported":[{"uid":"39ee-118"},{"uid":"39ee-108"},{"uid":"39ee-86"},{"uid":"39ee-94"},{"uid":"39ee-110"}],"importedBy":[{"uid":"39ee-116"}]},"39ee-114":{"id":"/src/isRocketComponent.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-115"},"imported":[],"importedBy":[{"uid":"39ee-116"}]},"39ee-116":{"id":"/src/index.ts","moduleParts":{"vitus-labs-rocketstyle.umd.js":"39ee-117"},"imported":[{"uid":"39ee-112"},{"uid":"39ee-92"},{"uid":"39ee-114"}],"importedBy":[],"isEntry":true},"39ee-118":{"id":"@vitus-labs/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"39ee-112"},{"uid":"39ee-92"},{"uid":"39ee-108"},{"uid":"39ee-86"},{"uid":"39ee-88"},{"uid":"39ee-98"},{"uid":"39ee-90"},{"uid":"39ee-100"}],"isExternal":true},"39ee-119":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"39ee-92"},{"uid":"39ee-108"},{"uid":"39ee-82"},{"uid":"39ee-96"},{"uid":"39ee-100"},{"uid":"39ee-104"},{"uid":"39ee-102"}],"isExternal":true},"39ee-120":{"id":"hoist-non-react-statics","moduleParts":{},"imported":[],"importedBy":[{"uid":"39ee-108"}],"isExternal":true},"39ee-121":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"39ee-82"},{"uid":"39ee-90"},{"uid":"39ee-96"}],"importedBy":[{"uid":"39ee-108"},{"uid":"39ee-100"},{"uid":"39ee-104"}]},"39ee-122":{"id":"/src/internal/index.ts","moduleParts":{},"imported":[{"uid":"39ee-100"},{"uid":"39ee-104"},{"uid":"39ee-102"}],"importedBy":[{"uid":"39ee-108"}]}},"env":{"rollup":"2.56.3"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
7079
7064
 
7080
7065
  const run = () => {
7081
7066
  const width = window.innerWidth;