@omnia/tooling-vue 8.0.325-dev-dev → 8.0.326-dev

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.
@@ -3,6 +3,7 @@ import wcf3d75940db51447dbf6719251f5465b0 from '../../../../client/fx/console/co
3
3
  import wce6b88bd8d41949c8af6fed268ae64430 from '../../../../client/fx/console/components/SocketComponent';
4
4
  import wc5057354b14bb430e854a22e21d9ab7af from '../../../../client/fx/spfx/components/OmniaWPContainerSettings';
5
5
  import wca7105d996040472b8d55819f99a434db from '../../../../client/fx/spfx/components/OmniaWPContainer';
6
+ import wc4d6cad2f0eb948e1aaefae35edab238c from '../../../../client/fx/spfx/components/OmniaWPStandaloneContainer';
6
7
  import wc8e3534c9960c46b090f442e563d71265 from '../../../../client/fx/ux/alignmentpicker/AlignmentPicker';
7
8
  import wce4889269c6ad440da65f3acdf5bb6152 from '../../../../client/fx/ux/authsetup/AuthSetup';
8
9
  import wc057bef6897bb4ba4a089d01c2da1322e from '../../../../client/fx/ux/chrome/ChromeRenderer';
@@ -23,6 +24,7 @@ import wcfd300449c17f44fd80d83e709a10bf63 from '../../../../client/fx/ux/feature
23
24
  import wc041c5cb1e6fc487f98669ee2fb4edee0 from '../../../../client/fx/ux/features/blades/FeaturePropertiesBlade';
24
25
  import wc629ff3fc45f84df382ddb6282d968547 from '../../../../client/fx/ux/features/FeaturesJourneyTenant';
25
26
  import wc47f40c108c6d482197c5f462acf292d2 from '../../../../client/fx/ux/features/FeaturesJourneyAppInstance';
27
+ import wc828d6c37d5524e7d9f949270c521b6da from '../../../../client/fx/ux/fieldcontainer/FieldContainer';
26
28
  import wc1fab0218538f431c91ece4e10cbd468c from '../../../../client/fx/ux/fileuploader/FileUploader';
27
29
  import wca91d4cd2b5744de3a672110cb1cdf7ba from '../../../../client/fx/ux/filterengine/FilterEngineSettings';
28
30
  import wc34e1cea969d744f1bbec4770b51d49f5 from '../../../../client/fx/ux/filterengine/FilterEngineRenderer';
@@ -83,7 +85,6 @@ import wc02e199d7f0af45508837fccb8a041f58 from '../../../../client/fx/ux/organiz
83
85
  import wcfb67bd4d1cc24073ab123c822d78ea17 from '../../../../client/fx/ux/permissioninput/PermissionInput';
84
86
  import wcd4adc78e79ad4c2c889e52755e2bbede from '../../../../client/fx/ux/permissioninput/TenantAdminPermissionInput';
85
87
  import wc73919d3e5df64b92aded98d7bc04d6f7 from '../../../../client/fx/ux/persona/Persona';
86
- import wc828d6c37d5524e7d9f949270c521b6da from '../../../../client/fx/ux/pickerwrapper/PickerWrapper';
87
88
  import wcffa71f76ab46494a9180e1f55885ce4d from '../../../../client/fx/ux/post/Post';
88
89
  import wc1a58948a606a42078da3fb919cc4f7e6 from '../../../../client/fx/ux/presetupwizard/PreSetupWizard';
89
90
  import wc6489472fd8d24a1b9413537fde528566 from '../../../../client/fx/ux/profilecard/ProfileCard';
@@ -567,7 +568,16 @@ declare global {
567
568
  } : typeof wcf3d75940db51447dbf6719251f5465b0;
568
569
  "fx": {
569
570
  "spfx": {
570
- "wp": typeof wca7105d996040472b8d55819f99a434db extends {
571
+ "wp": {
572
+ "standalone": typeof wc4d6cad2f0eb948e1aaefae35edab238c extends {
573
+ propsDefinition: infer TProp;
574
+ } ? {
575
+ new (...args: any[]): {
576
+ $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
577
+ };
578
+ } : typeof wc4d6cad2f0eb948e1aaefae35edab238c;
579
+ };
580
+ "wp$": typeof wca7105d996040472b8d55819f99a434db extends {
571
581
  propsDefinition: infer TProp;
572
582
  } ? {
573
583
  new (...args: any[]): {
@@ -987,6 +997,22 @@ declare global {
987
997
  };
988
998
  } : typeof wcfd300449c17f44fd80d83e709a10bf63;
989
999
  };
1000
+ "field": {
1001
+ "container": typeof wc828d6c37d5524e7d9f949270c521b6da extends {
1002
+ propsDefinition: infer TProp;
1003
+ } ? {
1004
+ new (...args: any[]): {
1005
+ $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
1006
+ };
1007
+ } : typeof wc828d6c37d5524e7d9f949270c521b6da;
1008
+ "validation": typeof wc90cfd68bb4e04f67bfd5677bdf4af59d extends {
1009
+ propsDefinition: infer TProp;
1010
+ } ? {
1011
+ new (...args: any[]): {
1012
+ $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
1013
+ };
1014
+ } : typeof wc90cfd68bb4e04f67bfd5677bdf4af59d;
1015
+ };
990
1016
  "file": {
991
1017
  "uploader": typeof wc1fab0218538f431c91ece4e10cbd468c extends {
992
1018
  propsDefinition: infer TProp;
@@ -1869,15 +1895,6 @@ declare global {
1869
1895
  $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
1870
1896
  };
1871
1897
  } : typeof wc73919d3e5df64b92aded98d7bc04d6f7;
1872
- "picker": {
1873
- "wrapper": typeof wc828d6c37d5524e7d9f949270c521b6da extends {
1874
- propsDefinition: infer TProp;
1875
- } ? {
1876
- new (...args: any[]): {
1877
- $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
1878
- };
1879
- } : typeof wc828d6c37d5524e7d9f949270c521b6da;
1880
- };
1881
1898
  "post": {
1882
1899
  "component": typeof wcffa71f76ab46494a9180e1f55885ce4d extends {
1883
1900
  propsDefinition: infer TProp;
@@ -2289,15 +2306,6 @@ declare global {
2289
2306
  } : typeof wc30289e2b58ff48b0aabb3cb3732c3038;
2290
2307
  };
2291
2308
  };
2292
- "field": {
2293
- "validation": typeof wc90cfd68bb4e04f67bfd5677bdf4af59d extends {
2294
- propsDefinition: infer TProp;
2295
- } ? {
2296
- new (...args: any[]): {
2297
- $props: TProp & Omit<VueComponentBaseProps, keyof TProp>;
2298
- };
2299
- } : typeof wc90cfd68bb4e04f67bfd5677bdf4af59d;
2300
- };
2301
2309
  "versioned": {
2302
2310
  "layout": {
2303
2311
  "renderer": typeof wcba03fc7e6921468289c0a0ffe0cf942e extends {
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const core_1 = require("@rsbuild/core");
5
- const core_2 = require("@rspack/core");
4
+ const core_1 = tslib_1.__importStar(require("@rspack/core"));
6
5
  const tooling_1 = require("@omnia/tooling");
7
6
  const path_1 = tslib_1.__importDefault(require("path"));
8
7
  const shared_1 = require("../shared");
@@ -68,9 +67,9 @@ async function beforeBundleManifest(entries) {
68
67
  const entry = {};
69
68
  entry[id] = entries[id];
70
69
  const config = createConfig(entry, entries);
71
- compilers.push((0, core_1.rspack)(config));
70
+ compilers.push((0, core_1.default)(config));
72
71
  });
73
- const multiCompiler = new core_2.MultiCompiler(compilers.slice(0, 200), {
72
+ const multiCompiler = new core_1.MultiCompiler(compilers.slice(0, 200), {
74
73
  parallelism: 8, // the maximum number of parallel compilers
75
74
  });
76
75
  multiCompiler.run((err, stats) => {
@@ -98,9 +97,9 @@ async function beforeBundleManifest(entries) {
98
97
  tooling_1.utils.logTime('Build manifests metadata done', startTime);
99
98
  resolve(entries);
100
99
  });
101
- // rspack(Object.keys(entries).slice(0, 300).map(key => {
102
- // return createConfig({ [key]: entries[key] }, entries);
103
- // })).run((err, stats) => {
100
+ // const sliceEntries = {};
101
+ // Object.keys(entries).slice(0, 200).forEach(key => sliceEntries[key] = entries[key]);
102
+ // rspack(createOneConfig(sliceEntries)).run((err, stats) => {
104
103
  // if (err) {
105
104
  // utils.log('Bundle manifest error : \r\n', utils.LogTypes.Error);
106
105
  // utils.log(err?.stack || err, utils.LogTypes.Error);
@@ -139,6 +138,138 @@ function bundleManifest(entries) {
139
138
  }
140
139
  });
141
140
  }
141
+ function createOneConfig(entries) {
142
+ return {
143
+ watch: false,
144
+ mode: "production",
145
+ devtool: false,
146
+ context: rootPath,
147
+ entry: entries,
148
+ target: ["web", "es2022"],
149
+ optimization: {
150
+ minimize: false,
151
+ usedExports: false,
152
+ providedExports: true,
153
+ removeAvailableModules: false,
154
+ mangleExports: false,
155
+ concatenateModules: true,
156
+ removeEmptyChunks: false,
157
+ splitChunks: false,
158
+ },
159
+ resolve: {
160
+ modules: tooling_1.core.getWebpackResolveModules(),
161
+ extensions: ['.ts', '.tsx', '.mjs', '.js', '.jsx', '.html', '.vue', '.less', '.styl'],
162
+ symlinks: false,
163
+ descriptionFiles: ['package.json'],
164
+ alias: Object.assign({}, $.tooling.core.getWebpackResolveAlias(), (getBuildOption()?.moduleOptions?.alias || {}), {
165
+ 'axios$': 'axios/dist/axios.js',
166
+ 'typestyle$': 'typestyle/lib.es2015/index.js',
167
+ 'vue$': 'vue/dist/vue.runtime.esm-bundler.js',
168
+ '@microsoft/signalr$': '@microsoft/signalr/dist/webworker/signalr.js',
169
+ "@stylexjs/stylex$": $.tooling.utils.root("node_modules/@stylexjs/stylex/lib/es/stylex.mjs")
170
+ }),
171
+ },
172
+ output: {
173
+ pathinfo: false,
174
+ path: tooling_1.utils.root($.tooling.composer.OmniaOutput.OutputBundlePath),
175
+ filename: '[name].js',
176
+ chunkLoadingGlobal: "omniaWebpackJsonp['" + getServiceId() + "']['__register_module__']",
177
+ },
178
+ externals: [
179
+ function ({ context, request }, callback) {
180
+ if (request.indexOf("node_modules") > -1 || (/\.(sass|scss|styl|less|css)$/i).test(request)) {
181
+ return callback(null, 'commonjs ' + request);
182
+ }
183
+ callback();
184
+ }
185
+ ],
186
+ module: {
187
+ noParse: /wwwroot(.*)/,
188
+ rules: [
189
+ {
190
+ test: /\.m?js/,
191
+ resolve: {
192
+ fullySpecified: false
193
+ }
194
+ },
195
+ {
196
+ test: /\.ts$/,
197
+ use: {
198
+ loader: 'builtin:swc-loader',
199
+ options: {
200
+ sourceMaps: false,
201
+ jsc: {
202
+ parser: {
203
+ syntax: 'typescript',
204
+ decorators: true
205
+ },
206
+ target: "es2022",
207
+ transform: {
208
+ useDefineForClassFields: false,
209
+ legacyDecorator: true,
210
+ decoratorMetadata: true,
211
+ },
212
+ }
213
+ },
214
+ },
215
+ },
216
+ {
217
+ test: /\.tsx$/,
218
+ exclude: /(node_modules|bower_components)/,
219
+ use: [
220
+ // {
221
+ // loader: 'babel-loader',
222
+ // options: {
223
+ // plugins: ['@vue/babel-plugin-jsx'],
224
+ // },
225
+ // },
226
+ {
227
+ loader: 'builtin:swc-loader',
228
+ options: {
229
+ sourceMaps: false,
230
+ jsc: {
231
+ parser: {
232
+ syntax: 'typescript',
233
+ tsx: true,
234
+ decorators: true
235
+ },
236
+ target: "es2022",
237
+ transform: {
238
+ useDefineForClassFields: false,
239
+ legacyDecorator: true,
240
+ decoratorMetadata: true,
241
+ // react: {
242
+ // pragma: 'React.createElement',
243
+ // pragmaFrag: 'React.Fragment',
244
+ // throwIfNamespace: true,
245
+ // development: false,
246
+ // useBuiltins: false,
247
+ // },
248
+ },
249
+ }
250
+ },
251
+ },
252
+ ],
253
+ },
254
+ {
255
+ test: /\.css$/i,
256
+ use: [core_1.CssExtractRspackPlugin.loader, 'css-loader'],
257
+ type: 'javascript/auto',
258
+ },
259
+ ],
260
+ },
261
+ plugins: [
262
+ // ...buildReferenceManifest(entry, entries)
263
+ ].concat([
264
+ new core_1.DllPlugin({
265
+ path: path_1.default.join(rootPath, outDirManifestMetadata, '[name].manifest.json'),
266
+ name: `omniaWebpackJsonp['${getServiceId()}'][name]`
267
+ }),
268
+ new core_1.CssExtractRspackPlugin({})
269
+ // pluginVueJsx()
270
+ ])
271
+ };
272
+ }
142
273
  function createConfig(entry, entries) {
143
274
  return {
144
275
  watch: false,
@@ -254,19 +385,19 @@ function createConfig(entry, entries) {
254
385
  },
255
386
  {
256
387
  test: /\.css$/i,
257
- use: [core_2.CssExtractRspackPlugin.loader, 'css-loader'],
388
+ use: [core_1.CssExtractRspackPlugin.loader, 'css-loader'],
258
389
  type: 'javascript/auto',
259
390
  },
260
391
  ],
261
392
  },
262
393
  plugins: [
263
- //...buildReferenceManifest(entry, entries)
394
+ // ...buildReferenceManifest(entry, entries)
264
395
  ].concat([
265
- new core_2.DllPlugin({
396
+ new core_1.DllPlugin({
266
397
  path: path_1.default.join(rootPath, outDirManifestMetadata, '[name].manifest.json'),
267
398
  name: `omniaWebpackJsonp['${getServiceId()}']['${tooling_1.utils.getguid(Object.keys(entry)[0])}']`
268
399
  }),
269
- new core_2.CssExtractRspackPlugin({})
400
+ new core_1.CssExtractRspackPlugin({})
270
401
  // pluginVueJsx()
271
402
  ])
272
403
  };
@@ -292,19 +423,13 @@ function buildReferenceManifest(currentEntry, entries) {
292
423
  // exclude pre-built webpack manifest
293
424
  if ($.isExtensionEnv
294
425
  || (currentEntryName.indexOf(o$.enums.omniaResourceManifests.Vendor.toString()) === -1
295
- && currentEntryName.indexOf(vendorProdId) === -1
296
- // && currentEntryName.indexOf(o$.enums.omniaResourceManifests.FxCore.toString()) === -1
297
- // && currentEntryName.indexOf(o$.enums.omniaResourceManifests.Fx.toString()) === -1
298
- // && currentEntryName.indexOf(o$.enums.omniaResourceManifests.FxUx.toString()) === -1
299
- )) {
426
+ && currentEntryName.indexOf(vendorProdId) === -1)) {
300
427
  Object.keys(entries).forEach((entryName) => {
301
428
  if (entryName !== currentEntryName) {
302
429
  if ($.fs.existsSync($.tooling.utils.root(outDirManifestMetadata + "/" + entryName + ".manifest.json"))) {
303
- manifests.push(new core_2.DllReferencePlugin({
430
+ manifests.push(new core_1.DllReferencePlugin({
304
431
  context: $.tooling.utils.root(""),
305
432
  manifest: $.tooling.utils.root(outDirManifestMetadata + "/" + entryName + ".manifest.json"),
306
- //name: `md${++trackingModuleRefId}` //utils.getguid(entryName)
307
- //manifest: require($.tooling.utils.root(outDirManifestMetadata + "/" + entryName + ".manifest.json"))
308
433
  }));
309
434
  }
310
435
  }
@@ -321,7 +446,7 @@ function buildReferenceManifestFromConfig(entryName) {
321
446
  let buildOptions = getBuildOption();
322
447
  if (buildOptions.reference) {
323
448
  for (let manifestPath of buildOptions.reference) {
324
- manifests.push(new core_2.DllReferencePlugin({
449
+ manifests.push(new core_1.DllReferencePlugin({
325
450
  context: $.tooling.utils.root(""),
326
451
  manifest: $.tooling.utils.root(manifestPath),
327
452
  // name: `md${++trackingModuleRefId}` //require('md5')(manifestPath)
@@ -331,20 +456,18 @@ function buildReferenceManifestFromConfig(entryName) {
331
456
  if (!isBuildWebpackManifestOnly() && buildOptions.webpackManifests) {
332
457
  for (let manifestPath of buildOptions.webpackManifests) {
333
458
  if (manifestPath.indexOf(entryName) === -1) {
334
- manifests.push(new core_2.DllReferencePlugin({
459
+ manifests.push(new core_1.DllReferencePlugin({
335
460
  context: $.tooling.utils.root(""),
336
461
  manifest: $.tooling.utils.root(manifestPath),
337
- // name: `md${++trackingModuleRefId}` //require('md5')(manifestPath)
338
462
  }));
339
463
  }
340
464
  }
341
465
  }
342
466
  if ($.isExtensionEnv) {
343
467
  _registeredReferenceManifests.forEach(manifest => {
344
- manifests.push(new core_2.DllReferencePlugin({
468
+ manifests.push(new core_1.DllReferencePlugin({
345
469
  context: $.tooling.utils.root(""),
346
470
  manifest: $.tooling.utils.root(manifest.path),
347
- //name: `md${++trackingModuleRefId}` //require('md5')(manifest.path)
348
471
  }));
349
472
  });
350
473
  }
@@ -387,7 +387,7 @@ function replaceComponentNamespace(content) {
387
387
  if (match.indexOf("<") === -1) {
388
388
  return match;
389
389
  }
390
- return match.replace(new RegExp(`(${namespace}.*)(?=(>|\\s))`), function (token) {
390
+ return match.replace(new RegExp(`(${namespace}.*)(?=(>|\/|\\s))`), function (token) {
391
391
  return token.replace(/(\S+)/g, function (tag) {
392
392
  // console.log("replaceWebComponentNamespaceMapping", tag)
393
393
  return info.wc.mappings[tag.replace("$", "")] || tag;