@komaci/common-shared 242.3.1 → 244.1.0
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/build/internal-namespaces.json +46 -33
- package/build/komaci-mapping.json +1 -7
- package/build/moduleMetadata.js +2 -0
- package/build/types.d.ts +3 -0
- package/build/utils.d.ts +7 -0
- package/build/utils.js +14 -1
- package/package.json +2 -2
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"DiscoveryFrmwrk",
|
|
58
58
|
"Dns",
|
|
59
59
|
"Dom",
|
|
60
|
-
"EDUScheduler",
|
|
61
60
|
"Email",
|
|
62
61
|
"EmailTemplate",
|
|
63
62
|
"Evernote",
|
|
@@ -139,7 +138,7 @@
|
|
|
139
138
|
"ProcessUIMgnt",
|
|
140
139
|
"ProcessUIRule",
|
|
141
140
|
"ProductSecurity",
|
|
142
|
-
"
|
|
141
|
+
"ProgramMgmt",
|
|
143
142
|
"QuickAction",
|
|
144
143
|
"QuotesTrusted",
|
|
145
144
|
"Readiness",
|
|
@@ -232,7 +231,6 @@
|
|
|
232
231
|
"b2b_buyer_quick_order",
|
|
233
232
|
"b2b_buyer_styling",
|
|
234
233
|
"b2b_buyer_wishlists",
|
|
235
|
-
"b2b_lwr_buyer_builder",
|
|
236
234
|
"b2b_search_api",
|
|
237
235
|
"b2b_search_builder",
|
|
238
236
|
"b2b_search_facets",
|
|
@@ -244,6 +242,7 @@
|
|
|
244
242
|
"b2b_search_suggestions",
|
|
245
243
|
"b2b_storefront",
|
|
246
244
|
"b2c_lite_commerce",
|
|
245
|
+
"ba_exp_flows",
|
|
247
246
|
"batch_management",
|
|
248
247
|
"bctutils",
|
|
249
248
|
"benefits",
|
|
@@ -262,7 +261,9 @@
|
|
|
262
261
|
"briefcasetest",
|
|
263
262
|
"broadcast_alert",
|
|
264
263
|
"broadcast_sites",
|
|
264
|
+
"broadcast_slack",
|
|
265
265
|
"builder_communities_nba",
|
|
266
|
+
"builder_e360_journeys",
|
|
266
267
|
"builder_industries_arcgraph",
|
|
267
268
|
"builder_industries_dataprocessingengine",
|
|
268
269
|
"builder_industries_fsc",
|
|
@@ -284,6 +285,14 @@
|
|
|
284
285
|
"calendar",
|
|
285
286
|
"case_swarming",
|
|
286
287
|
"caseman",
|
|
288
|
+
"cci_01",
|
|
289
|
+
"cci_02",
|
|
290
|
+
"cci_03",
|
|
291
|
+
"cci_04",
|
|
292
|
+
"cci_05",
|
|
293
|
+
"cci_06",
|
|
294
|
+
"cci_07",
|
|
295
|
+
"ccm_exp_flows",
|
|
287
296
|
"ccrz",
|
|
288
297
|
"ccrzqard",
|
|
289
298
|
"ccsi",
|
|
@@ -314,6 +323,7 @@
|
|
|
314
323
|
"commerce_console",
|
|
315
324
|
"commerce_dx_sampleapp",
|
|
316
325
|
"commerce_extension",
|
|
326
|
+
"commerce_inventory",
|
|
317
327
|
"commerce_my_account",
|
|
318
328
|
"commerce_ordermanagement",
|
|
319
329
|
"commerce_ordersummary",
|
|
@@ -332,6 +342,8 @@
|
|
|
332
342
|
"commonserviceexcellence",
|
|
333
343
|
"commpay_mp",
|
|
334
344
|
"comms_msm",
|
|
345
|
+
"comms_msm_ac_cmp",
|
|
346
|
+
"comms_msm_bp_cmp",
|
|
335
347
|
"comms_msm_cmp",
|
|
336
348
|
"comms_msm_spike_cmp",
|
|
337
349
|
"community_article",
|
|
@@ -339,7 +351,6 @@
|
|
|
339
351
|
"community_builder_test",
|
|
340
352
|
"community_byo",
|
|
341
353
|
"community_case",
|
|
342
|
-
"community_cms",
|
|
343
354
|
"community_content",
|
|
344
355
|
"community_dam",
|
|
345
356
|
"community_deflection",
|
|
@@ -370,7 +381,6 @@
|
|
|
370
381
|
"dataweave",
|
|
371
382
|
"deployToDb",
|
|
372
383
|
"designtime_cdp",
|
|
373
|
-
"designtime_d360_p13n",
|
|
374
384
|
"designtime_journeys",
|
|
375
385
|
"desktopDashboards",
|
|
376
386
|
"devopsimpkg1",
|
|
@@ -408,7 +418,17 @@
|
|
|
408
418
|
"devopsimpkg39",
|
|
409
419
|
"devopsimpkg4",
|
|
410
420
|
"devopsimpkg40",
|
|
421
|
+
"devopsimpkg41",
|
|
422
|
+
"devopsimpkg42",
|
|
423
|
+
"devopsimpkg43",
|
|
424
|
+
"devopsimpkg44",
|
|
425
|
+
"devopsimpkg45",
|
|
426
|
+
"devopsimpkg46",
|
|
427
|
+
"devopsimpkg47",
|
|
428
|
+
"devopsimpkg48",
|
|
429
|
+
"devopsimpkg49",
|
|
411
430
|
"devopsimpkg5",
|
|
431
|
+
"devopsimpkg50",
|
|
412
432
|
"devopsimpkg6",
|
|
413
433
|
"devopsimpkg7",
|
|
414
434
|
"devopsimpkg8",
|
|
@@ -424,6 +444,7 @@
|
|
|
424
444
|
"dxp_flow",
|
|
425
445
|
"dxp_flowruntime",
|
|
426
446
|
"dxp_form",
|
|
447
|
+
"dxp_icon",
|
|
427
448
|
"dxp_layout",
|
|
428
449
|
"dxp_page_layout",
|
|
429
450
|
"dxp_records",
|
|
@@ -434,7 +455,6 @@
|
|
|
434
455
|
"eamobile",
|
|
435
456
|
"eduadmissions",
|
|
436
457
|
"educationcloud",
|
|
437
|
-
"educationcloud_scheduler",
|
|
438
458
|
"eduint",
|
|
439
459
|
"edurfi",
|
|
440
460
|
"eduscheduler",
|
|
@@ -446,7 +466,6 @@
|
|
|
446
466
|
"embeddedService",
|
|
447
467
|
"embedded_service",
|
|
448
468
|
"embedded_service_iframe",
|
|
449
|
-
"enhanced_omni_bot",
|
|
450
469
|
"environmenthub",
|
|
451
470
|
"es_base_components",
|
|
452
471
|
"es_block_builder",
|
|
@@ -482,18 +501,13 @@
|
|
|
482
501
|
"feeds_voting",
|
|
483
502
|
"fieldservicemobile",
|
|
484
503
|
"financialservices",
|
|
485
|
-
"financialservicesFSC12",
|
|
486
|
-
"financialservicesFSC2",
|
|
487
|
-
"financialservicesFSC9gs0",
|
|
488
504
|
"finserv",
|
|
489
505
|
"flow_object_linking",
|
|
490
|
-
"flow_object_linking_admin_experience",
|
|
491
506
|
"flowruntime_test",
|
|
492
507
|
"flowtrigger",
|
|
493
508
|
"folder",
|
|
494
509
|
"forceLicensing",
|
|
495
510
|
"forceSearch",
|
|
496
|
-
"forecasting_mobile",
|
|
497
511
|
"fsaa",
|
|
498
512
|
"fsaa_test",
|
|
499
513
|
"fsc",
|
|
@@ -517,6 +531,7 @@
|
|
|
517
531
|
"fsc_rb",
|
|
518
532
|
"fscmainstgpu",
|
|
519
533
|
"fscmainstguat",
|
|
534
|
+
"fscserviceprocess",
|
|
520
535
|
"fscwmgen",
|
|
521
536
|
"fscwmmain",
|
|
522
537
|
"ftest",
|
|
@@ -524,6 +539,7 @@
|
|
|
524
539
|
"ftest_sfdc_checkout",
|
|
525
540
|
"functest_platform_lwr",
|
|
526
541
|
"functions",
|
|
542
|
+
"group_industries_publicsector",
|
|
527
543
|
"guardrails",
|
|
528
544
|
"guardrailstest",
|
|
529
545
|
"hammer",
|
|
@@ -551,10 +567,8 @@
|
|
|
551
567
|
"hcmainstgpu",
|
|
552
568
|
"hcmainstguat",
|
|
553
569
|
"hcumprovider",
|
|
554
|
-
"healthcare_crisis_center",
|
|
555
570
|
"healthcloud",
|
|
556
571
|
"healthcloud_ato_flows",
|
|
557
|
-
"healthcloud_crisis_center",
|
|
558
572
|
"healthcloud_iam_flows",
|
|
559
573
|
"healthcloud_icm_flows",
|
|
560
574
|
"healthcloud_patientcard",
|
|
@@ -564,15 +578,13 @@
|
|
|
564
578
|
"healthcloudga",
|
|
565
579
|
"hed",
|
|
566
580
|
"hvcc",
|
|
567
|
-
"hvs_flow",
|
|
568
581
|
"hvs_linkedin",
|
|
569
|
-
"hvs_turnkey_flows",
|
|
570
582
|
"hyperforce_assistant",
|
|
571
583
|
"id_verification",
|
|
572
584
|
"idxr_core",
|
|
573
585
|
"ind_docgen_api",
|
|
574
586
|
"industries_automotive",
|
|
575
|
-
"
|
|
587
|
+
"industries_automotive_scheduler",
|
|
576
588
|
"industries_cds_common",
|
|
577
589
|
"industries_cib",
|
|
578
590
|
"industries_clm",
|
|
@@ -595,7 +607,10 @@
|
|
|
595
607
|
"industries_mfg_targets",
|
|
596
608
|
"industries_mfg_targets_test",
|
|
597
609
|
"industries_sales_excellence",
|
|
610
|
+
"industries_sales_excellence_omnistudio",
|
|
598
611
|
"industries_service_excellence",
|
|
612
|
+
"industriesintegrationfwk",
|
|
613
|
+
"industriesserviceprocess",
|
|
599
614
|
"ins_exp_pc01",
|
|
600
615
|
"ins_exp_pc02",
|
|
601
616
|
"ins_exp_pc03",
|
|
@@ -615,6 +630,7 @@
|
|
|
615
630
|
"jsonxform",
|
|
616
631
|
"k12",
|
|
617
632
|
"kc_na46",
|
|
633
|
+
"knowledge_bot",
|
|
618
634
|
"knowledge_lightning",
|
|
619
635
|
"komaci",
|
|
620
636
|
"laftest",
|
|
@@ -643,8 +659,6 @@
|
|
|
643
659
|
"mcdm_15",
|
|
644
660
|
"mcdm_8",
|
|
645
661
|
"mcontent",
|
|
646
|
-
"mcontent_base_block",
|
|
647
|
-
"mcontent_builder",
|
|
648
662
|
"mcontent_channel",
|
|
649
663
|
"mcontent_content_detail",
|
|
650
664
|
"mcontent_content_picker",
|
|
@@ -652,9 +666,9 @@
|
|
|
652
666
|
"mcontent_content_translate",
|
|
653
667
|
"mcontent_editor",
|
|
654
668
|
"mcontent_interaction_builder",
|
|
655
|
-
"mcontent_property_editor",
|
|
656
669
|
"mcontent_workspace",
|
|
657
670
|
"mfa_assistant",
|
|
671
|
+
"mlplatform",
|
|
658
672
|
"mobileBuilder",
|
|
659
673
|
"mobile_setup",
|
|
660
674
|
"mulesoft_citizen",
|
|
@@ -664,7 +678,6 @@
|
|
|
664
678
|
"o11y",
|
|
665
679
|
"o11y_schema",
|
|
666
680
|
"objectManager",
|
|
667
|
-
"offlineapp",
|
|
668
681
|
"omnichannel",
|
|
669
682
|
"omnichannel_chat",
|
|
670
683
|
"omnichannel_messaging",
|
|
@@ -673,7 +686,6 @@
|
|
|
673
686
|
"onlinesales",
|
|
674
687
|
"opencti",
|
|
675
688
|
"openctitest",
|
|
676
|
-
"osl_journeys",
|
|
677
689
|
"outfunds",
|
|
678
690
|
"outfundsnpspext",
|
|
679
691
|
"partitionscheme",
|
|
@@ -681,19 +693,20 @@
|
|
|
681
693
|
"pc_dev_na46",
|
|
682
694
|
"pc_qe_na46",
|
|
683
695
|
"perf_dc230",
|
|
684
|
-
"performanceassistant_apex_namespace",
|
|
685
696
|
"perms",
|
|
686
697
|
"pi",
|
|
687
698
|
"platformencryption",
|
|
688
699
|
"pmdm",
|
|
689
700
|
"predictive",
|
|
690
701
|
"pref_center",
|
|
702
|
+
"privacy_center",
|
|
691
703
|
"private_industries_common",
|
|
692
704
|
"process_home",
|
|
693
705
|
"process_migration",
|
|
694
706
|
"program_mgmt_omnistudio",
|
|
707
|
+
"pss_referral_flows",
|
|
708
|
+
"pss_service_excellence_flows",
|
|
695
709
|
"publicsector_disb_flows",
|
|
696
|
-
"publicsector_exp_flows",
|
|
697
710
|
"publicsectrsltn",
|
|
698
711
|
"randa",
|
|
699
712
|
"record_flexipage",
|
|
@@ -709,6 +722,7 @@
|
|
|
709
722
|
"runtime_associationengine",
|
|
710
723
|
"runtime_automated_actions",
|
|
711
724
|
"runtime_branch_management",
|
|
725
|
+
"runtime_calendar",
|
|
712
726
|
"runtime_cdp",
|
|
713
727
|
"runtime_commerce_adj",
|
|
714
728
|
"runtime_commerce_entitlements",
|
|
@@ -760,6 +774,7 @@
|
|
|
760
774
|
"runtime_industries_omnistudio",
|
|
761
775
|
"runtime_industries_orderforecasting",
|
|
762
776
|
"runtime_industries_ordermanagement",
|
|
777
|
+
"runtime_industries_pricing",
|
|
763
778
|
"runtime_industries_program_mgmt",
|
|
764
779
|
"runtime_industries_publicsector",
|
|
765
780
|
"runtime_industries_recurrence",
|
|
@@ -773,7 +788,6 @@
|
|
|
773
788
|
"runtime_industries_tearsheet",
|
|
774
789
|
"runtime_industries_utilizationmanagement",
|
|
775
790
|
"runtime_industries_visit",
|
|
776
|
-
"runtime_ladybug",
|
|
777
791
|
"runtime_learning_essentials_welcome",
|
|
778
792
|
"runtime_marketing_btobma",
|
|
779
793
|
"runtime_marketing_litmuspreview",
|
|
@@ -845,7 +859,6 @@
|
|
|
845
859
|
"runtime_search_federated",
|
|
846
860
|
"runtime_service_easy",
|
|
847
861
|
"runtime_service_fieldservice",
|
|
848
|
-
"runtime_service_gantt",
|
|
849
862
|
"runtime_service_incident_mgmt",
|
|
850
863
|
"runtime_service_liveagent",
|
|
851
864
|
"runtime_service_livemessage",
|
|
@@ -859,7 +872,6 @@
|
|
|
859
872
|
"runtime_service_workforce_engagement_config",
|
|
860
873
|
"runtime_ses_base",
|
|
861
874
|
"runtime_ses_ext",
|
|
862
|
-
"runtime_slack_block",
|
|
863
875
|
"runtime_ufa_flows",
|
|
864
876
|
"runtime_workdotcom_qmgmt",
|
|
865
877
|
"rypple_corp",
|
|
@@ -888,7 +900,6 @@
|
|
|
888
900
|
"service_cloud_voice",
|
|
889
901
|
"servicecatalogbuilder",
|
|
890
902
|
"serviceprocess",
|
|
891
|
-
"setup_analytics_data_service",
|
|
892
903
|
"setup_analytics_datamanager",
|
|
893
904
|
"setup_analytics_pardot",
|
|
894
905
|
"setup_automated_actions",
|
|
@@ -911,17 +922,20 @@
|
|
|
911
922
|
"setup_industries_byoa",
|
|
912
923
|
"setup_industries_churnprediction",
|
|
913
924
|
"setup_industries_clm",
|
|
925
|
+
"setup_industries_clm_addin",
|
|
914
926
|
"setup_industries_common",
|
|
915
927
|
"setup_industries_comprehend",
|
|
916
928
|
"setup_industries_dataprocessingengine",
|
|
917
929
|
"setup_industries_decisiontable",
|
|
918
930
|
"setup_industries_docgen",
|
|
919
931
|
"setup_industries_documentreader",
|
|
932
|
+
"setup_industries_educationcloud",
|
|
920
933
|
"setup_industries_insurance",
|
|
921
934
|
"setup_industries_mfg_common",
|
|
922
935
|
"setup_industries_mfg_service",
|
|
923
936
|
"setup_industries_mfgprogram",
|
|
924
937
|
"setup_industries_objectdetection",
|
|
938
|
+
"setup_industries_pricing",
|
|
925
939
|
"setup_industries_referralscoring",
|
|
926
940
|
"setup_industries_rfm",
|
|
927
941
|
"setup_industries_scoringframework",
|
|
@@ -945,7 +959,6 @@
|
|
|
945
959
|
"setup_platform_adoptionapps",
|
|
946
960
|
"setup_platform_api_wsdl",
|
|
947
961
|
"setup_platform_cdc",
|
|
948
|
-
"setup_platform_connectcenter",
|
|
949
962
|
"setup_platform_dsar",
|
|
950
963
|
"setup_platform_dynamodbsetupwizard",
|
|
951
964
|
"setup_platform_externalconnection",
|
|
@@ -975,6 +988,7 @@
|
|
|
975
988
|
"setup_service_experience",
|
|
976
989
|
"setup_service_fieldservice",
|
|
977
990
|
"setup_service_flowobjectlinking",
|
|
991
|
+
"setup_service_folvoice",
|
|
978
992
|
"setup_service_intents",
|
|
979
993
|
"setup_service_livemessage",
|
|
980
994
|
"setup_service_messenger",
|
|
@@ -989,6 +1003,7 @@
|
|
|
989
1003
|
"setup_service_usecaseexplorer",
|
|
990
1004
|
"setup_service_voice",
|
|
991
1005
|
"setup_user_access_policies",
|
|
1006
|
+
"setup_value_center",
|
|
992
1007
|
"sfFma",
|
|
993
1008
|
"sfLma",
|
|
994
1009
|
"sf_devops",
|
|
@@ -1009,7 +1024,6 @@
|
|
|
1009
1024
|
"sfdc_surveys",
|
|
1010
1025
|
"sfdc_tableau_viz",
|
|
1011
1026
|
"sfdc_unifiedapplication",
|
|
1012
|
-
"sfdc_web3",
|
|
1013
1027
|
"sfdo_grants",
|
|
1014
1028
|
"sfdobase",
|
|
1015
1029
|
"sfdomc",
|
|
@@ -1029,7 +1043,6 @@
|
|
|
1029
1043
|
"studioauratest",
|
|
1030
1044
|
"studiobrandingtest",
|
|
1031
1045
|
"subledger_flow",
|
|
1032
|
-
"subledger_s_flow",
|
|
1033
1046
|
"supporttest",
|
|
1034
1047
|
"survey",
|
|
1035
1048
|
"survey_sentiment",
|
|
@@ -1050,7 +1063,6 @@
|
|
|
1050
1063
|
"test_service_scs",
|
|
1051
1064
|
"test_setup_service_predictions",
|
|
1052
1065
|
"test_setup_service_voice",
|
|
1053
|
-
"ui_journeys_impl",
|
|
1054
1066
|
"uns",
|
|
1055
1067
|
"usage_app",
|
|
1056
1068
|
"vb_dev_na46",
|
|
@@ -1143,7 +1155,8 @@
|
|
|
1143
1155
|
"walkthrough",
|
|
1144
1156
|
"waveapps",
|
|
1145
1157
|
"wavetemplate",
|
|
1146
|
-
"
|
|
1158
|
+
"web3",
|
|
1159
|
+
"web3test",
|
|
1147
1160
|
"webstore",
|
|
1148
1161
|
"wfm",
|
|
1149
1162
|
"wfm_adherence",
|
|
@@ -30,13 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"reducer": {
|
|
32
32
|
"importPath": "laf/batchingPortable",
|
|
33
|
-
"identifier": "RelatedListActionsBatchReducer"
|
|
34
|
-
"functions": {
|
|
35
|
-
"afterReduce": {
|
|
36
|
-
"name": "relatedListActionsBatchAfterReduce",
|
|
37
|
-
"filePath": "./scripts/reducer-codegen/after-reduce/relatedListActionsBatchAfterReduce.js"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
33
|
+
"identifier": "RelatedListActionsBatchReducer"
|
|
40
34
|
}
|
|
41
35
|
}
|
|
42
36
|
}
|
package/build/moduleMetadata.js
CHANGED
|
@@ -22,6 +22,7 @@ const initModuleMetadataObject = () => ({
|
|
|
22
22
|
exports: {},
|
|
23
23
|
templateKomaciDocMap: {},
|
|
24
24
|
hasRenderFunction: false,
|
|
25
|
+
defaultComponentId: '',
|
|
25
26
|
});
|
|
26
27
|
exports.initModuleMetadataObject = initModuleMetadataObject;
|
|
27
28
|
/**
|
|
@@ -443,6 +444,7 @@ const addTemplateUsageForAdg = (doc, adgIndex, moduleMetadata) => {
|
|
|
443
444
|
doc.compositions?.[doc.exports.default.value]) {
|
|
444
445
|
const composition = doc.compositions[doc.exports.default.value];
|
|
445
446
|
adg.compositions = [composition];
|
|
447
|
+
adg.compositionRootIndex = doc.exports.default.value;
|
|
446
448
|
(0, komaciDocumentIntrospection_1.traverseComposition)(composition, (comp, iterationContext) => {
|
|
447
449
|
(0, komaciDocumentIntrospection_1.updatePropertiesForComposition)(comp, adg.properties, adg.propertiesUsedInTemplate, iterationContext);
|
|
448
450
|
if (comp && comp.isActive) {
|
package/build/types.d.ts
CHANGED
|
@@ -262,6 +262,8 @@ export declare type AdgMetadata = {
|
|
|
262
262
|
parentReference?: Adg['parentClass'];
|
|
263
263
|
/** to juggle weirdness with old getter support we can set this flag to avoid doing some extra processing on initial metadata collection */
|
|
264
264
|
hasSourceFile: boolean;
|
|
265
|
+
/**If there is a template, get the index of the root component */
|
|
266
|
+
compositionRootIndex?: number;
|
|
265
267
|
};
|
|
266
268
|
/**
|
|
267
269
|
* Complete structure of Metadata needed to compose a resolvable module
|
|
@@ -278,6 +280,7 @@ export declare type ModuleMetadata = {
|
|
|
278
280
|
[fName: string]: KomaciDocument;
|
|
279
281
|
};
|
|
280
282
|
hasRenderFunction: boolean;
|
|
283
|
+
defaultComponentId: string;
|
|
281
284
|
};
|
|
282
285
|
export declare type ImportBinding = {
|
|
283
286
|
importPath: string;
|
package/build/utils.d.ts
CHANGED
|
@@ -158,4 +158,11 @@ export declare function addPropertyFunction(adg: Adg, propertyName: string, func
|
|
|
158
158
|
* @returns the full file name separated into segments.
|
|
159
159
|
*/
|
|
160
160
|
export declare function getFilepathSegments(fullFilename: string): string[];
|
|
161
|
+
/**
|
|
162
|
+
* Helper function to create a component id for a provided namespace and name.
|
|
163
|
+
* To create the component id we will turn the file name from camel case to kebab case and then prepend the component namespace.
|
|
164
|
+
* @param namespace the name sapce the component is from.
|
|
165
|
+
* @param name the filename
|
|
166
|
+
*/
|
|
167
|
+
export declare function getComponentId(namespace: string, name: string): string;
|
|
161
168
|
//# sourceMappingURL=utils.d.ts.map
|
package/build/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFilepathSegments = exports.addPropertyFunction = exports.updateKomaciDocumentWithValidTemplatedStrings = exports.updateKomaciDocumentWithValidGetters = exports.isDeclaredInAst = exports.isExpressionThisOrAlias = exports.getThisAliasDeclaredInFunction = exports.isPropertyNodeUsed = exports.isGetterNodeUsed = exports.isPropertyUsed = exports.getClassMethodName = exports.getVariablesDeclaredInFunction = exports.isExternalModule = exports.getAstContextObject = exports.getAllClassMethods = exports.getAllModuleVaraibles = exports.getAllModuleFunctions = exports.getFromIdentifierOrStringLiteral = exports.collectImportUsage = exports.getMemberVarsFromGetter = exports.implicitConsumptionMetadata = exports.getPropertyMetadataFromAst = exports.TEMPLATED_STRING_FUNCTION = exports.GETTER_FUNCTION = exports.ONE_NS = exports.FORCE_NS = exports.LIGHTNING_NS = void 0;
|
|
3
|
+
exports.getComponentId = exports.getFilepathSegments = exports.addPropertyFunction = exports.updateKomaciDocumentWithValidTemplatedStrings = exports.updateKomaciDocumentWithValidGetters = exports.isDeclaredInAst = exports.isExpressionThisOrAlias = exports.getThisAliasDeclaredInFunction = exports.isPropertyNodeUsed = exports.isGetterNodeUsed = exports.isPropertyUsed = exports.getClassMethodName = exports.getVariablesDeclaredInFunction = exports.isExternalModule = exports.getAstContextObject = exports.getAllClassMethods = exports.getAllModuleVaraibles = exports.getAllModuleFunctions = exports.getFromIdentifierOrStringLiteral = exports.collectImportUsage = exports.getMemberVarsFromGetter = exports.implicitConsumptionMetadata = exports.getPropertyMetadataFromAst = exports.TEMPLATED_STRING_FUNCTION = exports.GETTER_FUNCTION = exports.ONE_NS = exports.FORCE_NS = exports.LIGHTNING_NS = void 0;
|
|
4
4
|
const core_1 = require("@babel/core");
|
|
5
5
|
const types_1 = require("./types");
|
|
6
6
|
const allowlistNamespaces_1 = require("./allowlistNamespaces");
|
|
@@ -510,4 +510,17 @@ function getFilepathSegments(fullFilename) {
|
|
|
510
510
|
return segments;
|
|
511
511
|
}
|
|
512
512
|
exports.getFilepathSegments = getFilepathSegments;
|
|
513
|
+
/**
|
|
514
|
+
* Helper function to create a component id for a provided namespace and name.
|
|
515
|
+
* To create the component id we will turn the file name from camel case to kebab case and then prepend the component namespace.
|
|
516
|
+
* @param namespace the name sapce the component is from.
|
|
517
|
+
* @param name the filename
|
|
518
|
+
*/
|
|
519
|
+
function getComponentId(namespace, name) {
|
|
520
|
+
return (namespace + '-' + name.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2'))
|
|
521
|
+
.replace(/ /g, '-')
|
|
522
|
+
.trim()
|
|
523
|
+
.toLocaleLowerCase();
|
|
524
|
+
}
|
|
525
|
+
exports.getComponentId = getComponentId;
|
|
513
526
|
//# sourceMappingURL=utils.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@komaci/common-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "244.1.0",
|
|
4
4
|
"description": "Assets that are shared across Komaci commonjs packages",
|
|
5
5
|
"homepage": "https://komaci.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"build/komaci-mapping.json"
|
|
30
30
|
],
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@komaci/types": "
|
|
32
|
+
"@komaci/types": "244.1.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/core": "^7.9.0",
|