@firecms/core 3.0.0-canary.51 → 3.0.0-canary.53

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.
@@ -47,9 +47,9 @@ export type NavigationController<EC extends EntityCollection = EntityCollection<
47
47
  * Get the collection configuration for a given path.
48
48
  * The collection is resolved from the given path or alias.
49
49
  */
50
- getCollection: (pathOrId: string, entityId?: string, includeUserOverride?: boolean) => EC | undefined;
50
+ getCollection: (pathOrId: string, includeUserOverride?: boolean) => EC | undefined;
51
51
  /**
52
- * Get the collection configuration from its parent path segments.
52
+ * Get the collection configuration from its parent ids.
53
53
  */
54
54
  getCollectionFromIds: (ids: string[]) => EC | undefined;
55
55
  /**
@@ -144,7 +144,6 @@ export declare const iconSynonyms: {
144
144
  auto_stories: string;
145
145
  av_timer: string;
146
146
  baby_changing_station: string;
147
- back: string;
148
147
  backpack: string;
149
148
  backspace: string;
150
149
  backup: string;
@@ -281,7 +280,6 @@ export declare const iconSynonyms: {
281
280
  cast: string;
282
281
  cast_connected: string;
283
282
  cast_for_education: string;
284
- catching_pokemon: string;
285
283
  category: string;
286
284
  celebration: string;
287
285
  cell_tower: string;
@@ -382,10 +380,6 @@ export declare const iconSynonyms: {
382
380
  credit_score: string;
383
381
  crib: string;
384
382
  crop: string;
385
- crop_169: string;
386
- crop_32: string;
387
- crop_54: string;
388
- crop_75: string;
389
383
  crop_din: string;
390
384
  crop_free: string;
391
385
  crop_landscape: string;
@@ -420,7 +414,6 @@ export declare const iconSynonyms: {
420
414
  delete_forever: string;
421
415
  delete_outline: string;
422
416
  delete_sweep: string;
423
- delivery_dining: string;
424
417
  density_large: string;
425
418
  density_medium: string;
426
419
  density_small: string;
@@ -525,10 +518,6 @@ export declare const iconSynonyms: {
525
518
  edit_road: string;
526
519
  egg: string;
527
520
  egg_alt: string;
528
- eighteen_mp: string;
529
- eight_k: string;
530
- eight_mp: string;
531
- eightteen_mp: string;
532
521
  eject: string;
533
522
  elderly: string;
534
523
  elderly_woman: string;
@@ -541,7 +530,6 @@ export declare const iconSynonyms: {
541
530
  electric_rickshaw: string;
542
531
  electric_scooter: string;
543
532
  elevator: string;
544
- eleven_mp: string;
545
533
  email: string;
546
534
  e_mobiledata: string;
547
535
  emoji_emotions: string;
@@ -581,7 +569,6 @@ export declare const iconSynonyms: {
581
569
  extension: string;
582
570
  extension_off: string;
583
571
  face: string;
584
- facebook: string;
585
572
  face_retouching_natural: string;
586
573
  face_retouching_off: string;
587
574
  fact_check: string;
@@ -605,7 +592,6 @@ export declare const iconSynonyms: {
605
592
  fiber_new: string;
606
593
  fiber_pin: string;
607
594
  fiber_smart_record: string;
608
- fifteen_mp: string;
609
595
  file_copy: string;
610
596
  file_download: string;
611
597
  file_download_done: string;
@@ -642,14 +628,8 @@ export declare const iconSynonyms: {
642
628
  fire_extinguisher: string;
643
629
  fireplace: string;
644
630
  first_page: string;
645
- fitbit: string;
646
631
  fitness_center: string;
647
632
  fit_screen: string;
648
- five_g: string;
649
- five_k: string;
650
- five_k_plus: string;
651
- five_mp: string;
652
- fivteen_mp: string;
653
633
  flag: string;
654
634
  flag_circle: string;
655
635
  flaky: string;
@@ -718,11 +698,6 @@ export declare const iconSynonyms: {
718
698
  forward_5: string;
719
699
  forward_to_inbox: string;
720
700
  foundation: string;
721
- four_g_mobiledata: string;
722
- four_g_plus_mobiledata: string;
723
- four_k: string;
724
- four_mp: string;
725
- fourteen_mp: string;
726
701
  free_breakfast: string;
727
702
  fullscreen: string;
728
703
  fullscreen_exit: string;
@@ -738,10 +713,8 @@ export declare const iconSynonyms: {
738
713
  gif_box: string;
739
714
  girl: string;
740
715
  gite: string;
741
- git_hub: string;
742
716
  g_mobiledata: string;
743
717
  golf_course: string;
744
- google: string;
745
718
  gpp_bad: string;
746
719
  gpp_good: string;
747
720
  gpp_maybe: string;
@@ -754,8 +727,6 @@ export declare const iconSynonyms: {
754
727
  grain: string;
755
728
  graphic_eq: string;
756
729
  grass: string;
757
- grid3x3: string;
758
- grid4x4: string;
759
730
  grid_goldenratio: string;
760
731
  grid_off: string;
761
732
  grid_on: string;
@@ -800,7 +771,6 @@ export declare const iconSynonyms: {
800
771
  hide_image: string;
801
772
  hide_source: string;
802
773
  highlight: string;
803
- highlight_alt: string;
804
774
  highlight_off: string;
805
775
  high_quality: string;
806
776
  hiking: string;
@@ -860,14 +830,12 @@ export declare const iconSynonyms: {
860
830
  insert_page_break: string;
861
831
  insert_photo: string;
862
832
  insights: string;
863
- instagram: string;
864
833
  install_desktop: string;
865
834
  install_mobile: string;
866
835
  integration_instructions: string;
867
836
  interests: string;
868
837
  interpreter_mode: string;
869
838
  inventory: string;
870
- inventory2: string;
871
839
  invert_colors: string;
872
840
  invert_colors_off: string;
873
841
  ios_share: string;
@@ -937,7 +905,6 @@ export declare const iconSynonyms: {
937
905
  line_weight: string;
938
906
  link: string;
939
907
  linked_camera: string;
940
- linked_in: string;
941
908
  link_off: string;
942
909
  liquor: string;
943
910
  list: string;
@@ -1066,7 +1033,6 @@ export declare const iconSynonyms: {
1066
1033
  monochrome_photos: string;
1067
1034
  mood: string;
1068
1035
  mood_bad: string;
1069
- moped: string;
1070
1036
  more: string;
1071
1037
  more_horiz: string;
1072
1038
  more_time: string;
@@ -1114,13 +1080,8 @@ export declare const iconSynonyms: {
1114
1080
  nightlight_round: string;
1115
1081
  night_shelter: string;
1116
1082
  nights_stay: string;
1117
- nine_k: string;
1118
- nine_k_plus: string;
1119
- nine_mp: string;
1120
- nineteen_mp: string;
1121
1083
  no_accounts: string;
1122
1084
  no_backpack: string;
1123
- no_cell: string;
1124
1085
  no_drinks: string;
1125
1086
  no_encryption: string;
1126
1087
  no_encryption_gmailerrorred: string;
@@ -1158,9 +1119,6 @@ export declare const iconSynonyms: {
1158
1119
  oil_barrel: string;
1159
1120
  ondemand_video: string;
1160
1121
  on_device_training: string;
1161
- one_k: string;
1162
- one_kk: string;
1163
- one_k_plus: string;
1164
1122
  online_prediction: string;
1165
1123
  opacity: string;
1166
1124
  open_in_browser: string;
@@ -1182,13 +1140,9 @@ export declare const iconSynonyms: {
1182
1140
  panorama: string;
1183
1141
  panorama_fish_eye: string;
1184
1142
  panorama_horizontal: string;
1185
- panorama_horizontal_select: string;
1186
1143
  panorama_photosphere: string;
1187
- panorama_photosphere_select: string;
1188
1144
  panorama_vertical: string;
1189
- panorama_vertical_select: string;
1190
1145
  panorama_wide_angle: string;
1191
- panorama_wide_angle_select: string;
1192
1146
  pan_tool: string;
1193
1147
  paragliding: string;
1194
1148
  park: string;
@@ -1272,16 +1226,11 @@ export declare const iconSynonyms: {
1272
1226
  pin: string;
1273
1227
  pinch: string;
1274
1228
  pin_drop: string;
1275
- pinterest: string;
1276
1229
  pivot_table_chart: string;
1277
- pix: string;
1278
1230
  place: string;
1279
1231
  plagiarism: string;
1280
1232
  play_arrow: string;
1281
1233
  play_circle: string;
1282
- play_circle_filled: string;
1283
- play_circle_filled_white: string;
1284
- play_circle_outline: string;
1285
1234
  play_disabled: string;
1286
1235
  play_for_work: string;
1287
1236
  play_lesson: string;
@@ -1354,7 +1303,6 @@ export declare const iconSynonyms: {
1354
1303
  recommend: string;
1355
1304
  record_voice_over: string;
1356
1305
  rectangle: string;
1357
- reddit: string;
1358
1306
  redeem: string;
1359
1307
  redo: string;
1360
1308
  reduce_capacity: string;
@@ -1497,10 +1445,6 @@ export declare const iconSynonyms: {
1497
1445
  settings_suggest: string;
1498
1446
  settings_system_daydream: string;
1499
1447
  settings_voice: string;
1500
- seven_k: string;
1501
- seven_k_plus: string;
1502
- seven_mp: string;
1503
- seventeen_mp: string;
1504
1448
  share: string;
1505
1449
  share_location: string;
1506
1450
  shield: string;
@@ -1523,19 +1467,13 @@ export declare const iconSynonyms: {
1523
1467
  signal_cellular_4_bar: string;
1524
1468
  signal_cellular_alt: string;
1525
1469
  signal_cellular_connected_no_internet_0_bar: string;
1526
- signal_cellular_connected_no_internet_1_bar: string;
1527
- signal_cellular_connected_no_internet_2_bar: string;
1528
- signal_cellular_connected_no_internet_3_bar: string;
1529
1470
  signal_cellular_connected_no_internet_4_bar: string;
1530
1471
  signal_cellular_nodata: string;
1531
1472
  signal_cellular_no_sim: string;
1532
1473
  signal_cellular_null: string;
1533
1474
  signal_cellular_off: string;
1534
1475
  signal_wifi_bad: string;
1535
- signal_wifi_connected_no_internet4: string;
1536
1476
  signal_wifi_off: string;
1537
- signal_wifi_statusbar4_bar: string;
1538
- signal_wifi_statusbar_connected_no_internet4: string;
1539
1477
  signal_wifi_statusbar_null: string;
1540
1478
  signpost: string;
1541
1479
  sim_card: string;
@@ -1543,12 +1481,6 @@ export declare const iconSynonyms: {
1543
1481
  sim_card_download: string;
1544
1482
  single_bed: string;
1545
1483
  sip: string;
1546
- six_k: string;
1547
- six_k_plus: string;
1548
- six_mp: string;
1549
- sixteen_mp: string;
1550
- sixty_fps: string;
1551
- sixty_fps_select: string;
1552
1484
  skateboarding: string;
1553
1485
  skip_next: string;
1554
1486
  skip_previous: string;
@@ -1619,10 +1551,8 @@ export declare const iconSynonyms: {
1619
1551
  stairs: string;
1620
1552
  star: string;
1621
1553
  star_border: string;
1622
- star_border_purple_500: string;
1623
1554
  star_half: string;
1624
1555
  star_outline: string;
1625
- star_purple_500: string;
1626
1556
  star_rate: string;
1627
1557
  stars: string;
1628
1558
  start: string;
@@ -1710,8 +1640,6 @@ export declare const iconSynonyms: {
1710
1640
  task: string;
1711
1641
  task_alt: string;
1712
1642
  taxi_alert: string;
1713
- telegram: string;
1714
- ten_mp: string;
1715
1643
  terminal: string;
1716
1644
  terrain: string;
1717
1645
  text_decrease: string;
@@ -1731,16 +1659,6 @@ export declare const iconSynonyms: {
1731
1659
  theaters: string;
1732
1660
  thermostat: string;
1733
1661
  thermostat_auto: string;
1734
- thirteen_mp: string;
1735
- thirty_fps: string;
1736
- thirty_fps_select: string;
1737
- three_d_rotation: string;
1738
- three_g_mobiledata: string;
1739
- three_k: string;
1740
- three_k_plus: string;
1741
- three_mp: string;
1742
- three_p: string;
1743
- three_sixty: string;
1744
1662
  thumb_down: string;
1745
1663
  thumb_down_alt: string;
1746
1664
  thumb_down_off_alt: string;
@@ -1756,7 +1674,6 @@ export declare const iconSynonyms: {
1756
1674
  timer_3: string;
1757
1675
  timer_3_select: string;
1758
1676
  timer_off: string;
1759
- times_one_mobiledata: string;
1760
1677
  time_to_leave: string;
1761
1678
  tips_and_updates: string;
1762
1679
  title: string;
@@ -1800,16 +1717,6 @@ export declare const iconSynonyms: {
1800
1717
  turn_slight_right: string;
1801
1718
  tv: string;
1802
1719
  tv_off: string;
1803
- twelve_mp: string;
1804
- twenty_four_mp: string;
1805
- twenty_one_mp: string;
1806
- twenty_three_mp: string;
1807
- twenty_two_mp: string;
1808
- twenty_zero_mp: string;
1809
- twitter: string;
1810
- two_k: string;
1811
- two_k_plus: string;
1812
- two_mp: string;
1813
1720
  two_wheeler: string;
1814
1721
  umbrella: string;
1815
1722
  unarchive: string;
@@ -1939,7 +1846,6 @@ export declare const iconSynonyms: {
1939
1846
  wrong_location: string;
1940
1847
  wysiwyg: string;
1941
1848
  yard: string;
1942
- you_tube: string;
1943
1849
  youtube_searched_for: string;
1944
1850
  zoom_in: string;
1945
1851
  zoom_in_map: string;
@@ -1,5 +1,5 @@
1
1
  import { ArrayProperty, CMSType, EntityCollection, EntityCustomView, EntityValues, EnumValueConfig, EnumValues, NumberProperty, PropertiesOrBuilders, PropertyConfig, PropertyOrBuilder, ResolvedArrayProperty, ResolvedEntityCollection, ResolvedNumberProperty, ResolvedProperties, ResolvedProperty, ResolvedStringProperty, StringProperty, UserConfigurationPersistence } from "../types";
2
- export declare const resolveCollection: <M extends Record<string, any>>({ collection, path, entityId, values, previousValues, userConfigPersistence, fields }: {
2
+ export declare const resolveCollection: <M extends Record<string, any>>({ collection, path, entityId, values, previousValues, userConfigPersistence, fields, ignoreMissingFields }: {
3
3
  collection: EntityCollection<M> | ResolvedEntityCollection<M>;
4
4
  path: string;
5
5
  entityId?: string;
@@ -7,13 +7,14 @@ export declare const resolveCollection: <M extends Record<string, any>>({ collec
7
7
  previousValues?: Partial<EntityValues<M>>;
8
8
  userConfigPersistence?: UserConfigurationPersistence;
9
9
  fields?: Record<string, PropertyConfig>;
10
+ ignoreMissingFields?: boolean;
10
11
  }) => ResolvedEntityCollection<M>;
11
12
  /**
12
13
  * Resolve property builders, enums and arrays.
13
14
  * @param propertyOrBuilder
14
15
  * @param propertyValue
15
16
  */
16
- export declare function resolveProperty<T extends CMSType = CMSType, M extends Record<string, any> = any>({ propertyOrBuilder, fromBuilder, ...props }: {
17
+ export declare function resolveProperty<T extends CMSType = CMSType, M extends Record<string, any> = any>({ propertyOrBuilder, fromBuilder, ignoreMissingFields, ...props }: {
17
18
  propertyKey?: string;
18
19
  propertyOrBuilder: PropertyOrBuilder<T, M> | ResolvedProperty<T>;
19
20
  values?: Partial<M>;
@@ -23,8 +24,9 @@ export declare function resolveProperty<T extends CMSType = CMSType, M extends R
23
24
  index?: number;
24
25
  fromBuilder?: boolean;
25
26
  fields?: Record<string, PropertyConfig<any>>;
27
+ ignoreMissingFields?: boolean;
26
28
  }): ResolvedProperty<T> | null;
27
- export declare function resolveArrayProperty<T extends any[], M>({ propertyKey, property, ...props }: {
29
+ export declare function resolveArrayProperty<T extends any[], M>({ propertyKey, property, ignoreMissingFields, ...props }: {
28
30
  propertyKey?: string;
29
31
  property: ArrayProperty<T> | ResolvedArrayProperty<T>;
30
32
  values?: Partial<M>;
@@ -34,13 +36,14 @@ export declare function resolveArrayProperty<T extends any[], M>({ propertyKey,
34
36
  index?: number;
35
37
  fromBuilder?: boolean;
36
38
  fields?: Record<string, PropertyConfig>;
39
+ ignoreMissingFields?: boolean;
37
40
  }): ResolvedArrayProperty;
38
41
  /**
39
42
  * Resolve enums and arrays for properties
40
43
  * @param properties
41
44
  * @param value
42
45
  */
43
- export declare function resolveProperties<M extends Record<string, any>>({ properties, ...props }: {
46
+ export declare function resolveProperties<M extends Record<string, any>>({ properties, ignoreMissingFields, ...props }: {
44
47
  properties: PropertiesOrBuilders<M>;
45
48
  values?: Partial<M>;
46
49
  previousValues?: Partial<M>;
@@ -49,6 +52,7 @@ export declare function resolveProperties<M extends Record<string, any>>({ prope
49
52
  index?: number;
50
53
  fromBuilder?: boolean;
51
54
  fields?: Record<string, PropertyConfig>;
55
+ ignoreMissingFields?: boolean;
52
56
  }): ResolvedProperties<M>;
53
57
  /**
54
58
  * Resolve enum aliases for a string or number property
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@firecms/core",
3
3
  "type": "module",
4
- "version": "3.0.0-canary.51",
4
+ "version": "3.0.0-canary.53",
5
5
  "description": "Awesome Firebase/Firestore-based headless open-source CMS",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/firecmsco"
@@ -46,8 +46,8 @@
46
46
  "./package.json": "./package.json"
47
47
  },
48
48
  "dependencies": {
49
- "@firecms/formex": "^3.0.0-canary.51",
50
- "@firecms/ui": "^3.0.0-canary.51",
49
+ "@firecms/formex": "^3.0.0-canary.53",
50
+ "@firecms/ui": "^3.0.0-canary.53",
51
51
  "@fontsource/jetbrains-mono": "^5.0.20",
52
52
  "@hello-pangea/dnd": "^16.6.0",
53
53
  "@radix-ui/react-portal": "^1.0.4",
@@ -80,38 +80,38 @@
80
80
  "@testing-library/react": "^15.0.7",
81
81
  "@testing-library/user-event": "^14.5.2",
82
82
  "@types/jest": "^29.5.12",
83
- "@types/node": "^20.12.11",
83
+ "@types/node": "^20.12.13",
84
84
  "@types/object-hash": "^3.0.6",
85
- "@types/react": "^18.3.1",
85
+ "@types/react": "^18.3.3",
86
86
  "@types/react-dom": "^18.3.0",
87
87
  "@types/react-measure": "^2.0.12",
88
- "@typescript-eslint/eslint-plugin": "^7.8.0",
89
- "@typescript-eslint/parser": "^7.8.0",
90
- "@vitejs/plugin-react": "^4.2.1",
88
+ "@typescript-eslint/eslint-plugin": "^7.11.0",
89
+ "@typescript-eslint/parser": "^7.11.0",
90
+ "@vitejs/plugin-react": "^4.3.0",
91
91
  "cross-env": "^7.0.3",
92
92
  "eslint": "^8.57.0",
93
93
  "eslint-config-standard": "^17.1.0",
94
94
  "eslint-plugin-import": "^2.29.1",
95
95
  "eslint-plugin-n": "^16.6.2",
96
- "eslint-plugin-promise": "^6.1.1",
97
- "eslint-plugin-react": "^7.34.1",
96
+ "eslint-plugin-promise": "^6.2.0",
97
+ "eslint-plugin-react": "^7.34.2",
98
98
  "eslint-plugin-react-hooks": "^4.6.2",
99
- "firebase": "^10.11.1",
99
+ "firebase": "^10.12.2",
100
100
  "jest": "^29.7.0",
101
101
  "npm-run-all": "^4.1.5",
102
- "react-router": "^6.23.0",
103
- "react-router-dom": "^6.23.0",
104
- "ts-jest": "^29.1.2",
102
+ "react-router": "^6.23.1",
103
+ "react-router-dom": "^6.23.1",
104
+ "ts-jest": "^29.1.4",
105
105
  "ts-node": "^10.9.2",
106
106
  "tsd": "^0.31.0",
107
107
  "typescript": "^5.4.5",
108
- "vite": "^5.2.11"
108
+ "vite": "^5.2.12"
109
109
  },
110
110
  "files": [
111
111
  "dist",
112
112
  "src"
113
113
  ],
114
- "gitHead": "d4d30347803b07a09f5b003eb63c78e46eb055fa",
114
+ "gitHead": "5d6f89260a9582eaac7ee9a77c48c8f340bc29d3",
115
115
  "publishConfig": {
116
116
  "access": "public"
117
117
  },