@ubnt/store.core 9.37.0-beta.1 → 9.37.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus2.svg +1 -4
- package/lib/assets/plus3.svg +4 -1
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
- package/lib/components/Header/CartModalV2/Item/Item.js +3 -3
- package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/constants/icons/generic/index.js +3 -3
- package/lib/constants/icons/generic/index.mjs +1 -1
- package/lib/constants/icons/generic/plus.svg.js +5 -5
- package/lib/constants/icons/generic/plus.svg.mjs +2 -2
- package/lib/utils/nextjs/patch.js +1 -1
- package/lib/utils/nextjs/patch.js.map +1 -1
- package/lib/utils/nextjs/patch.mjs +1 -1
- package/lib/utils/nextjs/patch.mjs.map +1 -1
- package/lib/utils/nextjs/plugin.js +3 -1
- package/lib/utils/nextjs/plugin.js.map +1 -1
- package/lib/utils/nextjs/plugin.mjs +3 -1
- package/lib/utils/nextjs/plugin.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -22,12 +22,12 @@ var throughput = require('./properties/throughput.js');
|
|
|
22
22
|
var unifiAppSuite = require('./properties/unifiAppSuite.js');
|
|
23
23
|
var unifiDevices = require('./properties/unifiDevices.js');
|
|
24
24
|
var wanPorts = require('./properties/wanPorts.js');
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
25
|
+
var _externalAssets_CmLfPohF = require("../../../assets/udmProMax.jpg");
|
|
26
|
+
var _externalAssets_pESvYnSE = require("../../../assets/udmPro.jpg");
|
|
27
|
+
var _externalAssets_BUotdZNw = require("../../../assets/udmProSpecial.jpg");
|
|
28
28
|
var image = require("../../../assets/udw2.jpg");
|
|
29
|
-
var
|
|
30
|
-
var
|
|
29
|
+
var _externalAssets_DfjB$I0W = require("../../../assets/ucgMax.jpg");
|
|
30
|
+
var _externalAssets_BGAVPUHK = require("../../../assets/ucgUltra.jpg");
|
|
31
31
|
var image$1 = require("../../../assets/udr2.jpg");
|
|
32
32
|
var image$2 = require("../../../assets/express.jpg");
|
|
33
33
|
var nextAiInspection = require('./properties/nextAiInspection.js');
|
|
@@ -36,12 +36,12 @@ function _interopDefault(e) {
|
|
|
36
36
|
default: e
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
39
|
+
var _externalAssets_CmLfPohF__default = /*#__PURE__*/_interopDefault(_externalAssets_CmLfPohF);
|
|
40
|
+
var _externalAssets_pESvYnSE__default = /*#__PURE__*/_interopDefault(_externalAssets_pESvYnSE);
|
|
41
|
+
var _externalAssets_BUotdZNw__default = /*#__PURE__*/_interopDefault(_externalAssets_BUotdZNw);
|
|
42
42
|
var image__default = /*#__PURE__*/_interopDefault(image);
|
|
43
|
-
var
|
|
44
|
-
var
|
|
43
|
+
var _externalAssets_DfjB$I0W__default = /*#__PURE__*/_interopDefault(_externalAssets_DfjB$I0W);
|
|
44
|
+
var _externalAssets_BGAVPUHK__default = /*#__PURE__*/_interopDefault(_externalAssets_BGAVPUHK);
|
|
45
45
|
var image__default$1 = /*#__PURE__*/_interopDefault(image$1);
|
|
46
46
|
var image__default$2 = /*#__PURE__*/_interopDefault(image$2);
|
|
47
47
|
"use strict";
|
|
@@ -56,18 +56,18 @@ const efg = {
|
|
|
56
56
|
const udmProMax = {
|
|
57
57
|
...udmProMax$1.udmProMax,
|
|
58
58
|
description: "udmProMax.customDescription",
|
|
59
|
-
image: getImage(
|
|
59
|
+
image: getImage(_externalAssets_CmLfPohF__default["default"])
|
|
60
60
|
};
|
|
61
61
|
const udmPro = {
|
|
62
62
|
...udmPro$1.udmPro,
|
|
63
63
|
description: "udmPro.customDescription",
|
|
64
|
-
image: getImage(
|
|
64
|
+
image: getImage(_externalAssets_pESvYnSE__default["default"])
|
|
65
65
|
};
|
|
66
66
|
const udmProSpecial = {
|
|
67
67
|
...udmProSpecial$1.udmProSpecial,
|
|
68
68
|
title: "udmProSpecial.customTitle",
|
|
69
69
|
description: "udmProSpecial.customDescription",
|
|
70
|
-
image: getImage(
|
|
70
|
+
image: getImage(_externalAssets_BUotdZNw__default["default"])
|
|
71
71
|
};
|
|
72
72
|
const udw = {
|
|
73
73
|
...udw$1.udw,
|
|
@@ -75,12 +75,12 @@ const udw = {
|
|
|
75
75
|
};
|
|
76
76
|
const ucgMax = {
|
|
77
77
|
...ucgMax$1.ucgMax,
|
|
78
|
-
image: getImage(
|
|
78
|
+
image: getImage(_externalAssets_DfjB$I0W__default["default"]),
|
|
79
79
|
notes: ["ucgMax.note.accessory"]
|
|
80
80
|
};
|
|
81
81
|
const ucgUltra = {
|
|
82
82
|
...ucgUltra$1.ucgUltra,
|
|
83
|
-
image: getImage(
|
|
83
|
+
image: getImage(_externalAssets_BGAVPUHK__default["default"])
|
|
84
84
|
};
|
|
85
85
|
const udr = {
|
|
86
86
|
...udr$1.udr,
|
|
@@ -20,12 +20,12 @@ import { throughput } from './properties/throughput.mjs';
|
|
|
20
20
|
import { unifiAppSuite } from './properties/unifiAppSuite.mjs';
|
|
21
21
|
import { unifiDevices } from './properties/unifiDevices.mjs';
|
|
22
22
|
import { wanPorts } from './properties/wanPorts.mjs';
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
23
|
+
import _externalAssets_CmLfPohF__default from "../../../assets/udmProMax.jpg";
|
|
24
|
+
import _externalAssets_pESvYnSE__default from "../../../assets/udmPro.jpg";
|
|
25
|
+
import _externalAssets_BUotdZNw__default from "../../../assets/udmProSpecial.jpg";
|
|
26
26
|
import image__default from "../../../assets/udw2.jpg";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
27
|
+
import _externalAssets_DfjB$I0W__default from "../../../assets/ucgMax.jpg";
|
|
28
|
+
import _externalAssets_BGAVPUHK__default from "../../../assets/ucgUltra.jpg";
|
|
29
29
|
import image__default$1 from "../../../assets/udr2.jpg";
|
|
30
30
|
import image__default$2 from "../../../assets/express.jpg";
|
|
31
31
|
import { nextAiInspection } from './properties/nextAiInspection.mjs';
|
|
@@ -41,18 +41,18 @@ const efg = {
|
|
|
41
41
|
const udmProMax = {
|
|
42
42
|
...udmProMax$1,
|
|
43
43
|
description: "udmProMax.customDescription",
|
|
44
|
-
image: getImage(
|
|
44
|
+
image: getImage(_externalAssets_CmLfPohF__default)
|
|
45
45
|
};
|
|
46
46
|
const udmPro = {
|
|
47
47
|
...udmPro$1,
|
|
48
48
|
description: "udmPro.customDescription",
|
|
49
|
-
image: getImage(
|
|
49
|
+
image: getImage(_externalAssets_pESvYnSE__default)
|
|
50
50
|
};
|
|
51
51
|
const udmProSpecial = {
|
|
52
52
|
...udmProSpecial$1,
|
|
53
53
|
title: "udmProSpecial.customTitle",
|
|
54
54
|
description: "udmProSpecial.customDescription",
|
|
55
|
-
image: getImage(
|
|
55
|
+
image: getImage(_externalAssets_BUotdZNw__default)
|
|
56
56
|
};
|
|
57
57
|
const udw = {
|
|
58
58
|
...udw$1,
|
|
@@ -60,12 +60,12 @@ const udw = {
|
|
|
60
60
|
};
|
|
61
61
|
const ucgMax = {
|
|
62
62
|
...ucgMax$1,
|
|
63
|
-
image: getImage(
|
|
63
|
+
image: getImage(_externalAssets_DfjB$I0W__default),
|
|
64
64
|
notes: ["ucgMax.note.accessory"]
|
|
65
65
|
};
|
|
66
66
|
const ucgUltra = {
|
|
67
67
|
...ucgUltra$1,
|
|
68
|
-
image: getImage(
|
|
68
|
+
image: getImage(_externalAssets_BGAVPUHK__default)
|
|
69
69
|
};
|
|
70
70
|
const udr = {
|
|
71
71
|
...udr$1,
|
|
@@ -9,7 +9,7 @@ require('../../assets/applications.svg.js');
|
|
|
9
9
|
require('../../assets/Consoles/ucgMax.jpg.js');
|
|
10
10
|
require('../properties/index.js');
|
|
11
11
|
var integratedWiFi6 = require('../properties/integratedWiFi6.js');
|
|
12
|
-
var image = require("../../../../assets/
|
|
12
|
+
var image = require("../../../../assets/ucgMax2.jpg");
|
|
13
13
|
var unifiAppSuite = require('../properties/unifiAppSuite.js');
|
|
14
14
|
var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
15
15
|
var applications = require("../../../../assets/applications.svg");
|
|
@@ -7,7 +7,7 @@ import '../../assets/applications.svg.mjs';
|
|
|
7
7
|
import '../../assets/Consoles/ucgMax.jpg.mjs';
|
|
8
8
|
import '../properties/index.mjs';
|
|
9
9
|
import { integratedWiFi6 } from '../properties/integratedWiFi6.mjs';
|
|
10
|
-
import image__default from "../../../../assets/
|
|
10
|
+
import image__default from "../../../../assets/ucgMax2.jpg";
|
|
11
11
|
import { unifiAppSuite } from '../properties/unifiAppSuite.mjs';
|
|
12
12
|
import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
13
13
|
import applications__default from "../../../../assets/applications.svg";
|
|
@@ -21,7 +21,7 @@ var unifiAppSuite = require('../properties/unifiAppSuite.js');
|
|
|
21
21
|
var unifiDevices = require('../properties/unifiDevices.js');
|
|
22
22
|
var wanPorts = require('../properties/wanPorts.js');
|
|
23
23
|
var StyleableSvgImage$1 = require('../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
24
|
-
var image = require("../../../../assets/
|
|
24
|
+
var image = require("../../../../assets/ucgUltra2.jpg");
|
|
25
25
|
var applications = require("../../../../assets/wifi-device.svg");
|
|
26
26
|
var nextAiInspection = require('../properties/nextAiInspection.js');
|
|
27
27
|
function _interopDefault(e) {
|
|
@@ -19,7 +19,7 @@ import { unifiAppSuite } from '../properties/unifiAppSuite.mjs';
|
|
|
19
19
|
import { unifiDevices } from '../properties/unifiDevices.mjs';
|
|
20
20
|
import { wanPorts } from '../properties/wanPorts.mjs';
|
|
21
21
|
import { StyleableSvgImage as StyleableSvgImage$1 } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
22
|
-
import image__default from "../../../../assets/
|
|
22
|
+
import image__default from "../../../../assets/ucgUltra2.jpg";
|
|
23
23
|
import applications__default from "../../../../assets/wifi-device.svg";
|
|
24
24
|
import { nextAiInspection } from '../properties/nextAiInspection.mjs';
|
|
25
25
|
"use strict";
|
|
@@ -20,7 +20,7 @@ var unifiAppSuite = require('../properties/unifiAppSuite.js');
|
|
|
20
20
|
var unifiDevices = require('../properties/unifiDevices.js');
|
|
21
21
|
var unifiPowerBackup = require('../properties/unifiPowerBackup.js');
|
|
22
22
|
var wanPorts = require('../properties/wanPorts.js');
|
|
23
|
-
var image = require("../../../../assets/
|
|
23
|
+
var image = require("../../../../assets/udmPro2.jpg");
|
|
24
24
|
var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
25
25
|
var applications = require("../../../../assets/applications.svg");
|
|
26
26
|
var nextAiInspection = require('../properties/nextAiInspection.js');
|
|
@@ -18,7 +18,7 @@ import { unifiAppSuite } from '../properties/unifiAppSuite.mjs';
|
|
|
18
18
|
import { unifiDevices } from '../properties/unifiDevices.mjs';
|
|
19
19
|
import { unifiPowerBackup } from '../properties/unifiPowerBackup.mjs';
|
|
20
20
|
import { wanPorts } from '../properties/wanPorts.mjs';
|
|
21
|
-
import image__default from "../../../../assets/
|
|
21
|
+
import image__default from "../../../../assets/udmPro2.jpg";
|
|
22
22
|
import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
23
23
|
import applications__default from "../../../../assets/applications.svg";
|
|
24
24
|
import { nextAiInspection } from '../properties/nextAiInspection.mjs';
|
|
@@ -8,7 +8,7 @@ require('../../../StyleableSvgImage/index.js');
|
|
|
8
8
|
require('../../assets/applications.svg.js');
|
|
9
9
|
require('../../assets/Consoles/udmProMax.jpg.js');
|
|
10
10
|
require('../properties/index.js');
|
|
11
|
-
var image = require("../../../../assets/
|
|
11
|
+
var image = require("../../../../assets/udmProMax2.jpg");
|
|
12
12
|
var unifiAppSuite = require('../properties/unifiAppSuite.js');
|
|
13
13
|
var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
14
14
|
var applications = require("../../../../assets/applications.svg");
|
|
@@ -6,7 +6,7 @@ import '../../../StyleableSvgImage/index.mjs';
|
|
|
6
6
|
import '../../assets/applications.svg.mjs';
|
|
7
7
|
import '../../assets/Consoles/udmProMax.jpg.mjs';
|
|
8
8
|
import '../properties/index.mjs';
|
|
9
|
-
import image__default from "../../../../assets/
|
|
9
|
+
import image__default from "../../../../assets/udmProMax2.jpg";
|
|
10
10
|
import { unifiAppSuite } from '../properties/unifiAppSuite.mjs';
|
|
11
11
|
import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
12
12
|
import applications__default from "../../../../assets/applications.svg";
|
|
@@ -20,7 +20,7 @@ var unifiAppSuite = require('../properties/unifiAppSuite.js');
|
|
|
20
20
|
var unifiDevices = require('../properties/unifiDevices.js');
|
|
21
21
|
var unifiPowerBackup = require('../properties/unifiPowerBackup.js');
|
|
22
22
|
var wanPorts = require('../properties/wanPorts.js');
|
|
23
|
-
var image = require("../../../../assets/
|
|
23
|
+
var image = require("../../../../assets/udmProSpecial2.jpg");
|
|
24
24
|
var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
25
25
|
var applications = require("../../../../assets/applications.svg");
|
|
26
26
|
var nextAiInspection = require('../properties/nextAiInspection.js');
|
|
@@ -18,7 +18,7 @@ import { unifiAppSuite } from '../properties/unifiAppSuite.mjs';
|
|
|
18
18
|
import { unifiDevices } from '../properties/unifiDevices.mjs';
|
|
19
19
|
import { unifiPowerBackup } from '../properties/unifiPowerBackup.mjs';
|
|
20
20
|
import { wanPorts } from '../properties/wanPorts.mjs';
|
|
21
|
-
import image__default from "../../../../assets/
|
|
21
|
+
import image__default from "../../../../assets/udmProSpecial2.jpg";
|
|
22
22
|
import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
23
23
|
import applications__default from "../../../../assets/applications.svg";
|
|
24
24
|
import { nextAiInspection } from '../properties/nextAiInspection.mjs';
|
|
@@ -11,8 +11,8 @@ require('../assets/plus.svg.js');
|
|
|
11
11
|
var Layout_styles = require('./Layout.styles.js');
|
|
12
12
|
var CustomImage = require('../../../../../CustomImage/CustomImage.js');
|
|
13
13
|
var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
14
|
-
var MinusIcon = require("../../../../../../assets/
|
|
15
|
-
var PlusIcon = require("../../../../../../assets/
|
|
14
|
+
var MinusIcon = require("../../../../../../assets/minus4.svg");
|
|
15
|
+
var PlusIcon = require("../../../../../../assets/plus5.svg");
|
|
16
16
|
function _interopDefault(e) {
|
|
17
17
|
return e && e.__esModule ? e : {
|
|
18
18
|
default: e
|
|
@@ -9,8 +9,8 @@ import '../assets/plus.svg.mjs';
|
|
|
9
9
|
import { InputWrapper, Label, InputFlexWrapper } from './Layout.styles.mjs';
|
|
10
10
|
import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
|
|
11
11
|
import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
12
|
-
import MinusIcon__default from "../../../../../../assets/
|
|
13
|
-
import PlusIcon__default from "../../../../../../assets/
|
|
12
|
+
import MinusIcon__default from "../../../../../../assets/minus4.svg";
|
|
13
|
+
import PlusIcon__default from "../../../../../../assets/plus5.svg";
|
|
14
14
|
"use strict";
|
|
15
15
|
const CounterSection = ({
|
|
16
16
|
value,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var MinusIcon = require("../../../../../../assets/
|
|
6
|
+
var MinusIcon = require("../../../../../../assets/minus4.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/minus4.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/minus4.svg";
|
|
3
3
|
//# sourceMappingURL=minus.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var PlusIcon = require("../../../../../../assets/
|
|
6
|
+
var PlusIcon = require("../../../../../../assets/plus5.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/plus5.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus5.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -19,8 +19,8 @@ var ComputeResourceCalculator_types = require('../../../../ComputeResourceCalcul
|
|
|
19
19
|
var CustomImage = require('../../../../../CustomImage/CustomImage.js');
|
|
20
20
|
var SearchIcon = require("../../../../../../assets/search2.svg");
|
|
21
21
|
var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
22
|
-
var MinusIcon = require("../../../../../../assets/
|
|
23
|
-
var PlusIcon = require("../../../../../../assets/
|
|
22
|
+
var MinusIcon = require("../../../../../../assets/minus5.svg");
|
|
23
|
+
var PlusIcon = require("../../../../../../assets/plus6.svg");
|
|
24
24
|
function _interopDefault(e) {
|
|
25
25
|
return e && e.__esModule ? e : {
|
|
26
26
|
default: e
|
|
@@ -17,8 +17,8 @@ import { isMessageFormatted } from '../../../../ComputeResourceCalculator/Comput
|
|
|
17
17
|
import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
|
|
18
18
|
import SearchIcon__default from "../../../../../../assets/search2.svg";
|
|
19
19
|
import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
20
|
-
import MinusIcon__default from "../../../../../../assets/
|
|
21
|
-
import PlusIcon__default from "../../../../../../assets/
|
|
20
|
+
import MinusIcon__default from "../../../../../../assets/minus5.svg";
|
|
21
|
+
import PlusIcon__default from "../../../../../../assets/plus6.svg";
|
|
22
22
|
"use strict";
|
|
23
23
|
const NoopPlaceholder = () => /* @__PURE__ */jsx(Fragment, {});
|
|
24
24
|
const PoeConsumerSelectModal = ({
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var MinusIcon = require("../../../../../../assets/
|
|
6
|
+
var MinusIcon = require("../../../../../../assets/minus5.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/minus5.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/minus5.svg";
|
|
3
3
|
//# sourceMappingURL=minus.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var PlusIcon = require("../../../../../../assets/
|
|
6
|
+
var PlusIcon = require("../../../../../../assets/plus6.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/plus6.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus6.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -12,7 +12,7 @@ require('./assets/play.svg.js');
|
|
|
12
12
|
require('./assets/volume-off.svg.js');
|
|
13
13
|
require('./assets/volume-on.svg.js');
|
|
14
14
|
var VideoPlayer_styles = require('./VideoPlayer.styles.js');
|
|
15
|
-
var CloseIcon = require("../../assets/
|
|
15
|
+
var CloseIcon = require("../../assets/close2.svg");
|
|
16
16
|
var BackIcon = require("../../assets/back.svg");
|
|
17
17
|
var PauseIcon = require("../../assets/pause2.svg");
|
|
18
18
|
var PlayIcon = require("../../assets/play.svg");
|
|
@@ -10,7 +10,7 @@ import './assets/play.svg.mjs';
|
|
|
10
10
|
import './assets/volume-off.svg.mjs';
|
|
11
11
|
import './assets/volume-on.svg.mjs';
|
|
12
12
|
import { Wrap, IconWrap, Icon, Video, ControlWrap, TimelineWrap, Timeline, Controls, LeftSide, IconButton, VolumeWrap, VolumeSliderWrap, VolumeSlider, Time, Center, RightSide } from './VideoPlayer.styles.mjs';
|
|
13
|
-
import CloseIcon__default from "../../assets/
|
|
13
|
+
import CloseIcon__default from "../../assets/close2.svg";
|
|
14
14
|
import BackIcon__default from "../../assets/back.svg";
|
|
15
15
|
import PauseIcon__default from "../../assets/pause2.svg";
|
|
16
16
|
import PlayIcon__default from "../../assets/play.svg";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/close2.svg";
|
|
2
|
+
export { default } from "../../../assets/close2.svg";
|
|
3
3
|
//# sourceMappingURL=close.svg.mjs.map
|
|
@@ -20,7 +20,7 @@ var _externalAssets_BAXELvSy = require("../../../assets/collapseArrow.svg");
|
|
|
20
20
|
var _externalAssets_CzDCu21b = require("../../../assets/hamburger.svg");
|
|
21
21
|
var _externalAssets_CrL$Ujdd = require("../../../assets/minus2.svg");
|
|
22
22
|
var _externalAssets_DSmVXVR0 = require("../../../assets/playCircle.svg");
|
|
23
|
-
var
|
|
23
|
+
var _externalAssets_DEWS_Wz_ = require("../../../assets/plus2.svg");
|
|
24
24
|
var _externalAssets_g50k1DIN = require("../../../assets/search.svg");
|
|
25
25
|
var _externalAssets_DjBpKbb4 = require("../../../assets/playback2.svg");
|
|
26
26
|
var _externalAssets_CwVZcmz1 = require("../../../assets/filter.svg");
|
|
@@ -37,7 +37,7 @@ var _externalAssets_BAXELvSy__default = /*#__PURE__*/_interopDefault(_externalAs
|
|
|
37
37
|
var _externalAssets_CzDCu21b__default = /*#__PURE__*/_interopDefault(_externalAssets_CzDCu21b);
|
|
38
38
|
var _externalAssets_CrL$Ujdd__default = /*#__PURE__*/_interopDefault(_externalAssets_CrL$Ujdd);
|
|
39
39
|
var _externalAssets_DSmVXVR0__default = /*#__PURE__*/_interopDefault(_externalAssets_DSmVXVR0);
|
|
40
|
-
var
|
|
40
|
+
var _externalAssets_DEWS_Wz___default = /*#__PURE__*/_interopDefault(_externalAssets_DEWS_Wz_);
|
|
41
41
|
var _externalAssets_g50k1DIN__default = /*#__PURE__*/_interopDefault(_externalAssets_g50k1DIN);
|
|
42
42
|
var _externalAssets_DjBpKbb4__default = /*#__PURE__*/_interopDefault(_externalAssets_DjBpKbb4);
|
|
43
43
|
var _externalAssets_CwVZcmz1__default = /*#__PURE__*/_interopDefault(_externalAssets_CwVZcmz1);
|
|
@@ -93,7 +93,7 @@ Object.defineProperty(exports, "playCircle", {
|
|
|
93
93
|
Object.defineProperty(exports, "plus", {
|
|
94
94
|
enumerable: true,
|
|
95
95
|
get: function () {
|
|
96
|
-
return
|
|
96
|
+
return _externalAssets_DEWS_Wz___default["default"];
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "search", {
|
|
@@ -18,7 +18,7 @@ export { default as collapseArrow } from "../../../assets/collapseArrow.svg";
|
|
|
18
18
|
export { default as hamburger } from "../../../assets/hamburger.svg";
|
|
19
19
|
export { default as minus } from "../../../assets/minus2.svg";
|
|
20
20
|
export { default as playCircle } from "../../../assets/playCircle.svg";
|
|
21
|
-
export { default as plus } from "../../../assets/
|
|
21
|
+
export { default as plus } from "../../../assets/plus2.svg";
|
|
22
22
|
export { default as search } from "../../../assets/search.svg";
|
|
23
23
|
export { default as playback } from "../../../assets/playback2.svg";
|
|
24
24
|
export { default as filter } from "../../../assets/filter.svg";
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
6
|
+
var _externalAssets_DEWS_Wz_ = require("../../../assets/plus2.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var _externalAssets_DEWS_Wz___default = /*#__PURE__*/_interopDefault(_externalAssets_DEWS_Wz_);
|
|
13
13
|
Object.defineProperty(exports, "default", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return _externalAssets_DEWS_Wz___default["default"];
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
Object.keys(
|
|
19
|
+
Object.keys(_externalAssets_DEWS_Wz_).forEach(function (k) {
|
|
20
20
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function () {
|
|
23
|
-
return
|
|
23
|
+
return _externalAssets_DEWS_Wz_[k];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/plus2.svg";
|
|
2
|
+
export { default } from "../../../assets/plus2.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -17,7 +17,7 @@ var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
|
17
17
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
18
18
|
"use strict";
|
|
19
19
|
function patchUiComponentsAndIcons() {
|
|
20
|
-
const uiComponentsPath = path__default["default"].resolve(
|
|
20
|
+
const uiComponentsPath = path__default["default"].dirname(require.resolve("@ubnt/ui-components"));
|
|
21
21
|
const ourStyleInjectPath = path__default["default"].resolve(__dirname, "./ssr/style-inject.mjs");
|
|
22
22
|
const originalStyleInjectPath = path__default["default"].resolve(uiComponentsPath, "./docs/helpers/style-inject.es.js");
|
|
23
23
|
fs__default["default"].copyFileSync(ourStyleInjectPath, originalStyleInjectPath);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch.js","sources":["../../../src/utils/nextjs/patch.ts"],"sourcesContent":["import { transformSync } from \"@babel/core\";\nimport { sync as globSync } from \"glob\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\n\nimport { transformCssModule } from \"./ssr/transform-css-module\";\n\n// #############################################################################\n// Fix @ubnt/icons bundle issue\n// Noticed using `npm run build:analyze` that server and _middleware builds included ~1MB @ubnt/icons even tho' it\n// isn't used. So analyzed it a bit and traced it down to being an issue with how @ubnt/icons are packaged.\n// Ideally @ubnt/icons should be fixed, but as a temporary solution we can use this script to fix it\n// #############################################################################\nexport default function patchUiComponentsAndIcons() {\n // const uiIconsPath = path.resolve(
|
|
1
|
+
{"version":3,"file":"patch.js","sources":["../../../src/utils/nextjs/patch.ts"],"sourcesContent":["import { transformSync } from \"@babel/core\";\nimport { sync as globSync } from \"glob\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\n\nimport { transformCssModule } from \"./ssr/transform-css-module\";\n\n// #############################################################################\n// Fix @ubnt/icons bundle issue\n// Noticed using `npm run build:analyze` that server and _middleware builds included ~1MB @ubnt/icons even tho' it\n// isn't used. So analyzed it a bit and traced it down to being an issue with how @ubnt/icons are packaged.\n// Ideally @ubnt/icons should be fixed, but as a temporary solution we can use this script to fix it\n// #############################################################################\nexport default function patchUiComponentsAndIcons() {\n // const uiIconsPath = path.dirname(require.resolve(\"@ubnt/icons\"));\n const uiComponentsPath = path.dirname(require.resolve(\"@ubnt/ui-components\"));\n\n // // #############################################################################\n // // Fix package.json\n // // #############################################################################\n // const uiIconPkgJsonPath = path.resolve(uiIconsPath, \"./package.json\");\n // const uiIconPkgJson = JSON.parse(fs.readFileSync(uiIconPkgJsonPath, \"utf-8\"));\n\n // // Convert package from commonjs to module as it uses `exports` syntax but isn't marked as module thus the bundler\n // // opts out of certain optimizations\n // // Based on https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-move-my-commonjs-project-to-esm\n // delete uiIconPkgJson.main;\n // uiIconPkgJson.type = \"module\";\n // uiIconPkgJson.exports = {\n // \".\": \"./index.js\",\n // \"./*\": \"./*.js\",\n // };\n\n // // Mark that package doesn't have side-effects, it already had this but, just in case attempt to add it again\n // uiIconPkgJson.sideEffects = false;\n\n // // Update the file\n // fs.writeFileSync(uiIconPkgJsonPath, JSON.stringify(uiIconPkgJson, null, 2));\n\n // // #############################################################################\n // // Reimplement index.js file, as it reimplements same icon instead of re-exporting it, thus creating duplicate code\n // // So it was:\n // // const a = /* ...*/\n // // const b = /* ...*/\n // // exports { a as UiIconA, b as UiIconB };\n // //\n // // But it should be:\n // // export {default as UiIconA} from './UiIconA.js';\n // // export {default as UiIconB} from './UiIconB.js';\n // //\n // // To fix that we list all icon files and create a index.js from the ground where a re-export things\n // // #############################################################################\n // // Find all icon files - right now all files that end with .js\n // const uiIconsFilesRaw = fs.readdirSync(uiIconsPath);\n // const filesToExclude = [\"index.js\"];\n // const uiIconsFiles = uiIconsFilesRaw.filter(\n // (file) => file.endsWith(\".js\") && !filesToExclude.includes(file),\n // );\n\n // // Create content of new file\n // const newIndexJs = uiIconsFiles\n // .map((fileWithExtension) => {\n // const file = path.parse(fileWithExtension).name;\n // return `export {default as ${file}} from \"./${fileWithExtension}\";`;\n // })\n // .join(\"\\n\");\n\n // // Overwrite the current file\n // fs.writeFileSync(path.join(uiIconsPath, \"index.js\"), newIndexJs);\n\n // // #############################################################################\n // // Fix @ubnt/ui-components package.json\n // // #############################################################################\n // const uiComponentsPkgJsonPath = path.resolve(\n // uiComponentsIconsPath,\n // \"./package.json\",\n // );\n // const uiComponentsPkgJson = JSON.parse(\n // fs.readFileSync(uiComponentsPkgJsonPath, \"utf-8\"),\n // );\n\n // // Convert package from commonjs to module as it uses `exports` syntax but isn't marked as module thus the bundler\n // // opts out of certain optimizations\n // // Based on https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-move-my-commonjs-project-to-esm\n // // delete uiComponentsPkgJson.main;\n // // \"main\": \"index.js\",\n // uiComponentsPkgJson.type = \"module\";\n // // uiComponentsPkgJson.exports = {\n // // \".\": \"./index.js\",\n // // \"./*\": \"*/index.js\",\n // // \"./styles/normalize.css\": \"./styles/normalize.css\"\n // // };\n\n // // Update the file\n // fs.writeFileSync(\n // uiComponentsPkgJsonPath,\n // JSON.stringify(uiComponentsPkgJson, null, 2),\n // );\n\n // #############################################################################\n // Replace `@ubnt/ui-components/docs/helpers/style-inject.es.js` with our own SSR compatible version\n // #############################################################################\n // Using mjs version as it doesn't have extra unneeded module-->cjs fluff\n const ourStyleInjectPath = path.resolve(__dirname, \"./ssr/style-inject.mjs\");\n const originalStyleInjectPath = path.resolve(\n uiComponentsPath,\n \"./docs/helpers/style-inject.es.js\",\n );\n // FIXME: minify our file\n fs.copyFileSync(ourStyleInjectPath, originalStyleInjectPath);\n\n // #############################################################################\n // Transform all `@ubnt/ui-components/**/*.module.css.js` files\n // #############################################################################\n const files = globSync(\"**/*.module.css.js\", {\n cwd: uiComponentsPath,\n absolute: true,\n });\n\n for (const file of files) {\n const code = fs.readFileSync(path.resolve(file), { encoding: \"utf-8\" });\n if (!code) {\n throw new Error(`Failed to read file: ${file}`);\n }\n const output = transformSync(code, {\n plugins: [transformCssModule],\n filename: file,\n // Ignore .babelrc and babel.config.js for isolate testing of transformation\n babelrc: false,\n configFile: false,\n sourceMaps: false, // Disable source maps for easier comparison\n })?.code;\n if (!output) {\n throw new Error(`Failed to transform file: ${file}`);\n }\n fs.writeFileSync(file, output, { encoding: \"utf-8\" });\n }\n}\n"],"names":["patchUiComponentsAndIcons","uiComponentsPath","path","dirname","require","resolve","ourStyleInjectPath","__dirname","originalStyleInjectPath","fs","copyFileSync","files","globSync","cwd","absolute","file","code","readFileSync","encoding","Error","output","transformSync","plugins","transformCssModule","filename","babelrc","configFile","sourceMaps","writeFileSync"],"mappings":";;;;;;;;;;;;;;;;;;AAaA,SAAwBA,yBAA4BA,CAAA,EAAA;EAElD,MAAMC,mBAAmBC,aAAAA,CAAAA,SAAAA,CAAK,CAAAC,OAAA,CAAQC,OAAQ,CAAAC,OAAA,CAAQ,qBAAqB,CAAC,CAAA;EAwF5E,MAAMC,kBAAqB,GAAAJ,aAAA,CAAA,SAAA,CAAA,CAAKG,OAAQ,CAAAE,SAAA,EAAW,wBAAwB,CAAA;EAC3E,MAAMC,0BAA0BN,aAAAA,CAAAA,SAAAA,CAAK,CAAAG,OAAA,CACnCJ,gBAAA,EACA,mCAAA,CACF;EAEGQ,WAAAA,CAAAA,SAAAA,CAAA,CAAAC,YAAA,CAAaJ,oBAAoBE,uBAAuB,CAAA;EAKrD,MAAAG,KAAA,GAAQC,UAAS,oBAAsB,EAAA;IAC3CC,GAAK,EAAAZ,gBAAA;IACLa,QAAU,EAAA;EAAA,CACX,CAAA;EAED,KAAA,MAAWC,QAAQJ,KAAO,EAAA;IAClB,MAAAK,IAAA,GAAOP,WAAAA,CAAAA,SAAAA,CAAG,CAAAQ,YAAA,CAAaf,wBAAK,CAAAG,OAAA,CAAQU,IAAI,CAAG,EAAA;MAAEG,QAAU,EAAA;IAAA,CAAS,CAAA;IACtE,IAAI,CAACF,IAAM,EAAA;MACT,MAAM,IAAIG,KAAA,CAAM,wBAAwBJ,IAAI,EAAE,CAAA;IAChD;IACM,MAAAK,MAAA,GAASC,mBAAcL,IAAM,EAAA;MACjCM,OAAA,EAAS,CAACC,kBAAAA,CAAAA,kBAAkB,CAAA;MAC5BC,QAAU,EAAAT,IAAA;MAAA;MAEVU,OAAS,EAAA,KAAA;MACTC,UAAY,EAAA,KAAA;MACZC,UAAY,EAAA;MAAA;IACb,CAAA,CAAG,EAAAX,IAAA;IACJ,IAAI,CAACI,MAAQ,EAAA;MACX,MAAM,IAAID,KAAA,CAAM,6BAA6BJ,IAAI,EAAE,CAAA;IACrD;IACAN,WAAA,CAAA,SAAA,CAAA,CAAGmB,cAAcb,IAAM,EAAAK,MAAA,EAAQ;MAAEF,QAAA,EAAU;KAAS,CAAA;EACtD;AACF;"}
|
|
@@ -5,7 +5,7 @@ import path from 'node:path';
|
|
|
5
5
|
import { transformCssModule } from './ssr/transform-css-module.mjs';
|
|
6
6
|
"use strict";
|
|
7
7
|
function patchUiComponentsAndIcons() {
|
|
8
|
-
const uiComponentsPath = path.resolve(
|
|
8
|
+
const uiComponentsPath = path.dirname(require.resolve("@ubnt/ui-components"));
|
|
9
9
|
const ourStyleInjectPath = path.resolve(__dirname, "./ssr/style-inject.mjs");
|
|
10
10
|
const originalStyleInjectPath = path.resolve(uiComponentsPath, "./docs/helpers/style-inject.es.js");
|
|
11
11
|
fs.copyFileSync(ourStyleInjectPath, originalStyleInjectPath);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch.mjs","sources":["../../../src/utils/nextjs/patch.ts"],"sourcesContent":["import { transformSync } from \"@babel/core\";\nimport { sync as globSync } from \"glob\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\n\nimport { transformCssModule } from \"./ssr/transform-css-module\";\n\n// #############################################################################\n// Fix @ubnt/icons bundle issue\n// Noticed using `npm run build:analyze` that server and _middleware builds included ~1MB @ubnt/icons even tho' it\n// isn't used. So analyzed it a bit and traced it down to being an issue with how @ubnt/icons are packaged.\n// Ideally @ubnt/icons should be fixed, but as a temporary solution we can use this script to fix it\n// #############################################################################\nexport default function patchUiComponentsAndIcons() {\n // const uiIconsPath = path.resolve(
|
|
1
|
+
{"version":3,"file":"patch.mjs","sources":["../../../src/utils/nextjs/patch.ts"],"sourcesContent":["import { transformSync } from \"@babel/core\";\nimport { sync as globSync } from \"glob\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\n\nimport { transformCssModule } from \"./ssr/transform-css-module\";\n\n// #############################################################################\n// Fix @ubnt/icons bundle issue\n// Noticed using `npm run build:analyze` that server and _middleware builds included ~1MB @ubnt/icons even tho' it\n// isn't used. So analyzed it a bit and traced it down to being an issue with how @ubnt/icons are packaged.\n// Ideally @ubnt/icons should be fixed, but as a temporary solution we can use this script to fix it\n// #############################################################################\nexport default function patchUiComponentsAndIcons() {\n // const uiIconsPath = path.dirname(require.resolve(\"@ubnt/icons\"));\n const uiComponentsPath = path.dirname(require.resolve(\"@ubnt/ui-components\"));\n\n // // #############################################################################\n // // Fix package.json\n // // #############################################################################\n // const uiIconPkgJsonPath = path.resolve(uiIconsPath, \"./package.json\");\n // const uiIconPkgJson = JSON.parse(fs.readFileSync(uiIconPkgJsonPath, \"utf-8\"));\n\n // // Convert package from commonjs to module as it uses `exports` syntax but isn't marked as module thus the bundler\n // // opts out of certain optimizations\n // // Based on https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-move-my-commonjs-project-to-esm\n // delete uiIconPkgJson.main;\n // uiIconPkgJson.type = \"module\";\n // uiIconPkgJson.exports = {\n // \".\": \"./index.js\",\n // \"./*\": \"./*.js\",\n // };\n\n // // Mark that package doesn't have side-effects, it already had this but, just in case attempt to add it again\n // uiIconPkgJson.sideEffects = false;\n\n // // Update the file\n // fs.writeFileSync(uiIconPkgJsonPath, JSON.stringify(uiIconPkgJson, null, 2));\n\n // // #############################################################################\n // // Reimplement index.js file, as it reimplements same icon instead of re-exporting it, thus creating duplicate code\n // // So it was:\n // // const a = /* ...*/\n // // const b = /* ...*/\n // // exports { a as UiIconA, b as UiIconB };\n // //\n // // But it should be:\n // // export {default as UiIconA} from './UiIconA.js';\n // // export {default as UiIconB} from './UiIconB.js';\n // //\n // // To fix that we list all icon files and create a index.js from the ground where a re-export things\n // // #############################################################################\n // // Find all icon files - right now all files that end with .js\n // const uiIconsFilesRaw = fs.readdirSync(uiIconsPath);\n // const filesToExclude = [\"index.js\"];\n // const uiIconsFiles = uiIconsFilesRaw.filter(\n // (file) => file.endsWith(\".js\") && !filesToExclude.includes(file),\n // );\n\n // // Create content of new file\n // const newIndexJs = uiIconsFiles\n // .map((fileWithExtension) => {\n // const file = path.parse(fileWithExtension).name;\n // return `export {default as ${file}} from \"./${fileWithExtension}\";`;\n // })\n // .join(\"\\n\");\n\n // // Overwrite the current file\n // fs.writeFileSync(path.join(uiIconsPath, \"index.js\"), newIndexJs);\n\n // // #############################################################################\n // // Fix @ubnt/ui-components package.json\n // // #############################################################################\n // const uiComponentsPkgJsonPath = path.resolve(\n // uiComponentsIconsPath,\n // \"./package.json\",\n // );\n // const uiComponentsPkgJson = JSON.parse(\n // fs.readFileSync(uiComponentsPkgJsonPath, \"utf-8\"),\n // );\n\n // // Convert package from commonjs to module as it uses `exports` syntax but isn't marked as module thus the bundler\n // // opts out of certain optimizations\n // // Based on https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-move-my-commonjs-project-to-esm\n // // delete uiComponentsPkgJson.main;\n // // \"main\": \"index.js\",\n // uiComponentsPkgJson.type = \"module\";\n // // uiComponentsPkgJson.exports = {\n // // \".\": \"./index.js\",\n // // \"./*\": \"*/index.js\",\n // // \"./styles/normalize.css\": \"./styles/normalize.css\"\n // // };\n\n // // Update the file\n // fs.writeFileSync(\n // uiComponentsPkgJsonPath,\n // JSON.stringify(uiComponentsPkgJson, null, 2),\n // );\n\n // #############################################################################\n // Replace `@ubnt/ui-components/docs/helpers/style-inject.es.js` with our own SSR compatible version\n // #############################################################################\n // Using mjs version as it doesn't have extra unneeded module-->cjs fluff\n const ourStyleInjectPath = path.resolve(__dirname, \"./ssr/style-inject.mjs\");\n const originalStyleInjectPath = path.resolve(\n uiComponentsPath,\n \"./docs/helpers/style-inject.es.js\",\n );\n // FIXME: minify our file\n fs.copyFileSync(ourStyleInjectPath, originalStyleInjectPath);\n\n // #############################################################################\n // Transform all `@ubnt/ui-components/**/*.module.css.js` files\n // #############################################################################\n const files = globSync(\"**/*.module.css.js\", {\n cwd: uiComponentsPath,\n absolute: true,\n });\n\n for (const file of files) {\n const code = fs.readFileSync(path.resolve(file), { encoding: \"utf-8\" });\n if (!code) {\n throw new Error(`Failed to read file: ${file}`);\n }\n const output = transformSync(code, {\n plugins: [transformCssModule],\n filename: file,\n // Ignore .babelrc and babel.config.js for isolate testing of transformation\n babelrc: false,\n configFile: false,\n sourceMaps: false, // Disable source maps for easier comparison\n })?.code;\n if (!output) {\n throw new Error(`Failed to transform file: ${file}`);\n }\n fs.writeFileSync(file, output, { encoding: \"utf-8\" });\n }\n}\n"],"names":["patchUiComponentsAndIcons","uiComponentsPath","path","dirname","require","resolve","ourStyleInjectPath","__dirname","originalStyleInjectPath","fs","copyFileSync","files","globSync","cwd","absolute","file","code","readFileSync","encoding","Error","output","transformSync","plugins","transformCssModule","filename","babelrc","configFile","sourceMaps","writeFileSync"],"mappings":";;;;;;AAaA,SAAwBA,yBAA4BA,CAAA,EAAA;EAElD,MAAMC,mBAAmBC,IAAK,CAAAC,OAAA,CAAQC,OAAQ,CAAAC,OAAA,CAAQ,qBAAqB,CAAC,CAAA;EAwF5E,MAAMC,kBAAqB,GAAAJ,IAAA,CAAKG,OAAQ,CAAAE,SAAA,EAAW,wBAAwB,CAAA;EAC3E,MAAMC,0BAA0BN,IAAK,CAAAG,OAAA,CACnCJ,gBAAA,EACA,mCAAA,CACF;EAEGQ,EAAA,CAAAC,YAAA,CAAaJ,oBAAoBE,uBAAuB,CAAA;EAKrD,MAAAG,KAAA,GAAQC,KAAS,oBAAsB,EAAA;IAC3CC,GAAK,EAAAZ,gBAAA;IACLa,QAAU,EAAA;EAAA,CACX,CAAA;EAED,KAAA,MAAWC,QAAQJ,KAAO,EAAA;IAClB,MAAAK,IAAA,GAAOP,EAAG,CAAAQ,YAAA,CAAaf,IAAK,CAAAG,OAAA,CAAQU,IAAI,CAAG,EAAA;MAAEG,QAAU,EAAA;IAAA,CAAS,CAAA;IACtE,IAAI,CAACF,IAAM,EAAA;MACT,MAAM,IAAIG,KAAA,CAAM,wBAAwBJ,IAAI,EAAE,CAAA;IAChD;IACM,MAAAK,MAAA,GAASC,cAAcL,IAAM,EAAA;MACjCM,OAAA,EAAS,CAACC,kBAAkB,CAAA;MAC5BC,QAAU,EAAAT,IAAA;MAAA;MAEVU,OAAS,EAAA,KAAA;MACTC,UAAY,EAAA,KAAA;MACZC,UAAY,EAAA;MAAA;IACb,CAAA,CAAG,EAAAX,IAAA;IACJ,IAAI,CAACI,MAAQ,EAAA;MACX,MAAM,IAAID,KAAA,CAAM,6BAA6BJ,IAAI,EAAE,CAAA;IACrD;IACAN,EAAA,CAAGmB,cAAcb,IAAM,EAAAK,MAAA,EAAQ;MAAEF,QAAA,EAAU;KAAS,CAAA;EACtD;AACF;"}
|