@mmapp/react-compiler 0.1.0-alpha.5 → 0.1.0-alpha.7

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/dist/envelope.js CHANGED
@@ -5998,8 +5998,12 @@ function extractStaticObj(obj) {
5998
5998
  return result;
5999
5999
  }
6000
6000
 
6001
- // src/babel/emitters/pure-form-emitter.ts
6002
- var import_player_core = require("@mindmatrix/player-core");
6001
+ // ../player-core/dist/index.mjs
6002
+ function normalizeCategory(primary, ...tags) {
6003
+ const uniqueTags = [...new Set(tags.filter((t22) => t22 !== primary))];
6004
+ uniqueTags.sort();
6005
+ return [primary, ...uniqueTags];
6006
+ }
6003
6007
 
6004
6008
  // src/babel/emitters/experience-transform.ts
6005
6009
  function transformToFrontend(node) {
@@ -6392,7 +6396,7 @@ function liftAction(action) {
6392
6396
  }
6393
6397
  return {
6394
6398
  slug: action.id,
6395
- category: (0, import_player_core.normalizeCategory)("expression", "mutation", action.type),
6399
+ category: normalizeCategory("expression", "mutation", action.type),
6396
6400
  parts: parts.length > 0 ? parts : void 0
6397
6401
  };
6398
6402
  }
@@ -6422,7 +6426,7 @@ function liftSchedule(during) {
6422
6426
  for (const action of during.actions) {
6423
6427
  parts.push({
6424
6428
  slug: "do",
6425
- category: (0, import_player_core.normalizeCategory)("expression", "mutation", action.type),
6429
+ category: normalizeCategory("expression", "mutation", action.type),
6426
6430
  parts: Object.entries(action.config || {}).map(([key, value]) => ({
6427
6431
  slug: key,
6428
6432
  category: ["atom"],
@@ -6432,7 +6436,7 @@ function liftSchedule(during) {
6432
6436
  }
6433
6437
  return {
6434
6438
  slug: during.id,
6435
- category: (0, import_player_core.normalizeCategory)("schedule", during.type),
6439
+ category: normalizeCategory("schedule", during.type),
6436
6440
  parts
6437
6441
  };
6438
6442
  }
@@ -6445,14 +6449,14 @@ function liftState(state) {
6445
6449
  if (state.on_enter && state.on_enter.length > 0) {
6446
6450
  parts.push({
6447
6451
  slug: "on_enter",
6448
- category: (0, import_player_core.normalizeCategory)("expression", "sequence"),
6452
+ category: normalizeCategory("expression", "sequence"),
6449
6453
  parts: state.on_enter.map(liftAction)
6450
6454
  });
6451
6455
  }
6452
6456
  if (state.on_exit && state.on_exit.length > 0) {
6453
6457
  parts.push({
6454
6458
  slug: "on_exit",
6455
- category: (0, import_player_core.normalizeCategory)("expression", "sequence"),
6459
+ category: normalizeCategory("expression", "sequence"),
6456
6460
  parts: state.on_exit.map(liftAction)
6457
6461
  });
6458
6462
  }
@@ -6463,7 +6467,7 @@ function liftState(state) {
6463
6467
  }
6464
6468
  return {
6465
6469
  slug: state.name,
6466
- category: (0, import_player_core.normalizeCategory)("state", ...tags),
6470
+ category: normalizeCategory("state", ...tags),
6467
6471
  parts: parts.length > 0 ? parts : void 0
6468
6472
  };
6469
6473
  }
@@ -6486,17 +6490,17 @@ function liftTransition(transition) {
6486
6490
  if (transition.actions && transition.actions.length > 0) {
6487
6491
  parts.push({
6488
6492
  slug: "actions",
6489
- category: (0, import_player_core.normalizeCategory)("expression", "sequence"),
6493
+ category: normalizeCategory("expression", "sequence"),
6490
6494
  parts: transition.actions.map(liftAction)
6491
6495
  });
6492
6496
  }
6493
6497
  if (transition.conditions && transition.conditions.length > 0) {
6494
6498
  parts.push({
6495
6499
  slug: "conditions",
6496
- category: (0, import_player_core.normalizeCategory)("expression", "guard"),
6500
+ category: normalizeCategory("expression", "guard"),
6497
6501
  parts: transition.conditions.map((c, i) => ({
6498
6502
  slug: `condition_${i}`,
6499
- category: (0, import_player_core.normalizeCategory)("expression", c.type || "condition"),
6503
+ category: normalizeCategory("expression", c.type || "condition"),
6500
6504
  parts: c.expression ? [{ slug: c.expression, category: ["binding"] }] : void 0
6501
6505
  }))
6502
6506
  });
@@ -6535,7 +6539,7 @@ function liftField(field) {
6535
6539
  }
6536
6540
  return {
6537
6541
  slug: field.name,
6538
- category: (0, import_player_core.normalizeCategory)("field", field.type),
6542
+ category: normalizeCategory("field", field.type),
6539
6543
  parts: parts.length > 0 ? parts : void 0
6540
6544
  };
6541
6545
  }
@@ -6558,20 +6562,20 @@ function liftView(node) {
6558
6562
  if (match) {
6559
6563
  parts.push({
6560
6564
  slug: key,
6561
- category: (0, import_player_core.normalizeCategory)("expression", "effect", "transition"),
6565
+ category: normalizeCategory("expression", "effect", "transition"),
6562
6566
  parts: [{ slug: match[1], category: ["ref"] }]
6563
6567
  });
6564
6568
  } else {
6565
6569
  parts.push({
6566
6570
  slug: key,
6567
- category: (0, import_player_core.normalizeCategory)("expression", "binding"),
6571
+ category: normalizeCategory("expression", "binding"),
6568
6572
  parts: [{ slug: String(expr), category: ["binding"] }]
6569
6573
  });
6570
6574
  }
6571
6575
  } else {
6572
6576
  parts.push({
6573
6577
  slug: key,
6574
- category: (0, import_player_core.normalizeCategory)("expression", "binding"),
6578
+ category: normalizeCategory("expression", "binding"),
6575
6579
  parts: [{ slug: String(expr), category: ["binding"] }]
6576
6580
  });
6577
6581
  }
@@ -6582,20 +6586,20 @@ function liftView(node) {
6582
6586
  if (eqMatch) {
6583
6587
  parts.push({
6584
6588
  slug: "visible_when",
6585
- category: (0, import_player_core.normalizeCategory)("expression", "guard"),
6589
+ category: normalizeCategory("expression", "guard"),
6586
6590
  parts: [{
6587
6591
  slug: "body",
6588
- category: (0, import_player_core.normalizeCategory)("expression", "eq"),
6592
+ category: normalizeCategory("expression", "eq"),
6589
6593
  parts: [
6590
- { slug: "lhs", category: (0, import_player_core.normalizeCategory)("expression", "path"), parts: [{ slug: eqMatch[1], category: ["binding"] }] },
6591
- { slug: "rhs", category: (0, import_player_core.normalizeCategory)("expression", "literal"), parts: [{ slug: eqMatch[2], category: ["literal"] }] }
6594
+ { slug: "lhs", category: normalizeCategory("expression", "path"), parts: [{ slug: eqMatch[1], category: ["binding"] }] },
6595
+ { slug: "rhs", category: normalizeCategory("expression", "literal"), parts: [{ slug: eqMatch[2], category: ["literal"] }] }
6592
6596
  ]
6593
6597
  }]
6594
6598
  });
6595
6599
  } else {
6596
6600
  parts.push({
6597
6601
  slug: "visible_when",
6598
- category: (0, import_player_core.normalizeCategory)("expression", "guard"),
6602
+ category: normalizeCategory("expression", "guard"),
6599
6603
  parts: [{ slug: node.visible_when, category: ["binding"] }]
6600
6604
  });
6601
6605
  }
@@ -6607,7 +6611,7 @@ function liftView(node) {
6607
6611
  }
6608
6612
  return {
6609
6613
  slug: node.id,
6610
- category: (0, import_player_core.normalizeCategory)("view", componentTag),
6614
+ category: normalizeCategory("view", componentTag),
6611
6615
  parts: parts.length > 0 ? parts : void 0
6612
6616
  };
6613
6617
  }
@@ -6628,7 +6632,7 @@ function emitCanonical(extracted, sourceFilename) {
6628
6632
  }
6629
6633
  parts.push({
6630
6634
  slug: "manifest",
6631
- category: (0, import_player_core.normalizeCategory)("meta", "manifest"),
6635
+ category: normalizeCategory("meta", "manifest"),
6632
6636
  parts: [
6633
6637
  {
6634
6638
  slug: "workflows",
@@ -6649,7 +6653,7 @@ function emitCanonical(extracted, sourceFilename) {
6649
6653
  let categoryArray;
6650
6654
  if (category.includes("/")) {
6651
6655
  const [primary, ...tags] = category.split("/");
6652
- categoryArray = (0, import_player_core.normalizeCategory)(primary, ...tags);
6656
+ categoryArray = normalizeCategory(primary, ...tags);
6653
6657
  } else {
6654
6658
  categoryArray = [category];
6655
6659
  }
package/dist/envelope.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  buildEnvelope
3
- } from "./chunk-J7JUAHS4.mjs";
3
+ } from "./chunk-Z2G5RZ4H.mjs";
4
4
  import "./chunk-5M7DKKBC.mjs";
5
- import "./chunk-OPJKP747.mjs";
5
+ import "./chunk-7JRAEFRB.mjs";
6
6
  import "./chunk-CIESM3BP.mjs";
7
7
  export {
8
8
  buildEnvelope
package/dist/index.js CHANGED
@@ -1874,6 +1874,18 @@ var init_component_extractor = __esm({
1874
1874
  }
1875
1875
  });
1876
1876
 
1877
+ // ../player-core/dist/index.mjs
1878
+ function normalizeCategory(primary, ...tags) {
1879
+ const uniqueTags = [...new Set(tags.filter((t27) => t27 !== primary))];
1880
+ uniqueTags.sort();
1881
+ return [primary, ...uniqueTags];
1882
+ }
1883
+ var init_dist = __esm({
1884
+ "../player-core/dist/index.mjs"() {
1885
+ "use strict";
1886
+ }
1887
+ });
1888
+
1877
1889
  // src/babel/emitters/experience-transform.ts
1878
1890
  function transformToFrontend(node) {
1879
1891
  const result = {
@@ -2250,7 +2262,7 @@ function liftAction(action) {
2250
2262
  }
2251
2263
  return {
2252
2264
  slug: action.id,
2253
- category: (0, import_player_core.normalizeCategory)("expression", "mutation", action.type),
2265
+ category: normalizeCategory("expression", "mutation", action.type),
2254
2266
  parts: parts.length > 0 ? parts : void 0
2255
2267
  };
2256
2268
  }
@@ -2280,7 +2292,7 @@ function liftSchedule(during) {
2280
2292
  for (const action of during.actions) {
2281
2293
  parts.push({
2282
2294
  slug: "do",
2283
- category: (0, import_player_core.normalizeCategory)("expression", "mutation", action.type),
2295
+ category: normalizeCategory("expression", "mutation", action.type),
2284
2296
  parts: Object.entries(action.config || {}).map(([key, value]) => ({
2285
2297
  slug: key,
2286
2298
  category: ["atom"],
@@ -2290,7 +2302,7 @@ function liftSchedule(during) {
2290
2302
  }
2291
2303
  return {
2292
2304
  slug: during.id,
2293
- category: (0, import_player_core.normalizeCategory)("schedule", during.type),
2305
+ category: normalizeCategory("schedule", during.type),
2294
2306
  parts
2295
2307
  };
2296
2308
  }
@@ -2303,14 +2315,14 @@ function liftState(state) {
2303
2315
  if (state.on_enter && state.on_enter.length > 0) {
2304
2316
  parts.push({
2305
2317
  slug: "on_enter",
2306
- category: (0, import_player_core.normalizeCategory)("expression", "sequence"),
2318
+ category: normalizeCategory("expression", "sequence"),
2307
2319
  parts: state.on_enter.map(liftAction)
2308
2320
  });
2309
2321
  }
2310
2322
  if (state.on_exit && state.on_exit.length > 0) {
2311
2323
  parts.push({
2312
2324
  slug: "on_exit",
2313
- category: (0, import_player_core.normalizeCategory)("expression", "sequence"),
2325
+ category: normalizeCategory("expression", "sequence"),
2314
2326
  parts: state.on_exit.map(liftAction)
2315
2327
  });
2316
2328
  }
@@ -2321,7 +2333,7 @@ function liftState(state) {
2321
2333
  }
2322
2334
  return {
2323
2335
  slug: state.name,
2324
- category: (0, import_player_core.normalizeCategory)("state", ...tags),
2336
+ category: normalizeCategory("state", ...tags),
2325
2337
  parts: parts.length > 0 ? parts : void 0
2326
2338
  };
2327
2339
  }
@@ -2344,17 +2356,17 @@ function liftTransition(transition) {
2344
2356
  if (transition.actions && transition.actions.length > 0) {
2345
2357
  parts.push({
2346
2358
  slug: "actions",
2347
- category: (0, import_player_core.normalizeCategory)("expression", "sequence"),
2359
+ category: normalizeCategory("expression", "sequence"),
2348
2360
  parts: transition.actions.map(liftAction)
2349
2361
  });
2350
2362
  }
2351
2363
  if (transition.conditions && transition.conditions.length > 0) {
2352
2364
  parts.push({
2353
2365
  slug: "conditions",
2354
- category: (0, import_player_core.normalizeCategory)("expression", "guard"),
2366
+ category: normalizeCategory("expression", "guard"),
2355
2367
  parts: transition.conditions.map((c, i) => ({
2356
2368
  slug: `condition_${i}`,
2357
- category: (0, import_player_core.normalizeCategory)("expression", c.type || "condition"),
2369
+ category: normalizeCategory("expression", c.type || "condition"),
2358
2370
  parts: c.expression ? [{ slug: c.expression, category: ["binding"] }] : void 0
2359
2371
  }))
2360
2372
  });
@@ -2393,7 +2405,7 @@ function liftField(field) {
2393
2405
  }
2394
2406
  return {
2395
2407
  slug: field.name,
2396
- category: (0, import_player_core.normalizeCategory)("field", field.type),
2408
+ category: normalizeCategory("field", field.type),
2397
2409
  parts: parts.length > 0 ? parts : void 0
2398
2410
  };
2399
2411
  }
@@ -2416,20 +2428,20 @@ function liftView(node) {
2416
2428
  if (match) {
2417
2429
  parts.push({
2418
2430
  slug: key,
2419
- category: (0, import_player_core.normalizeCategory)("expression", "effect", "transition"),
2431
+ category: normalizeCategory("expression", "effect", "transition"),
2420
2432
  parts: [{ slug: match[1], category: ["ref"] }]
2421
2433
  });
2422
2434
  } else {
2423
2435
  parts.push({
2424
2436
  slug: key,
2425
- category: (0, import_player_core.normalizeCategory)("expression", "binding"),
2437
+ category: normalizeCategory("expression", "binding"),
2426
2438
  parts: [{ slug: String(expr), category: ["binding"] }]
2427
2439
  });
2428
2440
  }
2429
2441
  } else {
2430
2442
  parts.push({
2431
2443
  slug: key,
2432
- category: (0, import_player_core.normalizeCategory)("expression", "binding"),
2444
+ category: normalizeCategory("expression", "binding"),
2433
2445
  parts: [{ slug: String(expr), category: ["binding"] }]
2434
2446
  });
2435
2447
  }
@@ -2440,20 +2452,20 @@ function liftView(node) {
2440
2452
  if (eqMatch) {
2441
2453
  parts.push({
2442
2454
  slug: "visible_when",
2443
- category: (0, import_player_core.normalizeCategory)("expression", "guard"),
2455
+ category: normalizeCategory("expression", "guard"),
2444
2456
  parts: [{
2445
2457
  slug: "body",
2446
- category: (0, import_player_core.normalizeCategory)("expression", "eq"),
2458
+ category: normalizeCategory("expression", "eq"),
2447
2459
  parts: [
2448
- { slug: "lhs", category: (0, import_player_core.normalizeCategory)("expression", "path"), parts: [{ slug: eqMatch[1], category: ["binding"] }] },
2449
- { slug: "rhs", category: (0, import_player_core.normalizeCategory)("expression", "literal"), parts: [{ slug: eqMatch[2], category: ["literal"] }] }
2460
+ { slug: "lhs", category: normalizeCategory("expression", "path"), parts: [{ slug: eqMatch[1], category: ["binding"] }] },
2461
+ { slug: "rhs", category: normalizeCategory("expression", "literal"), parts: [{ slug: eqMatch[2], category: ["literal"] }] }
2450
2462
  ]
2451
2463
  }]
2452
2464
  });
2453
2465
  } else {
2454
2466
  parts.push({
2455
2467
  slug: "visible_when",
2456
- category: (0, import_player_core.normalizeCategory)("expression", "guard"),
2468
+ category: normalizeCategory("expression", "guard"),
2457
2469
  parts: [{ slug: node.visible_when, category: ["binding"] }]
2458
2470
  });
2459
2471
  }
@@ -2465,7 +2477,7 @@ function liftView(node) {
2465
2477
  }
2466
2478
  return {
2467
2479
  slug: node.id,
2468
- category: (0, import_player_core.normalizeCategory)("view", componentTag),
2480
+ category: normalizeCategory("view", componentTag),
2469
2481
  parts: parts.length > 0 ? parts : void 0
2470
2482
  };
2471
2483
  }
@@ -2486,7 +2498,7 @@ function emitCanonical(extracted, sourceFilename) {
2486
2498
  }
2487
2499
  parts.push({
2488
2500
  slug: "manifest",
2489
- category: (0, import_player_core.normalizeCategory)("meta", "manifest"),
2501
+ category: normalizeCategory("meta", "manifest"),
2490
2502
  parts: [
2491
2503
  {
2492
2504
  slug: "workflows",
@@ -2507,7 +2519,7 @@ function emitCanonical(extracted, sourceFilename) {
2507
2519
  let categoryArray;
2508
2520
  if (category.includes("/")) {
2509
2521
  const [primary, ...tags] = category.split("/");
2510
- categoryArray = (0, import_player_core.normalizeCategory)(primary, ...tags);
2522
+ categoryArray = normalizeCategory(primary, ...tags);
2511
2523
  } else {
2512
2524
  categoryArray = [category];
2513
2525
  }
@@ -2676,11 +2688,11 @@ function compilerStateToWorkflow(state, metadata) {
2676
2688
  extraMetadata: Object.keys(extraMetadata).length > 0 ? extraMetadata : void 0
2677
2689
  };
2678
2690
  }
2679
- var import_player_core, PROP_RULES, COMPONENT_RENAMES, RENAME_EXTRA_CONFIG, emitPureForm;
2691
+ var PROP_RULES, COMPONENT_RENAMES, RENAME_EXTRA_CONFIG, emitPureForm;
2680
2692
  var init_pure_form_emitter = __esm({
2681
2693
  "src/babel/emitters/pure-form-emitter.ts"() {
2682
2694
  "use strict";
2683
- import_player_core = require("@mindmatrix/player-core");
2695
+ init_dist();
2684
2696
  init_transition_extractor();
2685
2697
  init_experience_transform();
2686
2698
  PROP_RULES = {
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  resolveActionReferences,
14
14
  resolveImport,
15
15
  topologicalSort
16
- } from "./chunk-NTB7OEX2.mjs";
16
+ } from "./chunk-ZE3KCHBM.mjs";
17
17
  import {
18
18
  decompile,
19
19
  decompileProject,
@@ -21,17 +21,17 @@ import {
21
21
  } from "./chunk-WBYMW4NQ.mjs";
22
22
  import {
23
23
  createDevServer
24
- } from "./chunk-5GUFFFGL.mjs";
25
- import "./chunk-EO6SYNCG.mjs";
24
+ } from "./chunk-O4AUS7EU.mjs";
25
+ import "./chunk-HRYR54PT.mjs";
26
26
  import {
27
27
  buildEnvelope
28
- } from "./chunk-J7JUAHS4.mjs";
28
+ } from "./chunk-Z2G5RZ4H.mjs";
29
29
  import {
30
30
  deploy
31
31
  } from "./chunk-52XHYD2V.mjs";
32
32
  import {
33
33
  build
34
- } from "./chunk-THFYE5ZX.mjs";
34
+ } from "./chunk-5FTDWKHH.mjs";
35
35
  import {
36
36
  computeEnvelopeId,
37
37
  createSourceEnvelope,
@@ -57,7 +57,7 @@ import {
57
57
  extractStates,
58
58
  extractTransitions,
59
59
  transformToFrontend
60
- } from "./chunk-OPJKP747.mjs";
60
+ } from "./chunk-7JRAEFRB.mjs";
61
61
  import "./chunk-CIESM3BP.mjs";
62
62
 
63
63
  // src/babel/emitters/ir-to-tsx-emitter.ts
@@ -0,0 +1,10 @@
1
+ import {
2
+ IncrementalProjectCompiler,
3
+ compileProject
4
+ } from "./chunk-ZE3KCHBM.mjs";
5
+ import "./chunk-7JRAEFRB.mjs";
6
+ import "./chunk-CIESM3BP.mjs";
7
+ export {
8
+ IncrementalProjectCompiler,
9
+ compileProject
10
+ };
@@ -6007,8 +6007,12 @@ function extractStaticObj(obj) {
6007
6007
  return result;
6008
6008
  }
6009
6009
 
6010
- // src/babel/emitters/pure-form-emitter.ts
6011
- var import_player_core = require("@mindmatrix/player-core");
6010
+ // ../player-core/dist/index.mjs
6011
+ function normalizeCategory(primary, ...tags) {
6012
+ const uniqueTags = [...new Set(tags.filter((t22) => t22 !== primary))];
6013
+ uniqueTags.sort();
6014
+ return [primary, ...uniqueTags];
6015
+ }
6012
6016
 
6013
6017
  // src/babel/emitters/experience-transform.ts
6014
6018
  function transformToFrontend(node) {
@@ -6401,7 +6405,7 @@ function liftAction(action) {
6401
6405
  }
6402
6406
  return {
6403
6407
  slug: action.id,
6404
- category: (0, import_player_core.normalizeCategory)("expression", "mutation", action.type),
6408
+ category: normalizeCategory("expression", "mutation", action.type),
6405
6409
  parts: parts.length > 0 ? parts : void 0
6406
6410
  };
6407
6411
  }
@@ -6431,7 +6435,7 @@ function liftSchedule(during) {
6431
6435
  for (const action of during.actions) {
6432
6436
  parts.push({
6433
6437
  slug: "do",
6434
- category: (0, import_player_core.normalizeCategory)("expression", "mutation", action.type),
6438
+ category: normalizeCategory("expression", "mutation", action.type),
6435
6439
  parts: Object.entries(action.config || {}).map(([key, value]) => ({
6436
6440
  slug: key,
6437
6441
  category: ["atom"],
@@ -6441,7 +6445,7 @@ function liftSchedule(during) {
6441
6445
  }
6442
6446
  return {
6443
6447
  slug: during.id,
6444
- category: (0, import_player_core.normalizeCategory)("schedule", during.type),
6448
+ category: normalizeCategory("schedule", during.type),
6445
6449
  parts
6446
6450
  };
6447
6451
  }
@@ -6454,14 +6458,14 @@ function liftState(state) {
6454
6458
  if (state.on_enter && state.on_enter.length > 0) {
6455
6459
  parts.push({
6456
6460
  slug: "on_enter",
6457
- category: (0, import_player_core.normalizeCategory)("expression", "sequence"),
6461
+ category: normalizeCategory("expression", "sequence"),
6458
6462
  parts: state.on_enter.map(liftAction)
6459
6463
  });
6460
6464
  }
6461
6465
  if (state.on_exit && state.on_exit.length > 0) {
6462
6466
  parts.push({
6463
6467
  slug: "on_exit",
6464
- category: (0, import_player_core.normalizeCategory)("expression", "sequence"),
6468
+ category: normalizeCategory("expression", "sequence"),
6465
6469
  parts: state.on_exit.map(liftAction)
6466
6470
  });
6467
6471
  }
@@ -6472,7 +6476,7 @@ function liftState(state) {
6472
6476
  }
6473
6477
  return {
6474
6478
  slug: state.name,
6475
- category: (0, import_player_core.normalizeCategory)("state", ...tags),
6479
+ category: normalizeCategory("state", ...tags),
6476
6480
  parts: parts.length > 0 ? parts : void 0
6477
6481
  };
6478
6482
  }
@@ -6495,17 +6499,17 @@ function liftTransition(transition) {
6495
6499
  if (transition.actions && transition.actions.length > 0) {
6496
6500
  parts.push({
6497
6501
  slug: "actions",
6498
- category: (0, import_player_core.normalizeCategory)("expression", "sequence"),
6502
+ category: normalizeCategory("expression", "sequence"),
6499
6503
  parts: transition.actions.map(liftAction)
6500
6504
  });
6501
6505
  }
6502
6506
  if (transition.conditions && transition.conditions.length > 0) {
6503
6507
  parts.push({
6504
6508
  slug: "conditions",
6505
- category: (0, import_player_core.normalizeCategory)("expression", "guard"),
6509
+ category: normalizeCategory("expression", "guard"),
6506
6510
  parts: transition.conditions.map((c, i) => ({
6507
6511
  slug: `condition_${i}`,
6508
- category: (0, import_player_core.normalizeCategory)("expression", c.type || "condition"),
6512
+ category: normalizeCategory("expression", c.type || "condition"),
6509
6513
  parts: c.expression ? [{ slug: c.expression, category: ["binding"] }] : void 0
6510
6514
  }))
6511
6515
  });
@@ -6544,7 +6548,7 @@ function liftField(field) {
6544
6548
  }
6545
6549
  return {
6546
6550
  slug: field.name,
6547
- category: (0, import_player_core.normalizeCategory)("field", field.type),
6551
+ category: normalizeCategory("field", field.type),
6548
6552
  parts: parts.length > 0 ? parts : void 0
6549
6553
  };
6550
6554
  }
@@ -6567,20 +6571,20 @@ function liftView(node) {
6567
6571
  if (match) {
6568
6572
  parts.push({
6569
6573
  slug: key,
6570
- category: (0, import_player_core.normalizeCategory)("expression", "effect", "transition"),
6574
+ category: normalizeCategory("expression", "effect", "transition"),
6571
6575
  parts: [{ slug: match[1], category: ["ref"] }]
6572
6576
  });
6573
6577
  } else {
6574
6578
  parts.push({
6575
6579
  slug: key,
6576
- category: (0, import_player_core.normalizeCategory)("expression", "binding"),
6580
+ category: normalizeCategory("expression", "binding"),
6577
6581
  parts: [{ slug: String(expr), category: ["binding"] }]
6578
6582
  });
6579
6583
  }
6580
6584
  } else {
6581
6585
  parts.push({
6582
6586
  slug: key,
6583
- category: (0, import_player_core.normalizeCategory)("expression", "binding"),
6587
+ category: normalizeCategory("expression", "binding"),
6584
6588
  parts: [{ slug: String(expr), category: ["binding"] }]
6585
6589
  });
6586
6590
  }
@@ -6591,20 +6595,20 @@ function liftView(node) {
6591
6595
  if (eqMatch) {
6592
6596
  parts.push({
6593
6597
  slug: "visible_when",
6594
- category: (0, import_player_core.normalizeCategory)("expression", "guard"),
6598
+ category: normalizeCategory("expression", "guard"),
6595
6599
  parts: [{
6596
6600
  slug: "body",
6597
- category: (0, import_player_core.normalizeCategory)("expression", "eq"),
6601
+ category: normalizeCategory("expression", "eq"),
6598
6602
  parts: [
6599
- { slug: "lhs", category: (0, import_player_core.normalizeCategory)("expression", "path"), parts: [{ slug: eqMatch[1], category: ["binding"] }] },
6600
- { slug: "rhs", category: (0, import_player_core.normalizeCategory)("expression", "literal"), parts: [{ slug: eqMatch[2], category: ["literal"] }] }
6603
+ { slug: "lhs", category: normalizeCategory("expression", "path"), parts: [{ slug: eqMatch[1], category: ["binding"] }] },
6604
+ { slug: "rhs", category: normalizeCategory("expression", "literal"), parts: [{ slug: eqMatch[2], category: ["literal"] }] }
6601
6605
  ]
6602
6606
  }]
6603
6607
  });
6604
6608
  } else {
6605
6609
  parts.push({
6606
6610
  slug: "visible_when",
6607
- category: (0, import_player_core.normalizeCategory)("expression", "guard"),
6611
+ category: normalizeCategory("expression", "guard"),
6608
6612
  parts: [{ slug: node.visible_when, category: ["binding"] }]
6609
6613
  });
6610
6614
  }
@@ -6616,7 +6620,7 @@ function liftView(node) {
6616
6620
  }
6617
6621
  return {
6618
6622
  slug: node.id,
6619
- category: (0, import_player_core.normalizeCategory)("view", componentTag),
6623
+ category: normalizeCategory("view", componentTag),
6620
6624
  parts: parts.length > 0 ? parts : void 0
6621
6625
  };
6622
6626
  }
@@ -6637,7 +6641,7 @@ function emitCanonical(extracted, sourceFilename) {
6637
6641
  }
6638
6642
  parts.push({
6639
6643
  slug: "manifest",
6640
- category: (0, import_player_core.normalizeCategory)("meta", "manifest"),
6644
+ category: normalizeCategory("meta", "manifest"),
6641
6645
  parts: [
6642
6646
  {
6643
6647
  slug: "workflows",
@@ -6658,7 +6662,7 @@ function emitCanonical(extracted, sourceFilename) {
6658
6662
  let categoryArray;
6659
6663
  if (category.includes("/")) {
6660
6664
  const [primary, ...tags] = category.split("/");
6661
- categoryArray = (0, import_player_core.normalizeCategory)(primary, ...tags);
6665
+ categoryArray = normalizeCategory(primary, ...tags);
6662
6666
  } else {
6663
6667
  categoryArray = [category];
6664
6668
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  babelPlugin
3
- } from "../chunk-OPJKP747.mjs";
3
+ } from "../chunk-7JRAEFRB.mjs";
4
4
  import {
5
5
  __require
6
6
  } from "../chunk-CIESM3BP.mjs";