@teambit/ui 0.0.1047 → 0.0.1049
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/artifacts/ui-bundle/.hash +1 -0
- package/artifacts/ui-bundle/public/bit/asset-manifest.json +17 -0
- package/artifacts/ui-bundle/public/bit/index.html +1 -0
- package/artifacts/ui-bundle/public/bit/service-worker.js +1 -0
- package/artifacts/ui-bundle/public/bit/static/css/993.01dc88ad.css +1 -0
- package/artifacts/ui-bundle/public/bit/static/js/993.627d063a.js +683 -0
- package/artifacts/ui-bundle/public/bit/static/js/993.627d063a.js.LICENSE.txt +237 -0
- package/artifacts/ui-bundle/public/bit/static/js/main.93c00764.js +1 -0
- package/artifacts/ui-bundle/public/bit/static/js/runtime-main.ccd79175.js +1 -0
- package/artifacts/ui-bundle/public/bit/workbox-67feafc0.js +1 -0
- package/dist/bundle-ui.task.d.ts +22 -0
- package/dist/bundle-ui.task.js +97 -0
- package/dist/bundle-ui.task.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -1
- package/dist/{preview-1683084947241.js → preview-1683430915272.js} +2 -2
- package/dist/ui.main.runtime.d.ts +2 -1
- package/dist/ui.main.runtime.js +10 -3
- package/dist/ui.main.runtime.js.map +1 -1
- package/dist/webpack/webpack.base.config.d.ts +1 -1
- package/dist/webpack/webpack.base.config.js +2 -2
- package/dist/webpack/webpack.base.config.js.map +1 -1
- package/dist/webpack/webpack.browser.config.d.ts +1 -1
- package/dist/webpack/webpack.browser.config.js +5 -5
- package/dist/webpack/webpack.browser.config.js.map +1 -1
- package/package-tar/teambit-ui-0.0.1049.tgz +0 -0
- package/package.json +17 -15
- package/webpack/webpack.base.config.ts +2 -2
- package/webpack/webpack.browser.config.ts +5 -5
- package/package-tar/teambit-ui-0.0.1047.tgz +0 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*!
|
|
8
|
+
Copyright (c) 2018 Jed Watson.
|
|
9
|
+
Licensed under the MIT License (MIT), see
|
|
10
|
+
http://jedwatson.github.io/classnames
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/*!
|
|
14
|
+
Copyright (c) 2017 Jed Watson.
|
|
15
|
+
Licensed under the MIT License (MIT), see
|
|
16
|
+
http://jedwatson.github.io/classnames
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/*!
|
|
20
|
+
Copyright (c) 2018 Jed Watson.
|
|
21
|
+
Licensed under the MIT License (MIT), see
|
|
22
|
+
http://jedwatson.github.io/classnames
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/*!
|
|
26
|
+
* The buffer module from node.js, for the browser.
|
|
27
|
+
*
|
|
28
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
29
|
+
* @license MIT
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/*!
|
|
33
|
+
* The buffer module from node.js, for the browser.
|
|
34
|
+
*
|
|
35
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
36
|
+
* @license MIT
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/*!
|
|
40
|
+
* UAParser.js v0.7.24
|
|
41
|
+
* Lightweight JavaScript-based User-Agent string parser
|
|
42
|
+
* https://github.com/faisalman/ua-parser-js
|
|
43
|
+
*
|
|
44
|
+
* Copyright © 2012-2021 Faisal Salman <f@faisalman.com>
|
|
45
|
+
* Licensed under MIT License
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/*!
|
|
49
|
+
* XRegExp 4.0.0
|
|
50
|
+
* <xregexp.com>
|
|
51
|
+
* Steven Levithan (c) 2007-2017 MIT License
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
/*!
|
|
55
|
+
* XRegExp Unicode Base 4.0.0
|
|
56
|
+
* <xregexp.com>
|
|
57
|
+
* Steven Levithan (c) 2008-2017 MIT License
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/*!
|
|
61
|
+
* XRegExp Unicode Blocks 4.0.0
|
|
62
|
+
* <xregexp.com>
|
|
63
|
+
* Steven Levithan (c) 2010-2017 MIT License
|
|
64
|
+
* Unicode data by Mathias Bynens <mathiasbynens.be>
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
/*!
|
|
68
|
+
* XRegExp Unicode Categories 4.0.0
|
|
69
|
+
* <xregexp.com>
|
|
70
|
+
* Steven Levithan (c) 2010-2017 MIT License
|
|
71
|
+
* Unicode data by Mathias Bynens <mathiasbynens.be>
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
/*!
|
|
75
|
+
* XRegExp Unicode Properties 4.0.0
|
|
76
|
+
* <xregexp.com>
|
|
77
|
+
* Steven Levithan (c) 2012-2017 MIT License
|
|
78
|
+
* Unicode data by Mathias Bynens <mathiasbynens.be>
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
/*!
|
|
82
|
+
* XRegExp Unicode Scripts 4.0.0
|
|
83
|
+
* <xregexp.com>
|
|
84
|
+
* Steven Levithan (c) 2010-2017 MIT License
|
|
85
|
+
* Unicode data by Mathias Bynens <mathiasbynens.be>
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
/*!
|
|
89
|
+
* XRegExp.build 4.0.0
|
|
90
|
+
* <xregexp.com>
|
|
91
|
+
* Steven Levithan (c) 2012-2017 MIT License
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
/*!
|
|
95
|
+
* XRegExp.matchRecursive 4.0.0
|
|
96
|
+
* <xregexp.com>
|
|
97
|
+
* Steven Levithan (c) 2009-2017 MIT License
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/*!
|
|
101
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
102
|
+
*
|
|
103
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
104
|
+
* Released under the MIT License.
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
/*!
|
|
108
|
+
* isobject <https://github.com/jonschlinkert/isobject>
|
|
109
|
+
*
|
|
110
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
111
|
+
* Released under the MIT License.
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/*!
|
|
115
|
+
* regjsgen 0.5.2
|
|
116
|
+
* Copyright 2014-2020 Benjamin Tan <https://ofcr.se/>
|
|
117
|
+
* Available under the MIT license <https://github.com/bnjmnt4n/regjsgen/blob/master/LICENSE-MIT.txt>
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/*!
|
|
121
|
+
* shallow-clone <https://github.com/jonschlinkert/shallow-clone>
|
|
122
|
+
*
|
|
123
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
124
|
+
* Released under the MIT License.
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
/*! *****************************************************************************
|
|
128
|
+
Copyright (C) Microsoft. All rights reserved.
|
|
129
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
130
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
131
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
132
|
+
|
|
133
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
134
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
135
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
136
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
137
|
+
|
|
138
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
139
|
+
and limitations under the License.
|
|
140
|
+
***************************************************************************** */
|
|
141
|
+
|
|
142
|
+
/*! *****************************************************************************
|
|
143
|
+
Copyright (c) Microsoft Corporation.
|
|
144
|
+
|
|
145
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
146
|
+
purpose with or without fee is hereby granted.
|
|
147
|
+
|
|
148
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
149
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
150
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
151
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
152
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
153
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
154
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
155
|
+
***************************************************************************** */
|
|
156
|
+
|
|
157
|
+
/*! https://mths.be/punycode v1.3.2 by @mathias */
|
|
158
|
+
|
|
159
|
+
/*! https://mths.be/regenerate v1.4.2 by @mathias | MIT license */
|
|
160
|
+
|
|
161
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @license
|
|
165
|
+
* Lodash <https://lodash.com/>
|
|
166
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
167
|
+
* Released under MIT license <https://lodash.com/license>
|
|
168
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
169
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
174
|
+
*
|
|
175
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
176
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
177
|
+
* @namespace
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* React Router DOM v6.3.0
|
|
183
|
+
*
|
|
184
|
+
* Copyright (c) Remix Software Inc.
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the MIT license found in the
|
|
187
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
188
|
+
*
|
|
189
|
+
* @license MIT
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* React Router v6.3.0
|
|
194
|
+
*
|
|
195
|
+
* Copyright (c) Remix Software Inc.
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the MIT license found in the
|
|
198
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
199
|
+
*
|
|
200
|
+
* @license MIT
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
/** @license React v0.20.2
|
|
204
|
+
* scheduler.production.min.js
|
|
205
|
+
*
|
|
206
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the MIT license found in the
|
|
209
|
+
* LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/
|
|
211
|
+
|
|
212
|
+
/** @license React v17.0.2
|
|
213
|
+
* react-dom-server.browser.production.min.js
|
|
214
|
+
*
|
|
215
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the MIT license found in the
|
|
218
|
+
* LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/
|
|
220
|
+
|
|
221
|
+
/** @license React v17.0.2
|
|
222
|
+
* react-dom.production.min.js
|
|
223
|
+
*
|
|
224
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the MIT license found in the
|
|
227
|
+
* LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/
|
|
229
|
+
|
|
230
|
+
/** @license React v17.0.2
|
|
231
|
+
* react.production.min.js
|
|
232
|
+
*
|
|
233
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
234
|
+
*
|
|
235
|
+
* This source code is licensed under the MIT license found in the
|
|
236
|
+
* LICENSE file in the root directory of this source tree.
|
|
237
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_teambit_legacy=self.webpackChunk_teambit_legacy||[]).push([[179],{65085:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class s extends Error{constructor(){super(),(0,i().default)(this,"isUserError",void 0),this.name=this.constructor.name,this.isUserError=!0}}e.default=s},46587:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=r(n(65085));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends s().default{constructor(t){super(),(0,i().default)(this,"originalError",void 0),this.originalError=t}}e.default=o},89845:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(52007));return i=function(){return t},t}function s(){const t=r(n(49934));return s=function(){return t},t}function o(){const t=n(53665);return o=function(){return t},t}function a(t,e){return"undefined"!==typeof e?e:t.getHeadRegardlessOfLane()}async function c(t){const{repo:e,modelComponent:n,throws:r,versionObjects:i,startFrom:s,stopAt:o}=t,c=a(n,s);if(!c)return[];return d(await p({repo:e,modelComponent:n,throws:r,versionObjects:i,heads:[c]}),c,o).map((t=>t.hash))}n(33676),Object.defineProperty(e,"__esModule",{value:!0}),e.getAllVersionHashes=c,e.getAllVersionHashesMemoized=void 0,e.getAllVersionParents=p,e.getAllVersionsInfo=async function({modelComponent:t,repo:e,throws:n=!0,versionObjects:r,startFrom:i,stopAt:c}){var u;const p=[],d=async t=>{if(!r&&!e)throw new TypeError("getAllVersionsInfo expect to get either repo or versionObjects");const n=null===r||void 0===r?void 0:r.find((e=>e.hash().isEqual(t)));return n||(e?await t.load(e):void 0)},l=a(t,i);if(!l)return p;const j=null===(u=t.getHead())||void 0===u?void 0:u.toString();let _=l.toString()===j;const f={ref:l,tag:t.getTagOfRefIfExists(l),parents:[],onLane:!_},S=t=>Boolean(null===c||void 0===c?void 0:c.find((e=>e.isEqual(t)))),h=await d(l);if(h){if(S(h.hash()))return[];f.version=h,f.parents=h.parents}else if(f.error=new(o().HeadNotFound)(t.id(),l.toString()),n)throw f.error;p.push(f);const y=async e=>{await(0,s().default)(e.parents,(async r=>{if(S(r))return;if(i=r,Boolean(p.find((t=>t.ref.isEqual(i)))))return;var i;const s=await d(r);_||(_=(null===s||void 0===s?void 0:s._hash)===j);const a={ref:r,tag:t.getTagOfRefIfExists(r),isPartOfHistory:!0,parents:(null===s||void 0===s?void 0:s.parents)||[],onLane:!_};if(s)a.version=s;else if(a.error=a.tag?new(o().VersionNotFound)(a.tag,t.id()):new(o().ParentNotFound)(t.id(),e.hash().toString(),r.toString()),n)throw a.error;p.push(a),s&&await y(s)}))};h&&await y(h);return p},e.getSubsetOfVersionParents=d,e.getVersionParentsFromVersion=l,e.hasVersionByRef=async function(t,e,n,r){return(await c({modelComponent:t,repo:n,startFrom:r})).some((t=>t.isEqual(e)))};const u=(0,i().default)(c,{normalizer:t=>JSON.stringify(t[0]),promise:!0,maxAge:1});async function p({repo:t,modelComponent:e,heads:n,throws:r,versionObjects:i}){const o=await e.GetVersionHistory(t),a=[],c=t=>{const e=a.find((e=>e.hash.isEqual(t.hash)));e?Object.keys(e).forEach((n=>e[n]=t[n])):a.push(t)};if(await(0,s().default)(n,(async n=>{const{err:i,added:s}=await e.populateVersionHistoryIfMissingGracefully(t,o,n);if(i){if(r){const t=new Error(i.message);throw i.stack=`${i.stack}\nCurrent stack ${t.stack}`,i}s&&s.forEach((t=>c(t)))}else o.versions.forEach((t=>c(t)))})),i){i.map((t=>l(t))).forEach((t=>c(t)))}return a}function d(t,e,n){const r=[],i=t=>Boolean(null===n||void 0===n?void 0:n.find((e=>e.isEqual(t)))),s=e=>t.find((t=>t.hash.isEqual(e))),o=t=>{r.push(t),t.parents.forEach((t=>{if(i(t))return;if(e=t,Boolean(r.find((t=>t.hash.isEqual(e)))))return;var e;const n=s(t);n&&o(n)}))},a=s(e);return!a||i(a.hash)?[]:(o(a),r)}function l(t){var e,n;return{hash:t.hash(),parents:t.parents,unrelated:null===(e=t.unrelated)||void 0===e?void 0:e.head,squashed:null===(n=t.squashed)||void 0===n?void 0:n.previousParents}}e.getAllVersionHashesMemoized=u},88380:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(65085));return i=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class s extends i().default{}e.default=s},5092:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=n(91576);return s=function(){return t},t}function o(){const t=r(n(39226));return o=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class a extends s().BitError{constructor(t,e){super(e?`error: the component dependency "${o().default.bold(t)}" required by "${o().default.bold(e)}" was not found`:`error: component "${o().default.bold(t)}" was not found`),(0,i().default)(this,"id",void 0),(0,i().default)(this,"dependentId",void 0),(0,i().default)(this,"code",void 0),this.code=127,this.id=t,this.dependentId=e}}e.default=a},91271:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=r(n(65085));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends s().default{constructor(t,e){super(),(0,i().default)(this,"id",void 0),(0,i().default)(this,"version",void 0),(0,i().default)(this,"showDoctorMessage",void 0),this.id=t,this.version=e,this.showDoctorMessage=!0}}e.default=o},9464:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=r(n(65085));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends s().default{constructor(t){super(),(0,i().default)(this,"msg",void 0),this.msg=t}}e.default=o},22582:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=r(n(65085));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends s().default{constructor(t,e,n,r){super(),(0,i().default)(this,"id",void 0),(0,i().default)(this,"version",void 0),(0,i().default)(this,"originalHash",void 0),(0,i().default)(this,"currentHash",void 0),(0,i().default)(this,"showDoctorMessage",void 0),this.id=t,this.version=e,this.originalHash=n,this.currentHash=r,this.showDoctorMessage=!0}}e.default=o},29900:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=r(n(65085));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends s().default{constructor(t){super(),(0,i().default)(this,"hash",void 0),(0,i().default)(this,"showDoctorMessage",void 0),this.hash=t,this.showDoctorMessage=!0}}e.default=o},56815:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=n(91576);return i=function(){return t},t}function s(){const t=r(n(39226));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends i().BitError{constructor(t,e){super(`head snap ${s().default.bold(e)} was not found for a component ${s().default.bold(t)}`)}}e.default=o},53665:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(88380));return i=function(){return t},t}function s(){const t=r(n(5092));return s=function(){return t},t}function o(){const t=r(n(91271));return o=function(){return t},t}function a(){const t=r(n(9464));return a=function(){return t},t}function c(){const t=r(n(22582));return c=function(){return t},t}function u(){const t=r(n(29900));return u=function(){return t},t}function p(){const t=r(n(56815));return p=function(){return t},t}function d(){const t=r(n(43621));return d=function(){return t},t}function l(){const t=r(n(89118));return l=function(){return t},t}function j(){const t=r(n(73384));return j=function(){return t},t}function _(){const t=r(n(15532));return _=function(){return t},t}function f(){const t=r(n(14821));return f=function(){return t},t}function S(){const t=r(n(81854));return S=function(){return t},t}function h(){const t=r(n(91962));return h=function(){return t},t}function y(){const t=r(n(73032));return y=function(){return t},t}function g(){const t=r(n(20946));return g=function(){return t},t}function E(){const t=r(n(96966));return E=function(){return t},t}function x(){const t=r(n(49935));return x=function(){return t},t}function m(){const t=r(n(48145));return m=function(){return t},t}function v(){const t=n(59768);return v=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BitNotInScope",{enumerable:!0,get:function(){return i().default}}),Object.defineProperty(e,"ComponentNotFound",{enumerable:!0,get:function(){return s().default}}),Object.defineProperty(e,"CorruptedComponent",{enumerable:!0,get:function(){return o().default}}),Object.defineProperty(e,"CyclicDependencies",{enumerable:!0,get:function(){return a().default}}),Object.defineProperty(e,"HashMismatch",{enumerable:!0,get:function(){return c().default}}),Object.defineProperty(e,"HashNotFound",{enumerable:!0,get:function(){return u().default}}),Object.defineProperty(e,"HeadNotFound",{enumerable:!0,get:function(){return p().default}}),Object.defineProperty(e,"InvalidIndexJson",{enumerable:!0,get:function(){return d().default}}),Object.defineProperty(e,"MergeConflict",{enumerable:!0,get:function(){return l().default}}),Object.defineProperty(e,"MergeConflictOnRemote",{enumerable:!0,get:function(){return j().default}}),Object.defineProperty(e,"OutdatedIndexJson",{enumerable:!0,get:function(){return _().default}}),Object.defineProperty(e,"ParentNotFound",{enumerable:!0,get:function(){return f().default}}),Object.defineProperty(e,"ResolutionException",{enumerable:!0,get:function(){return S().default}}),Object.defineProperty(e,"ScopeAlreadyExists",{enumerable:!0,get:function(){return h().default}}),Object.defineProperty(e,"ScopeJsonNotFound",{enumerable:!0,get:function(){return y().default}}),Object.defineProperty(e,"ScopeNotFound",{enumerable:!0,get:function(){return g().default}}),Object.defineProperty(e,"SourceNotFound",{enumerable:!0,get:function(){return E().default}}),Object.defineProperty(e,"VersionAlreadyExists",{enumerable:!0,get:function(){return x().default}}),Object.defineProperty(e,"VersionNotFound",{enumerable:!0,get:function(){return m().default}}),Object.defineProperty(e,"VersionNotFoundOnFS",{enumerable:!0,get:function(){return v().VersionNotFoundOnFS}})},43621:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=r(n(65085));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends s().default{constructor(t,e){super(),(0,i().default)(this,"path",void 0),(0,i().default)(this,"showDoctorMessage",void 0),this.path=t,this.message=e,this.showDoctorMessage=!0}}e.default=o},73384:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=r(n(39226));return s=function(){return t},t}function o(){const t=n(91576);return o=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class a extends o().BitError{constructor(t,e){let n="";t.length&&(n+=`error: merge conflict occurred when exporting the component(s) ${t.map((t=>`${s().default.bold(t.id)} (version(s): ${t.versions.join(", ")})`)).join(", ")} to the remote scope.\nto resolve this conflict and merge your remote and local changes, please do the following:\n1) bit reset [component-pattern] [--all]\n2) bit checkout head [component-pattern]\nonce your changes are merged with the new remote version, please tag and export a new version of the component to the remote scope.`),e.length&&(n+=`error: merge error occurred when exporting the component(s) ${e.map((t=>`${s().default.bold(t.id)}${t.lane?` (lane: ${t.lane})`:""}`)).join(", ")} to the remote scope.\nto resolve this error, please re-import the above components.\nif the component is up to date, run "bit status" to make sure it's not merge-pending`),super(n),(0,i().default)(this,"code",void 0),this.code=131}}e.default=a},89118:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=n(91576);return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends s().BitError{constructor(t,e){super(`error: merge conflict occurred while importing the component ${t}. conflict version(s): ${e.join(", ")}\nto resolve it and merge your local and remote changes, please do the following:\n1) bit reset ${t}\n2) bit import\n3) bit checkout head ${t}\nonce your changes are merged with the new remote version, you can tag and export a new version of the component to the remote scope.`),(0,i().default)(this,"id",void 0),(0,i().default)(this,"versions",void 0),this.id=t,this.versions=e}}e.default=o},15532:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class s extends Error{constructor(t,e){super(),(0,i().default)(this,"id",void 0),(0,i().default)(this,"indexJsonPath",void 0),(0,i().default)(this,"showDoctorMessage",void 0),this.id=t,this.indexJsonPath=e,this.showDoctorMessage=!0}}e.default=s},14821:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=n(91576);return i=function(){return t},t}function s(){const t=r(n(39226));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends i().BitError{constructor(t,e,n){super(`component ${s().default.bold(t)} missing data. parent ${n} of version ${e} was not found.`),this.id=t,this.versionHash=e,this.parentHash=n}}e.default=o},81854:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=r(n(46587));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends s().default{constructor(t,e){super(t),(0,i().default)(this,"filePath",void 0),(0,i().default)(this,"showDoctorMessage",void 0),this.filePath=e,this.showDoctorMessage=!0}}e.default=o},91962:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(65085));return i=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class s extends i().default{}e.default=s},73032:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=r(n(65085));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends s().default{constructor(t){super(),(0,i().default)(this,"path",void 0),(0,i().default)(this,"showDoctorMessage",void 0),this.path=t,this.showDoctorMessage=!0}}e.default=o},20946:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=r(n(65085));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends s().default{constructor(t){super(),(0,i().default)(this,"scopePath",void 0),this.scopePath=t}}e.default=o},96966:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(65085));return i=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class s extends i().default{}e.default=s},49935:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=r(n(9589));return i=function(){return t},t}function s(){const t=r(n(65085));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends s().default{constructor(t,e){super(),(0,i().default)(this,"version",void 0),(0,i().default)(this,"componentId",void 0),(0,i().default)(this,"showDoctorMessage",void 0),this.version=t,this.componentId=e,this.showDoctorMessage=!0}}e.default=o},59768:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=n(91576);return i=function(){return t},t}function s(){const t=r(n(39226));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.VersionNotFoundOnFS=void 0;class o extends i().BitError{constructor(t,e){super(`error: version "${s().default.bold(t)}" of component ${s().default.bold(e)} was not found on the filesystem.\ntry running "bit import". if it doesn't help, try running "bit import ${e} --objects"`)}}e.VersionNotFoundOnFS=o},48145:(t,e,n)=>{"use strict";var r=n(95634);function i(){const t=n(91576);return i=function(){return t},t}function s(){const t=r(n(39226));return s=function(){return t},t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;class o extends i().BitError{constructor(t,e){super(`error: version "${s().default.bold(t)}" of component ${s().default.bold(e)} was not found.`)}}e.default=o},42471:(t,e,n)=>{"use strict";var r=n(18308);function i(){const t=n(53426);return i=function(){return t},t}n(23728),n(21720),Object.defineProperty(e,"__esModule",{value:!0}),e.auto=function(t){return a(t,s)},e.cr=function(t){return a(t,"\r")},e.crlf=function(t){return a(t,"\r\n")},e.lf=function(t){return a(t,"\n")};const s="undefined"!==typeof r&&"win32"===r.platform?"\r\n":"\n",o=/\r\n|\r|\n/g;function a(t,e){if(Buffer.isBuffer(t)){if((0,i().isBinaryFileSync)(t))return t;const n=t.toString(),r=n.replace(o,e);return n!==r?Buffer.from(r):t}return t.toString().replace(o,e)}},61172:(t,e,n)=>{"use strict";function r(){const t=n(35632);return r=function(){return t},t}function i(){const t=n(58409);return i=function(){return t},t}function s(t){return["major","premajor","minor","preminor","patch","prepatch","prerelease"].includes(t)}function o(t){return["patch","minor","major","prerelease"].includes(t)}function a(t){if(!o(t))throw new Error(`the release-type "${t}" is not supported`)}function c(t){if(t){const e=(0,r().valid)(t);if(!e)throw new(i().InvalidVersion)(t);return e}}Object.defineProperty(e,"__esModule",{value:!0}),e.getLatestVersion=function(t){const e=(0,r().maxSatisfying)(t,"*",{includePrerelease:!0});if(!e)throw new Error(`unable to find the latest version from ${t.join(", ")}`);return e},e.getValidVersionOrReleaseType=function(t){if(s(t)){const e=t;return a(e),{releaseType:e}}return{exactVersion:c(t)}},e.isReleaseTypeSupported=o,e.isStrReleaseType=s,e.throwForUnsupportedReleaseType=a,e.validateVersion=c},23670:(t,e,n)=>{var r={"./Binary_Property/ASCII.js":25786,"./Binary_Property/ASCII_Hex_Digit.js":66366,"./Binary_Property/Alphabetic.js":80470,"./Binary_Property/Any.js":98920,"./Binary_Property/Assigned.js":46383,"./Binary_Property/Bidi_Control.js":36550,"./Binary_Property/Bidi_Mirrored.js":18678,"./Binary_Property/Case_Ignorable.js":69927,"./Binary_Property/Cased.js":84961,"./Binary_Property/Changes_When_Casefolded.js":94115,"./Binary_Property/Changes_When_Casemapped.js":21568,"./Binary_Property/Changes_When_Lowercased.js":75702,"./Binary_Property/Changes_When_NFKC_Casefolded.js":74524,"./Binary_Property/Changes_When_Titlecased.js":2028,"./Binary_Property/Changes_When_Uppercased.js":33605,"./Binary_Property/Dash.js":89161,"./Binary_Property/Default_Ignorable_Code_Point.js":72046,"./Binary_Property/Deprecated.js":2131,"./Binary_Property/Diacritic.js":83939,"./Binary_Property/Emoji.js":30976,"./Binary_Property/Emoji_Component.js":92869,"./Binary_Property/Emoji_Modifier.js":9890,"./Binary_Property/Emoji_Modifier_Base.js":34234,"./Binary_Property/Emoji_Presentation.js":94095,"./Binary_Property/Extended_Pictographic.js":3660,"./Binary_Property/Extender.js":35956,"./Binary_Property/Grapheme_Base.js":22034,"./Binary_Property/Grapheme_Extend.js":18264,"./Binary_Property/Hex_Digit.js":55551,"./Binary_Property/IDS_Binary_Operator.js":60546,"./Binary_Property/IDS_Trinary_Operator.js":55563,"./Binary_Property/ID_Continue.js":73246,"./Binary_Property/ID_Start.js":58201,"./Binary_Property/Ideographic.js":31118,"./Binary_Property/Join_Control.js":24182,"./Binary_Property/Logical_Order_Exception.js":83153,"./Binary_Property/Lowercase.js":37066,"./Binary_Property/Math.js":64873,"./Binary_Property/Noncharacter_Code_Point.js":64163,"./Binary_Property/Pattern_Syntax.js":29364,"./Binary_Property/Pattern_White_Space.js":22492,"./Binary_Property/Quotation_Mark.js":19254,"./Binary_Property/Radical.js":40630,"./Binary_Property/Regional_Indicator.js":87420,"./Binary_Property/Sentence_Terminal.js":44818,"./Binary_Property/Soft_Dotted.js":52419,"./Binary_Property/Terminal_Punctuation.js":49239,"./Binary_Property/Unified_Ideograph.js":3290,"./Binary_Property/Uppercase.js":68438,"./Binary_Property/Variation_Selector.js":36292,"./Binary_Property/White_Space.js":67055,"./Binary_Property/XID_Continue.js":80558,"./Binary_Property/XID_Start.js":31270,"./General_Category/Cased_Letter.js":4036,"./General_Category/Close_Punctuation.js":79962,"./General_Category/Connector_Punctuation.js":36308,"./General_Category/Control.js":80961,"./General_Category/Currency_Symbol.js":52583,"./General_Category/Dash_Punctuation.js":55095,"./General_Category/Decimal_Number.js":88652,"./General_Category/Enclosing_Mark.js":1348,"./General_Category/Final_Punctuation.js":42753,"./General_Category/Format.js":98392,"./General_Category/Initial_Punctuation.js":26165,"./General_Category/Letter.js":54674,"./General_Category/Letter_Number.js":87988,"./General_Category/Line_Separator.js":67249,"./General_Category/Lowercase_Letter.js":85180,"./General_Category/Mark.js":46944,"./General_Category/Math_Symbol.js":39713,"./General_Category/Modifier_Letter.js":16494,"./General_Category/Modifier_Symbol.js":93080,"./General_Category/Nonspacing_Mark.js":69448,"./General_Category/Number.js":28240,"./General_Category/Open_Punctuation.js":43017,"./General_Category/Other.js":42305,"./General_Category/Other_Letter.js":13108,"./General_Category/Other_Number.js":4664,"./General_Category/Other_Punctuation.js":33840,"./General_Category/Other_Symbol.js":26069,"./General_Category/Paragraph_Separator.js":9403,"./General_Category/Private_Use.js":73814,"./General_Category/Punctuation.js":2148,"./General_Category/Separator.js":34831,"./General_Category/Space_Separator.js":72411,"./General_Category/Spacing_Mark.js":54908,"./General_Category/Surrogate.js":61693,"./General_Category/Symbol.js":68771,"./General_Category/Titlecase_Letter.js":68482,"./General_Category/Unassigned.js":81316,"./General_Category/Uppercase_Letter.js":20800,"./Script/Adlam.js":59621,"./Script/Ahom.js":5845,"./Script/Anatolian_Hieroglyphs.js":98597,"./Script/Arabic.js":51033,"./Script/Armenian.js":49454,"./Script/Avestan.js":5077,"./Script/Balinese.js":33858,"./Script/Bamum.js":30661,"./Script/Bassa_Vah.js":88324,"./Script/Batak.js":31324,"./Script/Bengali.js":56155,"./Script/Bhaiksuki.js":82620,"./Script/Bopomofo.js":98070,"./Script/Brahmi.js":74517,"./Script/Braille.js":21138,"./Script/Buginese.js":72426,"./Script/Buhid.js":74213,"./Script/Canadian_Aboriginal.js":79249,"./Script/Carian.js":50662,"./Script/Caucasian_Albanian.js":61796,"./Script/Chakma.js":58730,"./Script/Cham.js":22917,"./Script/Cherokee.js":87136,"./Script/Chorasmian.js":37898,"./Script/Common.js":54355,"./Script/Coptic.js":93059,"./Script/Cuneiform.js":15634,"./Script/Cypriot.js":70699,"./Script/Cypro_Minoan.js":62378,"./Script/Cyrillic.js":53522,"./Script/Deseret.js":33189,"./Script/Devanagari.js":69358,"./Script/Dives_Akuru.js":41881,"./Script/Dogra.js":3942,"./Script/Duployan.js":55476,"./Script/Egyptian_Hieroglyphs.js":9023,"./Script/Elbasan.js":77203,"./Script/Elymaic.js":29446,"./Script/Ethiopic.js":54059,"./Script/Georgian.js":54214,"./Script/Glagolitic.js":21933,"./Script/Gothic.js":46586,"./Script/Grantha.js":44727,"./Script/Greek.js":60639,"./Script/Gujarati.js":76132,"./Script/Gunjala_Gondi.js":66453,"./Script/Gurmukhi.js":26083,"./Script/Han.js":53689,"./Script/Hangul.js":546,"./Script/Hanifi_Rohingya.js":1821,"./Script/Hanunoo.js":28251,"./Script/Hatran.js":2990,"./Script/Hebrew.js":90264,"./Script/Hiragana.js":66993,"./Script/Imperial_Aramaic.js":78958,"./Script/Inherited.js":57481,"./Script/Inscriptional_Pahlavi.js":49834,"./Script/Inscriptional_Parthian.js":46214,"./Script/Javanese.js":5408,"./Script/Kaithi.js":52554,"./Script/Kannada.js":85994,"./Script/Katakana.js":13888,"./Script/Kayah_Li.js":11412,"./Script/Kharoshthi.js":78968,"./Script/Khitan_Small_Script.js":84608,"./Script/Khmer.js":59365,"./Script/Khojki.js":23418,"./Script/Khudawadi.js":78945,"./Script/Lao.js":23139,"./Script/Latin.js":77077,"./Script/Lepcha.js":37088,"./Script/Limbu.js":84041,"./Script/Linear_A.js":51635,"./Script/Linear_B.js":61580,"./Script/Lisu.js":7287,"./Script/Lycian.js":33156,"./Script/Lydian.js":17186,"./Script/Mahajani.js":47147,"./Script/Makasar.js":74400,"./Script/Malayalam.js":34931,"./Script/Mandaic.js":26032,"./Script/Manichaean.js":46032,"./Script/Marchen.js":98602,"./Script/Masaram_Gondi.js":85213,"./Script/Medefaidrin.js":61109,"./Script/Meetei_Mayek.js":47486,"./Script/Mende_Kikakui.js":16942,"./Script/Meroitic_Cursive.js":65489,"./Script/Meroitic_Hieroglyphs.js":39539,"./Script/Miao.js":27784,"./Script/Modi.js":39623,"./Script/Mongolian.js":89855,"./Script/Mro.js":37510,"./Script/Multani.js":66203,"./Script/Myanmar.js":3701,"./Script/Nabataean.js":75359,"./Script/Nandinagari.js":54756,"./Script/New_Tai_Lue.js":40645,"./Script/Newa.js":99091,"./Script/Nko.js":28428,"./Script/Nushu.js":11026,"./Script/Nyiakeng_Puachue_Hmong.js":19109,"./Script/Ogham.js":72213,"./Script/Ol_Chiki.js":7322,"./Script/Old_Hungarian.js":95182,"./Script/Old_Italic.js":49738,"./Script/Old_North_Arabian.js":52788,"./Script/Old_Permic.js":18415,"./Script/Old_Persian.js":48071,"./Script/Old_Sogdian.js":94242,"./Script/Old_South_Arabian.js":70984,"./Script/Old_Turkic.js":25032,"./Script/Old_Uyghur.js":29488,"./Script/Oriya.js":86737,"./Script/Osage.js":53765,"./Script/Osmanya.js":85066,"./Script/Pahawh_Hmong.js":40989,"./Script/Palmyrene.js":35185,"./Script/Pau_Cin_Hau.js":21580,"./Script/Phags_Pa.js":20288,"./Script/Phoenician.js":50683,"./Script/Psalter_Pahlavi.js":38422,"./Script/Rejang.js":53401,"./Script/Runic.js":50790,"./Script/Samaritan.js":70211,"./Script/Saurashtra.js":33586,"./Script/Sharada.js":56475,"./Script/Shavian.js":81810,"./Script/Siddham.js":71662,"./Script/SignWriting.js":97143,"./Script/Sinhala.js":63103,"./Script/Sogdian.js":44859,"./Script/Sora_Sompeng.js":55865,"./Script/Soyombo.js":11933,"./Script/Sundanese.js":66575,"./Script/Syloti_Nagri.js":49044,"./Script/Syriac.js":65004,"./Script/Tagalog.js":35584,"./Script/Tagbanwa.js":46566,"./Script/Tai_Le.js":29752,"./Script/Tai_Tham.js":57397,"./Script/Tai_Viet.js":21063,"./Script/Takri.js":75303,"./Script/Tamil.js":5701,"./Script/Tangsa.js":49551,"./Script/Tangut.js":93734,"./Script/Telugu.js":17120,"./Script/Thaana.js":23029,"./Script/Thai.js":82820,"./Script/Tibetan.js":24600,"./Script/Tifinagh.js":4067,"./Script/Tirhuta.js":87504,"./Script/Toto.js":9388,"./Script/Ugaritic.js":14995,"./Script/Vai.js":1820,"./Script/Vithkuqi.js":27697,"./Script/Wancho.js":28885,"./Script/Warang_Citi.js":4174,"./Script/Yezidi.js":50460,"./Script/Yi.js":31235,"./Script/Zanabazar_Square.js":28895,"./Script_Extensions/Adlam.js":99023,"./Script_Extensions/Ahom.js":85079,"./Script_Extensions/Anatolian_Hieroglyphs.js":10596,"./Script_Extensions/Arabic.js":87707,"./Script_Extensions/Armenian.js":58282,"./Script_Extensions/Avestan.js":87868,"./Script_Extensions/Balinese.js":18191,"./Script_Extensions/Bamum.js":71495,"./Script_Extensions/Bassa_Vah.js":95626,"./Script_Extensions/Batak.js":66419,"./Script_Extensions/Bengali.js":29181,"./Script_Extensions/Bhaiksuki.js":32081,"./Script_Extensions/Bopomofo.js":75111,"./Script_Extensions/Brahmi.js":65954,"./Script_Extensions/Braille.js":82339,"./Script_Extensions/Buginese.js":90469,"./Script_Extensions/Buhid.js":74934,"./Script_Extensions/Canadian_Aboriginal.js":97238,"./Script_Extensions/Carian.js":76621,"./Script_Extensions/Caucasian_Albanian.js":451,"./Script_Extensions/Chakma.js":34577,"./Script_Extensions/Cham.js":45450,"./Script_Extensions/Cherokee.js":34693,"./Script_Extensions/Chorasmian.js":60176,"./Script_Extensions/Common.js":99467,"./Script_Extensions/Coptic.js":88001,"./Script_Extensions/Cuneiform.js":72033,"./Script_Extensions/Cypriot.js":68368,"./Script_Extensions/Cypro_Minoan.js":37573,"./Script_Extensions/Cyrillic.js":53329,"./Script_Extensions/Deseret.js":63152,"./Script_Extensions/Devanagari.js":89615,"./Script_Extensions/Dives_Akuru.js":96729,"./Script_Extensions/Dogra.js":11761,"./Script_Extensions/Duployan.js":1168,"./Script_Extensions/Egyptian_Hieroglyphs.js":49277,"./Script_Extensions/Elbasan.js":13527,"./Script_Extensions/Elymaic.js":12,"./Script_Extensions/Ethiopic.js":74984,"./Script_Extensions/Georgian.js":45560,"./Script_Extensions/Glagolitic.js":65389,"./Script_Extensions/Gothic.js":55639,"./Script_Extensions/Grantha.js":44689,"./Script_Extensions/Greek.js":73785,"./Script_Extensions/Gujarati.js":6625,"./Script_Extensions/Gunjala_Gondi.js":55422,"./Script_Extensions/Gurmukhi.js":93075,"./Script_Extensions/Han.js":29229,"./Script_Extensions/Hangul.js":64076,"./Script_Extensions/Hanifi_Rohingya.js":15597,"./Script_Extensions/Hanunoo.js":57480,"./Script_Extensions/Hatran.js":23967,"./Script_Extensions/Hebrew.js":98063,"./Script_Extensions/Hiragana.js":19744,"./Script_Extensions/Imperial_Aramaic.js":77672,"./Script_Extensions/Inherited.js":59071,"./Script_Extensions/Inscriptional_Pahlavi.js":8269,"./Script_Extensions/Inscriptional_Parthian.js":39233,"./Script_Extensions/Javanese.js":99934,"./Script_Extensions/Kaithi.js":76398,"./Script_Extensions/Kannada.js":29885,"./Script_Extensions/Katakana.js":26540,"./Script_Extensions/Kayah_Li.js":65033,"./Script_Extensions/Kharoshthi.js":73203,"./Script_Extensions/Khitan_Small_Script.js":16824,"./Script_Extensions/Khmer.js":18405,"./Script_Extensions/Khojki.js":82777,"./Script_Extensions/Khudawadi.js":45724,"./Script_Extensions/Lao.js":30617,"./Script_Extensions/Latin.js":38363,"./Script_Extensions/Lepcha.js":12840,"./Script_Extensions/Limbu.js":9908,"./Script_Extensions/Linear_A.js":32489,"./Script_Extensions/Linear_B.js":86402,"./Script_Extensions/Lisu.js":44919,"./Script_Extensions/Lycian.js":24184,"./Script_Extensions/Lydian.js":37012,"./Script_Extensions/Mahajani.js":50525,"./Script_Extensions/Makasar.js":90861,"./Script_Extensions/Malayalam.js":49833,"./Script_Extensions/Mandaic.js":98125,"./Script_Extensions/Manichaean.js":30787,"./Script_Extensions/Marchen.js":7549,"./Script_Extensions/Masaram_Gondi.js":13720,"./Script_Extensions/Medefaidrin.js":71501,"./Script_Extensions/Meetei_Mayek.js":43946,"./Script_Extensions/Mende_Kikakui.js":68869,"./Script_Extensions/Meroitic_Cursive.js":73706,"./Script_Extensions/Meroitic_Hieroglyphs.js":10671,"./Script_Extensions/Miao.js":98320,"./Script_Extensions/Modi.js":77742,"./Script_Extensions/Mongolian.js":74698,"./Script_Extensions/Mro.js":31305,"./Script_Extensions/Multani.js":81471,"./Script_Extensions/Myanmar.js":44696,"./Script_Extensions/Nabataean.js":38744,"./Script_Extensions/Nandinagari.js":25809,"./Script_Extensions/New_Tai_Lue.js":19881,"./Script_Extensions/Newa.js":27461,"./Script_Extensions/Nko.js":38249,"./Script_Extensions/Nushu.js":8072,"./Script_Extensions/Nyiakeng_Puachue_Hmong.js":45067,"./Script_Extensions/Ogham.js":80423,"./Script_Extensions/Ol_Chiki.js":92660,"./Script_Extensions/Old_Hungarian.js":53615,"./Script_Extensions/Old_Italic.js":61719,"./Script_Extensions/Old_North_Arabian.js":80790,"./Script_Extensions/Old_Permic.js":1427,"./Script_Extensions/Old_Persian.js":56343,"./Script_Extensions/Old_Sogdian.js":9016,"./Script_Extensions/Old_South_Arabian.js":25283,"./Script_Extensions/Old_Turkic.js":25949,"./Script_Extensions/Old_Uyghur.js":11076,"./Script_Extensions/Oriya.js":56585,"./Script_Extensions/Osage.js":74675,"./Script_Extensions/Osmanya.js":61198,"./Script_Extensions/Pahawh_Hmong.js":72129,"./Script_Extensions/Palmyrene.js":96073,"./Script_Extensions/Pau_Cin_Hau.js":24671,"./Script_Extensions/Phags_Pa.js":75074,"./Script_Extensions/Phoenician.js":7359,"./Script_Extensions/Psalter_Pahlavi.js":19682,"./Script_Extensions/Rejang.js":9574,"./Script_Extensions/Runic.js":2035,"./Script_Extensions/Samaritan.js":7199,"./Script_Extensions/Saurashtra.js":50361,"./Script_Extensions/Sharada.js":69475,"./Script_Extensions/Shavian.js":36413,"./Script_Extensions/Siddham.js":15787,"./Script_Extensions/SignWriting.js":40753,"./Script_Extensions/Sinhala.js":25158,"./Script_Extensions/Sogdian.js":99611,"./Script_Extensions/Sora_Sompeng.js":93307,"./Script_Extensions/Soyombo.js":13001,"./Script_Extensions/Sundanese.js":78326,"./Script_Extensions/Syloti_Nagri.js":79124,"./Script_Extensions/Syriac.js":1635,"./Script_Extensions/Tagalog.js":84988,"./Script_Extensions/Tagbanwa.js":43578,"./Script_Extensions/Tai_Le.js":9355,"./Script_Extensions/Tai_Tham.js":35324,"./Script_Extensions/Tai_Viet.js":72467,"./Script_Extensions/Takri.js":77576,"./Script_Extensions/Tamil.js":84735,"./Script_Extensions/Tangsa.js":11736,"./Script_Extensions/Tangut.js":75346,"./Script_Extensions/Telugu.js":34579,"./Script_Extensions/Thaana.js":25771,"./Script_Extensions/Thai.js":60443,"./Script_Extensions/Tibetan.js":88693,"./Script_Extensions/Tifinagh.js":58985,"./Script_Extensions/Tirhuta.js":25434,"./Script_Extensions/Toto.js":42687,"./Script_Extensions/Ugaritic.js":54563,"./Script_Extensions/Vai.js":38285,"./Script_Extensions/Vithkuqi.js":893,"./Script_Extensions/Wancho.js":99230,"./Script_Extensions/Warang_Citi.js":66695,"./Script_Extensions/Yezidi.js":86188,"./Script_Extensions/Yi.js":32256,"./Script_Extensions/Zanabazar_Square.js":10344,"./index.js":92446,"./unicode-version.js":59359};function i(t){var e=s(t);return n(e)}function s(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=s,t.exports=i,i.id=23670},591:()=>{},52009:()=>{},13731:()=>{},74112:()=>{}},t=>{t.O(0,[993],(()=>{return e=6945,t(t.s=e);var e}));t.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var a=r[o]={id:o,loaded:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.m=e,(()=>{var e=[];t.O=(r,o,n,a)=>{if(!o){var i=1/0;for(c=0;c<e.length;c++){for(var[o,n,a]=e[c],l=!0,f=0;f<o.length;f++)(!1&a||i>=a)&&Object.keys(t.O).every((e=>t.O[e](o[f])))?o.splice(f--,1):(l=!1,a<i&&(i=a));if(l){e.splice(c--,1);var u=n();void 0!==u&&(r=u)}}return r}a=a||0;for(var c=e.length;c>0&&e[c-1][2]>a;c--)e[c]=e[c-1];e[c]=[o,n,a]}})(),t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},(()=>{var e,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;t.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"===typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"===typeof o.then)return o}var a=Object.create(null);t.r(a);var i={};e=e||[null,r({}),r([]),r(r)];for(var l=2&n&&o;"object"==typeof l&&!~e.indexOf(l);l=r(l))Object.getOwnPropertyNames(l).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,t.d(a,i),a}})(),t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),t.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={252:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var n,a,[i,l,f]=o,u=0;if(i.some((r=>0!==e[r]))){for(n in l)t.o(l,n)&&(t.m[n]=l[n]);if(f)var c=f(t)}for(r&&r(o);u<i.length;u++)a=i[u],t.o(e,a)&&e[a]&&e[a][0](),e[i[u]]=0;return t.O(c)},o=self.webpackChunk_teambit_legacy=self.webpackChunk_teambit_legacy||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})()})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
define("./workbox-67feafc0.js",["exports"],(function(t){"use strict";try{self["workbox:core:6.2.4"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:6.2.4"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class r{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class i extends r{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class o{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let o=i&&i.handler;const c=t.method;if(!o&&this.i.has(c)&&(o=this.i.get(c)),!o)return;let a;try{a=o.handle({url:s,request:t,event:e,params:r})}catch(t){a=Promise.reject(t)}const h=i&&i.catchHandler;return a instanceof Promise&&(this.o||h)&&(a=a.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:r})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),a}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const r=this.t.get(s.method)||[];for(const i of r){let r;const o=i.match({url:t,sameOrigin:e,request:s,event:n});if(o)return r=o,(Array.isArray(r)&&0===r.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"==typeof o)&&(r=void 0),{route:i,params:r}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let c;const a=()=>(c||(c=new o,c.addFetchListener(),c.addCacheListener()),c);function h(t,e,n){let o;if("string"==typeof t){const s=new URL(t,location.href);o=new r((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)o=new i(t,e,n);else if("function"==typeof t)o=new r(t,e,n);else{if(!(t instanceof r))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});o=t}return a().registerRoute(o),o}const u={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},l=t=>[u.prefix,t,u.suffix].filter((t=>t&&t.length>0)).join("-"),f=t=>t||l(u.precache),w=t=>t||l(u.runtime);function d(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:6.2.4"]&&_()}catch(t){}function p(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const r=new URL(n,location.href),i=new URL(n,location.href);return r.searchParams.set("__WB_REVISION__",e),{cacheKey:r.href,url:i.href}}class y{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class g{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=e&&e.cacheKey||this.h.getCacheKeyForURL(t.url);return s?new Request(s):t},this.h=t}}let R;async function m(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const r=t.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},o=e?e(i):i,c=function(){if(void 0===R){const t=new Response("");if("body"in t)try{new Response(t.body),R=!0}catch(t){R=!1}R=!1}return R}()?r.body:await r.blob();return new Response(c,o)}function v(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class q{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const U=new Set;try{self["workbox:strategies:6.2.4"]&&_()}catch(t){}function b(t){return"string"==typeof t?new Request(t):t}class L{constructor(t,e){this.u={},Object.assign(this,e),this.event=e.event,this.l=t,this.p=new q,this.g=[],this.R=[...t.plugins],this.m=new Map;for(const t of this.R)this.m.set(t,{});this.event.waitUntil(this.p.promise)}async fetch(t){const{event:e}=this;let n=b(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const r=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const i=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.l.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:i,response:t});return t}catch(t){throw r&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:r.clone(),request:i.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=b(t);let s;const{cacheName:n,matchOptions:r}=this.l,i=await this.getCacheKey(e,"read"),o=Object.assign(Object.assign({},r),{cacheName:n});s=await caches.match(i,o);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:r,cachedResponse:s,request:i,event:this.event})||void 0;return s}async cachePut(t,e){const n=b(t);var r;await(r=0,new Promise((t=>setTimeout(t,r))));const i=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(o=i.url,new URL(String(o),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var o;const c=await this.v(e);if(!c)return!1;const{cacheName:a,matchOptions:h}=this.l,u=await self.caches.open(a),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const r=v(e.url,s);if(e.url===r)return t.match(e,n);const i=Object.assign(Object.assign({},n),{ignoreSearch:!0}),o=await t.keys(e,i);for(const e of o)if(r===v(e.url,s))return t.match(e,n)}(u,i.clone(),["__WB_REVISION__"],h):null;try{await u.put(i,l?c.clone():c)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of U)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:a,oldResponse:f,newResponse:c.clone(),request:i,event:this.event});return!0}async getCacheKey(t,e){if(!this.u[e]){let s=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))s=b(await t({mode:e,request:s,event:this.event,params:this.params}));this.u[e]=s}return this.u[e]}hasCallback(t){for(const e of this.l.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.l.plugins)if("function"==typeof e[t]){const s=this.m.get(e),n=n=>{const r=Object.assign(Object.assign({},n),{state:s});return e[t](r)};yield n}}waitUntil(t){return this.g.push(t),t}async doneWaiting(){let t;for(;t=this.g.shift();)await t}destroy(){this.p.resolve(null)}async v(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class E{constructor(t={}){this.cacheName=w(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,r=new L(this,{event:e,request:s,params:n}),i=this.q(r,s,e);return[i,this.U(i,r,s,e)]}async q(t,e,n){let r;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(r=await this.L(e,t),!r||"error"===r.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const i of t.iterateCallbacks("handlerDidError"))if(r=await i({error:s,event:n,request:e}),r)break;if(!r)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))r=await s({event:n,request:e,response:r});return r}async U(t,e,s,n){let r,i;try{r=await t}catch(i){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:r}),await e.doneWaiting()}catch(t){t instanceof Error&&(i=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:r,error:i}),e.destroy(),i)throw i}}class x extends E{constructor(t={}){t.cacheName=f(t.cacheName),super(t),this._=!1!==t.fallbackToNetwork,this.plugins.push(x.copyRedirectedCacheableResponsesPlugin)}async L(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.C(t,e):await this.O(t,e))}async O(t,e){let n;if(!this._)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});return n=await e.fetch(t),n}async C(t,e){this.N();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}N(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==x.copyRedirectedCacheableResponsesPlugin&&(n===x.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(x.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}x.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},x.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await m(t):t};class C{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.k=new Map,this.j=new Map,this.T=new Map,this.l=new x({cacheName:f(t),plugins:[...e,new g({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.l}precache(t){this.addToCacheList(t),this.W||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.W=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:r}=p(n),i="string"!=typeof n&&n.revision?"reload":"default";if(this.k.has(r)&&this.k.get(r)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.k.get(r),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.T.has(t)&&this.T.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:r});this.T.set(t,n.integrity)}if(this.k.set(r,t),this.j.set(r,i),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return d(t,(async()=>{const e=new y;this.strategy.plugins.push(e);for(const[e,s]of this.k){const n=this.T.get(s),r=this.j.get(e),i=new Request(e,{integrity:n,cache:r,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:i,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return d(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.k.values()),n=[];for(const r of e)s.has(r.url)||(await t.delete(r),n.push(r.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.k}getCachedURLs(){return[...this.k.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.k.get(e.href)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}let O;const N=()=>(O||(O=new C),O);class k extends r{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const t of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:r}={}){const i=new URL(t,location.href);i.hash="",yield i.href;const o=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(i,e);if(yield o.href,s&&o.pathname.endsWith("/")){const t=new URL(o.href);t.pathname+=s,yield t.href}if(n){const t=new URL(o.href);t.pathname+=".html",yield t.href}if(r){const t=r({url:i});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(t);if(e)return{cacheKey:e}}}),t.strategy)}}t.NavigationRoute=class extends r{constructor(t,{allowlist:e=[/./],denylist:s=[]}={}){super((t=>this.K(t)),t),this.M=e,this.P=s}K({url:t,request:e}){if(e&&"navigate"!==e.mode)return!1;const s=t.pathname+t.search;for(const t of this.P)if(t.test(s))return!1;return!!this.M.some((t=>t.test(s)))}},t.clientsClaim=function(){self.addEventListener("activate",(()=>self.clients.claim()))},t.createHandlerBoundToURL=function(t){return N().createHandlerBoundToURL(t)},t.precacheAndRoute=function(t,e){!function(t){N().precache(t)}(t),function(t){const e=N();h(new k(e,t))}(e)},t.registerRoute=h}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BuildContext, BuildTask, BuiltTaskResult, TaskLocation } from '@teambit/builder';
|
|
2
|
+
import { Logger } from '@teambit/logger';
|
|
3
|
+
import { UiMain } from '@teambit/ui';
|
|
4
|
+
export declare const BUNDLE_UI_TASK_NAME = "BundleUI";
|
|
5
|
+
export declare const BUNDLE_UI_DIR = "ui-bundle";
|
|
6
|
+
export declare const BUNDLE_UI_HASH_FILENAME = ".hash";
|
|
7
|
+
export declare class BundleUiTask implements BuildTask {
|
|
8
|
+
private ui;
|
|
9
|
+
private logger;
|
|
10
|
+
aspectId: string;
|
|
11
|
+
name: string;
|
|
12
|
+
location: TaskLocation;
|
|
13
|
+
constructor(ui: UiMain, logger: Logger);
|
|
14
|
+
execute(context: BuildContext): Promise<BuiltTaskResult>;
|
|
15
|
+
private generateHash;
|
|
16
|
+
}
|
|
17
|
+
export declare function getArtifactDirectory(): string;
|
|
18
|
+
export declare function getArtifactDef(): {
|
|
19
|
+
name: string;
|
|
20
|
+
globPatterns: string[];
|
|
21
|
+
rootDir: string;
|
|
22
|
+
}[];
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
require("core-js/modules/es.array.iterator.js");
|
|
5
|
+
require("core-js/modules/es.promise.js");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.BundleUiTask = exports.BUNDLE_UI_TASK_NAME = exports.BUNDLE_UI_HASH_FILENAME = exports.BUNDLE_UI_DIR = void 0;
|
|
10
|
+
exports.getArtifactDef = getArtifactDef;
|
|
11
|
+
exports.getArtifactDirectory = getArtifactDirectory;
|
|
12
|
+
function _defineProperty2() {
|
|
13
|
+
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
+
_defineProperty2 = function () {
|
|
15
|
+
return data;
|
|
16
|
+
};
|
|
17
|
+
return data;
|
|
18
|
+
}
|
|
19
|
+
function _path() {
|
|
20
|
+
const data = require("path");
|
|
21
|
+
_path = function () {
|
|
22
|
+
return data;
|
|
23
|
+
};
|
|
24
|
+
return data;
|
|
25
|
+
}
|
|
26
|
+
function _fs() {
|
|
27
|
+
const data = require("fs");
|
|
28
|
+
_fs = function () {
|
|
29
|
+
return data;
|
|
30
|
+
};
|
|
31
|
+
return data;
|
|
32
|
+
}
|
|
33
|
+
function _ui() {
|
|
34
|
+
const data = require("@teambit/ui");
|
|
35
|
+
_ui = function () {
|
|
36
|
+
return data;
|
|
37
|
+
};
|
|
38
|
+
return data;
|
|
39
|
+
}
|
|
40
|
+
const BUNDLE_UI_TASK_NAME = 'BundleUI';
|
|
41
|
+
exports.BUNDLE_UI_TASK_NAME = BUNDLE_UI_TASK_NAME;
|
|
42
|
+
const BUNDLE_UI_DIR = 'ui-bundle';
|
|
43
|
+
exports.BUNDLE_UI_DIR = BUNDLE_UI_DIR;
|
|
44
|
+
const BUNDLE_UI_HASH_FILENAME = '.hash';
|
|
45
|
+
exports.BUNDLE_UI_HASH_FILENAME = BUNDLE_UI_HASH_FILENAME;
|
|
46
|
+
class BundleUiTask {
|
|
47
|
+
constructor(ui, logger) {
|
|
48
|
+
this.ui = ui;
|
|
49
|
+
this.logger = logger;
|
|
50
|
+
(0, _defineProperty2().default)(this, "aspectId", 'teambit.ui-foundation/ui');
|
|
51
|
+
(0, _defineProperty2().default)(this, "name", BUNDLE_UI_TASK_NAME);
|
|
52
|
+
(0, _defineProperty2().default)(this, "location", 'end');
|
|
53
|
+
}
|
|
54
|
+
async execute(context) {
|
|
55
|
+
const capsule = context.capsuleNetwork.seedersCapsules.find(c => c.component.id.toStringWithoutVersion() === _ui().UIAspect.id);
|
|
56
|
+
if (!capsule) {
|
|
57
|
+
return {
|
|
58
|
+
componentsResults: []
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
const outputPath = (0, _path().join)(capsule.path, getArtifactDirectory());
|
|
62
|
+
this.logger.info(`Generating UI bundle at ${outputPath}...`);
|
|
63
|
+
try {
|
|
64
|
+
await this.ui.build(undefined, outputPath);
|
|
65
|
+
await this.generateHash(outputPath);
|
|
66
|
+
} catch (error) {
|
|
67
|
+
this.logger.error('Generating UI bundle failed');
|
|
68
|
+
throw new Error('Generating UI bundle failed');
|
|
69
|
+
}
|
|
70
|
+
const artifacts = getArtifactDef();
|
|
71
|
+
return {
|
|
72
|
+
componentsResults: [],
|
|
73
|
+
artifacts
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
async generateHash(outputPath) {
|
|
77
|
+
const maybeUiRoot = this.ui.getUi();
|
|
78
|
+
if (!maybeUiRoot) throw new Error('no uiRoot found');
|
|
79
|
+
const [, uiRoot] = maybeUiRoot;
|
|
80
|
+
const hash = await this.ui.getBundleUiHash(uiRoot);
|
|
81
|
+
if (!(0, _fs().existsSync)(outputPath)) (0, _fs().mkdirSync)(outputPath);
|
|
82
|
+
(0, _fs().writeFileSync)((0, _path().join)(outputPath, BUNDLE_UI_HASH_FILENAME), hash);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.BundleUiTask = BundleUiTask;
|
|
86
|
+
function getArtifactDirectory() {
|
|
87
|
+
return (0, _path().join)('artifacts', BUNDLE_UI_DIR);
|
|
88
|
+
}
|
|
89
|
+
function getArtifactDef() {
|
|
90
|
+
return [{
|
|
91
|
+
name: BUNDLE_UI_DIR,
|
|
92
|
+
globPatterns: ['**'],
|
|
93
|
+
rootDir: getArtifactDirectory()
|
|
94
|
+
}];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=bundle-ui.task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BUNDLE_UI_TASK_NAME","BUNDLE_UI_DIR","BUNDLE_UI_HASH_FILENAME","BundleUiTask","constructor","ui","logger","execute","context","capsule","capsuleNetwork","seedersCapsules","find","c","component","id","toStringWithoutVersion","UIAspect","componentsResults","outputPath","join","path","getArtifactDirectory","info","build","undefined","generateHash","error","Error","artifacts","getArtifactDef","maybeUiRoot","getUi","uiRoot","hash","getBundleUiHash","existsSync","mkdirSync","writeFileSync","name","globPatterns","rootDir"],"sources":["bundle-ui.task.ts"],"sourcesContent":["import { join } from 'path';\nimport { existsSync, mkdirSync, writeFileSync } from 'fs';\nimport { BuildContext, BuildTask, BuiltTaskResult, TaskLocation } from '@teambit/builder';\nimport { Logger } from '@teambit/logger';\nimport { UIAspect, UiMain } from '@teambit/ui';\nimport { Capsule } from '@teambit/isolator';\n\nexport const BUNDLE_UI_TASK_NAME = 'BundleUI';\nexport const BUNDLE_UI_DIR = 'ui-bundle';\nexport const BUNDLE_UI_HASH_FILENAME = '.hash';\n\nexport class BundleUiTask implements BuildTask {\n aspectId = 'teambit.ui-foundation/ui';\n name = BUNDLE_UI_TASK_NAME;\n location: TaskLocation = 'end';\n\n constructor(private ui: UiMain, private logger: Logger) {}\n\n async execute(context: BuildContext): Promise<BuiltTaskResult> {\n const capsule: Capsule | undefined = context.capsuleNetwork.seedersCapsules.find(\n (c) => c.component.id.toStringWithoutVersion() === UIAspect.id\n );\n if (!capsule) {\n return { componentsResults: [] };\n }\n\n const outputPath = join(capsule.path, getArtifactDirectory());\n this.logger.info(`Generating UI bundle at ${outputPath}...`);\n try {\n await this.ui.build(undefined, outputPath);\n await this.generateHash(outputPath);\n } catch (error) {\n this.logger.error('Generating UI bundle failed');\n throw new Error('Generating UI bundle failed');\n }\n const artifacts = getArtifactDef();\n return {\n componentsResults: [],\n artifacts,\n };\n }\n\n private async generateHash(outputPath: string): Promise<void> {\n const maybeUiRoot = this.ui.getUi();\n if (!maybeUiRoot) throw new Error('no uiRoot found');\n\n const [, uiRoot] = maybeUiRoot;\n const hash = await this.ui.getBundleUiHash(uiRoot);\n\n if (!existsSync(outputPath)) mkdirSync(outputPath);\n writeFileSync(join(outputPath, BUNDLE_UI_HASH_FILENAME), hash);\n }\n}\n\nexport function getArtifactDirectory() {\n return join('artifacts', BUNDLE_UI_DIR);\n}\n\nexport function getArtifactDef() {\n return [\n {\n name: BUNDLE_UI_DIR,\n globPatterns: ['**'],\n rootDir: getArtifactDirectory(),\n },\n ];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,MAAMA,mBAAmB,GAAG,UAAU;AAAC;AACvC,MAAMC,aAAa,GAAG,WAAW;AAAC;AAClC,MAAMC,uBAAuB,GAAG,OAAO;AAAC;AAExC,MAAMC,YAAY,CAAsB;EAK7CC,WAAW,CAASC,EAAU,EAAUC,MAAc,EAAE;IAAA,KAApCD,EAAU,GAAVA,EAAU;IAAA,KAAUC,MAAc,GAAdA,MAAc;IAAA,kDAJ3C,0BAA0B;IAAA,8CAC9BN,mBAAmB;IAAA,kDACD,KAAK;EAE2B;EAEzD,MAAMO,OAAO,CAACC,OAAqB,EAA4B;IAC7D,MAAMC,OAA4B,GAAGD,OAAO,CAACE,cAAc,CAACC,eAAe,CAACC,IAAI,CAC7EC,CAAC,IAAKA,CAAC,CAACC,SAAS,CAACC,EAAE,CAACC,sBAAsB,EAAE,KAAKC,cAAQ,CAACF,EAAE,CAC/D;IACD,IAAI,CAACN,OAAO,EAAE;MACZ,OAAO;QAAES,iBAAiB,EAAE;MAAG,CAAC;IAClC;IAEA,MAAMC,UAAU,GAAG,IAAAC,YAAI,EAACX,OAAO,CAACY,IAAI,EAAEC,oBAAoB,EAAE,CAAC;IAC7D,IAAI,CAAChB,MAAM,CAACiB,IAAI,CAAE,2BAA0BJ,UAAW,KAAI,CAAC;IAC5D,IAAI;MACF,MAAM,IAAI,CAACd,EAAE,CAACmB,KAAK,CAACC,SAAS,EAAEN,UAAU,CAAC;MAC1C,MAAM,IAAI,CAACO,YAAY,CAACP,UAAU,CAAC;IACrC,CAAC,CAAC,OAAOQ,KAAK,EAAE;MACd,IAAI,CAACrB,MAAM,CAACqB,KAAK,CAAC,6BAA6B,CAAC;MAChD,MAAM,IAAIC,KAAK,CAAC,6BAA6B,CAAC;IAChD;IACA,MAAMC,SAAS,GAAGC,cAAc,EAAE;IAClC,OAAO;MACLZ,iBAAiB,EAAE,EAAE;MACrBW;IACF,CAAC;EACH;EAEA,MAAcH,YAAY,CAACP,UAAkB,EAAiB;IAC5D,MAAMY,WAAW,GAAG,IAAI,CAAC1B,EAAE,CAAC2B,KAAK,EAAE;IACnC,IAAI,CAACD,WAAW,EAAE,MAAM,IAAIH,KAAK,CAAC,iBAAiB,CAAC;IAEpD,MAAM,GAAGK,MAAM,CAAC,GAAGF,WAAW;IAC9B,MAAMG,IAAI,GAAG,MAAM,IAAI,CAAC7B,EAAE,CAAC8B,eAAe,CAACF,MAAM,CAAC;IAElD,IAAI,CAAC,IAAAG,gBAAU,EAACjB,UAAU,CAAC,EAAE,IAAAkB,eAAS,EAAClB,UAAU,CAAC;IAClD,IAAAmB,mBAAa,EAAC,IAAAlB,YAAI,EAACD,UAAU,EAAEjB,uBAAuB,CAAC,EAAEgC,IAAI,CAAC;EAChE;AACF;AAAC;AAEM,SAASZ,oBAAoB,GAAG;EACrC,OAAO,IAAAF,YAAI,EAAC,WAAW,EAAEnB,aAAa,CAAC;AACzC;AAEO,SAAS6B,cAAc,GAAG;EAC/B,OAAO,CACL;IACES,IAAI,EAAEtC,aAAa;IACnBuC,YAAY,EAAE,CAAC,IAAI,CAAC;IACpBC,OAAO,EAAEnB,oBAAoB;EAC/B,CAAC,CACF;AACH"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type { StartPlugin, StartPluginOptions } from './start-plugin';
|
|
|
8
8
|
export type { SSR };
|
|
9
9
|
export type { UIRootUI, UIRootFactory } from './ui-root.ui';
|
|
10
10
|
export type { UIServer } from './ui-server';
|
|
11
|
+
export { BUNDLE_UI_DIR, BundleUiTask, getArtifactDirectory } from './bundle-ui.task';
|
|
11
12
|
export { DataQueryResult, useDataQuery } from '@teambit/ui-foundation.ui.hooks.use-data-query';
|
|
12
13
|
export { useMutation } from '@apollo/client';
|
|
13
14
|
export type {
|
package/dist/index.js
CHANGED
|
@@ -9,10 +9,25 @@ var _exportNames = {
|
|
|
9
9
|
UIRoot: true,
|
|
10
10
|
PostStartOptions: true,
|
|
11
11
|
ProxyEntry: true,
|
|
12
|
+
BUNDLE_UI_DIR: true,
|
|
13
|
+
BundleUiTask: true,
|
|
14
|
+
getArtifactDirectory: true,
|
|
12
15
|
DataQueryResult: true,
|
|
13
16
|
useDataQuery: true,
|
|
14
17
|
useMutation: true
|
|
15
18
|
};
|
|
19
|
+
Object.defineProperty(exports, "BUNDLE_UI_DIR", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _bundleUi().BUNDLE_UI_DIR;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "BundleUiTask", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _bundleUi().BundleUiTask;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
16
31
|
Object.defineProperty(exports, "DataQueryResult", {
|
|
17
32
|
enumerable: true,
|
|
18
33
|
get: function () {
|
|
@@ -55,6 +70,12 @@ Object.defineProperty(exports, "default", {
|
|
|
55
70
|
return _ui().UIAspect;
|
|
56
71
|
}
|
|
57
72
|
});
|
|
73
|
+
Object.defineProperty(exports, "getArtifactDirectory", {
|
|
74
|
+
enumerable: true,
|
|
75
|
+
get: function () {
|
|
76
|
+
return _bundleUi().getArtifactDirectory;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
58
79
|
Object.defineProperty(exports, "useDataQuery", {
|
|
59
80
|
enumerable: true,
|
|
60
81
|
get: function () {
|
|
@@ -93,6 +114,13 @@ function _uiRoot() {
|
|
|
93
114
|
};
|
|
94
115
|
return data;
|
|
95
116
|
}
|
|
117
|
+
function _bundleUi() {
|
|
118
|
+
const data = require("./bundle-ui.task");
|
|
119
|
+
_bundleUi = function () {
|
|
120
|
+
return data;
|
|
121
|
+
};
|
|
122
|
+
return data;
|
|
123
|
+
}
|
|
96
124
|
function _uiFoundationUiHooks() {
|
|
97
125
|
const data = require("@teambit/ui-foundation.ui.hooks.use-data-query");
|
|
98
126
|
_uiFoundationUiHooks = function () {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["import type * as SSR from '@teambit/react.rendering.ssr';\n\nexport { UIAspect, UIRuntime, UIAspect as default } from './ui.aspect';\n\nexport * from './events';\nexport { UIRoot, PostStartOptions, ProxyEntry } from './ui-root';\nexport type { UiMain, PreStartOpts } from './ui.main.runtime';\nexport type { UiUI } from './ui.ui.runtime';\nexport type { StartPlugin, StartPluginOptions } from './start-plugin';\nexport type { SSR };\n\nexport type { UIRootUI, UIRootFactory } from './ui-root.ui';\nexport type { UIServer } from './ui-server';\n\n// using `useDataQuery` from this package is deprecated, use `@teambit/ui-foundation.ui.hooks.use-data-query` directly\nexport { DataQueryResult, useDataQuery } from '@teambit/ui-foundation.ui.hooks.use-data-query';\n// temporary. TODO: fix this\nexport { useMutation } from '@apollo/client';\n\n// some types still used by Symphony\nexport type {\n /** @deprecated - use SSR.BrowserData */\n BrowserData,\n /** @deprecated - use SSR.RenderPlugin */\n RenderPlugin,\n /** @deprecated use SSR.RenderPlugin */\n RenderPlugin as RenderPlugins,\n /** @deprecated use SSR..RenderPlugin */\n RenderPlugin as RenderLifecycle,\n} from '@teambit/react.rendering.ssr';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["import type * as SSR from '@teambit/react.rendering.ssr';\n\nexport { UIAspect, UIRuntime, UIAspect as default } from './ui.aspect';\n\nexport * from './events';\nexport { UIRoot, PostStartOptions, ProxyEntry } from './ui-root';\nexport type { UiMain, PreStartOpts } from './ui.main.runtime';\nexport type { UiUI } from './ui.ui.runtime';\nexport type { StartPlugin, StartPluginOptions } from './start-plugin';\nexport type { SSR };\n\nexport type { UIRootUI, UIRootFactory } from './ui-root.ui';\nexport type { UIServer } from './ui-server';\nexport { BUNDLE_UI_DIR, BundleUiTask, getArtifactDirectory } from './bundle-ui.task';\n\n// using `useDataQuery` from this package is deprecated, use `@teambit/ui-foundation.ui.hooks.use-data-query` directly\nexport { DataQueryResult, useDataQuery } from '@teambit/ui-foundation.ui.hooks.use-data-query';\n// temporary. TODO: fix this\nexport { useMutation } from '@apollo/client';\n\n// some types still used by Symphony\nexport type {\n /** @deprecated - use SSR.BrowserData */\n BrowserData,\n /** @deprecated - use SSR.RenderPlugin */\n RenderPlugin,\n /** @deprecated use SSR.RenderPlugin */\n RenderPlugin as RenderPlugins,\n /** @deprecated use SSR..RenderPlugin */\n RenderPlugin as RenderLifecycle,\n} from '@teambit/react.rendering.ssr';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAQA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.1049/dist/ui.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.1049/dist/ui.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
|
@@ -176,7 +176,7 @@ export declare class UiMain {
|
|
|
176
176
|
/**
|
|
177
177
|
* create a build of the given UI root.
|
|
178
178
|
*/
|
|
179
|
-
build(uiRootName?: string): Promise<webpack.MultiStats | undefined>;
|
|
179
|
+
build(uiRootName?: string, customOutputPath?: string): Promise<webpack.MultiStats | undefined>;
|
|
180
180
|
registerStartPlugin(startPlugin: StartPlugin): this;
|
|
181
181
|
private initiatePlugins;
|
|
182
182
|
/**
|
|
@@ -229,6 +229,7 @@ export declare class UiMain {
|
|
|
229
229
|
private selectPort;
|
|
230
230
|
private buildUI;
|
|
231
231
|
buildUiHash(uiRoot: UIRoot, runtime?: string): Promise<string>;
|
|
232
|
+
getBundleUiHash(uiRoot: UIRoot, runtime?: string): Promise<string>;
|
|
232
233
|
buildIfChanged(name: string, uiRoot: UIRoot, force: boolean | undefined): Promise<string>;
|
|
233
234
|
clearConsole(): void;
|
|
234
235
|
buildIfNoBundle(name: string, uiRoot: UIRoot): Promise<void>;
|
package/dist/ui.main.runtime.js
CHANGED
|
@@ -276,7 +276,7 @@ class UiMain {
|
|
|
276
276
|
/**
|
|
277
277
|
* create a build of the given UI root.
|
|
278
278
|
*/
|
|
279
|
-
async build(uiRootName) {
|
|
279
|
+
async build(uiRootName, customOutputPath) {
|
|
280
280
|
var _uiRoot$buildOptions;
|
|
281
281
|
// TODO: change to MultiStats from webpack once they export it in their types
|
|
282
282
|
this.logger.debug(`build, uiRootName: "${uiRootName}"`);
|
|
@@ -287,8 +287,9 @@ class UiMain {
|
|
|
287
287
|
// TODO: @uri refactor all dev server related code to use the bundler extension instead.
|
|
288
288
|
const ssr = ((_uiRoot$buildOptions = uiRoot.buildOptions) === null || _uiRoot$buildOptions === void 0 ? void 0 : _uiRoot$buildOptions.ssr) || false;
|
|
289
289
|
const mainEntry = await this.generateRoot(await uiRoot.resolveAspects(_ui().UIRuntime.name), name);
|
|
290
|
-
const
|
|
291
|
-
const
|
|
290
|
+
const outputPath = customOutputPath || uiRoot.path;
|
|
291
|
+
const browserConfig = (0, _webpackBrowser().default)(outputPath, [mainEntry], uiRoot.name, await this.publicDir(uiRoot));
|
|
292
|
+
const ssrConfig = ssr && (0, _webpackSsr().default)(outputPath, [mainEntry], await this.publicDir(uiRoot));
|
|
292
293
|
const config = [browserConfig, ssrConfig].filter(x => !!x);
|
|
293
294
|
const compiler = (0, _webpack().default)(config);
|
|
294
295
|
this.logger.debug(`build, uiRootName: "${uiRootName}" running webpack`);
|
|
@@ -501,6 +502,12 @@ class UiMain {
|
|
|
501
502
|
});
|
|
502
503
|
return (0, _utils().sha1)(hash.join(''));
|
|
503
504
|
}
|
|
505
|
+
async getBundleUiHash(uiRoot, runtime = 'ui') {
|
|
506
|
+
const aspects = await uiRoot.resolveAspects(runtime);
|
|
507
|
+
aspects.sort((a, b) => (a.getId || a.aspectPath) > (b.getId || b.aspectPath) ? 1 : -1);
|
|
508
|
+
const aspectIds = aspects.map(aspect => aspect.getId || aspect.aspectPath);
|
|
509
|
+
return (0, _utils().sha1)(aspectIds.join(''));
|
|
510
|
+
}
|
|
504
511
|
async buildIfChanged(name, uiRoot, force) {
|
|
505
512
|
this.logger.debug(`buildIfChanged, name ${name}`);
|
|
506
513
|
const hash = await this.buildUiHash(uiRoot);
|