@reactunity/renderer 0.23.0 → 0.23.1
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/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -982,19 +982,23 @@ function render(element, options = {}) {
|
|
|
982
982
|
renderCount
|
|
983
983
|
}, element);
|
|
984
984
|
const rc = isAsync ? getAsyncReconciler() : getSyncReconciler();
|
|
985
|
+
if (!injectedReconcilers.has(rc)) {
|
|
986
|
+
injectedReconcilers.add(rc);
|
|
987
|
+
rc.injectIntoDevTools({
|
|
988
|
+
bundleType: isDevelopment ? 1 : 0,
|
|
989
|
+
version,
|
|
990
|
+
rendererPackageName: "@reactunity/renderer",
|
|
991
|
+
rendererConfig: { isAsync },
|
|
992
|
+
findFiberByHostInstance
|
|
993
|
+
});
|
|
994
|
+
}
|
|
985
995
|
if ("updateContainerSync" in rc && typeof rc.updateContainerSync === "function" && "flushSyncWork" in rc && typeof rc.flushSyncWork === "function") {
|
|
986
996
|
rc.updateContainerSync(element, hostRoot, null, () => {});
|
|
987
997
|
rc.flushSyncWork();
|
|
988
998
|
} else rc.updateContainer(element, hostRoot, null, () => {});
|
|
989
|
-
rc.injectIntoDevTools({
|
|
990
|
-
bundleType: isDevelopment ? 1 : 0,
|
|
991
|
-
version,
|
|
992
|
-
rendererPackageName: "@reactunity/renderer",
|
|
993
|
-
rendererConfig: { isAsync },
|
|
994
|
-
findFiberByHostInstance
|
|
995
|
-
});
|
|
996
999
|
return rc;
|
|
997
1000
|
}
|
|
1001
|
+
const injectedReconcilers = /* @__PURE__ */ new WeakSet();
|
|
998
1002
|
/**
|
|
999
1003
|
* @deprecated Instead, import `render` directly from `@reactunity/renderer`
|
|
1000
1004
|
*/
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["hostConfig"],"sources":["../src/helpers/dictionary-watcher.ts","../src/helpers/hooks/use-globals.ts","../src/helpers/hooks/use-reactive-value.ts","../src/helpers/icons.ts","../src/version.ts","../src/views/error-boundary.tsx","../src/views/default-view.tsx","../src/renderer/async/objects.ts","../src/renderer/diffing.ts","../src/renderer/constants.ts","../src/renderer/subcontexts/richtext.ts","../src/renderer/subcontexts/svg.ts","../src/renderer/subcontexts/index.ts","../src/renderer/async/callbacks.ts","../src/renderer/async/serializer.ts","../src/renderer/async/reconciler.ts","../src/renderer/sync/reconciler.ts","../src/renderer/renderer.ts","../index.ts"],"sourcesContent":["import { createContext, createElement, useContext, useMemo, useRef, useState } from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/with-selector';\nimport { ReactUnity } from '../models/generated';\n\nexport interface DictionaryWatcher<T = Record<string, any>> {\n /** React Context that provides the value */\n context: React.Context<T>;\n\n /**\n * The provider component that should be used to wrap the components where this context will be used\n *\n * Usage:\n *\n * ```tsx\n * <watcher.Provider>\n * <App />\n * </watcher.Provider>\n * ```\n */\n Provider: (props: { children?: React.ReactNode }) => React.FunctionComponentElement<React.ProviderProps<T>>;\n\n /**\n * React Hook for getting the value from Context\n *\n * Usage:\n *\n * ```tsx\n * function App() {\n * const values = watcher.useContext();\n * ...\n * }\n * ```\n */\n useContext: () => T;\n\n /**\n * React Hook for getting the value of this Dictionary. This one will subscribe only to the properties that are accessed.\n *\n * Usage:\n *\n * ```tsx\n * function App() {\n * const { a, b } = watcher.useValue();\n * ...\n * }\n * ```\n */\n useValue: (subscribeToAllFields?: boolean, isEqual?: IsEqual) => T;\n\n /**\n * React Hook for getting a partial value from Context\n *\n * Usage:\n *\n * ```tsx\n * function App() {\n * const count = watcher.useSelector(st => st.count);\n * ...\n * }\n * ```\n */\n useSelector<Res>(selector: (store: T) => Res, isEqual?: IsEqual<Res>): Res;\n}\n\ntype Prop = string | symbol | number;\ntype IsEqual<T = any> = (a: T, b: T) => boolean;\n\n/**\n * Creates a context that updates its value when the values in the dictionary change\n * @param dictionary The dictionary to be watched. Must implement the EventDictionary type in the C#\n * @param displayName A displayName to identify this context easier in case of problems\n */\nexport function createDictionaryWatcher<ValueType = any, RecordType = Record<string, ValueType>>(\n dictionary: ReactUnity.Reactive.ReactiveRecord<ValueType>,\n displayName?: string,\n): DictionaryWatcher<RecordType> {\n const ctx = createContext<RecordType>(undefined);\n if (displayName) ctx.displayName = displayName;\n\n const createSubscriber = (fields?: Set<Prop>, isEqual?: IsEqual) => {\n let snapshot: RecordType = { ...dictionary } as any;\n\n return {\n subscribe: (onStoreChange: () => void) => {\n snapshot = { ...dictionary } as any;\n\n const remove = dictionary?.AddListener(() => {\n const prev = snapshot;\n snapshot = { ...dictionary } as any;\n\n if (!fields) onStoreChange();\n else {\n const it = fields.values();\n for (let field = it.next().value; field; field = it.next().value) {\n if (isEqual ? !isEqual(prev[field], snapshot[field]) : prev[field] !== snapshot[field]) {\n onStoreChange();\n break;\n }\n }\n }\n });\n\n if (!remove) {\n if (displayName) console.warn(`${displayName} dictionary does not provide a change listener`);\n else console.warn('The dictionary does not provide a change listener');\n }\n\n return () => remove?.();\n },\n getSnapshot: () => snapshot,\n };\n };\n\n const defaultSubscriber = createSubscriber();\n\n const Provider = function GlobalsProvider({ children }: { children?: React.ReactNode }) {\n const value: any = useSyncExternalStore(defaultSubscriber.subscribe, defaultSubscriber.getSnapshot, defaultSubscriber.getSnapshot);\n return createElement(ctx.Provider, { value }, children);\n };\n\n function useDictionaryContext() {\n const context = useContext(ctx);\n if (context === undefined) {\n if (displayName) throw new Error(`${displayName}.useContext must be used within a ${displayName}.Provider`);\n throw new Error('useContext must be used within a provider');\n }\n return context;\n }\n\n function useValue(subscribeToAllFields = false, fieldEqual?: IsEqual) {\n const fields = useMemo(() => new Set<Prop>(), []);\n const fieldsRef = useRef(fields);\n const [allFieldsSubscribed, setAllFieldsSubscribed] = useState(false);\n subscribeToAllFields ||= allFieldsSubscribed;\n const subscriber = useMemo(\n () => (subscribeToAllFields ? defaultSubscriber : createSubscriber(fieldsRef.current, fieldEqual)),\n [subscribeToAllFields, fieldEqual],\n );\n const value: any = useSyncExternalStore(subscriber.subscribe, subscriber.getSnapshot, subscriber.getSnapshot);\n\n const proxy = new Proxy(value, {\n get(target, p, receiver) {\n fields.add(p);\n return value[p];\n },\n ownKeys(target) {\n if (!allFieldsSubscribed) setAllFieldsSubscribed(true);\n return Reflect.ownKeys(target);\n },\n getOwnPropertyDescriptor(target, p) {\n fields.add(p);\n\n return {\n ...Reflect.getOwnPropertyDescriptor(target, p),\n value: value[p],\n };\n },\n });\n\n return proxy as RecordType;\n }\n\n function useSelector<Res>(selector: (store: RecordType) => Res, isEqual?: IsEqual<Res>) {\n return useSyncExternalStoreWithSelector(\n defaultSubscriber.subscribe,\n defaultSubscriber.getSnapshot,\n defaultSubscriber.getSnapshot,\n selector,\n isEqual,\n );\n }\n\n return { context: ctx, Provider, useValue, useContext: useDictionaryContext, useSelector };\n}\n","import { createDictionaryWatcher } from '../dictionary-watcher';\n\nconst globalsWatcher = createDictionaryWatcher<any, DefaultGlobals>(Globals, 'globalsContext');\nexport const useGlobals = globalsWatcher.useValue;\nexport const useGlobalsContext = globalsWatcher.useContext;\nexport const useGlobalsSelector = globalsWatcher.useSelector;\nexport const GlobalsProvider = globalsWatcher.Provider;\n","import { useMemo } from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { ReactUnity } from '../../models/generated';\n\ntype IsEqual<T = any> = (a: T, b: T) => boolean;\n\nfunction createSubscriber<T>(obj: ReactUnity.Reactive.IReactive<T>, isEqual?: IsEqual<T>) {\n const isReactive = obj && typeof obj === 'object' && 'Value' in obj;\n let snapshot = isReactive ? obj.Value : undefined;\n\n return {\n subscribe: (onStoreChange: () => void) => {\n snapshot = isReactive ? obj.Value : undefined;\n\n const remove =\n isReactive &&\n typeof obj.AddListener === 'function' &&\n obj?.AddListener(() => {\n const prev = snapshot;\n snapshot = isReactive ? obj.Value : undefined;\n\n if (typeof isEqual !== 'function' || !isEqual(prev, snapshot)) {\n onStoreChange();\n }\n });\n\n if (isReactive && typeof remove !== 'function') console.warn('The reactive value does not provide a change listener');\n\n return () => remove?.();\n },\n getSnapshot: () => snapshot,\n };\n}\n\nexport function useReactiveValue<T>(obj: ReactUnity.Reactive.IReactive<T>, isEqual?: IsEqual<T>) {\n const sb = useMemo(() => createSubscriber(obj, isEqual), [obj, isEqual]);\n return useSyncExternalStore(sb.subscribe, sb.getSnapshot, sb.getSnapshot);\n}\n","import * as React from 'react';\nimport { Textable } from '../models/base';\nimport { ReactUnity } from '../models/generated';\nimport { Icon } from '../models/ugui';\n\nconst componentCache = {};\n\nexport const icon = new Proxy(\n {},\n {\n get: (target, key) => {\n if (typeof key === 'symbol') return target[key];\n\n const icon = key.replace(/^_/, '');\n\n let cmp = componentCache[icon];\n if (cmp) return cmp;\n\n cmp = function NamedIcon(props, ref) {\n return React.createElement('icon', { name: `<icon ${icon}>`, ...props, ref }, icon);\n };\n\n cmp = React.forwardRef(cmp);\n componentCache[icon] = cmp;\n return cmp;\n },\n },\n) as IconsHelper;\n\ntype Keyify<T extends string> = T extends `${number}${string}` ? `_${T}` : T;\n\ntype IconsNames = {\n [key in DefaultIconNames]: any;\n};\n\ntype IconProps = Icon & React.RefAttributes<ReactUnity.UGUI.IconComponent> & { children?: Textable | Textable[] };\n\ntype IconsHelper = {\n [Key in keyof IconsNames as Keyify<Key>]: React.FunctionComponent<IconProps>;\n};\n\nexport type DefaultIconNames =\n | '10k'\n | '10mp'\n | '11mp'\n | '12mp'\n | '13mp'\n | '14mp'\n | '15mp'\n | '16mp'\n | '17mp'\n | '18mp'\n | '19mp'\n | '1k'\n | '1k_plus'\n | '1x_mobiledata'\n | '20mp'\n | '21mp'\n | '22mp'\n | '23mp'\n | '24mp'\n | '2k'\n | '2k_plus'\n | '2mp'\n | '30fps'\n | '30fps_select'\n | '360'\n | '3d_rotation'\n | '3g_mobiledata'\n | '3k'\n | '3k_plus'\n | '3mp'\n | '3p'\n | '4g_mobiledata'\n | '4g_plus_mobiledata'\n | '4k'\n | '4k_plus'\n | '4mp'\n | '5g'\n | '5k'\n | '5k_plus'\n | '5mp'\n | '60fps'\n | '60fps_select'\n | '6_ft_apart'\n | '6k'\n | '6k_plus'\n | '6mp'\n | '7k'\n | '7k_plus'\n | '7mp'\n | '8k'\n | '8k_plus'\n | '8mp'\n | '9k'\n | '9k_plus'\n | '9mp'\n | 'ac_unit'\n | 'access_alarm'\n | 'access_alarms'\n | 'access_time'\n | 'access_time_filled'\n | 'accessibility'\n | 'accessibility_new'\n | 'accessible'\n | 'accessible_forward'\n | 'account_balance'\n | 'account_balance_wallet'\n | 'account_box'\n | 'account_circle'\n | 'account_tree'\n | 'ad_units'\n | 'adb'\n | 'add'\n | 'add_a_photo'\n | 'add_alarm'\n | 'add_alert'\n | 'add_box'\n | 'add_business'\n | 'add_call'\n | 'add_chart'\n | 'add_circle'\n | 'add_circle_outline'\n | 'add_comment'\n | 'add_ic_call'\n | 'add_link'\n | 'add_location'\n | 'add_location_alt'\n | 'add_moderator'\n | 'add_photo_alternate'\n | 'add_reaction'\n | 'add_road'\n | 'add_shopping_cart'\n | 'add_task'\n | 'add_to_drive'\n | 'add_to_home_screen'\n | 'add_to_photos'\n | 'add_to_queue'\n | 'addchart'\n | 'adjust'\n | 'admin_panel_settings'\n | 'ads_click'\n | 'agriculture'\n | 'air'\n | 'airline_seat_flat'\n | 'airline_seat_flat_angled'\n | 'airline_seat_individual_suite'\n | 'airline_seat_legroom_extra'\n | 'airline_seat_legroom_normal'\n | 'airline_seat_legroom_reduced'\n | 'airline_seat_recline_extra'\n | 'airline_seat_recline_normal'\n | 'airplane_ticket'\n | 'airplanemode_active'\n | 'airplanemode_inactive'\n | 'airplanemode_off'\n | 'airplanemode_on'\n | 'airplay'\n | 'airport_shuttle'\n | 'alarm'\n | 'alarm_add'\n | 'alarm_off'\n | 'alarm_on'\n | 'album'\n | 'align_horizontal_center'\n | 'align_horizontal_left'\n | 'align_horizontal_right'\n | 'align_vertical_bottom'\n | 'align_vertical_center'\n | 'align_vertical_top'\n | 'all_inbox'\n | 'all_inclusive'\n | 'all_out'\n | 'alt_route'\n | 'alternate_email'\n | 'amp_stories'\n | 'analytics'\n | 'anchor'\n | 'android'\n | 'animation'\n | 'announcement'\n | 'aod'\n | 'apartment'\n | 'api'\n | 'app_blocking'\n | 'app_registration'\n | 'app_settings_alt'\n | 'approval'\n | 'apps'\n | 'architecture'\n | 'archive'\n | 'area_chart'\n | 'arrow_back'\n | 'arrow_back_ios'\n | 'arrow_back_ios_new'\n | 'arrow_circle_down'\n | 'arrow_circle_up'\n | 'arrow_downward'\n | 'arrow_drop_down'\n | 'arrow_drop_down_circle'\n | 'arrow_drop_up'\n | 'arrow_forward'\n | 'arrow_forward_ios'\n | 'arrow_left'\n | 'arrow_right'\n | 'arrow_right_alt'\n | 'arrow_upward'\n | 'art_track'\n | 'article'\n | 'aspect_ratio'\n | 'assessment'\n | 'assignment'\n | 'assignment_ind'\n | 'assignment_late'\n | 'assignment_return'\n | 'assignment_returned'\n | 'assignment_turned_in'\n | 'assistant'\n | 'assistant_direction'\n | 'assistant_navigation'\n | 'assistant_photo'\n | 'atm'\n | 'attach_email'\n | 'attach_file'\n | 'attach_money'\n | 'attachment'\n | 'attractions'\n | 'attribution'\n | 'audiotrack'\n | 'auto_awesome'\n | 'auto_awesome_mosaic'\n | 'auto_awesome_motion'\n | 'auto_delete'\n | 'auto_fix_high'\n | 'auto_fix_normal'\n | 'auto_fix_off'\n | 'auto_graph'\n | 'auto_stories'\n | 'autofps_select'\n | 'autorenew'\n | 'av_timer'\n | 'baby_changing_station'\n | 'back_hand'\n | 'backpack'\n | 'backspace'\n | 'backup'\n | 'backup_table'\n | 'badge'\n | 'bakery_dining'\n | 'balcony'\n | 'ballot'\n | 'bar_chart'\n | 'batch_prediction'\n | 'bathroom'\n | 'bathtub'\n | 'battery_alert'\n | 'battery_charging_full'\n | 'battery_full'\n | 'battery_saver'\n | 'battery_std'\n | 'battery_unknown'\n | 'beach_access'\n | 'bed'\n | 'bedroom_baby'\n | 'bedroom_child'\n | 'bedroom_parent'\n | 'bedtime'\n | 'beenhere'\n | 'bento'\n | 'bike_scooter'\n | 'biotech'\n | 'blender'\n | 'block'\n | 'block_flipped'\n | 'bloodtype'\n | 'bluetooth'\n | 'bluetooth_audio'\n | 'bluetooth_connected'\n | 'bluetooth_disabled'\n | 'bluetooth_drive'\n | 'bluetooth_searching'\n | 'blur_circular'\n | 'blur_linear'\n | 'blur_off'\n | 'blur_on'\n | 'bolt'\n | 'book'\n | 'book_online'\n | 'bookmark'\n | 'bookmark_add'\n | 'bookmark_added'\n | 'bookmark_border'\n | 'bookmark_outline'\n | 'bookmark_remove'\n | 'bookmarks'\n | 'border_all'\n | 'border_bottom'\n | 'border_clear'\n | 'border_color'\n | 'border_horizontal'\n | 'border_inner'\n | 'border_left'\n | 'border_outer'\n | 'border_right'\n | 'border_style'\n | 'border_top'\n | 'border_vertical'\n | 'branding_watermark'\n | 'breakfast_dining'\n | 'brightness_1'\n | 'brightness_2'\n | 'brightness_3'\n | 'brightness_4'\n | 'brightness_5'\n | 'brightness_6'\n | 'brightness_7'\n | 'brightness_auto'\n | 'brightness_high'\n | 'brightness_low'\n | 'brightness_medium'\n | 'broken_image'\n | 'browser_not_supported'\n | 'brunch_dining'\n | 'brush'\n | 'bubble_chart'\n | 'bug_report'\n | 'build'\n | 'build_circle'\n | 'bungalow'\n | 'burst_mode'\n | 'bus_alert'\n | 'business'\n | 'business_center'\n | 'cabin'\n | 'cable'\n | 'cached'\n | 'cake'\n | 'calculate'\n | 'calendar_today'\n | 'calendar_view_day'\n | 'calendar_view_month'\n | 'calendar_view_week'\n | 'call'\n | 'call_end'\n | 'call_made'\n | 'call_merge'\n | 'call_missed'\n | 'call_missed_outgoing'\n | 'call_received'\n | 'call_split'\n | 'call_to_action'\n | 'camera'\n | 'camera_alt'\n | 'camera_enhance'\n | 'camera_front'\n | 'camera_indoor'\n | 'camera_outdoor'\n | 'camera_rear'\n | 'camera_roll'\n | 'cameraswitch'\n | 'campaign'\n | 'cancel'\n | 'cancel_presentation'\n | 'cancel_schedule_send'\n | 'car_rental'\n | 'car_repair'\n | 'card_giftcard'\n | 'card_membership'\n | 'card_travel'\n | 'carpenter'\n | 'cases'\n | 'casino'\n | 'cast'\n | 'cast_connected'\n | 'cast_for_education'\n | 'catching_pokemon'\n | 'category'\n | 'celebration'\n | 'cell_wifi'\n | 'center_focus_strong'\n | 'center_focus_weak'\n | 'chair'\n | 'chair_alt'\n | 'chalet'\n | 'change_circle'\n | 'change_history'\n | 'charging_station'\n | 'chat'\n | 'chat_bubble'\n | 'chat_bubble_outline'\n | 'check'\n | 'check_box'\n | 'check_box_outline_blank'\n | 'check_circle'\n | 'check_circle_outline'\n | 'checklist'\n | 'checklist_rtl'\n | 'checkroom'\n | 'chevron_left'\n | 'chevron_right'\n | 'child_care'\n | 'child_friendly'\n | 'chrome_reader_mode'\n | 'circle'\n | 'circle_notifications'\n | 'class'\n | 'clean_hands'\n | 'cleaning_services'\n | 'clear'\n | 'clear_all'\n | 'close'\n | 'close_fullscreen'\n | 'closed_caption'\n | 'closed_caption_disabled'\n | 'closed_caption_off'\n | 'cloud'\n | 'cloud_circle'\n | 'cloud_done'\n | 'cloud_download'\n | 'cloud_off'\n | 'cloud_queue'\n | 'cloud_upload'\n | 'code'\n | 'code_off'\n | 'coffee'\n | 'coffee_maker'\n | 'collections'\n | 'collections_bookmark'\n | 'color_lens'\n | 'colorize'\n | 'comment'\n | 'comment_bank'\n | 'commute'\n | 'compare'\n | 'compare_arrows'\n | 'compass_calibration'\n | 'compost'\n | 'compress'\n | 'computer'\n | 'confirmation_num'\n | 'confirmation_number'\n | 'connect_without_contact'\n | 'connected_tv'\n | 'construction'\n | 'contact_mail'\n | 'contact_page'\n | 'contact_phone'\n | 'contact_support'\n | 'contactless'\n | 'contacts'\n | 'content_copy'\n | 'content_cut'\n | 'content_paste'\n | 'content_paste_off'\n | 'control_camera'\n | 'control_point'\n | 'control_point_duplicate'\n | 'copy_all'\n | 'copyright'\n | 'coronavirus'\n | 'corporate_fare'\n | 'cottage'\n | 'countertops'\n | 'create'\n | 'create_new_folder'\n | 'credit_card'\n | 'credit_card_off'\n | 'credit_score'\n | 'crib'\n | 'crop'\n | 'crop_16_9'\n | 'crop_3_2'\n | 'crop_5_4'\n | 'crop_7_5'\n | 'crop_din'\n | 'crop_free'\n | 'crop_landscape'\n | 'crop_original'\n | 'crop_portrait'\n | 'crop_rotate'\n | 'crop_square'\n | 'cruelty_free'\n | 'dangerous'\n | 'dark_mode'\n | 'dashboard'\n | 'dashboard_customize'\n | 'data_exploration'\n | 'data_saver_off'\n | 'data_saver_on'\n | 'data_usage'\n | 'date_range'\n | 'deck'\n | 'dehaze'\n | 'delete'\n | 'delete_forever'\n | 'delete_outline'\n | 'delete_sweep'\n | 'delivery_dining'\n | 'departure_board'\n | 'description'\n | 'design_services'\n | 'desktop_access_disabled'\n | 'desktop_mac'\n | 'desktop_windows'\n | 'details'\n | 'developer_board'\n | 'developer_board_off'\n | 'developer_mode'\n | 'device_hub'\n | 'device_thermostat'\n | 'device_unknown'\n | 'devices'\n | 'devices_other'\n | 'dialer_sip'\n | 'dialpad'\n | 'dining'\n | 'dinner_dining'\n | 'directions'\n | 'directions_bike'\n | 'directions_boat'\n | 'directions_boat_filled'\n | 'directions_bus'\n | 'directions_bus_filled'\n | 'directions_car'\n | 'directions_car_filled'\n | 'directions_ferry'\n | 'directions_off'\n | 'directions_railway'\n | 'directions_railway_filled'\n | 'directions_run'\n | 'directions_subway'\n | 'directions_subway_filled'\n | 'directions_train'\n | 'directions_transit'\n | 'directions_transit_filled'\n | 'directions_walk'\n | 'dirty_lens'\n | 'disabled_by_default'\n | 'disabled_visible'\n | 'disc_full'\n | 'dnd_forwardslash'\n | 'dns'\n | 'do_disturb'\n | 'do_disturb_alt'\n | 'do_disturb_off'\n | 'do_disturb_on'\n | 'do_not_disturb'\n | 'do_not_disturb_alt'\n | 'do_not_disturb_off'\n | 'do_not_disturb_on'\n | 'do_not_disturb_on_total_silence'\n | 'do_not_step'\n | 'do_not_touch'\n | 'dock'\n | 'document_scanner'\n | 'domain'\n | 'domain_disabled'\n | 'domain_verification'\n | 'done'\n | 'done_all'\n | 'done_outline'\n | 'donut_large'\n | 'donut_small'\n | 'door_back'\n | 'door_front'\n | 'door_sliding'\n | 'doorbell'\n | 'double_arrow'\n | 'downhill_skiing'\n | 'download'\n | 'download_done'\n | 'download_for_offline'\n | 'downloading'\n | 'drafts'\n | 'drag_handle'\n | 'drag_indicator'\n | 'draw'\n | 'drive_eta'\n | 'drive_file_move'\n | 'drive_file_move_outline'\n | 'drive_file_move_rtl'\n | 'drive_file_rename_outline'\n | 'drive_folder_upload'\n | 'dry'\n | 'dry_cleaning'\n | 'duo'\n | 'dvr'\n | 'dynamic_feed'\n | 'dynamic_form'\n | 'e_mobiledata'\n | 'earbuds'\n | 'earbuds_battery'\n | 'east'\n | 'eco'\n | 'edgesensor_high'\n | 'edgesensor_low'\n | 'edit'\n | 'edit_attributes'\n | 'edit_calendar'\n | 'edit_location'\n | 'edit_location_alt'\n | 'edit_note'\n | 'edit_notifications'\n | 'edit_off'\n | 'edit_road'\n | 'eject'\n | 'elderly'\n | 'electric_bike'\n | 'electric_car'\n | 'electric_moped'\n | 'electric_rickshaw'\n | 'electric_scooter'\n | 'electrical_services'\n | 'elevator'\n | 'email'\n | 'emergency'\n | 'emoji_emotions'\n | 'emoji_events'\n | 'emoji_flags'\n | 'emoji_food_beverage'\n | 'emoji_nature'\n | 'emoji_objects'\n | 'emoji_people'\n | 'emoji_symbols'\n | 'emoji_transportation'\n | 'engineering'\n | 'enhance_photo_translate'\n | 'enhanced_encryption'\n | 'equalizer'\n | 'error'\n | 'error_outline'\n | 'escalator'\n | 'escalator_warning'\n | 'euro'\n | 'euro_symbol'\n | 'ev_station'\n | 'event'\n | 'event_available'\n | 'event_busy'\n | 'event_note'\n | 'event_seat'\n | 'exit_to_app'\n | 'expand'\n | 'expand_less'\n | 'expand_more'\n | 'explicit'\n | 'explore'\n | 'explore_off'\n | 'exposure'\n | 'exposure_minus_1'\n | 'exposure_minus_2'\n | 'exposure_neg_1'\n | 'exposure_neg_2'\n | 'exposure_plus_1'\n | 'exposure_plus_2'\n | 'exposure_zero'\n | 'extension'\n | 'extension_off'\n | 'face'\n | 'face_retouching_natural'\n | 'face_retouching_off'\n | 'facebook'\n | 'fact_check'\n | 'family_restroom'\n | 'fast_forward'\n | 'fast_rewind'\n | 'fastfood'\n | 'favorite'\n | 'favorite_border'\n | 'favorite_outline'\n | 'featured_play_list'\n | 'featured_video'\n | 'feed'\n | 'feedback'\n | 'female'\n | 'fence'\n | 'festival'\n | 'fiber_dvr'\n | 'fiber_manual_record'\n | 'fiber_new'\n | 'fiber_pin'\n | 'fiber_smart_record'\n | 'file_copy'\n | 'file_download'\n | 'file_download_done'\n | 'file_download_off'\n | 'file_present'\n | 'file_upload'\n | 'filter'\n | 'filter_1'\n | 'filter_2'\n | 'filter_3'\n | 'filter_4'\n | 'filter_5'\n | 'filter_6'\n | 'filter_7'\n | 'filter_8'\n | 'filter_9'\n | 'filter_9_plus'\n | 'filter_alt'\n | 'filter_b_and_w'\n | 'filter_center_focus'\n | 'filter_drama'\n | 'filter_frames'\n | 'filter_hdr'\n | 'filter_list'\n | 'filter_list_alt'\n | 'filter_none'\n | 'filter_tilt_shift'\n | 'filter_vintage'\n | 'find_in_page'\n | 'find_replace'\n | 'fingerprint'\n | 'fire_extinguisher'\n | 'fire_hydrant'\n | 'fireplace'\n | 'first_page'\n | 'fit_screen'\n | 'fitness_center'\n | 'flag'\n | 'flaky'\n | 'flare'\n | 'flash_auto'\n | 'flash_off'\n | 'flash_on'\n | 'flashlight_off'\n | 'flashlight_on'\n | 'flatware'\n | 'flight'\n | 'flight_land'\n | 'flight_takeoff'\n | 'flip'\n | 'flip_camera_android'\n | 'flip_camera_ios'\n | 'flip_to_back'\n | 'flip_to_front'\n | 'flourescent'\n | 'flutter_dash'\n | 'fmd_bad'\n | 'fmd_good'\n | 'folder'\n | 'folder_open'\n | 'folder_shared'\n | 'folder_special'\n | 'follow_the_signs'\n | 'font_download'\n | 'font_download_off'\n | 'food_bank'\n | 'format_align_center'\n | 'format_align_justify'\n | 'format_align_left'\n | 'format_align_right'\n | 'format_bold'\n | 'format_clear'\n | 'format_color_fill'\n | 'format_color_reset'\n | 'format_color_text'\n | 'format_indent_decrease'\n | 'format_indent_increase'\n | 'format_italic'\n | 'format_line_spacing'\n | 'format_list_bulleted'\n | 'format_list_numbered'\n | 'format_list_numbered_rtl'\n | 'format_paint'\n | 'format_quote'\n | 'format_shapes'\n | 'format_size'\n | 'format_strikethrough'\n | 'format_textdirection_l_to_r'\n | 'format_textdirection_r_to_l'\n | 'format_underline'\n | 'format_underlined'\n | 'forum'\n | 'forward'\n | 'forward_10'\n | 'forward_30'\n | 'forward_5'\n | 'forward_to_inbox'\n | 'foundation'\n | 'free_breakfast'\n | 'free_cancellation'\n | 'front_hand'\n | 'fullscreen'\n | 'fullscreen_exit'\n | 'functions'\n | 'g_mobiledata'\n | 'g_translate'\n | 'gamepad'\n | 'games'\n | 'garage'\n | 'gavel'\n | 'generating_tokens'\n | 'gesture'\n | 'get_app'\n | 'gif'\n | 'gite'\n | 'goat'\n | 'golf_course'\n | 'gpp_bad'\n | 'gpp_good'\n | 'gpp_maybe'\n | 'gps_fixed'\n | 'gps_not_fixed'\n | 'gps_off'\n | 'grade'\n | 'gradient'\n | 'grading'\n | 'grain'\n | 'graphic_eq'\n | 'grass'\n | 'grid_3x3'\n | 'grid_4x4'\n | 'grid_goldenratio'\n | 'grid_off'\n | 'grid_on'\n | 'grid_view'\n | 'group'\n | 'group_add'\n | 'group_off'\n | 'group_work'\n | 'groups'\n | 'h_mobiledata'\n | 'h_plus_mobiledata'\n | 'hail'\n | 'handyman'\n | 'hardware'\n | 'hd'\n | 'hdr_auto'\n | 'hdr_auto_select'\n | 'hdr_enhanced_select'\n | 'hdr_off'\n | 'hdr_off_select'\n | 'hdr_on'\n | 'hdr_on_select'\n | 'hdr_plus'\n | 'hdr_strong'\n | 'hdr_weak'\n | 'headphones'\n | 'headphones_battery'\n | 'headset'\n | 'headset_mic'\n | 'headset_off'\n | 'healing'\n | 'health_and_safety'\n | 'hearing'\n | 'hearing_disabled'\n | 'height'\n | 'help'\n | 'help_center'\n | 'help_outline'\n | 'hevc'\n | 'hide_image'\n | 'hide_source'\n | 'high_quality'\n | 'highlight'\n | 'highlight_alt'\n | 'highlight_off'\n | 'highlight_remove'\n | 'hiking'\n | 'history'\n | 'history_edu'\n | 'history_toggle_off'\n | 'holiday_village'\n | 'home'\n | 'home_filled'\n | 'home_max'\n | 'home_mini'\n | 'home_repair_service'\n | 'home_work'\n | 'horizontal_distribute'\n | 'horizontal_rule'\n | 'horizontal_split'\n | 'hot_tub'\n | 'hotel'\n | 'hotel_class'\n | 'hourglass_bottom'\n | 'hourglass_disabled'\n | 'hourglass_empty'\n | 'hourglass_full'\n | 'hourglass_top'\n | 'house'\n | 'house_siding'\n | 'houseboat'\n | 'how_to_reg'\n | 'how_to_vote'\n | 'http'\n | 'https'\n | 'hvac'\n | 'ice_skating'\n | 'icecream'\n | 'image'\n | 'image_aspect_ratio'\n | 'image_not_supported'\n | 'image_search'\n | 'imagesearch_roller'\n | 'import_contacts'\n | 'import_export'\n | 'important_devices'\n | 'inbox'\n | 'incomplete_circle'\n | 'indeterminate_check_box'\n | 'info'\n | 'info_outline'\n | 'input'\n | 'insert_chart'\n | 'insert_chart_outlined'\n | 'insert_comment'\n | 'insert_drive_file'\n | 'insert_emoticon'\n | 'insert_invitation'\n | 'insert_link'\n | 'insert_photo'\n | 'insights'\n | 'integration_instructions'\n | 'inventory'\n | 'inventory_2'\n | 'invert_colors'\n | 'invert_colors_off'\n | 'invert_colors_on'\n | 'ios_share'\n | 'iron'\n | 'iso'\n | 'kayaking'\n | 'keyboard'\n | 'keyboard_alt'\n | 'keyboard_arrow_down'\n | 'keyboard_arrow_left'\n | 'keyboard_arrow_right'\n | 'keyboard_arrow_up'\n | 'keyboard_backspace'\n | 'keyboard_capslock'\n | 'keyboard_control'\n | 'keyboard_hide'\n | 'keyboard_return'\n | 'keyboard_tab'\n | 'keyboard_voice'\n | 'king_bed'\n | 'kitchen'\n | 'kitesurfing'\n | 'label'\n | 'label_important'\n | 'label_important_outline'\n | 'label_off'\n | 'label_outline'\n | 'landscape'\n | 'language'\n | 'laptop'\n | 'laptop_chromebook'\n | 'laptop_mac'\n | 'laptop_windows'\n | 'last_page'\n | 'launch'\n | 'layers'\n | 'layers_clear'\n | 'leaderboard'\n | 'leak_add'\n | 'leak_remove'\n | 'leave_bags_at_home'\n | 'legend_toggle'\n | 'lens'\n | 'lens_blur'\n | 'library_add'\n | 'library_add_check'\n | 'library_books'\n | 'library_music'\n | 'light'\n | 'light_mode'\n | 'lightbulb'\n | 'lightbulb_outline'\n | 'line_style'\n | 'line_weight'\n | 'linear_scale'\n | 'link'\n | 'link_off'\n | 'linked_camera'\n | 'liquor'\n | 'list'\n | 'list_alt'\n | 'live_help'\n | 'live_tv'\n | 'living'\n | 'local_activity'\n | 'local_airport'\n | 'local_atm'\n | 'local_attraction'\n | 'local_bar'\n | 'local_cafe'\n | 'local_car_wash'\n | 'local_convenience_store'\n | 'local_dining'\n | 'local_drink'\n | 'local_fire_department'\n | 'local_florist'\n | 'local_gas_station'\n | 'local_grocery_store'\n | 'local_hospital'\n | 'local_hotel'\n | 'local_laundry_service'\n | 'local_library'\n | 'local_mall'\n | 'local_movies'\n | 'local_offer'\n | 'local_parking'\n | 'local_pharmacy'\n | 'local_phone'\n | 'local_pizza'\n | 'local_play'\n | 'local_police'\n | 'local_post_office'\n | 'local_print_shop'\n | 'local_printshop'\n | 'local_restaurant'\n | 'local_see'\n | 'local_shipping'\n | 'local_taxi'\n | 'location_city'\n | 'location_disabled'\n | 'location_history'\n | 'location_off'\n | 'location_on'\n | 'location_pin'\n | 'location_searching'\n | 'lock'\n | 'lock_clock'\n | 'lock_open'\n | 'lock_outline'\n | 'login'\n | 'logout'\n | 'looks'\n | 'looks_3'\n | 'looks_4'\n | 'looks_5'\n | 'looks_6'\n | 'looks_one'\n | 'looks_two'\n | 'loop'\n | 'loupe'\n | 'low_priority'\n | 'loyalty'\n | 'lte_mobiledata'\n | 'lte_plus_mobiledata'\n | 'luggage'\n | 'lunch_dining'\n | 'mail'\n | 'mail_outline'\n | 'male'\n | 'manage_accounts'\n | 'manage_search'\n | 'map'\n | 'maps_home_work'\n | 'maps_ugc'\n | 'margin'\n | 'mark_as_unread'\n | 'mark_chat_read'\n | 'mark_chat_unread'\n | 'mark_email_read'\n | 'mark_email_unread'\n | 'markunread'\n | 'markunread_mailbox'\n | 'masks'\n | 'maximize'\n | 'media_bluetooth_off'\n | 'media_bluetooth_on'\n | 'mediation'\n | 'medical_services'\n | 'medication'\n | 'meeting_room'\n | 'memory'\n | 'menu'\n | 'menu_book'\n | 'menu_open'\n | 'merge_type'\n | 'message'\n | 'messenger'\n | 'messenger_outline'\n | 'mic'\n | 'mic_external_off'\n | 'mic_external_on'\n | 'mic_none'\n | 'mic_off'\n | 'microwave'\n | 'military_tech'\n | 'minimize'\n | 'miscellaneous_services'\n | 'missed_video_call'\n | 'mms'\n | 'mobile_friendly'\n | 'mobile_off'\n | 'mobile_screen_share'\n | 'mobiledata_off'\n | 'mode'\n | 'mode_comment'\n | 'mode_edit'\n | 'mode_edit_outline'\n | 'mode_night'\n | 'mode_standby'\n | 'model_training'\n | 'monetization_on'\n | 'money'\n | 'money_off'\n | 'money_off_csred'\n | 'monitor'\n | 'monitor_weight'\n | 'monochrome_photos'\n | 'mood'\n | 'mood_bad'\n | 'moped'\n | 'more'\n | 'more_horiz'\n | 'more_time'\n | 'more_vert'\n | 'motion_photos_auto'\n | 'motion_photos_off'\n | 'motion_photos_on'\n | 'motion_photos_pause'\n | 'motion_photos_paused'\n | 'motorcycle'\n | 'mouse'\n | 'move_to_inbox'\n | 'movie'\n | 'movie_creation'\n | 'movie_filter'\n | 'moving'\n | 'mp'\n | 'multiline_chart'\n | 'multiple_stop'\n | 'multitrack_audio'\n | 'museum'\n | 'music_note'\n | 'music_off'\n | 'music_video'\n | 'my_library_add'\n | 'my_library_books'\n | 'my_library_music'\n | 'my_location'\n | 'nat'\n | 'nature'\n | 'nature_people'\n | 'navigate_before'\n | 'navigate_next'\n | 'navigation'\n | 'near_me'\n | 'near_me_disabled'\n | 'nearby_error'\n | 'nearby_off'\n | 'network_cell'\n | 'network_check'\n | 'network_locked'\n | 'network_wifi'\n | 'new_label'\n | 'new_releases'\n | 'next_plan'\n | 'next_week'\n | 'nfc'\n | 'night_shelter'\n | 'nightlife'\n | 'nightlight'\n | 'nightlight_round'\n | 'nights_stay'\n | 'no_accounts'\n | 'no_backpack'\n | 'no_cell'\n | 'no_drinks'\n | 'no_encryption'\n | 'no_encryption_gmailerrorred'\n | 'no_flash'\n | 'no_food'\n | 'no_luggage'\n | 'no_meals'\n | 'no_meals_ouline'\n | 'no_meeting_room'\n | 'no_photography'\n | 'no_sim'\n | 'no_stroller'\n | 'no_transfer'\n | 'nordic_walking'\n | 'north'\n | 'north_east'\n | 'north_west'\n | 'not_accessible'\n | 'not_interested'\n | 'not_listed_location'\n | 'not_started'\n | 'note'\n | 'note_add'\n | 'note_alt'\n | 'notes'\n | 'notification_add'\n | 'notification_important'\n | 'notifications'\n | 'notifications_active'\n | 'notifications_none'\n | 'notifications_off'\n | 'notifications_on'\n | 'notifications_paused'\n | 'now_wallpaper'\n | 'now_widgets'\n | 'offline_bolt'\n | 'offline_pin'\n | 'offline_share'\n | 'ondemand_video'\n | 'online_prediction'\n | 'opacity'\n | 'open_in_browser'\n | 'open_in_full'\n | 'open_in_new'\n | 'open_in_new_off'\n | 'open_with'\n | 'other_houses'\n | 'outbond'\n | 'outbound'\n | 'outbox'\n | 'outdoor_grill'\n | 'outgoing_mail'\n | 'outlet'\n | 'outlined_flag'\n | 'padding'\n | 'pages'\n | 'pageview'\n | 'paid'\n | 'palette'\n | 'pan_tool'\n | 'panorama'\n | 'panorama_fish_eye'\n | 'panorama_fisheye'\n | 'panorama_horizontal'\n | 'panorama_horizontal_select'\n | 'panorama_photosphere'\n | 'panorama_photosphere_select'\n | 'panorama_vertical'\n | 'panorama_vertical_select'\n | 'panorama_wide_angle'\n | 'panorama_wide_angle_select'\n | 'paragliding'\n | 'park'\n | 'party_mode'\n | 'password'\n | 'pattern'\n | 'pause'\n | 'pause_circle'\n | 'pause_circle_filled'\n | 'pause_circle_outline'\n | 'pause_presentation'\n | 'payment'\n | 'payments'\n | 'pedal_bike'\n | 'pending'\n | 'pending_actions'\n | 'people'\n | 'people_alt'\n | 'people_outline'\n | 'perm_camera_mic'\n | 'perm_contact_cal'\n | 'perm_contact_calendar'\n | 'perm_data_setting'\n | 'perm_device_info'\n | 'perm_device_information'\n | 'perm_identity'\n | 'perm_media'\n | 'perm_phone_msg'\n | 'perm_scan_wifi'\n | 'person'\n | 'person_add'\n | 'person_add_alt'\n | 'person_add_alt_1'\n | 'person_add_disabled'\n | 'person_off'\n | 'person_outline'\n | 'person_pin'\n | 'person_pin_circle'\n | 'person_remove'\n | 'person_remove_alt_1'\n | 'person_search'\n | 'personal_injury'\n | 'personal_video'\n | 'pest_control'\n | 'pest_control_rodent'\n | 'pets'\n | 'phone'\n | 'phone_android'\n | 'phone_bluetooth_speaker'\n | 'phone_callback'\n | 'phone_disabled'\n | 'phone_enabled'\n | 'phone_forwarded'\n | 'phone_in_talk'\n | 'phone_iphone'\n | 'phone_locked'\n | 'phone_missed'\n | 'phone_paused'\n | 'phonelink'\n | 'phonelink_erase'\n | 'phonelink_lock'\n | 'phonelink_off'\n | 'phonelink_ring'\n | 'phonelink_setup'\n | 'photo'\n | 'photo_album'\n | 'photo_camera'\n | 'photo_camera_back'\n | 'photo_camera_front'\n | 'photo_filter'\n | 'photo_library'\n | 'photo_size_select_actual'\n | 'photo_size_select_large'\n | 'photo_size_select_small'\n | 'piano'\n | 'piano_off'\n | 'picture_as_pdf'\n | 'picture_in_picture'\n | 'picture_in_picture_alt'\n | 'pie_chart'\n | 'pie_chart_outline'\n | 'pie_chart_outlined'\n | 'pin'\n | 'pin_drop'\n | 'pin_end'\n | 'pin_invoke'\n | 'pivot_table_chart'\n | 'place'\n | 'plagiarism'\n | 'play_arrow'\n | 'play_circle'\n | 'play_circle_fill'\n | 'play_circle_filled'\n | 'play_circle_outline'\n | 'play_disabled'\n | 'play_for_work'\n | 'play_lesson'\n | 'playlist_add'\n | 'playlist_add_check'\n | 'playlist_play'\n | 'plumbing'\n | 'plus_one'\n | 'podcasts'\n | 'point_of_sale'\n | 'policy'\n | 'poll'\n | 'polymer'\n | 'pool'\n | 'portable_wifi_off'\n | 'portrait'\n | 'post_add'\n | 'power'\n | 'power_input'\n | 'power_off'\n | 'power_settings_new'\n | 'precision_manufacturing'\n | 'pregnant_woman'\n | 'present_to_all'\n | 'preview'\n | 'price_change'\n | 'price_check'\n | 'print'\n | 'print_disabled'\n | 'priority_high'\n | 'privacy_tip'\n | 'private_connectivity'\n | 'production_quantity_limits'\n | 'psychology'\n | 'public'\n | 'public_off'\n | 'publish'\n | 'published_with_changes'\n | 'push_pin'\n | 'qr_code'\n | 'qr_code_2'\n | 'qr_code_scanner'\n | 'query_builder'\n | 'query_stats'\n | 'question_answer'\n | 'queue'\n | 'queue_music'\n | 'queue_play_next'\n | 'quick_contacts_dialer'\n | 'quick_contacts_mail'\n | 'quickreply'\n | 'quiz'\n | 'r_mobiledata'\n | 'radar'\n | 'radio'\n | 'radio_button_checked'\n | 'radio_button_off'\n | 'radio_button_on'\n | 'radio_button_unchecked'\n | 'railway_alert'\n | 'ramen_dining'\n | 'rate_review'\n | 'raw_off'\n | 'raw_on'\n | 'read_more'\n | 'real_estate_agent'\n | 'receipt'\n | 'receipt_long'\n | 'recent_actors'\n | 'recommend'\n | 'record_voice_over'\n | 'recycling'\n | 'redeem'\n | 'redo'\n | 'reduce_capacity'\n | 'refresh'\n | 'remember_me'\n | 'remove'\n | 'remove_circle'\n | 'remove_circle_outline'\n | 'remove_done'\n | 'remove_from_queue'\n | 'remove_moderator'\n | 'remove_red_eye'\n | 'remove_shopping_cart'\n | 'reorder'\n | 'repeat'\n | 'repeat_on'\n | 'repeat_one'\n | 'repeat_one_on'\n | 'replay'\n | 'replay_10'\n | 'replay_30'\n | 'replay_5'\n | 'replay_circle_filled'\n | 'reply'\n | 'reply_all'\n | 'report'\n | 'report_gmailerrorred'\n | 'report_off'\n | 'report_problem'\n | 'request_page'\n | 'request_quote'\n | 'reset_tv'\n | 'restart_alt'\n | 'restaurant'\n | 'restaurant_menu'\n | 'restore'\n | 'restore_from_trash'\n | 'restore_page'\n | 'reviews'\n | 'rice_bowl'\n | 'ring_volume'\n | 'roofing'\n | 'room'\n | 'room_preferences'\n | 'room_service'\n | 'rotate_90_degrees_ccw'\n | 'rotate_left'\n | 'rotate_right'\n | 'rounded_corner'\n | 'router'\n | 'rowing'\n | 'rss_feed'\n | 'rsvp'\n | 'rtt'\n | 'rule'\n | 'rule_folder'\n | 'run_circle'\n | 'running_with_errors'\n | 'rv_hookup'\n | 'safety_divider'\n | 'sailing'\n | 'sanitizer'\n | 'satellite'\n | 'save'\n | 'save_alt'\n | 'saved_search'\n | 'savings'\n | 'scanner'\n | 'scatter_plot'\n | 'schedule'\n | 'schedule_send'\n | 'schema'\n | 'school'\n | 'science'\n | 'score'\n | 'screen_lock_landscape'\n | 'screen_lock_portrait'\n | 'screen_lock_rotation'\n | 'screen_rotation'\n | 'screen_search_desktop'\n | 'screen_share'\n | 'screenshot'\n | 'sd'\n | 'sd_card'\n | 'sd_card_alert'\n | 'sd_storage'\n | 'search'\n | 'search_off'\n | 'security'\n | 'security_update'\n | 'security_update_good'\n | 'security_update_warning'\n | 'segment'\n | 'select_all'\n | 'self_improvement'\n | 'sell'\n | 'send'\n | 'send_and_archive'\n | 'send_to_mobile'\n | 'sensor_door'\n | 'sensor_window'\n | 'sensors'\n | 'sensors_off'\n | 'sentiment_dissatisfied'\n | 'sentiment_neutral'\n | 'sentiment_satisfied'\n | 'sentiment_satisfied_alt'\n | 'sentiment_very_dissatisfied'\n | 'sentiment_very_satisfied'\n | 'set_meal'\n | 'settings'\n | 'settings_accessibility'\n | 'settings_applications'\n | 'settings_backup_restore'\n | 'settings_bluetooth'\n | 'settings_brightness'\n | 'settings_cell'\n | 'settings_display'\n | 'settings_ethernet'\n | 'settings_input_antenna'\n | 'settings_input_component'\n | 'settings_input_composite'\n | 'settings_input_hdmi'\n | 'settings_input_svideo'\n | 'settings_overscan'\n | 'settings_phone'\n | 'settings_power'\n | 'settings_remote'\n | 'settings_suggest'\n | 'settings_system_daydream'\n | 'settings_voice'\n | 'share'\n | 'share_arrival_time'\n | 'share_location'\n | 'shield'\n | 'shop'\n | 'shop_2'\n | 'shop_two'\n | 'shopping_bag'\n | 'shopping_basket'\n | 'shopping_cart'\n | 'short_text'\n | 'shortcut'\n | 'show_chart'\n | 'shower'\n | 'shuffle'\n | 'shuffle_on'\n | 'shutter_speed'\n | 'sick'\n | 'signal_cellular_0_bar'\n | 'signal_cellular_4_bar'\n | 'signal_cellular_alt'\n | 'signal_cellular_connected_no_internet_0_bar'\n | 'signal_cellular_connected_no_internet_4_bar'\n | 'signal_cellular_no_sim'\n | 'signal_cellular_nodata'\n | 'signal_cellular_null'\n | 'signal_cellular_off'\n | 'signal_wifi_0_bar'\n | 'signal_wifi_4_bar'\n | 'signal_wifi_4_bar_lock'\n | 'signal_wifi_bad'\n | 'signal_wifi_connected_no_internet_4'\n | 'signal_wifi_off'\n | 'signal_wifi_statusbar_4_bar'\n | 'signal_wifi_statusbar_connected_no_internet_4'\n | 'signal_wifi_statusbar_null'\n | 'sim_card'\n | 'sim_card_alert'\n | 'sim_card_download'\n | 'single_bed'\n | 'sip'\n | 'skateboarding'\n | 'skip_next'\n | 'skip_previous'\n | 'sledding'\n | 'slideshow'\n | 'slow_motion_video'\n | 'smart_button'\n | 'smart_display'\n | 'smart_screen'\n | 'smart_toy'\n | 'smartphone'\n | 'smoke_free'\n | 'smoking_rooms'\n | 'sms'\n | 'sms_failed'\n | 'snippet_folder'\n | 'snooze'\n | 'snowboarding'\n | 'snowmobile'\n | 'snowshoeing'\n | 'soap'\n | 'social_distance'\n | 'sort'\n | 'sort_by_alpha'\n | 'source'\n | 'south'\n | 'south_east'\n | 'south_west'\n | 'spa'\n | 'space_bar'\n | 'space_dashboard'\n | 'speaker'\n | 'speaker_group'\n | 'speaker_notes'\n | 'speaker_notes_off'\n | 'speaker_phone'\n | 'speed'\n | 'spellcheck'\n | 'splitscreen'\n | 'sports'\n | 'sports_bar'\n | 'sports_baseball'\n | 'sports_basketball'\n | 'sports_cricket'\n | 'sports_esports'\n | 'sports_football'\n | 'sports_golf'\n | 'sports_handball'\n | 'sports_hockey'\n | 'sports_kabaddi'\n | 'sports_mma'\n | 'sports_motorsports'\n | 'sports_rugby'\n | 'sports_score'\n | 'sports_soccer'\n | 'sports_tennis'\n | 'sports_volleyball'\n | 'square_foot'\n | 'stacked_bar_chart'\n | 'stacked_line_chart'\n | 'stairs'\n | 'star'\n | 'star_border'\n | 'star_border_purple500'\n | 'star_half'\n | 'star_outline'\n | 'star_purple500'\n | 'star_rate'\n | 'stars'\n | 'stay_current_landscape'\n | 'stay_current_portrait'\n | 'stay_primary_landscape'\n | 'stay_primary_portrait'\n | 'sticky_note_2'\n | 'stop'\n | 'stop_circle'\n | 'stop_screen_share'\n | 'storage'\n | 'store'\n | 'store_mall_directory'\n | 'storefront'\n | 'storm'\n | 'straighten'\n | 'stream'\n | 'streetview'\n | 'strikethrough_s'\n | 'stroller'\n | 'style'\n | 'subdirectory_arrow_left'\n | 'subdirectory_arrow_right'\n | 'subject'\n | 'subscript'\n | 'subscriptions'\n | 'subtitles'\n | 'subtitles_off'\n | 'subway'\n | 'summarize'\n | 'superscript'\n | 'supervised_user_circle'\n | 'supervisor_account'\n | 'support'\n | 'support_agent'\n | 'surfing'\n | 'surround_sound'\n | 'swap_calls'\n | 'swap_horiz'\n | 'swap_horizontal_circle'\n | 'swap_vert'\n | 'swap_vert_circle'\n | 'swap_vertical_circle'\n | 'swipe'\n | 'switch_account'\n | 'switch_camera'\n | 'switch_left'\n | 'switch_right'\n | 'switch_video'\n | 'sync'\n | 'sync_alt'\n | 'sync_disabled'\n | 'sync_problem'\n | 'system_security_update'\n | 'system_security_update_good'\n | 'system_security_update_warning'\n | 'system_update'\n | 'system_update_alt'\n | 'system_update_tv'\n | 'tab'\n | 'tab_unselected'\n | 'table_chart'\n | 'table_rows'\n | 'table_view'\n | 'tablet'\n | 'tablet_android'\n | 'tablet_mac'\n | 'tag'\n | 'tag_faces'\n | 'takeout_dining'\n | 'tap_and_play'\n | 'tapas'\n | 'task'\n | 'task_alt'\n | 'taxi_alert'\n | 'terrain'\n | 'text_fields'\n | 'text_format'\n | 'text_rotate_up'\n | 'text_rotate_vertical'\n | 'text_rotation_angledown'\n | 'text_rotation_angleup'\n | 'text_rotation_down'\n | 'text_rotation_none'\n | 'text_snippet'\n | 'textsms'\n | 'texture'\n | 'theater_comedy'\n | 'theaters'\n | 'thermostat'\n | 'thermostat_auto'\n | 'thumb_down'\n | 'thumb_down_alt'\n | 'thumb_down_off_alt'\n | 'thumb_up'\n | 'thumb_up_alt'\n | 'thumb_up_off_alt'\n | 'thumbs_up_down'\n | 'time_to_leave'\n | 'timelapse'\n | 'timeline'\n | 'timer'\n | 'timer_10'\n | 'timer_10_select'\n | 'timer_3'\n | 'timer_3_select'\n | 'timer_off'\n | 'tips_and_updates'\n | 'title'\n | 'toc'\n | 'today'\n | 'toggle_off'\n | 'toggle_on'\n | 'toll'\n | 'tonality'\n | 'topic'\n | 'touch_app'\n | 'tour'\n | 'toys'\n | 'track_changes'\n | 'traffic'\n | 'train'\n | 'tram'\n | 'transfer_within_a_station'\n | 'transform'\n | 'transgender'\n | 'transit_enterexit'\n | 'translate'\n | 'travel_explore'\n | 'trending_down'\n | 'trending_flat'\n | 'trending_neutral'\n | 'trending_up'\n | 'trip_origin'\n | 'try'\n | 'tty'\n | 'tune'\n | 'tungsten'\n | 'turned_in'\n | 'turned_in_not'\n | 'tv'\n | 'tv_off'\n | 'two_wheeler'\n | 'umbrella'\n | 'unarchive'\n | 'undo'\n | 'unfold_less'\n | 'unfold_more'\n | 'unpublished'\n | 'unsubscribe'\n | 'upcoming'\n | 'update'\n | 'update_disabled'\n | 'upgrade'\n | 'upload'\n | 'upload_file'\n | 'usb'\n | 'usb_off'\n | 'verified'\n | 'verified_user'\n | 'vertical_align_bottom'\n | 'vertical_align_center'\n | 'vertical_align_top'\n | 'vertical_distribute'\n | 'vertical_split'\n | 'vibration'\n | 'video_call'\n | 'video_camera_back'\n | 'video_camera_front'\n | 'video_collection'\n | 'video_label'\n | 'video_library'\n | 'video_settings'\n | 'video_stable'\n | 'videocam'\n | 'videocam_off'\n | 'videogame_asset'\n | 'videogame_asset_off'\n | 'view_agenda'\n | 'view_array'\n | 'view_carousel'\n | 'view_column'\n | 'view_comfortable'\n | 'view_comfy'\n | 'view_compact'\n | 'view_day'\n | 'view_headline'\n | 'view_in_ar'\n | 'view_list'\n | 'view_module'\n | 'view_quilt'\n | 'view_sidebar'\n | 'view_stream'\n | 'view_week'\n | 'vignette'\n | 'villa'\n | 'visibility'\n | 'visibility_off'\n | 'voice_chat'\n | 'voice_over_off'\n | 'voicemail'\n | 'volume_down'\n | 'volume_down_alt'\n | 'volume_mute'\n | 'volume_off'\n | 'volume_up'\n | 'volunteer_activism'\n | 'vpn_key'\n | 'vpn_lock'\n | 'vrpano'\n | 'wallet_giftcard'\n | 'wallet_membership'\n | 'wallet_travel'\n | 'wallpaper'\n | 'warning'\n | 'warning_amber'\n | 'wash'\n | 'watch'\n | 'watch_later'\n | 'water'\n | 'water_damage'\n | 'water_drop'\n | 'waterfall_chart'\n | 'waves'\n | 'waving_hand'\n | 'wb_auto'\n | 'wb_cloudy'\n | 'wb_incandescent'\n | 'wb_iridescent'\n | 'wb_shade'\n | 'wb_sunny'\n | 'wb_twighlight'\n | 'wb_twilight'\n | 'wc'\n | 'web'\n | 'web_asset'\n | 'web_asset_off'\n | 'web_stories'\n | 'weekend'\n | 'west'\n | 'whatshot'\n | 'wheelchair_pickup'\n | 'where_to_vote'\n | 'widgets'\n | 'wifi'\n | 'wifi_calling'\n | 'wifi_calling_3'\n | 'wifi_lock'\n | 'wifi_off'\n | 'wifi_protected_setup'\n | 'wifi_tethering'\n | 'wifi_tethering_error_rounded'\n | 'wifi_tethering_off'\n | 'window'\n | 'wine_bar'\n | 'work'\n | 'work_off'\n | 'work_outline'\n | 'workspaces'\n | 'workspaces_filled'\n | 'workspaces_outline'\n | 'wrap_text'\n | 'wrong_location'\n | 'wysiwyg'\n | 'yard'\n | 'youtube_searched_for'\n | 'zoom_in'\n | 'zoom_out'\n | 'zoom_out_map';\n","export const version = '0.21.0';\n","import * as React from 'react';\n\nexport class ErrorBoundary extends React.Component<any, any> {\n constructor(props) {\n super(props);\n this.state = { hasError: false, error: null };\n }\n\n static getDerivedStateFromError(error) {\n // Update state so the next render will show the fallback UI.\n return { hasError: true, error };\n }\n\n componentDidCatch(error, errorInfo) {\n // You can also log the error to an error reporting service\n // logErrorToMyService(error, errorInfo);\n }\n\n render() {\n if (this.state.hasError) {\n return (\n <view id=\"__react-unity-error-boundary\" style={{ color: 'crimson', padding: 20, fontSize: 16 }}>\n <view style={{ marginBottom: '12px' }}>{this.state.error?.message || ''}</view>\n <view>{this.state.error?.stack || ''}</view>\n </view>\n );\n }\n\n return this.props.children;\n }\n}\n","import { ReactNode } from 'react';\nimport { ErrorBoundary } from './error-boundary';\n\ninterface Props {\n children?: ReactNode;\n withHelpers: boolean;\n renderCount: number;\n}\n\nexport function DefaultView({ children, withHelpers, renderCount }: Props) {\n return <>{!withHelpers ? children : <ErrorBoundary key={renderCount}>{children}</ErrorBoundary>}</>;\n}\n","export class ObjectsRepo<T = any> {\n indices: Record<string, unknown>[] = [{}];\n objects = new WeakMap<object, T>();\n\n setObject = (index: number, item: T) => {\n let it = this.indices[index];\n if (!it) {\n it = this.indices[index] = {};\n }\n this.objects.set(it, item);\n };\n\n addObject = (item: T) => {\n if (!item) return -1;\n\n const it = {};\n const ind = this.indices.length;\n this.indices.push(it);\n this.objects.set(it, item);\n\n return ind;\n };\n\n getObject = (index: number) => {\n if (index < 0) return undefined;\n const it = this.indices[index];\n return this.objects.get(it);\n };\n}\n","export type DiffResult = null | Record<string, any>;\n\nexport const styleStringSymbol = '__style_as_string__';\n\nconst propDepths = {\n style: 1,\n data: 1,\n custom: 1,\n};\n\nexport function diffProperties(lastProps: Record<string, any>, nextProps: Record<string, any>, deepDiffing = 0): DiffResult {\n if (lastProps === nextProps) return null;\n let updatePayload: DiffResult = null;\n\n let propKey: PropertyKey;\n for (propKey in lastProps) {\n // This loop is for removing properties that existed in the previous properties, but not on current\n\n if (Object.hasOwn(nextProps, propKey) || !Object.hasOwn(lastProps, propKey) || lastProps[propKey] == null) {\n continue;\n }\n\n let prop = null;\n\n // If style existed in the previous properties as string, set it to null\n if (propKey === 'style' && typeof lastProps.style === 'string') {\n (updatePayload = updatePayload || {})[styleStringSymbol] = null;\n } else {\n const depth = deepDiffing > 0 ? deepDiffing : propDepths[propKey] || 0;\n if (depth > 0) {\n prop = diffProperties(lastProps[propKey], {}, depth - 1);\n if (!prop) continue;\n }\n\n // For all other deleted properties we add it to the queue. We use\n // the whitelist in the commit phase instead.\n (updatePayload = updatePayload || {})[propKey] = prop;\n }\n }\n\n for (propKey in nextProps) {\n // This loop is for finding difference between current properties and previous properties\n\n const nextProp = nextProps[propKey];\n const lastProp = lastProps != null ? lastProps[propKey] : undefined;\n if (!Object.hasOwn(nextProps, propKey) || nextProp === lastProp || (nextProp == null && lastProp == null)) {\n continue;\n }\n\n let prop = nextProp;\n\n if (propKey === 'style') {\n const prevWasString = typeof lastProp === 'string';\n const curIsString = typeof prop === 'string';\n\n if (prevWasString !== curIsString) {\n (updatePayload = updatePayload || {})[styleStringSymbol] = typeof prop === 'string' ? prop : null;\n\n if (curIsString) {\n // Current style is string while previous is object, so revert all changes from the previous one\n prop = diffProperties(lastProp, {}, 0);\n if (!prop) continue;\n }\n } else {\n // Both styles are string, style does not need changing\n if (curIsString) continue;\n // Both styles are object, take the difference\n prop = diffProperties(lastProp, nextProp, 0);\n if (!prop) continue;\n }\n } else {\n const depth = deepDiffing > 0 ? deepDiffing : propDepths[propKey] || 0;\n if (depth > 0) {\n prop = diffProperties(lastProp, nextProp, depth - 1);\n if (!prop) continue;\n }\n }\n\n (updatePayload = updatePayload || {})[propKey] = prop;\n }\n\n return updatePayload;\n}\n","import { createContext } from 'react';\nimport { ContinuousEventPriority, DefaultEventPriority, DiscreteEventPriority, IdleEventPriority } from 'react-reconciler/constants';\nimport { PoolKey } from '../models/base';\nimport { CommonConfig, TransitionStatus } from '../models/renderer';\nimport { styleStringSymbol } from './diffing';\n\ndeclare const process;\n\nexport const hideClass = 'react-unity__renderer__hidden';\n\nexport const eventPriorities = {\n discrete: DiscreteEventPriority,\n continuous: ContinuousEventPriority,\n default: DefaultEventPriority,\n idle: IdleEventPriority,\n};\n\nexport const textTypes = {\n text: true,\n icon: true,\n style: true,\n script: true,\n};\n\nexport function stringizePoolKey(key: PoolKey) {\n switch (typeof key) {\n case 'string':\n return key;\n case 'boolean':\n return key ? 'default' : '';\n case 'number':\n return key.toString();\n case 'undefined':\n return null;\n default:\n return '';\n }\n}\n\nexport function getAllowedProps(props, type) {\n const { children, tag, pool, ref, ...rest } = props;\n\n if (textTypes[type] && 'children' in props) {\n rest.children = !children || typeof children === 'boolean' ? null : Array.isArray(children) ? children.join('') : String(children);\n }\n\n if (typeof props.style === 'string') rest[styleStringSymbol] = props.style;\n\n return rest;\n}\n\ndeclare const queueMicrotask: (callback: (...args: any[]) => any) => void;\n\nconst HostTransitionContext = createContext<TransitionStatus>(null) as any;\n\nconst NoEventPriority = 0;\nlet currentUpdatePriority: number = NoEventPriority;\n\nexport const commonReconciler = {\n // -------------------\n // Scheduling\n // -------------------\n\n noTimeout: -1 as const,\n scheduleTimeout: (callback, delay) => setTimeout(callback as any, delay),\n scheduleMicrotask:\n typeof queueMicrotask === 'function'\n ? queueMicrotask\n : (callback) =>\n Promise.resolve(null)\n .then(callback)\n .catch((error) =>\n setTimeout(() => {\n throw error;\n }, 0),\n ),\n cancelTimeout: (handle) => clearTimeout(handle),\n\n beforeActiveInstanceBlur() {},\n\n afterActiveInstanceBlur() {},\n\n prepareScopeUpdate: () => {},\n getInstanceFromScope: () => undefined,\n getInstanceFromNode: () => undefined,\n\n // React 19\n\n setCurrentUpdatePriority: (newPriority: number) => (currentUpdatePriority = newPriority),\n getCurrentUpdatePriority: () => currentUpdatePriority,\n resolveUpdatePriority: () => currentUpdatePriority || UnityBridge.CurrentEventPriority || eventPriorities.default,\n maySuspendCommit: () => false,\n requestPostPaintCallback: () => {},\n preloadInstance: () => true,\n resetFormInstance: () => {},\n resolveEventTimeStamp: () => -1.1,\n resolveEventType: () => null,\n shouldAttemptEagerTransition: () => false,\n startSuspendingCommit: () => {},\n suspendInstance: () => {},\n trackSchedulerEvent: () => {},\n waitForCommitToBeReady: () => null,\n NotPendingTransition: null,\n HostTransitionContext,\n\n // Keep these for React 18 compatibility\n ...{\n now:\n typeof performance !== 'undefined' && typeof performance.now === 'function'\n ? () => performance.now()\n : typeof Date !== 'undefined' && typeof Date.now === 'function'\n ? () => Date.now()\n : () => 0,\n getCurrentEventPriority: () => UnityBridge.CurrentEventPriority || eventPriorities.default,\n },\n} satisfies Partial<CommonConfig>;\n\nexport const isDevelopment = process.env.NODE_ENV === 'development';\n","import { RichTextNode } from '../async/types';\n\nexport function parametrizeValue(value: string | number) {\n if (typeof value === 'number') return String(value);\n value = String(value);\n\n if (value.includes(' ') || value.includes('-')) return `\"${value}\"`;\n return value;\n}\n\nexport function stringifyRichText(node: RichTextNode): string {\n if (node.hidden) return '';\n\n if ('text' in node) return node.text;\n\n const acc: string[] = [];\n\n const tag = node.tag;\n\n if (tag) {\n acc.push('<');\n acc.push(tag);\n\n if (node.attributes?.value != null) {\n const value = node.attributes?.value;\n acc.push('=');\n acc.push(parametrizeValue(value));\n }\n\n for (const key in node.attributes) {\n if (key === 'value') continue;\n if (Object.hasOwn(node.attributes, key)) {\n const value = node.attributes[key];\n\n if (value != null) {\n acc.push(' ');\n acc.push(key);\n acc.push('=');\n acc.push(parametrizeValue(value));\n }\n }\n }\n acc.push('>');\n }\n\n if (node.children?.length > 0) {\n for (const child of node.children) {\n acc.push(stringifyRichText(child));\n }\n\n if (tag) {\n acc.push('</');\n acc.push(tag);\n acc.push('>');\n }\n }\n\n return acc.join('');\n}\n","import { RichTextNode } from '../async/types';\n\nfunction kebabize(str: string): string {\n return str\n .split('')\n .map((letter, idx) => {\n return letter.toUpperCase() === letter ? `${idx !== 0 ? '-' : ''}${letter.toLowerCase()}` : letter;\n })\n .join('');\n}\n\nexport function stringifyStyle(style: any): string {\n if (typeof style === 'string') return style;\n\n const acc: string[] = [];\n\n for (const key in style) {\n if (Object.hasOwn(style, key)) {\n const element = style[key];\n\n if (element != null) {\n acc.push(kebabize(key));\n acc.push(':');\n acc.push(element);\n acc.push(';');\n }\n }\n }\n\n return acc.join('');\n}\n\nexport function stringifySVG(node: RichTextNode): string {\n if (node.hidden) return '';\n\n if ('text' in node) return node.text;\n\n const acc: string[] = [];\n\n const tag = node.tag;\n\n if (tag) {\n acc.push('<');\n acc.push(tag);\n\n for (const key in node.attributes) {\n if (Object.hasOwn(node.attributes, key)) {\n let element = node.attributes[key];\n\n if (key === 'style') element = stringifyStyle(element);\n\n if (element != null) {\n acc.push(' ');\n acc.push(kebabize(key));\n acc.push('=\"');\n acc.push(element);\n acc.push('\"');\n }\n }\n }\n }\n\n if (node.children?.length > 0) {\n if (tag) acc.push('>');\n\n for (const child of node.children) {\n acc.push(stringifySVG(child));\n }\n\n if (tag) {\n acc.push('</');\n acc.push(tag);\n acc.push('>');\n }\n } else {\n if (tag) acc.push(' />');\n }\n\n return acc.join('');\n}\n","import { stringifyRichText } from './richtext';\nimport { stringifySVG } from './svg';\n\nexport const subContextRenderers = {\n richtext: stringifyRichText,\n svg: stringifySVG,\n};\n","import { System } from '../../models/generated';\nimport { AsyncCallback } from './commands';\nimport { ObjectsRepo } from './objects';\n\nexport class CallbacksRepo extends ObjectsRepo<AsyncCallback> {\n call = (ind: number, args: any[]) => {\n const cb = this.getObject(ind);\n\n const argsAsList = args as unknown as System.Collections.Generic.List<any>;\n const argsAsArray = args as unknown as System.Array;\n\n if (typeof argsAsArray.Length === 'number') {\n // C# Array\n args = [];\n const length = argsAsArray.Length;\n for (let index = 0; index < length; index++) args.push(argsAsArray.GetValue(index));\n } else if (typeof argsAsList.Count === 'number') {\n // C# List\n args = [];\n const length = argsAsList.Count;\n for (let index = 0; index < length; index++) args.push(argsAsList[index]);\n } else if (typeof argsAsList.Count === 'function') {\n // C# IList\n args = [];\n const length = (argsAsList.Count as any)();\n for (let index = 0; index < length; index++) args.push(argsAsArray.GetValue(index));\n }\n\n return cb.apply(null, args);\n };\n}\n","import { CallbacksRepo } from './callbacks';\nimport { SerializableUpdateProps } from './commands';\nimport { ObjectsRepo } from './objects';\n\nexport const callbacksRepo = new CallbacksRepo();\nexport const objectsRepo = new ObjectsRepo();\n\n// Separates properties in 3 categories: regular props, callbacks and non-serializable objects\nexport function convertPropsToSerializable(props: any) {\n const res: SerializableUpdateProps = {};\n\n for (const key in props) {\n if (Object.hasOwn(props, key)) {\n const value = props[key];\n\n if (value == null) {\n (res.p ||= {})[key] = null;\n } else if (key === 'style') {\n (res.p ||= {})[key] = convertPropsToSerializable(value);\n } else if (key[0] === 'o' && key[1] === 'n' && typeof value === 'function') {\n const ind = callbacksRepo.addObject(value);\n (res.e ||= {})[key] = ind;\n } else if (typeof value === 'object' || typeof value === 'function') {\n const ind = objectsRepo.addObject(value);\n (res.o ||= {})[key] = ind;\n } else {\n (res.p ||= {})[key] = value;\n }\n }\n }\n\n return res;\n}\n","import Reconciler from 'react-reconciler';\nimport { commonReconciler, getAllowedProps, stringizePoolKey, textTypes } from '../constants';\nimport { diffProperties } from '../diffing';\nimport { subContextRenderers } from '../subcontexts';\nimport { callbacksRepo, convertPropsToSerializable, objectsRepo } from './serializer';\nimport { AsyncHostContext, AsyncReconcilerConfig, AsyncSubContext } from './types';\n\nlet refId = 0;\n\nconst ctxMap = new Map<object, AsyncHostContext>();\n\nconst updateSubContext = (instance: AsyncSubContext) => {\n const rend = subContextRenderers[instance.type];\n\n let root = instance?.root;\n let cur = instance;\n\n while (cur && !root) {\n root = cur.root;\n cur = cur.parent;\n }\n\n if (!root) return;\n\n const content = rend(root.subContext.node);\n\n if (instance.type === 'richtext') {\n // instance.hostContext.commands.push(['x', { r: root.refId, c: content }]);\n instance.hostContext.commands.push([6, root.refId, content]);\n } else if (instance.type === 'svg') {\n // instance.hostContext.commands.push(['u', { r: root.refId, t: 'svg', ...convertPropsToSerializable({ innerContent: content }) }]);\n instance.hostContext.commands.push([5, root.refId, 'svg', convertPropsToSerializable({ innerContent: content })]);\n }\n};\n\nconst hostConfig: AsyncReconcilerConfig = {\n ...commonReconciler,\n\n getRootHostContext: (rootContainer) => {\n const context = rootContainer.context;\n\n if (rootContainer.refId < 0) {\n refId++;\n rootContainer.context.SetRef(refId, rootContainer.component);\n rootContainer.refId = refId;\n }\n\n const existing = ctxMap.get(context);\n if (existing) return existing;\n\n const commands = rootContainer.commands;\n\n const flushCommands = () => {\n const serialized = JSON.stringify(commands);\n commands.length = 0;\n return serialized;\n };\n\n const fireEventByRef = (ind: number, args: any[]) => {\n return callbacksRepo.call(ind, args);\n };\n\n const getObjectRef = (ind: number) => {\n return objectsRepo.getObject(ind);\n };\n\n const getEventAsObjectRef = (ind: number) => {\n return callbacksRepo.getObject(ind);\n };\n\n context.BindCommands(flushCommands, fireEventByRef, getObjectRef, getEventAsObjectRef);\n\n const ctx: AsyncHostContext = {\n context,\n commands,\n refId: rootContainer.refId,\n type: 'native',\n };\n\n ctxMap.set(context, ctx);\n\n return ctx;\n },\n getChildHostContext: (parentCtx, type) => {\n if (type === 'richtext' && parentCtx.type === 'native')\n return {\n type: 'richtext',\n hostContext: parentCtx,\n node: null,\n parent: null,\n root: null,\n };\n\n if (type === 'svg' && parentCtx.type === 'native')\n return {\n type: 'svg',\n hostContext: parentCtx,\n node: null,\n parent: null,\n root: null,\n };\n\n return parentCtx;\n },\n getPublicInstance: (instance) => {\n if (instance.type === 'native') return instance.context.GetRef(instance.refId, instance.commands.length > 0);\n return null;\n },\n\n supportsMutation: true,\n supportsHydration: false,\n supportsPersistence: false,\n supportsMicrotasks: true,\n\n isPrimaryRenderer: true,\n warnsIfNotActing: true,\n\n prepareForCommit: () => null,\n resetAfterCommit: () => {},\n\n clearContainer(container) {\n UnityBridge.clearContainer(container);\n },\n\n createInstance(type, props, rootContainer, ctx, internalHandle) {\n const aProps = getAllowedProps(props, type);\n if (ctx.type === 'native') {\n refId++;\n // ctx.commands.push(['c', { t: type, r: refId, k: stringizePoolKey(props.pool), ...convertPropsToSerializable(aProps) }]);\n ctx.commands.push([0, refId, type, convertPropsToSerializable(aProps), stringizePoolKey(props.pool)]);\n\n if (rootContainer.fiberCache) rootContainer.fiberCache.setObject(refId, internalHandle);\n\n const res = { ...ctx, refId };\n\n if (type === 'richtext') {\n res.subContext = {\n type: 'richtext',\n node: {\n tag: '',\n children: [],\n attributes: aProps,\n },\n root: res,\n hostContext: res,\n parent: null,\n };\n }\n\n if (type === 'svg') {\n res.subContext = {\n type: 'svg',\n node: {\n tag: '',\n children: [],\n attributes: aProps,\n },\n root: res,\n hostContext: res,\n parent: null,\n };\n }\n\n return res;\n }\n\n if (ctx.type === 'richtext' || ctx.type === 'svg') {\n return {\n ...ctx,\n node: {\n tag: type,\n children: [],\n attributes: aProps,\n },\n };\n }\n },\n\n createTextInstance(text, rootContainer, ctx, internalHandle) {\n if (ctx.type === 'native') {\n refId++;\n // ctx.commands.push(['t', { r: refId, c: text }]);\n ctx.commands.push([1, refId, text]);\n\n if (rootContainer.fiberCache) rootContainer.fiberCache.setObject(refId, internalHandle);\n\n return { ...ctx, refId };\n }\n\n if (ctx.type === 'richtext' || ctx.type === 'svg') {\n return {\n ...ctx,\n node: { text },\n };\n }\n },\n\n appendInitialChild(parent, child) {\n if (!child) return;\n if (parent.type === 'native' && parent.subContext) parent = parent.subContext;\n\n if (parent.type === 'native' && child.type === 'native') {\n // parent.commands.push(['a', { p: parent.refId, c: child.refId }]);\n parent.commands.push([2, parent.refId, child.refId]);\n } else if ((parent.type === 'richtext' && child.type === 'richtext') || (parent.type === 'svg' && child.type === 'svg')) {\n if ('children' in parent.node) parent.node.children.push(child.node);\n child.root = parent.root;\n child.parent = parent;\n updateSubContext(child);\n }\n },\n finalizeInitialChildren: () => false,\n commitMount: (instance) => {},\n shouldSetTextContent(type) {\n return textTypes[type];\n },\n\n // -------------------\n // Mutation\n // -------------------\n\n commitUpdate(instance, type, prevProps, nextProps) {\n let updatePayload: Record<string, any> | null = null;\n\n if (typeof prevProps === 'string') {\n // React 18 compatibility\n updatePayload = type as any;\n type = prevProps as any;\n } else {\n // React 19+\n updatePayload = diffProperties(prevProps, nextProps);\n if (!updatePayload) return;\n }\n\n const props = getAllowedProps(updatePayload, type);\n if (instance.type === 'native') {\n // instance.commands.push(['u', { r: instance.refId, t: type, ...convertPropsToSerializable(props) }]);\n instance.commands.push([5, instance.refId, type, convertPropsToSerializable(props)]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n if ('attributes' in instance.node) instance.node.attributes = { ...instance.node.attributes, ...props };\n updateSubContext(instance);\n }\n },\n\n commitTextUpdate(instance, oldText, newText) {\n if (instance.type === 'native') {\n // instance.commands.push(['x', { r: instance.refId, c: newText }]);\n instance.commands.push([6, instance.refId, newText]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n (instance.node as { text: string }).text = newText;\n updateSubContext(instance);\n }\n },\n\n appendChild(parent, child) {\n if (!child) return;\n if (parent.type === 'native' && parent.subContext) parent = parent.subContext;\n\n if (parent.type === 'native' && child.type === 'native') {\n // child.commands.push(['a', { p: parent.refId, c: child.refId }]);\n child.commands.push([2, parent.refId, child.refId]);\n } else if ((parent.type === 'richtext' && child.type === 'richtext') || (parent.type === 'svg' && child.type === 'svg')) {\n if ('children' in parent.node) parent.node.children.push(child.node);\n child.root = parent.root;\n child.parent = parent;\n updateSubContext(child);\n }\n },\n appendChildToContainer(parent, child) {\n if (child.type === 'native')\n // child.commands.push(['a', { p: parent.refId, c: child.refId }]);\n child.commands.push([2, parent.refId, child.refId]);\n },\n insertBefore(parent, child, beforeChild) {\n if (!child) return;\n if (parent.type === 'native' && parent.subContext) parent = parent.subContext;\n\n if (parent.type === 'native' && child.type === 'native' && beforeChild.type === 'native') {\n // child.commands.push(['i', { p: parent.refId, c: child.refId, i: beforeChild.refId }]);\n child.commands.push([4, parent.refId, child.refId, beforeChild.refId]);\n } else if (\n (parent.type === 'richtext' && child.type === 'richtext' && beforeChild.type === 'richtext') ||\n (parent.type === 'svg' && child.type === 'svg' && beforeChild.type === 'svg')\n ) {\n if ('children' in parent.node) {\n const index = parent.node.children.indexOf(beforeChild.node);\n if (index >= 0) parent.node.children.splice(index, 0, child.node);\n else parent.node.children.push(child.node);\n }\n child.root = parent.root;\n child.parent = parent;\n updateSubContext(child);\n }\n },\n insertInContainerBefore(parent, child, beforeChild) {\n if (child.type === 'native' && beforeChild.type === 'native')\n // child.commands.push(['i', { p: parent.refId, c: child.refId, i: beforeChild.refId }]);\n child.commands.push([4, parent.refId, child.refId, beforeChild.refId]);\n },\n removeChild(parent, child) {\n if (!child) return;\n if (parent.type === 'native' && parent.subContext) parent = parent.subContext;\n\n if (parent.type === 'native' && child.type === 'native') {\n // child.commands.push(['r', { p: parent.refId, c: child.refId }]);\n child.commands.push([3, parent.refId, child.refId]);\n } else if ((parent.type === 'richtext' && child.type === 'richtext') || (parent.type === 'svg' && child.type === 'svg')) {\n if ('children' in parent.node) {\n const index = parent.node.children.indexOf(child.node);\n if (index >= 0) parent.node.children.splice(index, 1);\n }\n updateSubContext(parent);\n }\n },\n removeChildFromContainer(parent, child) {\n if (child.type === 'native')\n // child.commands.push(['r', { p: parent.refId, c: child.refId }]);\n child.commands.push([3, parent.refId, child.refId]);\n },\n\n resetTextContent: () => {},\n preparePortalMount: () => {},\n detachDeletedInstance: () => {},\n\n // Required for Suspense\n\n hideInstance: (instance) => {\n if (instance.type === 'native') {\n // instance.commands.push(['h', { r: instance.refId, h: true }]);\n instance.commands.push([7, instance.refId, true]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n instance.node.hidden = true;\n updateSubContext(instance);\n }\n },\n hideTextInstance: (instance) => {\n if (instance.type === 'native') {\n // instance.commands.push(['h', { r: instance.refId, h: true }]);\n instance.commands.push([7, instance.refId, true]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n instance.node.hidden = true;\n updateSubContext(instance);\n }\n },\n unhideInstance: (instance) => {\n if (instance.type === 'native') {\n // instance.commands.push(['h', { r: instance.refId, h: false }]);\n instance.commands.push([7, instance.refId, false]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n instance.node.hidden = false;\n updateSubContext(instance);\n }\n },\n unhideTextInstance: (instance) => {\n if (instance.type === 'native') {\n // instance.commands.push(['h', { r: instance.refId, h: false }]);\n instance.commands.push([7, instance.refId, false]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n instance.node.hidden = false;\n updateSubContext(instance);\n }\n },\n\n // Keep for old versions of React\n ...{\n supportsTestSelectors: false,\n shouldDeprioritizeSubtree: () => false,\n prepareUpdate(instance, type, oldProps, newProps) {\n return diffProperties(oldProps, newProps) as any;\n },\n },\n};\n\nlet asyncReconciler: ReturnType<typeof Reconciler> | null = null;\nexport const getAsyncReconciler = () => (asyncReconciler ??= Reconciler(hostConfig));\n","import Reconciler from 'react-reconciler';\nimport {\n ChildSet,\n FormInstance,\n HostContext,\n HydratableInstance,\n InstanceTag,\n NativeContainerInstance,\n NativeInstance,\n NativeTextInstance,\n NoTimeout,\n Props,\n PublicInstance,\n SuspenseInstance,\n TimeoutHandle,\n TransitionStatus,\n} from '../../models/renderer';\nimport { commonReconciler, getAllowedProps, hideClass, stringizePoolKey, textTypes } from '../constants';\nimport { diffProperties } from '../diffing';\n\ntype Config = Reconciler.HostConfig<\n InstanceTag,\n Props,\n NativeContainerInstance,\n NativeInstance,\n NativeTextInstance,\n SuspenseInstance,\n HydratableInstance,\n FormInstance,\n PublicInstance,\n HostContext,\n ChildSet,\n TimeoutHandle,\n NoTimeout,\n TransitionStatus\n>;\n\nconst hostContext = {};\nconst childContext = {};\n\nconst hostConfig: Config = {\n ...commonReconciler,\n\n getRootHostContext: () => hostContext,\n getChildHostContext: () => childContext,\n getPublicInstance: (instance: NativeInstance | NativeTextInstance) => instance,\n\n supportsMutation: true,\n supportsHydration: false,\n supportsPersistence: false,\n supportsMicrotasks: true,\n\n isPrimaryRenderer: true,\n warnsIfNotActing: true,\n\n prepareForCommit: () => null,\n resetAfterCommit: () => {},\n clearContainer: (container) => UnityBridge.clearContainer(container),\n\n createInstance(type, props, rootContainerInstance) {\n const aProps = getAllowedProps(props, type);\n const children = aProps.children || null;\n delete aProps.children;\n return UnityBridge.createElement(props.tag || type, children, rootContainerInstance, aProps, stringizePoolKey(props.pool));\n },\n\n createTextInstance(text, rootContainerInstance) {\n return UnityBridge.createText(text, rootContainerInstance);\n },\n\n appendInitialChild(parent, child) {\n UnityBridge.appendChild(parent, child);\n },\n finalizeInitialChildren: () => false,\n commitMount: () => {},\n shouldSetTextContent(type) {\n return textTypes[type];\n },\n\n // -------------------\n // Mutation\n // -------------------\n\n commitUpdate(instance, type, prevProps, nextProps) {\n let updatePayload: Record<string, any> | null = null;\n\n if (typeof prevProps === 'string') {\n // React 18 compatibility\n updatePayload = type as any;\n type = prevProps as any;\n } else {\n // React 19+\n updatePayload = diffProperties(prevProps, nextProps);\n if (!updatePayload) return;\n }\n\n UnityBridge.applyUpdate(instance, getAllowedProps(updatePayload, type), type);\n },\n\n commitTextUpdate(textInstance, oldText, newText) {\n UnityBridge.setText(textInstance, newText);\n },\n\n appendChild(parent, child) {\n return UnityBridge.appendChild(parent, child);\n },\n appendChildToContainer(parent, child) {\n return UnityBridge.appendChildToContainer(parent, child);\n },\n insertBefore(parent, child, beforeChild) {\n return UnityBridge.insertBefore(parent, child, beforeChild);\n },\n insertInContainerBefore(parent, child, beforeChild) {\n return UnityBridge.insertBefore(parent, child, beforeChild);\n },\n removeChild(parent, child) {\n return UnityBridge.removeChild(parent, child);\n },\n removeChildFromContainer(parent, child) {\n return UnityBridge.removeChild(parent, child);\n },\n\n resetTextContent: () => {},\n preparePortalMount: () => {},\n detachDeletedInstance: () => {},\n\n // Required for Suspense\n\n hideInstance: (instance) => {\n instance.ClassList.Add(hideClass);\n },\n hideTextInstance: (instance) => {\n instance.ClassList.Add(hideClass);\n },\n unhideInstance: (instance) => {\n instance.ClassList.Remove(hideClass);\n },\n unhideTextInstance: (instance) => {\n instance.ClassList.Remove(hideClass);\n },\n\n // Keep for old versions of React\n ...{\n supportsTestSelectors: false,\n shouldDeprioritizeSubtree: () => false,\n prepareUpdate(instance, type, oldProps, newProps) {\n return diffProperties(oldProps, newProps) as any;\n },\n },\n};\n\nlet syncReconciler: ReturnType<typeof Reconciler> | null = null;\nexport const getSyncReconciler = () => (syncReconciler ??= Reconciler(hostConfig));\n","import * as React from 'react';\nimport { createElement } from 'react';\nimport Reconciler from 'react-reconciler';\nimport { ConcurrentRoot, LegacyRoot } from 'react-reconciler/constants';\nimport { NativeContainerInstance } from '../models/renderer';\nimport { version } from '../version';\nimport { DefaultView } from '../views/default-view';\nimport { ObjectsRepo } from './async/objects';\nimport { getAsyncReconciler } from './async/reconciler';\nimport { AsyncContainerInstance, AsyncNativeInstance } from './async/types';\nimport { isDevelopment } from './constants';\nimport { getSyncReconciler } from './sync/reconciler';\n\nconst containerMap = new Map<NativeContainerInstance | number, { hostRoot: any; asyncJobCallback: () => void }>();\n\ninterface RenderOptions {\n /* Unity element to render React on. It is the element `ReactUnity` component is attached to by default. */\n hostContainer?: NativeContainerInstance;\n\n /* Skips rendering some useful wrappers like `ErrorBoundary` and `GlobalsProvider`. */\n disableHelpers?: boolean;\n\n /* Allows rendering in `legacy` mode if needed. The default rendering mode is `concurrent`. */\n mode?: 'legacy' | 'concurrent';\n\n /**\n Render using the sync reconciler instead of the batch rendering. It is not recommended to change this value.\n Changing this will disable some features like inline rich-text and svg rendering, although it may improve performance for Jint.\n */\n disableBatchRendering?: boolean;\n}\n\nlet renderCount = 0;\n\nexport function render(element: React.ReactNode, options: RenderOptions = {}) {\n renderCount++;\n const hostContainer = options?.hostContainer || HostContainer;\n const cacheKey = hostContainer.InstanceId >= 0 ? hostContainer.InstanceId : hostContainer;\n\n const isAsync = !options?.disableBatchRendering;\n let { hostRoot, asyncJobCallback } = containerMap.get(cacheKey) || {};\n\n let findFiberByHostInstance: any = () => null;\n\n if (!hostRoot) {\n const mode = options?.mode === 'legacy' ? LegacyRoot : ConcurrentRoot;\n\n if (isAsync) {\n const asyncReconciler = getAsyncReconciler();\n const fiberCache = isDevelopment ? new ObjectsRepo() : null;\n\n if (isDevelopment) {\n findFiberByHostInstance = (instance: AsyncNativeInstance) => (!instance ? null : fiberCache.getObject(instance.refId));\n }\n\n let scheduled = false;\n const commands = [];\n commands.push = (...args) => {\n if (!scheduled) {\n scheduled = true;\n Promise.resolve().then(() => {\n asyncJobCallback();\n scheduled = false;\n });\n }\n return Array.prototype.push.apply(commands, args);\n };\n\n const hostContainerInstance: AsyncContainerInstance = {\n type: 'native',\n commands,\n component: hostContainer,\n context: hostContainer.Context,\n refId: hostContainer.RefId,\n fiberCache,\n };\n asyncJobCallback = () => {\n if (!commands.length) return;\n\n const serialized = JSON.stringify(commands);\n commands.length = 0;\n hostContainerInstance.context.FlushCommands(serialized);\n };\n\n // react-reconciler 0.33 dropped the trailing `transitionCallbacks` argument.\n hostRoot = asyncReconciler.createContainer(\n hostContainerInstance,\n mode,\n null,\n false,\n undefined,\n '',\n (error) => console.error(error),\n () => {},\n () => {},\n () => {},\n );\n } else {\n hostRoot = getSyncReconciler().createContainer(\n hostContainer,\n mode,\n null,\n false,\n undefined,\n '',\n (error) => console.error(error),\n () => {},\n () => {},\n () => {},\n );\n }\n containerMap.set(cacheKey, { hostRoot, asyncJobCallback });\n }\n\n const shouldWrapWithHelpers = !options?.disableHelpers;\n\n if (shouldWrapWithHelpers) {\n const viewWrapperProps: React.ComponentProps<typeof DefaultView> = {\n withHelpers: !options?.disableHelpers,\n renderCount,\n };\n element = createElement(DefaultView, viewWrapperProps, element);\n }\n\n const rc = isAsync ? getAsyncReconciler() : getSyncReconciler();\n if (\n 'updateContainerSync' in rc &&\n typeof rc.updateContainerSync === 'function' &&\n 'flushSyncWork' in rc &&\n typeof rc.flushSyncWork === 'function'\n ) {\n rc.updateContainerSync(element as any, hostRoot, null, () => {});\n rc.flushSyncWork();\n } else {\n rc.updateContainer(element as any, hostRoot, null, () => {});\n }\n\n rc.injectIntoDevTools({\n bundleType: isDevelopment ? 1 : 0,\n version,\n rendererPackageName: '@reactunity/renderer',\n rendererConfig: { isAsync },\n findFiberByHostInstance,\n });\n\n return rc;\n}\n\n/**\n * @deprecated Instead, import `render` directly from `@reactunity/renderer`\n */\nexport const Renderer = {\n render(element: React.ReactNode, options: RenderOptions = {}) {\n return render(element, options);\n },\n};\n\nexport const batchedUpdates: ReturnType<typeof Reconciler>['batchedUpdates'] = (...args) => getAsyncReconciler().batchedUpdates(...args);\nexport const flushSync: ReturnType<typeof Reconciler>['flushSync'] = (...args) => getAsyncReconciler().flushSync(...(args as []));\n","export * from './src/helpers/dictionary-watcher';\nexport * from './src/helpers/hooks/use-globals';\nexport * from './src/helpers/hooks/use-reactive-value';\nexport * from './src/helpers/icons';\nexport * from './src/models/environment';\nexport * from './src/models/generated';\nexport * from './src/models/properties';\nexport * from './src/models/renderer';\nexport {\n batchedUpdates,\n batchedUpdates as unstable_batchedUpdates,\n flushSync,\n Renderer,\n render,\n} from './src/renderer/renderer';\n\nimport { batchedUpdates, flushSync, render } from './src/renderer/renderer';\n\nconst ReactUnityRenderer = {\n batchedUpdates,\n flushSync,\n render,\n unstable_batchedUpdates: batchedUpdates,\n};\n\nexport default ReactUnityRenderer;\n"],"mappings":";;;;;;;;;;;;;;AAyEA,SAAgB,wBACd,YACA,aAC+B;CAC/B,MAAM,MAAM,cAA0B,KAAA,CAAS;CAC/C,IAAI,aAAa,IAAI,cAAc;CAEnC,MAAM,oBAAoB,QAAoB,YAAsB;EAClE,IAAI,WAAA,eAAA,CAAA,GAA4B,UAAW;EAE3C,OAAO;GACL,YAAY,kBAA8B;IACxC,WAAA,eAAA,CAAA,GAAgB,UAAW;IAE3B,MAAM,SAAA,eAAA,QAAA,eAAA,KAAA,IAAA,KAAA,IAAS,WAAY,kBAAkB;KAC3C,MAAM,OAAO;KACb,WAAA,eAAA,CAAA,GAAgB,UAAW;KAE3B,IAAI,CAAC,QAAQ,cAAc;UACtB;MACH,MAAM,KAAK,OAAO,OAAO;MACzB,KAAK,IAAI,QAAQ,GAAG,KAAK,CAAC,CAAC,OAAO,OAAO,QAAQ,GAAG,KAAK,CAAC,CAAC,OACzD,IAAI,UAAU,CAAC,QAAQ,KAAK,QAAQ,SAAS,MAAM,IAAI,KAAK,WAAW,SAAS,QAAQ;OACtF,cAAc;OACd;MACF;KAEJ;IACF,CAAC;IAED,IAAI,CAAC,QACH,IAAI,aAAa,QAAQ,KAAK,GAAG,YAAY,+CAA+C;SACvF,QAAQ,KAAK,mDAAmD;IAGvE,aAAA,WAAA,QAAA,WAAA,KAAA,IAAA,KAAA,IAAa,OAAS;GACxB;GACA,mBAAmB;EACrB;CACF;CAEA,MAAM,oBAAoB,iBAAiB;CAE3C,MAAM,WAAW,SAAS,gBAAgB,EAAE,YAA4C;EACtF,MAAM,QAAa,qBAAqB,kBAAkB,WAAW,kBAAkB,aAAa,kBAAkB,WAAW;EACjI,OAAO,cAAc,IAAI,UAAU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,MAAa,WAAW,EACtB,OAAO,SAA0B,UAAyB,CAAC,GAAG;CAC5D,OAAO,OAAO,SAAS,OAAO;AAChC,EACF;AAEA,MAAa,kBAAmE,GAAG,SAAS,mBAAmB,CAAC,CAAC,eAAe,GAAG,IAAI;AACvI,MAAa,aAAyD,GAAG,SAAS,mBAAmB,CAAC,CAAC,UAAU,GAAI,IAAW;;;AC5IhI,MAAM,qBAAqB;CACzB;CACA;CACA;CACA,yBAAyB;AAC3B"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["hostConfig"],"sources":["../src/helpers/dictionary-watcher.ts","../src/helpers/hooks/use-globals.ts","../src/helpers/hooks/use-reactive-value.ts","../src/helpers/icons.ts","../src/version.ts","../src/views/error-boundary.tsx","../src/views/default-view.tsx","../src/renderer/async/objects.ts","../src/renderer/diffing.ts","../src/renderer/constants.ts","../src/renderer/subcontexts/richtext.ts","../src/renderer/subcontexts/svg.ts","../src/renderer/subcontexts/index.ts","../src/renderer/async/callbacks.ts","../src/renderer/async/serializer.ts","../src/renderer/async/reconciler.ts","../src/renderer/sync/reconciler.ts","../src/renderer/renderer.ts","../index.ts"],"sourcesContent":["import { createContext, createElement, useContext, useMemo, useRef, useState } from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/with-selector';\nimport { ReactUnity } from '../models/generated';\n\nexport interface DictionaryWatcher<T = Record<string, any>> {\n /** React Context that provides the value */\n context: React.Context<T>;\n\n /**\n * The provider component that should be used to wrap the components where this context will be used\n *\n * Usage:\n *\n * ```tsx\n * <watcher.Provider>\n * <App />\n * </watcher.Provider>\n * ```\n */\n Provider: (props: { children?: React.ReactNode }) => React.FunctionComponentElement<React.ProviderProps<T>>;\n\n /**\n * React Hook for getting the value from Context\n *\n * Usage:\n *\n * ```tsx\n * function App() {\n * const values = watcher.useContext();\n * ...\n * }\n * ```\n */\n useContext: () => T;\n\n /**\n * React Hook for getting the value of this Dictionary. This one will subscribe only to the properties that are accessed.\n *\n * Usage:\n *\n * ```tsx\n * function App() {\n * const { a, b } = watcher.useValue();\n * ...\n * }\n * ```\n */\n useValue: (subscribeToAllFields?: boolean, isEqual?: IsEqual) => T;\n\n /**\n * React Hook for getting a partial value from Context\n *\n * Usage:\n *\n * ```tsx\n * function App() {\n * const count = watcher.useSelector(st => st.count);\n * ...\n * }\n * ```\n */\n useSelector<Res>(selector: (store: T) => Res, isEqual?: IsEqual<Res>): Res;\n}\n\ntype Prop = string | symbol | number;\ntype IsEqual<T = any> = (a: T, b: T) => boolean;\n\n/**\n * Creates a context that updates its value when the values in the dictionary change\n * @param dictionary The dictionary to be watched. Must implement the EventDictionary type in the C#\n * @param displayName A displayName to identify this context easier in case of problems\n */\nexport function createDictionaryWatcher<ValueType = any, RecordType = Record<string, ValueType>>(\n dictionary: ReactUnity.Reactive.ReactiveRecord<ValueType>,\n displayName?: string,\n): DictionaryWatcher<RecordType> {\n const ctx = createContext<RecordType>(undefined);\n if (displayName) ctx.displayName = displayName;\n\n const createSubscriber = (fields?: Set<Prop>, isEqual?: IsEqual) => {\n let snapshot: RecordType = { ...dictionary } as any;\n\n return {\n subscribe: (onStoreChange: () => void) => {\n snapshot = { ...dictionary } as any;\n\n const remove = dictionary?.AddListener(() => {\n const prev = snapshot;\n snapshot = { ...dictionary } as any;\n\n if (!fields) onStoreChange();\n else {\n const it = fields.values();\n for (let field = it.next().value; field; field = it.next().value) {\n if (isEqual ? !isEqual(prev[field], snapshot[field]) : prev[field] !== snapshot[field]) {\n onStoreChange();\n break;\n }\n }\n }\n });\n\n if (!remove) {\n if (displayName) console.warn(`${displayName} dictionary does not provide a change listener`);\n else console.warn('The dictionary does not provide a change listener');\n }\n\n return () => remove?.();\n },\n getSnapshot: () => snapshot,\n };\n };\n\n const defaultSubscriber = createSubscriber();\n\n const Provider = function GlobalsProvider({ children }: { children?: React.ReactNode }) {\n const value: any = useSyncExternalStore(defaultSubscriber.subscribe, defaultSubscriber.getSnapshot, defaultSubscriber.getSnapshot);\n return createElement(ctx.Provider, { value }, children);\n };\n\n function useDictionaryContext() {\n const context = useContext(ctx);\n if (context === undefined) {\n if (displayName) throw new Error(`${displayName}.useContext must be used within a ${displayName}.Provider`);\n throw new Error('useContext must be used within a provider');\n }\n return context;\n }\n\n function useValue(subscribeToAllFields = false, fieldEqual?: IsEqual) {\n const fields = useMemo(() => new Set<Prop>(), []);\n const fieldsRef = useRef(fields);\n const [allFieldsSubscribed, setAllFieldsSubscribed] = useState(false);\n subscribeToAllFields ||= allFieldsSubscribed;\n const subscriber = useMemo(\n () => (subscribeToAllFields ? defaultSubscriber : createSubscriber(fieldsRef.current, fieldEqual)),\n [subscribeToAllFields, fieldEqual],\n );\n const value: any = useSyncExternalStore(subscriber.subscribe, subscriber.getSnapshot, subscriber.getSnapshot);\n\n const proxy = new Proxy(value, {\n get(target, p, receiver) {\n fields.add(p);\n return value[p];\n },\n ownKeys(target) {\n if (!allFieldsSubscribed) setAllFieldsSubscribed(true);\n return Reflect.ownKeys(target);\n },\n getOwnPropertyDescriptor(target, p) {\n fields.add(p);\n\n return {\n ...Reflect.getOwnPropertyDescriptor(target, p),\n value: value[p],\n };\n },\n });\n\n return proxy as RecordType;\n }\n\n function useSelector<Res>(selector: (store: RecordType) => Res, isEqual?: IsEqual<Res>) {\n return useSyncExternalStoreWithSelector(\n defaultSubscriber.subscribe,\n defaultSubscriber.getSnapshot,\n defaultSubscriber.getSnapshot,\n selector,\n isEqual,\n );\n }\n\n return { context: ctx, Provider, useValue, useContext: useDictionaryContext, useSelector };\n}\n","import { createDictionaryWatcher } from '../dictionary-watcher';\n\nconst globalsWatcher = createDictionaryWatcher<any, DefaultGlobals>(Globals, 'globalsContext');\nexport const useGlobals = globalsWatcher.useValue;\nexport const useGlobalsContext = globalsWatcher.useContext;\nexport const useGlobalsSelector = globalsWatcher.useSelector;\nexport const GlobalsProvider = globalsWatcher.Provider;\n","import { useMemo } from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { ReactUnity } from '../../models/generated';\n\ntype IsEqual<T = any> = (a: T, b: T) => boolean;\n\nfunction createSubscriber<T>(obj: ReactUnity.Reactive.IReactive<T>, isEqual?: IsEqual<T>) {\n const isReactive = obj && typeof obj === 'object' && 'Value' in obj;\n let snapshot = isReactive ? obj.Value : undefined;\n\n return {\n subscribe: (onStoreChange: () => void) => {\n snapshot = isReactive ? obj.Value : undefined;\n\n const remove =\n isReactive &&\n typeof obj.AddListener === 'function' &&\n obj?.AddListener(() => {\n const prev = snapshot;\n snapshot = isReactive ? obj.Value : undefined;\n\n if (typeof isEqual !== 'function' || !isEqual(prev, snapshot)) {\n onStoreChange();\n }\n });\n\n if (isReactive && typeof remove !== 'function') console.warn('The reactive value does not provide a change listener');\n\n return () => remove?.();\n },\n getSnapshot: () => snapshot,\n };\n}\n\nexport function useReactiveValue<T>(obj: ReactUnity.Reactive.IReactive<T>, isEqual?: IsEqual<T>) {\n const sb = useMemo(() => createSubscriber(obj, isEqual), [obj, isEqual]);\n return useSyncExternalStore(sb.subscribe, sb.getSnapshot, sb.getSnapshot);\n}\n","import * as React from 'react';\nimport { Textable } from '../models/base';\nimport { ReactUnity } from '../models/generated';\nimport { Icon } from '../models/ugui';\n\nconst componentCache = {};\n\nexport const icon = new Proxy(\n {},\n {\n get: (target, key) => {\n if (typeof key === 'symbol') return target[key];\n\n const icon = key.replace(/^_/, '');\n\n let cmp = componentCache[icon];\n if (cmp) return cmp;\n\n cmp = function NamedIcon(props, ref) {\n return React.createElement('icon', { name: `<icon ${icon}>`, ...props, ref }, icon);\n };\n\n cmp = React.forwardRef(cmp);\n componentCache[icon] = cmp;\n return cmp;\n },\n },\n) as IconsHelper;\n\ntype Keyify<T extends string> = T extends `${number}${string}` ? `_${T}` : T;\n\ntype IconsNames = {\n [key in DefaultIconNames]: any;\n};\n\ntype IconProps = Icon & React.RefAttributes<ReactUnity.UGUI.IconComponent> & { children?: Textable | Textable[] };\n\ntype IconsHelper = {\n [Key in keyof IconsNames as Keyify<Key>]: React.FunctionComponent<IconProps>;\n};\n\nexport type DefaultIconNames =\n | '10k'\n | '10mp'\n | '11mp'\n | '12mp'\n | '13mp'\n | '14mp'\n | '15mp'\n | '16mp'\n | '17mp'\n | '18mp'\n | '19mp'\n | '1k'\n | '1k_plus'\n | '1x_mobiledata'\n | '20mp'\n | '21mp'\n | '22mp'\n | '23mp'\n | '24mp'\n | '2k'\n | '2k_plus'\n | '2mp'\n | '30fps'\n | '30fps_select'\n | '360'\n | '3d_rotation'\n | '3g_mobiledata'\n | '3k'\n | '3k_plus'\n | '3mp'\n | '3p'\n | '4g_mobiledata'\n | '4g_plus_mobiledata'\n | '4k'\n | '4k_plus'\n | '4mp'\n | '5g'\n | '5k'\n | '5k_plus'\n | '5mp'\n | '60fps'\n | '60fps_select'\n | '6_ft_apart'\n | '6k'\n | '6k_plus'\n | '6mp'\n | '7k'\n | '7k_plus'\n | '7mp'\n | '8k'\n | '8k_plus'\n | '8mp'\n | '9k'\n | '9k_plus'\n | '9mp'\n | 'ac_unit'\n | 'access_alarm'\n | 'access_alarms'\n | 'access_time'\n | 'access_time_filled'\n | 'accessibility'\n | 'accessibility_new'\n | 'accessible'\n | 'accessible_forward'\n | 'account_balance'\n | 'account_balance_wallet'\n | 'account_box'\n | 'account_circle'\n | 'account_tree'\n | 'ad_units'\n | 'adb'\n | 'add'\n | 'add_a_photo'\n | 'add_alarm'\n | 'add_alert'\n | 'add_box'\n | 'add_business'\n | 'add_call'\n | 'add_chart'\n | 'add_circle'\n | 'add_circle_outline'\n | 'add_comment'\n | 'add_ic_call'\n | 'add_link'\n | 'add_location'\n | 'add_location_alt'\n | 'add_moderator'\n | 'add_photo_alternate'\n | 'add_reaction'\n | 'add_road'\n | 'add_shopping_cart'\n | 'add_task'\n | 'add_to_drive'\n | 'add_to_home_screen'\n | 'add_to_photos'\n | 'add_to_queue'\n | 'addchart'\n | 'adjust'\n | 'admin_panel_settings'\n | 'ads_click'\n | 'agriculture'\n | 'air'\n | 'airline_seat_flat'\n | 'airline_seat_flat_angled'\n | 'airline_seat_individual_suite'\n | 'airline_seat_legroom_extra'\n | 'airline_seat_legroom_normal'\n | 'airline_seat_legroom_reduced'\n | 'airline_seat_recline_extra'\n | 'airline_seat_recline_normal'\n | 'airplane_ticket'\n | 'airplanemode_active'\n | 'airplanemode_inactive'\n | 'airplanemode_off'\n | 'airplanemode_on'\n | 'airplay'\n | 'airport_shuttle'\n | 'alarm'\n | 'alarm_add'\n | 'alarm_off'\n | 'alarm_on'\n | 'album'\n | 'align_horizontal_center'\n | 'align_horizontal_left'\n | 'align_horizontal_right'\n | 'align_vertical_bottom'\n | 'align_vertical_center'\n | 'align_vertical_top'\n | 'all_inbox'\n | 'all_inclusive'\n | 'all_out'\n | 'alt_route'\n | 'alternate_email'\n | 'amp_stories'\n | 'analytics'\n | 'anchor'\n | 'android'\n | 'animation'\n | 'announcement'\n | 'aod'\n | 'apartment'\n | 'api'\n | 'app_blocking'\n | 'app_registration'\n | 'app_settings_alt'\n | 'approval'\n | 'apps'\n | 'architecture'\n | 'archive'\n | 'area_chart'\n | 'arrow_back'\n | 'arrow_back_ios'\n | 'arrow_back_ios_new'\n | 'arrow_circle_down'\n | 'arrow_circle_up'\n | 'arrow_downward'\n | 'arrow_drop_down'\n | 'arrow_drop_down_circle'\n | 'arrow_drop_up'\n | 'arrow_forward'\n | 'arrow_forward_ios'\n | 'arrow_left'\n | 'arrow_right'\n | 'arrow_right_alt'\n | 'arrow_upward'\n | 'art_track'\n | 'article'\n | 'aspect_ratio'\n | 'assessment'\n | 'assignment'\n | 'assignment_ind'\n | 'assignment_late'\n | 'assignment_return'\n | 'assignment_returned'\n | 'assignment_turned_in'\n | 'assistant'\n | 'assistant_direction'\n | 'assistant_navigation'\n | 'assistant_photo'\n | 'atm'\n | 'attach_email'\n | 'attach_file'\n | 'attach_money'\n | 'attachment'\n | 'attractions'\n | 'attribution'\n | 'audiotrack'\n | 'auto_awesome'\n | 'auto_awesome_mosaic'\n | 'auto_awesome_motion'\n | 'auto_delete'\n | 'auto_fix_high'\n | 'auto_fix_normal'\n | 'auto_fix_off'\n | 'auto_graph'\n | 'auto_stories'\n | 'autofps_select'\n | 'autorenew'\n | 'av_timer'\n | 'baby_changing_station'\n | 'back_hand'\n | 'backpack'\n | 'backspace'\n | 'backup'\n | 'backup_table'\n | 'badge'\n | 'bakery_dining'\n | 'balcony'\n | 'ballot'\n | 'bar_chart'\n | 'batch_prediction'\n | 'bathroom'\n | 'bathtub'\n | 'battery_alert'\n | 'battery_charging_full'\n | 'battery_full'\n | 'battery_saver'\n | 'battery_std'\n | 'battery_unknown'\n | 'beach_access'\n | 'bed'\n | 'bedroom_baby'\n | 'bedroom_child'\n | 'bedroom_parent'\n | 'bedtime'\n | 'beenhere'\n | 'bento'\n | 'bike_scooter'\n | 'biotech'\n | 'blender'\n | 'block'\n | 'block_flipped'\n | 'bloodtype'\n | 'bluetooth'\n | 'bluetooth_audio'\n | 'bluetooth_connected'\n | 'bluetooth_disabled'\n | 'bluetooth_drive'\n | 'bluetooth_searching'\n | 'blur_circular'\n | 'blur_linear'\n | 'blur_off'\n | 'blur_on'\n | 'bolt'\n | 'book'\n | 'book_online'\n | 'bookmark'\n | 'bookmark_add'\n | 'bookmark_added'\n | 'bookmark_border'\n | 'bookmark_outline'\n | 'bookmark_remove'\n | 'bookmarks'\n | 'border_all'\n | 'border_bottom'\n | 'border_clear'\n | 'border_color'\n | 'border_horizontal'\n | 'border_inner'\n | 'border_left'\n | 'border_outer'\n | 'border_right'\n | 'border_style'\n | 'border_top'\n | 'border_vertical'\n | 'branding_watermark'\n | 'breakfast_dining'\n | 'brightness_1'\n | 'brightness_2'\n | 'brightness_3'\n | 'brightness_4'\n | 'brightness_5'\n | 'brightness_6'\n | 'brightness_7'\n | 'brightness_auto'\n | 'brightness_high'\n | 'brightness_low'\n | 'brightness_medium'\n | 'broken_image'\n | 'browser_not_supported'\n | 'brunch_dining'\n | 'brush'\n | 'bubble_chart'\n | 'bug_report'\n | 'build'\n | 'build_circle'\n | 'bungalow'\n | 'burst_mode'\n | 'bus_alert'\n | 'business'\n | 'business_center'\n | 'cabin'\n | 'cable'\n | 'cached'\n | 'cake'\n | 'calculate'\n | 'calendar_today'\n | 'calendar_view_day'\n | 'calendar_view_month'\n | 'calendar_view_week'\n | 'call'\n | 'call_end'\n | 'call_made'\n | 'call_merge'\n | 'call_missed'\n | 'call_missed_outgoing'\n | 'call_received'\n | 'call_split'\n | 'call_to_action'\n | 'camera'\n | 'camera_alt'\n | 'camera_enhance'\n | 'camera_front'\n | 'camera_indoor'\n | 'camera_outdoor'\n | 'camera_rear'\n | 'camera_roll'\n | 'cameraswitch'\n | 'campaign'\n | 'cancel'\n | 'cancel_presentation'\n | 'cancel_schedule_send'\n | 'car_rental'\n | 'car_repair'\n | 'card_giftcard'\n | 'card_membership'\n | 'card_travel'\n | 'carpenter'\n | 'cases'\n | 'casino'\n | 'cast'\n | 'cast_connected'\n | 'cast_for_education'\n | 'catching_pokemon'\n | 'category'\n | 'celebration'\n | 'cell_wifi'\n | 'center_focus_strong'\n | 'center_focus_weak'\n | 'chair'\n | 'chair_alt'\n | 'chalet'\n | 'change_circle'\n | 'change_history'\n | 'charging_station'\n | 'chat'\n | 'chat_bubble'\n | 'chat_bubble_outline'\n | 'check'\n | 'check_box'\n | 'check_box_outline_blank'\n | 'check_circle'\n | 'check_circle_outline'\n | 'checklist'\n | 'checklist_rtl'\n | 'checkroom'\n | 'chevron_left'\n | 'chevron_right'\n | 'child_care'\n | 'child_friendly'\n | 'chrome_reader_mode'\n | 'circle'\n | 'circle_notifications'\n | 'class'\n | 'clean_hands'\n | 'cleaning_services'\n | 'clear'\n | 'clear_all'\n | 'close'\n | 'close_fullscreen'\n | 'closed_caption'\n | 'closed_caption_disabled'\n | 'closed_caption_off'\n | 'cloud'\n | 'cloud_circle'\n | 'cloud_done'\n | 'cloud_download'\n | 'cloud_off'\n | 'cloud_queue'\n | 'cloud_upload'\n | 'code'\n | 'code_off'\n | 'coffee'\n | 'coffee_maker'\n | 'collections'\n | 'collections_bookmark'\n | 'color_lens'\n | 'colorize'\n | 'comment'\n | 'comment_bank'\n | 'commute'\n | 'compare'\n | 'compare_arrows'\n | 'compass_calibration'\n | 'compost'\n | 'compress'\n | 'computer'\n | 'confirmation_num'\n | 'confirmation_number'\n | 'connect_without_contact'\n | 'connected_tv'\n | 'construction'\n | 'contact_mail'\n | 'contact_page'\n | 'contact_phone'\n | 'contact_support'\n | 'contactless'\n | 'contacts'\n | 'content_copy'\n | 'content_cut'\n | 'content_paste'\n | 'content_paste_off'\n | 'control_camera'\n | 'control_point'\n | 'control_point_duplicate'\n | 'copy_all'\n | 'copyright'\n | 'coronavirus'\n | 'corporate_fare'\n | 'cottage'\n | 'countertops'\n | 'create'\n | 'create_new_folder'\n | 'credit_card'\n | 'credit_card_off'\n | 'credit_score'\n | 'crib'\n | 'crop'\n | 'crop_16_9'\n | 'crop_3_2'\n | 'crop_5_4'\n | 'crop_7_5'\n | 'crop_din'\n | 'crop_free'\n | 'crop_landscape'\n | 'crop_original'\n | 'crop_portrait'\n | 'crop_rotate'\n | 'crop_square'\n | 'cruelty_free'\n | 'dangerous'\n | 'dark_mode'\n | 'dashboard'\n | 'dashboard_customize'\n | 'data_exploration'\n | 'data_saver_off'\n | 'data_saver_on'\n | 'data_usage'\n | 'date_range'\n | 'deck'\n | 'dehaze'\n | 'delete'\n | 'delete_forever'\n | 'delete_outline'\n | 'delete_sweep'\n | 'delivery_dining'\n | 'departure_board'\n | 'description'\n | 'design_services'\n | 'desktop_access_disabled'\n | 'desktop_mac'\n | 'desktop_windows'\n | 'details'\n | 'developer_board'\n | 'developer_board_off'\n | 'developer_mode'\n | 'device_hub'\n | 'device_thermostat'\n | 'device_unknown'\n | 'devices'\n | 'devices_other'\n | 'dialer_sip'\n | 'dialpad'\n | 'dining'\n | 'dinner_dining'\n | 'directions'\n | 'directions_bike'\n | 'directions_boat'\n | 'directions_boat_filled'\n | 'directions_bus'\n | 'directions_bus_filled'\n | 'directions_car'\n | 'directions_car_filled'\n | 'directions_ferry'\n | 'directions_off'\n | 'directions_railway'\n | 'directions_railway_filled'\n | 'directions_run'\n | 'directions_subway'\n | 'directions_subway_filled'\n | 'directions_train'\n | 'directions_transit'\n | 'directions_transit_filled'\n | 'directions_walk'\n | 'dirty_lens'\n | 'disabled_by_default'\n | 'disabled_visible'\n | 'disc_full'\n | 'dnd_forwardslash'\n | 'dns'\n | 'do_disturb'\n | 'do_disturb_alt'\n | 'do_disturb_off'\n | 'do_disturb_on'\n | 'do_not_disturb'\n | 'do_not_disturb_alt'\n | 'do_not_disturb_off'\n | 'do_not_disturb_on'\n | 'do_not_disturb_on_total_silence'\n | 'do_not_step'\n | 'do_not_touch'\n | 'dock'\n | 'document_scanner'\n | 'domain'\n | 'domain_disabled'\n | 'domain_verification'\n | 'done'\n | 'done_all'\n | 'done_outline'\n | 'donut_large'\n | 'donut_small'\n | 'door_back'\n | 'door_front'\n | 'door_sliding'\n | 'doorbell'\n | 'double_arrow'\n | 'downhill_skiing'\n | 'download'\n | 'download_done'\n | 'download_for_offline'\n | 'downloading'\n | 'drafts'\n | 'drag_handle'\n | 'drag_indicator'\n | 'draw'\n | 'drive_eta'\n | 'drive_file_move'\n | 'drive_file_move_outline'\n | 'drive_file_move_rtl'\n | 'drive_file_rename_outline'\n | 'drive_folder_upload'\n | 'dry'\n | 'dry_cleaning'\n | 'duo'\n | 'dvr'\n | 'dynamic_feed'\n | 'dynamic_form'\n | 'e_mobiledata'\n | 'earbuds'\n | 'earbuds_battery'\n | 'east'\n | 'eco'\n | 'edgesensor_high'\n | 'edgesensor_low'\n | 'edit'\n | 'edit_attributes'\n | 'edit_calendar'\n | 'edit_location'\n | 'edit_location_alt'\n | 'edit_note'\n | 'edit_notifications'\n | 'edit_off'\n | 'edit_road'\n | 'eject'\n | 'elderly'\n | 'electric_bike'\n | 'electric_car'\n | 'electric_moped'\n | 'electric_rickshaw'\n | 'electric_scooter'\n | 'electrical_services'\n | 'elevator'\n | 'email'\n | 'emergency'\n | 'emoji_emotions'\n | 'emoji_events'\n | 'emoji_flags'\n | 'emoji_food_beverage'\n | 'emoji_nature'\n | 'emoji_objects'\n | 'emoji_people'\n | 'emoji_symbols'\n | 'emoji_transportation'\n | 'engineering'\n | 'enhance_photo_translate'\n | 'enhanced_encryption'\n | 'equalizer'\n | 'error'\n | 'error_outline'\n | 'escalator'\n | 'escalator_warning'\n | 'euro'\n | 'euro_symbol'\n | 'ev_station'\n | 'event'\n | 'event_available'\n | 'event_busy'\n | 'event_note'\n | 'event_seat'\n | 'exit_to_app'\n | 'expand'\n | 'expand_less'\n | 'expand_more'\n | 'explicit'\n | 'explore'\n | 'explore_off'\n | 'exposure'\n | 'exposure_minus_1'\n | 'exposure_minus_2'\n | 'exposure_neg_1'\n | 'exposure_neg_2'\n | 'exposure_plus_1'\n | 'exposure_plus_2'\n | 'exposure_zero'\n | 'extension'\n | 'extension_off'\n | 'face'\n | 'face_retouching_natural'\n | 'face_retouching_off'\n | 'facebook'\n | 'fact_check'\n | 'family_restroom'\n | 'fast_forward'\n | 'fast_rewind'\n | 'fastfood'\n | 'favorite'\n | 'favorite_border'\n | 'favorite_outline'\n | 'featured_play_list'\n | 'featured_video'\n | 'feed'\n | 'feedback'\n | 'female'\n | 'fence'\n | 'festival'\n | 'fiber_dvr'\n | 'fiber_manual_record'\n | 'fiber_new'\n | 'fiber_pin'\n | 'fiber_smart_record'\n | 'file_copy'\n | 'file_download'\n | 'file_download_done'\n | 'file_download_off'\n | 'file_present'\n | 'file_upload'\n | 'filter'\n | 'filter_1'\n | 'filter_2'\n | 'filter_3'\n | 'filter_4'\n | 'filter_5'\n | 'filter_6'\n | 'filter_7'\n | 'filter_8'\n | 'filter_9'\n | 'filter_9_plus'\n | 'filter_alt'\n | 'filter_b_and_w'\n | 'filter_center_focus'\n | 'filter_drama'\n | 'filter_frames'\n | 'filter_hdr'\n | 'filter_list'\n | 'filter_list_alt'\n | 'filter_none'\n | 'filter_tilt_shift'\n | 'filter_vintage'\n | 'find_in_page'\n | 'find_replace'\n | 'fingerprint'\n | 'fire_extinguisher'\n | 'fire_hydrant'\n | 'fireplace'\n | 'first_page'\n | 'fit_screen'\n | 'fitness_center'\n | 'flag'\n | 'flaky'\n | 'flare'\n | 'flash_auto'\n | 'flash_off'\n | 'flash_on'\n | 'flashlight_off'\n | 'flashlight_on'\n | 'flatware'\n | 'flight'\n | 'flight_land'\n | 'flight_takeoff'\n | 'flip'\n | 'flip_camera_android'\n | 'flip_camera_ios'\n | 'flip_to_back'\n | 'flip_to_front'\n | 'flourescent'\n | 'flutter_dash'\n | 'fmd_bad'\n | 'fmd_good'\n | 'folder'\n | 'folder_open'\n | 'folder_shared'\n | 'folder_special'\n | 'follow_the_signs'\n | 'font_download'\n | 'font_download_off'\n | 'food_bank'\n | 'format_align_center'\n | 'format_align_justify'\n | 'format_align_left'\n | 'format_align_right'\n | 'format_bold'\n | 'format_clear'\n | 'format_color_fill'\n | 'format_color_reset'\n | 'format_color_text'\n | 'format_indent_decrease'\n | 'format_indent_increase'\n | 'format_italic'\n | 'format_line_spacing'\n | 'format_list_bulleted'\n | 'format_list_numbered'\n | 'format_list_numbered_rtl'\n | 'format_paint'\n | 'format_quote'\n | 'format_shapes'\n | 'format_size'\n | 'format_strikethrough'\n | 'format_textdirection_l_to_r'\n | 'format_textdirection_r_to_l'\n | 'format_underline'\n | 'format_underlined'\n | 'forum'\n | 'forward'\n | 'forward_10'\n | 'forward_30'\n | 'forward_5'\n | 'forward_to_inbox'\n | 'foundation'\n | 'free_breakfast'\n | 'free_cancellation'\n | 'front_hand'\n | 'fullscreen'\n | 'fullscreen_exit'\n | 'functions'\n | 'g_mobiledata'\n | 'g_translate'\n | 'gamepad'\n | 'games'\n | 'garage'\n | 'gavel'\n | 'generating_tokens'\n | 'gesture'\n | 'get_app'\n | 'gif'\n | 'gite'\n | 'goat'\n | 'golf_course'\n | 'gpp_bad'\n | 'gpp_good'\n | 'gpp_maybe'\n | 'gps_fixed'\n | 'gps_not_fixed'\n | 'gps_off'\n | 'grade'\n | 'gradient'\n | 'grading'\n | 'grain'\n | 'graphic_eq'\n | 'grass'\n | 'grid_3x3'\n | 'grid_4x4'\n | 'grid_goldenratio'\n | 'grid_off'\n | 'grid_on'\n | 'grid_view'\n | 'group'\n | 'group_add'\n | 'group_off'\n | 'group_work'\n | 'groups'\n | 'h_mobiledata'\n | 'h_plus_mobiledata'\n | 'hail'\n | 'handyman'\n | 'hardware'\n | 'hd'\n | 'hdr_auto'\n | 'hdr_auto_select'\n | 'hdr_enhanced_select'\n | 'hdr_off'\n | 'hdr_off_select'\n | 'hdr_on'\n | 'hdr_on_select'\n | 'hdr_plus'\n | 'hdr_strong'\n | 'hdr_weak'\n | 'headphones'\n | 'headphones_battery'\n | 'headset'\n | 'headset_mic'\n | 'headset_off'\n | 'healing'\n | 'health_and_safety'\n | 'hearing'\n | 'hearing_disabled'\n | 'height'\n | 'help'\n | 'help_center'\n | 'help_outline'\n | 'hevc'\n | 'hide_image'\n | 'hide_source'\n | 'high_quality'\n | 'highlight'\n | 'highlight_alt'\n | 'highlight_off'\n | 'highlight_remove'\n | 'hiking'\n | 'history'\n | 'history_edu'\n | 'history_toggle_off'\n | 'holiday_village'\n | 'home'\n | 'home_filled'\n | 'home_max'\n | 'home_mini'\n | 'home_repair_service'\n | 'home_work'\n | 'horizontal_distribute'\n | 'horizontal_rule'\n | 'horizontal_split'\n | 'hot_tub'\n | 'hotel'\n | 'hotel_class'\n | 'hourglass_bottom'\n | 'hourglass_disabled'\n | 'hourglass_empty'\n | 'hourglass_full'\n | 'hourglass_top'\n | 'house'\n | 'house_siding'\n | 'houseboat'\n | 'how_to_reg'\n | 'how_to_vote'\n | 'http'\n | 'https'\n | 'hvac'\n | 'ice_skating'\n | 'icecream'\n | 'image'\n | 'image_aspect_ratio'\n | 'image_not_supported'\n | 'image_search'\n | 'imagesearch_roller'\n | 'import_contacts'\n | 'import_export'\n | 'important_devices'\n | 'inbox'\n | 'incomplete_circle'\n | 'indeterminate_check_box'\n | 'info'\n | 'info_outline'\n | 'input'\n | 'insert_chart'\n | 'insert_chart_outlined'\n | 'insert_comment'\n | 'insert_drive_file'\n | 'insert_emoticon'\n | 'insert_invitation'\n | 'insert_link'\n | 'insert_photo'\n | 'insights'\n | 'integration_instructions'\n | 'inventory'\n | 'inventory_2'\n | 'invert_colors'\n | 'invert_colors_off'\n | 'invert_colors_on'\n | 'ios_share'\n | 'iron'\n | 'iso'\n | 'kayaking'\n | 'keyboard'\n | 'keyboard_alt'\n | 'keyboard_arrow_down'\n | 'keyboard_arrow_left'\n | 'keyboard_arrow_right'\n | 'keyboard_arrow_up'\n | 'keyboard_backspace'\n | 'keyboard_capslock'\n | 'keyboard_control'\n | 'keyboard_hide'\n | 'keyboard_return'\n | 'keyboard_tab'\n | 'keyboard_voice'\n | 'king_bed'\n | 'kitchen'\n | 'kitesurfing'\n | 'label'\n | 'label_important'\n | 'label_important_outline'\n | 'label_off'\n | 'label_outline'\n | 'landscape'\n | 'language'\n | 'laptop'\n | 'laptop_chromebook'\n | 'laptop_mac'\n | 'laptop_windows'\n | 'last_page'\n | 'launch'\n | 'layers'\n | 'layers_clear'\n | 'leaderboard'\n | 'leak_add'\n | 'leak_remove'\n | 'leave_bags_at_home'\n | 'legend_toggle'\n | 'lens'\n | 'lens_blur'\n | 'library_add'\n | 'library_add_check'\n | 'library_books'\n | 'library_music'\n | 'light'\n | 'light_mode'\n | 'lightbulb'\n | 'lightbulb_outline'\n | 'line_style'\n | 'line_weight'\n | 'linear_scale'\n | 'link'\n | 'link_off'\n | 'linked_camera'\n | 'liquor'\n | 'list'\n | 'list_alt'\n | 'live_help'\n | 'live_tv'\n | 'living'\n | 'local_activity'\n | 'local_airport'\n | 'local_atm'\n | 'local_attraction'\n | 'local_bar'\n | 'local_cafe'\n | 'local_car_wash'\n | 'local_convenience_store'\n | 'local_dining'\n | 'local_drink'\n | 'local_fire_department'\n | 'local_florist'\n | 'local_gas_station'\n | 'local_grocery_store'\n | 'local_hospital'\n | 'local_hotel'\n | 'local_laundry_service'\n | 'local_library'\n | 'local_mall'\n | 'local_movies'\n | 'local_offer'\n | 'local_parking'\n | 'local_pharmacy'\n | 'local_phone'\n | 'local_pizza'\n | 'local_play'\n | 'local_police'\n | 'local_post_office'\n | 'local_print_shop'\n | 'local_printshop'\n | 'local_restaurant'\n | 'local_see'\n | 'local_shipping'\n | 'local_taxi'\n | 'location_city'\n | 'location_disabled'\n | 'location_history'\n | 'location_off'\n | 'location_on'\n | 'location_pin'\n | 'location_searching'\n | 'lock'\n | 'lock_clock'\n | 'lock_open'\n | 'lock_outline'\n | 'login'\n | 'logout'\n | 'looks'\n | 'looks_3'\n | 'looks_4'\n | 'looks_5'\n | 'looks_6'\n | 'looks_one'\n | 'looks_two'\n | 'loop'\n | 'loupe'\n | 'low_priority'\n | 'loyalty'\n | 'lte_mobiledata'\n | 'lte_plus_mobiledata'\n | 'luggage'\n | 'lunch_dining'\n | 'mail'\n | 'mail_outline'\n | 'male'\n | 'manage_accounts'\n | 'manage_search'\n | 'map'\n | 'maps_home_work'\n | 'maps_ugc'\n | 'margin'\n | 'mark_as_unread'\n | 'mark_chat_read'\n | 'mark_chat_unread'\n | 'mark_email_read'\n | 'mark_email_unread'\n | 'markunread'\n | 'markunread_mailbox'\n | 'masks'\n | 'maximize'\n | 'media_bluetooth_off'\n | 'media_bluetooth_on'\n | 'mediation'\n | 'medical_services'\n | 'medication'\n | 'meeting_room'\n | 'memory'\n | 'menu'\n | 'menu_book'\n | 'menu_open'\n | 'merge_type'\n | 'message'\n | 'messenger'\n | 'messenger_outline'\n | 'mic'\n | 'mic_external_off'\n | 'mic_external_on'\n | 'mic_none'\n | 'mic_off'\n | 'microwave'\n | 'military_tech'\n | 'minimize'\n | 'miscellaneous_services'\n | 'missed_video_call'\n | 'mms'\n | 'mobile_friendly'\n | 'mobile_off'\n | 'mobile_screen_share'\n | 'mobiledata_off'\n | 'mode'\n | 'mode_comment'\n | 'mode_edit'\n | 'mode_edit_outline'\n | 'mode_night'\n | 'mode_standby'\n | 'model_training'\n | 'monetization_on'\n | 'money'\n | 'money_off'\n | 'money_off_csred'\n | 'monitor'\n | 'monitor_weight'\n | 'monochrome_photos'\n | 'mood'\n | 'mood_bad'\n | 'moped'\n | 'more'\n | 'more_horiz'\n | 'more_time'\n | 'more_vert'\n | 'motion_photos_auto'\n | 'motion_photos_off'\n | 'motion_photos_on'\n | 'motion_photos_pause'\n | 'motion_photos_paused'\n | 'motorcycle'\n | 'mouse'\n | 'move_to_inbox'\n | 'movie'\n | 'movie_creation'\n | 'movie_filter'\n | 'moving'\n | 'mp'\n | 'multiline_chart'\n | 'multiple_stop'\n | 'multitrack_audio'\n | 'museum'\n | 'music_note'\n | 'music_off'\n | 'music_video'\n | 'my_library_add'\n | 'my_library_books'\n | 'my_library_music'\n | 'my_location'\n | 'nat'\n | 'nature'\n | 'nature_people'\n | 'navigate_before'\n | 'navigate_next'\n | 'navigation'\n | 'near_me'\n | 'near_me_disabled'\n | 'nearby_error'\n | 'nearby_off'\n | 'network_cell'\n | 'network_check'\n | 'network_locked'\n | 'network_wifi'\n | 'new_label'\n | 'new_releases'\n | 'next_plan'\n | 'next_week'\n | 'nfc'\n | 'night_shelter'\n | 'nightlife'\n | 'nightlight'\n | 'nightlight_round'\n | 'nights_stay'\n | 'no_accounts'\n | 'no_backpack'\n | 'no_cell'\n | 'no_drinks'\n | 'no_encryption'\n | 'no_encryption_gmailerrorred'\n | 'no_flash'\n | 'no_food'\n | 'no_luggage'\n | 'no_meals'\n | 'no_meals_ouline'\n | 'no_meeting_room'\n | 'no_photography'\n | 'no_sim'\n | 'no_stroller'\n | 'no_transfer'\n | 'nordic_walking'\n | 'north'\n | 'north_east'\n | 'north_west'\n | 'not_accessible'\n | 'not_interested'\n | 'not_listed_location'\n | 'not_started'\n | 'note'\n | 'note_add'\n | 'note_alt'\n | 'notes'\n | 'notification_add'\n | 'notification_important'\n | 'notifications'\n | 'notifications_active'\n | 'notifications_none'\n | 'notifications_off'\n | 'notifications_on'\n | 'notifications_paused'\n | 'now_wallpaper'\n | 'now_widgets'\n | 'offline_bolt'\n | 'offline_pin'\n | 'offline_share'\n | 'ondemand_video'\n | 'online_prediction'\n | 'opacity'\n | 'open_in_browser'\n | 'open_in_full'\n | 'open_in_new'\n | 'open_in_new_off'\n | 'open_with'\n | 'other_houses'\n | 'outbond'\n | 'outbound'\n | 'outbox'\n | 'outdoor_grill'\n | 'outgoing_mail'\n | 'outlet'\n | 'outlined_flag'\n | 'padding'\n | 'pages'\n | 'pageview'\n | 'paid'\n | 'palette'\n | 'pan_tool'\n | 'panorama'\n | 'panorama_fish_eye'\n | 'panorama_fisheye'\n | 'panorama_horizontal'\n | 'panorama_horizontal_select'\n | 'panorama_photosphere'\n | 'panorama_photosphere_select'\n | 'panorama_vertical'\n | 'panorama_vertical_select'\n | 'panorama_wide_angle'\n | 'panorama_wide_angle_select'\n | 'paragliding'\n | 'park'\n | 'party_mode'\n | 'password'\n | 'pattern'\n | 'pause'\n | 'pause_circle'\n | 'pause_circle_filled'\n | 'pause_circle_outline'\n | 'pause_presentation'\n | 'payment'\n | 'payments'\n | 'pedal_bike'\n | 'pending'\n | 'pending_actions'\n | 'people'\n | 'people_alt'\n | 'people_outline'\n | 'perm_camera_mic'\n | 'perm_contact_cal'\n | 'perm_contact_calendar'\n | 'perm_data_setting'\n | 'perm_device_info'\n | 'perm_device_information'\n | 'perm_identity'\n | 'perm_media'\n | 'perm_phone_msg'\n | 'perm_scan_wifi'\n | 'person'\n | 'person_add'\n | 'person_add_alt'\n | 'person_add_alt_1'\n | 'person_add_disabled'\n | 'person_off'\n | 'person_outline'\n | 'person_pin'\n | 'person_pin_circle'\n | 'person_remove'\n | 'person_remove_alt_1'\n | 'person_search'\n | 'personal_injury'\n | 'personal_video'\n | 'pest_control'\n | 'pest_control_rodent'\n | 'pets'\n | 'phone'\n | 'phone_android'\n | 'phone_bluetooth_speaker'\n | 'phone_callback'\n | 'phone_disabled'\n | 'phone_enabled'\n | 'phone_forwarded'\n | 'phone_in_talk'\n | 'phone_iphone'\n | 'phone_locked'\n | 'phone_missed'\n | 'phone_paused'\n | 'phonelink'\n | 'phonelink_erase'\n | 'phonelink_lock'\n | 'phonelink_off'\n | 'phonelink_ring'\n | 'phonelink_setup'\n | 'photo'\n | 'photo_album'\n | 'photo_camera'\n | 'photo_camera_back'\n | 'photo_camera_front'\n | 'photo_filter'\n | 'photo_library'\n | 'photo_size_select_actual'\n | 'photo_size_select_large'\n | 'photo_size_select_small'\n | 'piano'\n | 'piano_off'\n | 'picture_as_pdf'\n | 'picture_in_picture'\n | 'picture_in_picture_alt'\n | 'pie_chart'\n | 'pie_chart_outline'\n | 'pie_chart_outlined'\n | 'pin'\n | 'pin_drop'\n | 'pin_end'\n | 'pin_invoke'\n | 'pivot_table_chart'\n | 'place'\n | 'plagiarism'\n | 'play_arrow'\n | 'play_circle'\n | 'play_circle_fill'\n | 'play_circle_filled'\n | 'play_circle_outline'\n | 'play_disabled'\n | 'play_for_work'\n | 'play_lesson'\n | 'playlist_add'\n | 'playlist_add_check'\n | 'playlist_play'\n | 'plumbing'\n | 'plus_one'\n | 'podcasts'\n | 'point_of_sale'\n | 'policy'\n | 'poll'\n | 'polymer'\n | 'pool'\n | 'portable_wifi_off'\n | 'portrait'\n | 'post_add'\n | 'power'\n | 'power_input'\n | 'power_off'\n | 'power_settings_new'\n | 'precision_manufacturing'\n | 'pregnant_woman'\n | 'present_to_all'\n | 'preview'\n | 'price_change'\n | 'price_check'\n | 'print'\n | 'print_disabled'\n | 'priority_high'\n | 'privacy_tip'\n | 'private_connectivity'\n | 'production_quantity_limits'\n | 'psychology'\n | 'public'\n | 'public_off'\n | 'publish'\n | 'published_with_changes'\n | 'push_pin'\n | 'qr_code'\n | 'qr_code_2'\n | 'qr_code_scanner'\n | 'query_builder'\n | 'query_stats'\n | 'question_answer'\n | 'queue'\n | 'queue_music'\n | 'queue_play_next'\n | 'quick_contacts_dialer'\n | 'quick_contacts_mail'\n | 'quickreply'\n | 'quiz'\n | 'r_mobiledata'\n | 'radar'\n | 'radio'\n | 'radio_button_checked'\n | 'radio_button_off'\n | 'radio_button_on'\n | 'radio_button_unchecked'\n | 'railway_alert'\n | 'ramen_dining'\n | 'rate_review'\n | 'raw_off'\n | 'raw_on'\n | 'read_more'\n | 'real_estate_agent'\n | 'receipt'\n | 'receipt_long'\n | 'recent_actors'\n | 'recommend'\n | 'record_voice_over'\n | 'recycling'\n | 'redeem'\n | 'redo'\n | 'reduce_capacity'\n | 'refresh'\n | 'remember_me'\n | 'remove'\n | 'remove_circle'\n | 'remove_circle_outline'\n | 'remove_done'\n | 'remove_from_queue'\n | 'remove_moderator'\n | 'remove_red_eye'\n | 'remove_shopping_cart'\n | 'reorder'\n | 'repeat'\n | 'repeat_on'\n | 'repeat_one'\n | 'repeat_one_on'\n | 'replay'\n | 'replay_10'\n | 'replay_30'\n | 'replay_5'\n | 'replay_circle_filled'\n | 'reply'\n | 'reply_all'\n | 'report'\n | 'report_gmailerrorred'\n | 'report_off'\n | 'report_problem'\n | 'request_page'\n | 'request_quote'\n | 'reset_tv'\n | 'restart_alt'\n | 'restaurant'\n | 'restaurant_menu'\n | 'restore'\n | 'restore_from_trash'\n | 'restore_page'\n | 'reviews'\n | 'rice_bowl'\n | 'ring_volume'\n | 'roofing'\n | 'room'\n | 'room_preferences'\n | 'room_service'\n | 'rotate_90_degrees_ccw'\n | 'rotate_left'\n | 'rotate_right'\n | 'rounded_corner'\n | 'router'\n | 'rowing'\n | 'rss_feed'\n | 'rsvp'\n | 'rtt'\n | 'rule'\n | 'rule_folder'\n | 'run_circle'\n | 'running_with_errors'\n | 'rv_hookup'\n | 'safety_divider'\n | 'sailing'\n | 'sanitizer'\n | 'satellite'\n | 'save'\n | 'save_alt'\n | 'saved_search'\n | 'savings'\n | 'scanner'\n | 'scatter_plot'\n | 'schedule'\n | 'schedule_send'\n | 'schema'\n | 'school'\n | 'science'\n | 'score'\n | 'screen_lock_landscape'\n | 'screen_lock_portrait'\n | 'screen_lock_rotation'\n | 'screen_rotation'\n | 'screen_search_desktop'\n | 'screen_share'\n | 'screenshot'\n | 'sd'\n | 'sd_card'\n | 'sd_card_alert'\n | 'sd_storage'\n | 'search'\n | 'search_off'\n | 'security'\n | 'security_update'\n | 'security_update_good'\n | 'security_update_warning'\n | 'segment'\n | 'select_all'\n | 'self_improvement'\n | 'sell'\n | 'send'\n | 'send_and_archive'\n | 'send_to_mobile'\n | 'sensor_door'\n | 'sensor_window'\n | 'sensors'\n | 'sensors_off'\n | 'sentiment_dissatisfied'\n | 'sentiment_neutral'\n | 'sentiment_satisfied'\n | 'sentiment_satisfied_alt'\n | 'sentiment_very_dissatisfied'\n | 'sentiment_very_satisfied'\n | 'set_meal'\n | 'settings'\n | 'settings_accessibility'\n | 'settings_applications'\n | 'settings_backup_restore'\n | 'settings_bluetooth'\n | 'settings_brightness'\n | 'settings_cell'\n | 'settings_display'\n | 'settings_ethernet'\n | 'settings_input_antenna'\n | 'settings_input_component'\n | 'settings_input_composite'\n | 'settings_input_hdmi'\n | 'settings_input_svideo'\n | 'settings_overscan'\n | 'settings_phone'\n | 'settings_power'\n | 'settings_remote'\n | 'settings_suggest'\n | 'settings_system_daydream'\n | 'settings_voice'\n | 'share'\n | 'share_arrival_time'\n | 'share_location'\n | 'shield'\n | 'shop'\n | 'shop_2'\n | 'shop_two'\n | 'shopping_bag'\n | 'shopping_basket'\n | 'shopping_cart'\n | 'short_text'\n | 'shortcut'\n | 'show_chart'\n | 'shower'\n | 'shuffle'\n | 'shuffle_on'\n | 'shutter_speed'\n | 'sick'\n | 'signal_cellular_0_bar'\n | 'signal_cellular_4_bar'\n | 'signal_cellular_alt'\n | 'signal_cellular_connected_no_internet_0_bar'\n | 'signal_cellular_connected_no_internet_4_bar'\n | 'signal_cellular_no_sim'\n | 'signal_cellular_nodata'\n | 'signal_cellular_null'\n | 'signal_cellular_off'\n | 'signal_wifi_0_bar'\n | 'signal_wifi_4_bar'\n | 'signal_wifi_4_bar_lock'\n | 'signal_wifi_bad'\n | 'signal_wifi_connected_no_internet_4'\n | 'signal_wifi_off'\n | 'signal_wifi_statusbar_4_bar'\n | 'signal_wifi_statusbar_connected_no_internet_4'\n | 'signal_wifi_statusbar_null'\n | 'sim_card'\n | 'sim_card_alert'\n | 'sim_card_download'\n | 'single_bed'\n | 'sip'\n | 'skateboarding'\n | 'skip_next'\n | 'skip_previous'\n | 'sledding'\n | 'slideshow'\n | 'slow_motion_video'\n | 'smart_button'\n | 'smart_display'\n | 'smart_screen'\n | 'smart_toy'\n | 'smartphone'\n | 'smoke_free'\n | 'smoking_rooms'\n | 'sms'\n | 'sms_failed'\n | 'snippet_folder'\n | 'snooze'\n | 'snowboarding'\n | 'snowmobile'\n | 'snowshoeing'\n | 'soap'\n | 'social_distance'\n | 'sort'\n | 'sort_by_alpha'\n | 'source'\n | 'south'\n | 'south_east'\n | 'south_west'\n | 'spa'\n | 'space_bar'\n | 'space_dashboard'\n | 'speaker'\n | 'speaker_group'\n | 'speaker_notes'\n | 'speaker_notes_off'\n | 'speaker_phone'\n | 'speed'\n | 'spellcheck'\n | 'splitscreen'\n | 'sports'\n | 'sports_bar'\n | 'sports_baseball'\n | 'sports_basketball'\n | 'sports_cricket'\n | 'sports_esports'\n | 'sports_football'\n | 'sports_golf'\n | 'sports_handball'\n | 'sports_hockey'\n | 'sports_kabaddi'\n | 'sports_mma'\n | 'sports_motorsports'\n | 'sports_rugby'\n | 'sports_score'\n | 'sports_soccer'\n | 'sports_tennis'\n | 'sports_volleyball'\n | 'square_foot'\n | 'stacked_bar_chart'\n | 'stacked_line_chart'\n | 'stairs'\n | 'star'\n | 'star_border'\n | 'star_border_purple500'\n | 'star_half'\n | 'star_outline'\n | 'star_purple500'\n | 'star_rate'\n | 'stars'\n | 'stay_current_landscape'\n | 'stay_current_portrait'\n | 'stay_primary_landscape'\n | 'stay_primary_portrait'\n | 'sticky_note_2'\n | 'stop'\n | 'stop_circle'\n | 'stop_screen_share'\n | 'storage'\n | 'store'\n | 'store_mall_directory'\n | 'storefront'\n | 'storm'\n | 'straighten'\n | 'stream'\n | 'streetview'\n | 'strikethrough_s'\n | 'stroller'\n | 'style'\n | 'subdirectory_arrow_left'\n | 'subdirectory_arrow_right'\n | 'subject'\n | 'subscript'\n | 'subscriptions'\n | 'subtitles'\n | 'subtitles_off'\n | 'subway'\n | 'summarize'\n | 'superscript'\n | 'supervised_user_circle'\n | 'supervisor_account'\n | 'support'\n | 'support_agent'\n | 'surfing'\n | 'surround_sound'\n | 'swap_calls'\n | 'swap_horiz'\n | 'swap_horizontal_circle'\n | 'swap_vert'\n | 'swap_vert_circle'\n | 'swap_vertical_circle'\n | 'swipe'\n | 'switch_account'\n | 'switch_camera'\n | 'switch_left'\n | 'switch_right'\n | 'switch_video'\n | 'sync'\n | 'sync_alt'\n | 'sync_disabled'\n | 'sync_problem'\n | 'system_security_update'\n | 'system_security_update_good'\n | 'system_security_update_warning'\n | 'system_update'\n | 'system_update_alt'\n | 'system_update_tv'\n | 'tab'\n | 'tab_unselected'\n | 'table_chart'\n | 'table_rows'\n | 'table_view'\n | 'tablet'\n | 'tablet_android'\n | 'tablet_mac'\n | 'tag'\n | 'tag_faces'\n | 'takeout_dining'\n | 'tap_and_play'\n | 'tapas'\n | 'task'\n | 'task_alt'\n | 'taxi_alert'\n | 'terrain'\n | 'text_fields'\n | 'text_format'\n | 'text_rotate_up'\n | 'text_rotate_vertical'\n | 'text_rotation_angledown'\n | 'text_rotation_angleup'\n | 'text_rotation_down'\n | 'text_rotation_none'\n | 'text_snippet'\n | 'textsms'\n | 'texture'\n | 'theater_comedy'\n | 'theaters'\n | 'thermostat'\n | 'thermostat_auto'\n | 'thumb_down'\n | 'thumb_down_alt'\n | 'thumb_down_off_alt'\n | 'thumb_up'\n | 'thumb_up_alt'\n | 'thumb_up_off_alt'\n | 'thumbs_up_down'\n | 'time_to_leave'\n | 'timelapse'\n | 'timeline'\n | 'timer'\n | 'timer_10'\n | 'timer_10_select'\n | 'timer_3'\n | 'timer_3_select'\n | 'timer_off'\n | 'tips_and_updates'\n | 'title'\n | 'toc'\n | 'today'\n | 'toggle_off'\n | 'toggle_on'\n | 'toll'\n | 'tonality'\n | 'topic'\n | 'touch_app'\n | 'tour'\n | 'toys'\n | 'track_changes'\n | 'traffic'\n | 'train'\n | 'tram'\n | 'transfer_within_a_station'\n | 'transform'\n | 'transgender'\n | 'transit_enterexit'\n | 'translate'\n | 'travel_explore'\n | 'trending_down'\n | 'trending_flat'\n | 'trending_neutral'\n | 'trending_up'\n | 'trip_origin'\n | 'try'\n | 'tty'\n | 'tune'\n | 'tungsten'\n | 'turned_in'\n | 'turned_in_not'\n | 'tv'\n | 'tv_off'\n | 'two_wheeler'\n | 'umbrella'\n | 'unarchive'\n | 'undo'\n | 'unfold_less'\n | 'unfold_more'\n | 'unpublished'\n | 'unsubscribe'\n | 'upcoming'\n | 'update'\n | 'update_disabled'\n | 'upgrade'\n | 'upload'\n | 'upload_file'\n | 'usb'\n | 'usb_off'\n | 'verified'\n | 'verified_user'\n | 'vertical_align_bottom'\n | 'vertical_align_center'\n | 'vertical_align_top'\n | 'vertical_distribute'\n | 'vertical_split'\n | 'vibration'\n | 'video_call'\n | 'video_camera_back'\n | 'video_camera_front'\n | 'video_collection'\n | 'video_label'\n | 'video_library'\n | 'video_settings'\n | 'video_stable'\n | 'videocam'\n | 'videocam_off'\n | 'videogame_asset'\n | 'videogame_asset_off'\n | 'view_agenda'\n | 'view_array'\n | 'view_carousel'\n | 'view_column'\n | 'view_comfortable'\n | 'view_comfy'\n | 'view_compact'\n | 'view_day'\n | 'view_headline'\n | 'view_in_ar'\n | 'view_list'\n | 'view_module'\n | 'view_quilt'\n | 'view_sidebar'\n | 'view_stream'\n | 'view_week'\n | 'vignette'\n | 'villa'\n | 'visibility'\n | 'visibility_off'\n | 'voice_chat'\n | 'voice_over_off'\n | 'voicemail'\n | 'volume_down'\n | 'volume_down_alt'\n | 'volume_mute'\n | 'volume_off'\n | 'volume_up'\n | 'volunteer_activism'\n | 'vpn_key'\n | 'vpn_lock'\n | 'vrpano'\n | 'wallet_giftcard'\n | 'wallet_membership'\n | 'wallet_travel'\n | 'wallpaper'\n | 'warning'\n | 'warning_amber'\n | 'wash'\n | 'watch'\n | 'watch_later'\n | 'water'\n | 'water_damage'\n | 'water_drop'\n | 'waterfall_chart'\n | 'waves'\n | 'waving_hand'\n | 'wb_auto'\n | 'wb_cloudy'\n | 'wb_incandescent'\n | 'wb_iridescent'\n | 'wb_shade'\n | 'wb_sunny'\n | 'wb_twighlight'\n | 'wb_twilight'\n | 'wc'\n | 'web'\n | 'web_asset'\n | 'web_asset_off'\n | 'web_stories'\n | 'weekend'\n | 'west'\n | 'whatshot'\n | 'wheelchair_pickup'\n | 'where_to_vote'\n | 'widgets'\n | 'wifi'\n | 'wifi_calling'\n | 'wifi_calling_3'\n | 'wifi_lock'\n | 'wifi_off'\n | 'wifi_protected_setup'\n | 'wifi_tethering'\n | 'wifi_tethering_error_rounded'\n | 'wifi_tethering_off'\n | 'window'\n | 'wine_bar'\n | 'work'\n | 'work_off'\n | 'work_outline'\n | 'workspaces'\n | 'workspaces_filled'\n | 'workspaces_outline'\n | 'wrap_text'\n | 'wrong_location'\n | 'wysiwyg'\n | 'yard'\n | 'youtube_searched_for'\n | 'zoom_in'\n | 'zoom_out'\n | 'zoom_out_map';\n","export const version = '0.21.0';\n","import * as React from 'react';\n\nexport class ErrorBoundary extends React.Component<any, any> {\n constructor(props) {\n super(props);\n this.state = { hasError: false, error: null };\n }\n\n static getDerivedStateFromError(error) {\n // Update state so the next render will show the fallback UI.\n return { hasError: true, error };\n }\n\n componentDidCatch(error, errorInfo) {\n // You can also log the error to an error reporting service\n // logErrorToMyService(error, errorInfo);\n }\n\n render() {\n if (this.state.hasError) {\n return (\n <view id=\"__react-unity-error-boundary\" style={{ color: 'crimson', padding: 20, fontSize: 16 }}>\n <view style={{ marginBottom: '12px' }}>{this.state.error?.message || ''}</view>\n <view>{this.state.error?.stack || ''}</view>\n </view>\n );\n }\n\n return this.props.children;\n }\n}\n","import { ReactNode } from 'react';\nimport { ErrorBoundary } from './error-boundary';\n\ninterface Props {\n children?: ReactNode;\n withHelpers: boolean;\n renderCount: number;\n}\n\nexport function DefaultView({ children, withHelpers, renderCount }: Props) {\n return <>{!withHelpers ? children : <ErrorBoundary key={renderCount}>{children}</ErrorBoundary>}</>;\n}\n","export class ObjectsRepo<T = any> {\n indices: Record<string, unknown>[] = [{}];\n objects = new WeakMap<object, T>();\n\n setObject = (index: number, item: T) => {\n let it = this.indices[index];\n if (!it) {\n it = this.indices[index] = {};\n }\n this.objects.set(it, item);\n };\n\n addObject = (item: T) => {\n if (!item) return -1;\n\n const it = {};\n const ind = this.indices.length;\n this.indices.push(it);\n this.objects.set(it, item);\n\n return ind;\n };\n\n getObject = (index: number) => {\n if (index < 0) return undefined;\n const it = this.indices[index];\n return this.objects.get(it);\n };\n}\n","export type DiffResult = null | Record<string, any>;\n\nexport const styleStringSymbol = '__style_as_string__';\n\nconst propDepths = {\n style: 1,\n data: 1,\n custom: 1,\n};\n\nexport function diffProperties(lastProps: Record<string, any>, nextProps: Record<string, any>, deepDiffing = 0): DiffResult {\n if (lastProps === nextProps) return null;\n let updatePayload: DiffResult = null;\n\n let propKey: PropertyKey;\n for (propKey in lastProps) {\n // This loop is for removing properties that existed in the previous properties, but not on current\n\n if (Object.hasOwn(nextProps, propKey) || !Object.hasOwn(lastProps, propKey) || lastProps[propKey] == null) {\n continue;\n }\n\n let prop = null;\n\n // If style existed in the previous properties as string, set it to null\n if (propKey === 'style' && typeof lastProps.style === 'string') {\n (updatePayload = updatePayload || {})[styleStringSymbol] = null;\n } else {\n const depth = deepDiffing > 0 ? deepDiffing : propDepths[propKey] || 0;\n if (depth > 0) {\n prop = diffProperties(lastProps[propKey], {}, depth - 1);\n if (!prop) continue;\n }\n\n // For all other deleted properties we add it to the queue. We use\n // the whitelist in the commit phase instead.\n (updatePayload = updatePayload || {})[propKey] = prop;\n }\n }\n\n for (propKey in nextProps) {\n // This loop is for finding difference between current properties and previous properties\n\n const nextProp = nextProps[propKey];\n const lastProp = lastProps != null ? lastProps[propKey] : undefined;\n if (!Object.hasOwn(nextProps, propKey) || nextProp === lastProp || (nextProp == null && lastProp == null)) {\n continue;\n }\n\n let prop = nextProp;\n\n if (propKey === 'style') {\n const prevWasString = typeof lastProp === 'string';\n const curIsString = typeof prop === 'string';\n\n if (prevWasString !== curIsString) {\n (updatePayload = updatePayload || {})[styleStringSymbol] = typeof prop === 'string' ? prop : null;\n\n if (curIsString) {\n // Current style is string while previous is object, so revert all changes from the previous one\n prop = diffProperties(lastProp, {}, 0);\n if (!prop) continue;\n }\n } else {\n // Both styles are string, style does not need changing\n if (curIsString) continue;\n // Both styles are object, take the difference\n prop = diffProperties(lastProp, nextProp, 0);\n if (!prop) continue;\n }\n } else {\n const depth = deepDiffing > 0 ? deepDiffing : propDepths[propKey] || 0;\n if (depth > 0) {\n prop = diffProperties(lastProp, nextProp, depth - 1);\n if (!prop) continue;\n }\n }\n\n (updatePayload = updatePayload || {})[propKey] = prop;\n }\n\n return updatePayload;\n}\n","import { createContext } from 'react';\nimport { ContinuousEventPriority, DefaultEventPriority, DiscreteEventPriority, IdleEventPriority } from 'react-reconciler/constants';\nimport { PoolKey } from '../models/base';\nimport { CommonConfig, TransitionStatus } from '../models/renderer';\nimport { styleStringSymbol } from './diffing';\n\ndeclare const process;\n\nexport const hideClass = 'react-unity__renderer__hidden';\n\nexport const eventPriorities = {\n discrete: DiscreteEventPriority,\n continuous: ContinuousEventPriority,\n default: DefaultEventPriority,\n idle: IdleEventPriority,\n};\n\nexport const textTypes = {\n text: true,\n icon: true,\n style: true,\n script: true,\n};\n\nexport function stringizePoolKey(key: PoolKey) {\n switch (typeof key) {\n case 'string':\n return key;\n case 'boolean':\n return key ? 'default' : '';\n case 'number':\n return key.toString();\n case 'undefined':\n return null;\n default:\n return '';\n }\n}\n\nexport function getAllowedProps(props, type) {\n const { children, tag, pool, ref, ...rest } = props;\n\n if (textTypes[type] && 'children' in props) {\n rest.children = !children || typeof children === 'boolean' ? null : Array.isArray(children) ? children.join('') : String(children);\n }\n\n if (typeof props.style === 'string') rest[styleStringSymbol] = props.style;\n\n return rest;\n}\n\ndeclare const queueMicrotask: (callback: (...args: any[]) => any) => void;\n\nconst HostTransitionContext = createContext<TransitionStatus>(null) as any;\n\nconst NoEventPriority = 0;\nlet currentUpdatePriority: number = NoEventPriority;\n\nexport const commonReconciler = {\n // -------------------\n // Scheduling\n // -------------------\n\n noTimeout: -1 as const,\n scheduleTimeout: (callback, delay) => setTimeout(callback as any, delay),\n scheduleMicrotask:\n typeof queueMicrotask === 'function'\n ? queueMicrotask\n : (callback) =>\n Promise.resolve(null)\n .then(callback)\n .catch((error) =>\n setTimeout(() => {\n throw error;\n }, 0),\n ),\n cancelTimeout: (handle) => clearTimeout(handle),\n\n beforeActiveInstanceBlur() {},\n\n afterActiveInstanceBlur() {},\n\n prepareScopeUpdate: () => {},\n getInstanceFromScope: () => undefined,\n getInstanceFromNode: () => undefined,\n\n // React 19\n\n setCurrentUpdatePriority: (newPriority: number) => (currentUpdatePriority = newPriority),\n getCurrentUpdatePriority: () => currentUpdatePriority,\n resolveUpdatePriority: () => currentUpdatePriority || UnityBridge.CurrentEventPriority || eventPriorities.default,\n maySuspendCommit: () => false,\n requestPostPaintCallback: () => {},\n preloadInstance: () => true,\n resetFormInstance: () => {},\n resolveEventTimeStamp: () => -1.1,\n resolveEventType: () => null,\n shouldAttemptEagerTransition: () => false,\n startSuspendingCommit: () => {},\n suspendInstance: () => {},\n trackSchedulerEvent: () => {},\n waitForCommitToBeReady: () => null,\n NotPendingTransition: null,\n HostTransitionContext,\n\n // Keep these for React 18 compatibility\n ...{\n now:\n typeof performance !== 'undefined' && typeof performance.now === 'function'\n ? () => performance.now()\n : typeof Date !== 'undefined' && typeof Date.now === 'function'\n ? () => Date.now()\n : () => 0,\n getCurrentEventPriority: () => UnityBridge.CurrentEventPriority || eventPriorities.default,\n },\n} satisfies Partial<CommonConfig>;\n\nexport const isDevelopment = process.env.NODE_ENV === 'development';\n","import { RichTextNode } from '../async/types';\n\nexport function parametrizeValue(value: string | number) {\n if (typeof value === 'number') return String(value);\n value = String(value);\n\n if (value.includes(' ') || value.includes('-')) return `\"${value}\"`;\n return value;\n}\n\nexport function stringifyRichText(node: RichTextNode): string {\n if (node.hidden) return '';\n\n if ('text' in node) return node.text;\n\n const acc: string[] = [];\n\n const tag = node.tag;\n\n if (tag) {\n acc.push('<');\n acc.push(tag);\n\n if (node.attributes?.value != null) {\n const value = node.attributes?.value;\n acc.push('=');\n acc.push(parametrizeValue(value));\n }\n\n for (const key in node.attributes) {\n if (key === 'value') continue;\n if (Object.hasOwn(node.attributes, key)) {\n const value = node.attributes[key];\n\n if (value != null) {\n acc.push(' ');\n acc.push(key);\n acc.push('=');\n acc.push(parametrizeValue(value));\n }\n }\n }\n acc.push('>');\n }\n\n if (node.children?.length > 0) {\n for (const child of node.children) {\n acc.push(stringifyRichText(child));\n }\n\n if (tag) {\n acc.push('</');\n acc.push(tag);\n acc.push('>');\n }\n }\n\n return acc.join('');\n}\n","import { RichTextNode } from '../async/types';\n\nfunction kebabize(str: string): string {\n return str\n .split('')\n .map((letter, idx) => {\n return letter.toUpperCase() === letter ? `${idx !== 0 ? '-' : ''}${letter.toLowerCase()}` : letter;\n })\n .join('');\n}\n\nexport function stringifyStyle(style: any): string {\n if (typeof style === 'string') return style;\n\n const acc: string[] = [];\n\n for (const key in style) {\n if (Object.hasOwn(style, key)) {\n const element = style[key];\n\n if (element != null) {\n acc.push(kebabize(key));\n acc.push(':');\n acc.push(element);\n acc.push(';');\n }\n }\n }\n\n return acc.join('');\n}\n\nexport function stringifySVG(node: RichTextNode): string {\n if (node.hidden) return '';\n\n if ('text' in node) return node.text;\n\n const acc: string[] = [];\n\n const tag = node.tag;\n\n if (tag) {\n acc.push('<');\n acc.push(tag);\n\n for (const key in node.attributes) {\n if (Object.hasOwn(node.attributes, key)) {\n let element = node.attributes[key];\n\n if (key === 'style') element = stringifyStyle(element);\n\n if (element != null) {\n acc.push(' ');\n acc.push(kebabize(key));\n acc.push('=\"');\n acc.push(element);\n acc.push('\"');\n }\n }\n }\n }\n\n if (node.children?.length > 0) {\n if (tag) acc.push('>');\n\n for (const child of node.children) {\n acc.push(stringifySVG(child));\n }\n\n if (tag) {\n acc.push('</');\n acc.push(tag);\n acc.push('>');\n }\n } else {\n if (tag) acc.push(' />');\n }\n\n return acc.join('');\n}\n","import { stringifyRichText } from './richtext';\nimport { stringifySVG } from './svg';\n\nexport const subContextRenderers = {\n richtext: stringifyRichText,\n svg: stringifySVG,\n};\n","import { System } from '../../models/generated';\nimport { AsyncCallback } from './commands';\nimport { ObjectsRepo } from './objects';\n\nexport class CallbacksRepo extends ObjectsRepo<AsyncCallback> {\n call = (ind: number, args: any[]) => {\n const cb = this.getObject(ind);\n\n const argsAsList = args as unknown as System.Collections.Generic.List<any>;\n const argsAsArray = args as unknown as System.Array;\n\n if (typeof argsAsArray.Length === 'number') {\n // C# Array\n args = [];\n const length = argsAsArray.Length;\n for (let index = 0; index < length; index++) args.push(argsAsArray.GetValue(index));\n } else if (typeof argsAsList.Count === 'number') {\n // C# List\n args = [];\n const length = argsAsList.Count;\n for (let index = 0; index < length; index++) args.push(argsAsList[index]);\n } else if (typeof argsAsList.Count === 'function') {\n // C# IList\n args = [];\n const length = (argsAsList.Count as any)();\n for (let index = 0; index < length; index++) args.push(argsAsArray.GetValue(index));\n }\n\n return cb.apply(null, args);\n };\n}\n","import { CallbacksRepo } from './callbacks';\nimport { SerializableUpdateProps } from './commands';\nimport { ObjectsRepo } from './objects';\n\nexport const callbacksRepo = new CallbacksRepo();\nexport const objectsRepo = new ObjectsRepo();\n\n// Separates properties in 3 categories: regular props, callbacks and non-serializable objects\nexport function convertPropsToSerializable(props: any) {\n const res: SerializableUpdateProps = {};\n\n for (const key in props) {\n if (Object.hasOwn(props, key)) {\n const value = props[key];\n\n if (value == null) {\n (res.p ||= {})[key] = null;\n } else if (key === 'style') {\n (res.p ||= {})[key] = convertPropsToSerializable(value);\n } else if (key[0] === 'o' && key[1] === 'n' && typeof value === 'function') {\n const ind = callbacksRepo.addObject(value);\n (res.e ||= {})[key] = ind;\n } else if (typeof value === 'object' || typeof value === 'function') {\n const ind = objectsRepo.addObject(value);\n (res.o ||= {})[key] = ind;\n } else {\n (res.p ||= {})[key] = value;\n }\n }\n }\n\n return res;\n}\n","import Reconciler from 'react-reconciler';\nimport { commonReconciler, getAllowedProps, stringizePoolKey, textTypes } from '../constants';\nimport { diffProperties } from '../diffing';\nimport { subContextRenderers } from '../subcontexts';\nimport { callbacksRepo, convertPropsToSerializable, objectsRepo } from './serializer';\nimport { AsyncHostContext, AsyncReconcilerConfig, AsyncSubContext } from './types';\n\nlet refId = 0;\n\nconst ctxMap = new Map<object, AsyncHostContext>();\n\nconst updateSubContext = (instance: AsyncSubContext) => {\n const rend = subContextRenderers[instance.type];\n\n let root = instance?.root;\n let cur = instance;\n\n while (cur && !root) {\n root = cur.root;\n cur = cur.parent;\n }\n\n if (!root) return;\n\n const content = rend(root.subContext.node);\n\n if (instance.type === 'richtext') {\n // instance.hostContext.commands.push(['x', { r: root.refId, c: content }]);\n instance.hostContext.commands.push([6, root.refId, content]);\n } else if (instance.type === 'svg') {\n // instance.hostContext.commands.push(['u', { r: root.refId, t: 'svg', ...convertPropsToSerializable({ innerContent: content }) }]);\n instance.hostContext.commands.push([5, root.refId, 'svg', convertPropsToSerializable({ innerContent: content })]);\n }\n};\n\nconst hostConfig: AsyncReconcilerConfig = {\n ...commonReconciler,\n\n getRootHostContext: (rootContainer) => {\n const context = rootContainer.context;\n\n if (rootContainer.refId < 0) {\n refId++;\n rootContainer.context.SetRef(refId, rootContainer.component);\n rootContainer.refId = refId;\n }\n\n const existing = ctxMap.get(context);\n if (existing) return existing;\n\n const commands = rootContainer.commands;\n\n const flushCommands = () => {\n const serialized = JSON.stringify(commands);\n commands.length = 0;\n return serialized;\n };\n\n const fireEventByRef = (ind: number, args: any[]) => {\n return callbacksRepo.call(ind, args);\n };\n\n const getObjectRef = (ind: number) => {\n return objectsRepo.getObject(ind);\n };\n\n const getEventAsObjectRef = (ind: number) => {\n return callbacksRepo.getObject(ind);\n };\n\n context.BindCommands(flushCommands, fireEventByRef, getObjectRef, getEventAsObjectRef);\n\n const ctx: AsyncHostContext = {\n context,\n commands,\n refId: rootContainer.refId,\n type: 'native',\n };\n\n ctxMap.set(context, ctx);\n\n return ctx;\n },\n getChildHostContext: (parentCtx, type) => {\n if (type === 'richtext' && parentCtx.type === 'native')\n return {\n type: 'richtext',\n hostContext: parentCtx,\n node: null,\n parent: null,\n root: null,\n };\n\n if (type === 'svg' && parentCtx.type === 'native')\n return {\n type: 'svg',\n hostContext: parentCtx,\n node: null,\n parent: null,\n root: null,\n };\n\n return parentCtx;\n },\n getPublicInstance: (instance) => {\n if (instance.type === 'native') return instance.context.GetRef(instance.refId, instance.commands.length > 0);\n return null;\n },\n\n supportsMutation: true,\n supportsHydration: false,\n supportsPersistence: false,\n supportsMicrotasks: true,\n\n isPrimaryRenderer: true,\n warnsIfNotActing: true,\n\n prepareForCommit: () => null,\n resetAfterCommit: () => {},\n\n clearContainer(container) {\n UnityBridge.clearContainer(container);\n },\n\n createInstance(type, props, rootContainer, ctx, internalHandle) {\n const aProps = getAllowedProps(props, type);\n if (ctx.type === 'native') {\n refId++;\n // ctx.commands.push(['c', { t: type, r: refId, k: stringizePoolKey(props.pool), ...convertPropsToSerializable(aProps) }]);\n ctx.commands.push([0, refId, type, convertPropsToSerializable(aProps), stringizePoolKey(props.pool)]);\n\n if (rootContainer.fiberCache) rootContainer.fiberCache.setObject(refId, internalHandle);\n\n const res = { ...ctx, refId };\n\n if (type === 'richtext') {\n res.subContext = {\n type: 'richtext',\n node: {\n tag: '',\n children: [],\n attributes: aProps,\n },\n root: res,\n hostContext: res,\n parent: null,\n };\n }\n\n if (type === 'svg') {\n res.subContext = {\n type: 'svg',\n node: {\n tag: '',\n children: [],\n attributes: aProps,\n },\n root: res,\n hostContext: res,\n parent: null,\n };\n }\n\n return res;\n }\n\n if (ctx.type === 'richtext' || ctx.type === 'svg') {\n return {\n ...ctx,\n node: {\n tag: type,\n children: [],\n attributes: aProps,\n },\n };\n }\n },\n\n createTextInstance(text, rootContainer, ctx, internalHandle) {\n if (ctx.type === 'native') {\n refId++;\n // ctx.commands.push(['t', { r: refId, c: text }]);\n ctx.commands.push([1, refId, text]);\n\n if (rootContainer.fiberCache) rootContainer.fiberCache.setObject(refId, internalHandle);\n\n return { ...ctx, refId };\n }\n\n if (ctx.type === 'richtext' || ctx.type === 'svg') {\n return {\n ...ctx,\n node: { text },\n };\n }\n },\n\n appendInitialChild(parent, child) {\n if (!child) return;\n if (parent.type === 'native' && parent.subContext) parent = parent.subContext;\n\n if (parent.type === 'native' && child.type === 'native') {\n // parent.commands.push(['a', { p: parent.refId, c: child.refId }]);\n parent.commands.push([2, parent.refId, child.refId]);\n } else if ((parent.type === 'richtext' && child.type === 'richtext') || (parent.type === 'svg' && child.type === 'svg')) {\n if ('children' in parent.node) parent.node.children.push(child.node);\n child.root = parent.root;\n child.parent = parent;\n updateSubContext(child);\n }\n },\n finalizeInitialChildren: () => false,\n commitMount: (instance) => {},\n shouldSetTextContent(type) {\n return textTypes[type];\n },\n\n // -------------------\n // Mutation\n // -------------------\n\n commitUpdate(instance, type, prevProps, nextProps) {\n let updatePayload: Record<string, any> | null = null;\n\n if (typeof prevProps === 'string') {\n // React 18 compatibility\n updatePayload = type as any;\n type = prevProps as any;\n } else {\n // React 19+\n updatePayload = diffProperties(prevProps, nextProps);\n if (!updatePayload) return;\n }\n\n const props = getAllowedProps(updatePayload, type);\n if (instance.type === 'native') {\n // instance.commands.push(['u', { r: instance.refId, t: type, ...convertPropsToSerializable(props) }]);\n instance.commands.push([5, instance.refId, type, convertPropsToSerializable(props)]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n if ('attributes' in instance.node) instance.node.attributes = { ...instance.node.attributes, ...props };\n updateSubContext(instance);\n }\n },\n\n commitTextUpdate(instance, oldText, newText) {\n if (instance.type === 'native') {\n // instance.commands.push(['x', { r: instance.refId, c: newText }]);\n instance.commands.push([6, instance.refId, newText]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n (instance.node as { text: string }).text = newText;\n updateSubContext(instance);\n }\n },\n\n appendChild(parent, child) {\n if (!child) return;\n if (parent.type === 'native' && parent.subContext) parent = parent.subContext;\n\n if (parent.type === 'native' && child.type === 'native') {\n // child.commands.push(['a', { p: parent.refId, c: child.refId }]);\n child.commands.push([2, parent.refId, child.refId]);\n } else if ((parent.type === 'richtext' && child.type === 'richtext') || (parent.type === 'svg' && child.type === 'svg')) {\n if ('children' in parent.node) parent.node.children.push(child.node);\n child.root = parent.root;\n child.parent = parent;\n updateSubContext(child);\n }\n },\n appendChildToContainer(parent, child) {\n if (child.type === 'native')\n // child.commands.push(['a', { p: parent.refId, c: child.refId }]);\n child.commands.push([2, parent.refId, child.refId]);\n },\n insertBefore(parent, child, beforeChild) {\n if (!child) return;\n if (parent.type === 'native' && parent.subContext) parent = parent.subContext;\n\n if (parent.type === 'native' && child.type === 'native' && beforeChild.type === 'native') {\n // child.commands.push(['i', { p: parent.refId, c: child.refId, i: beforeChild.refId }]);\n child.commands.push([4, parent.refId, child.refId, beforeChild.refId]);\n } else if (\n (parent.type === 'richtext' && child.type === 'richtext' && beforeChild.type === 'richtext') ||\n (parent.type === 'svg' && child.type === 'svg' && beforeChild.type === 'svg')\n ) {\n if ('children' in parent.node) {\n const index = parent.node.children.indexOf(beforeChild.node);\n if (index >= 0) parent.node.children.splice(index, 0, child.node);\n else parent.node.children.push(child.node);\n }\n child.root = parent.root;\n child.parent = parent;\n updateSubContext(child);\n }\n },\n insertInContainerBefore(parent, child, beforeChild) {\n if (child.type === 'native' && beforeChild.type === 'native')\n // child.commands.push(['i', { p: parent.refId, c: child.refId, i: beforeChild.refId }]);\n child.commands.push([4, parent.refId, child.refId, beforeChild.refId]);\n },\n removeChild(parent, child) {\n if (!child) return;\n if (parent.type === 'native' && parent.subContext) parent = parent.subContext;\n\n if (parent.type === 'native' && child.type === 'native') {\n // child.commands.push(['r', { p: parent.refId, c: child.refId }]);\n child.commands.push([3, parent.refId, child.refId]);\n } else if ((parent.type === 'richtext' && child.type === 'richtext') || (parent.type === 'svg' && child.type === 'svg')) {\n if ('children' in parent.node) {\n const index = parent.node.children.indexOf(child.node);\n if (index >= 0) parent.node.children.splice(index, 1);\n }\n updateSubContext(parent);\n }\n },\n removeChildFromContainer(parent, child) {\n if (child.type === 'native')\n // child.commands.push(['r', { p: parent.refId, c: child.refId }]);\n child.commands.push([3, parent.refId, child.refId]);\n },\n\n resetTextContent: () => {},\n preparePortalMount: () => {},\n detachDeletedInstance: () => {},\n\n // Required for Suspense\n\n hideInstance: (instance) => {\n if (instance.type === 'native') {\n // instance.commands.push(['h', { r: instance.refId, h: true }]);\n instance.commands.push([7, instance.refId, true]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n instance.node.hidden = true;\n updateSubContext(instance);\n }\n },\n hideTextInstance: (instance) => {\n if (instance.type === 'native') {\n // instance.commands.push(['h', { r: instance.refId, h: true }]);\n instance.commands.push([7, instance.refId, true]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n instance.node.hidden = true;\n updateSubContext(instance);\n }\n },\n unhideInstance: (instance) => {\n if (instance.type === 'native') {\n // instance.commands.push(['h', { r: instance.refId, h: false }]);\n instance.commands.push([7, instance.refId, false]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n instance.node.hidden = false;\n updateSubContext(instance);\n }\n },\n unhideTextInstance: (instance) => {\n if (instance.type === 'native') {\n // instance.commands.push(['h', { r: instance.refId, h: false }]);\n instance.commands.push([7, instance.refId, false]);\n } else if (instance.type === 'richtext' || instance.type === 'svg') {\n instance.node.hidden = false;\n updateSubContext(instance);\n }\n },\n\n // Keep for old versions of React\n ...{\n supportsTestSelectors: false,\n shouldDeprioritizeSubtree: () => false,\n prepareUpdate(instance, type, oldProps, newProps) {\n return diffProperties(oldProps, newProps) as any;\n },\n },\n};\n\nlet asyncReconciler: ReturnType<typeof Reconciler> | null = null;\nexport const getAsyncReconciler = () => (asyncReconciler ??= Reconciler(hostConfig));\n","import Reconciler from 'react-reconciler';\nimport {\n ChildSet,\n FormInstance,\n HostContext,\n HydratableInstance,\n InstanceTag,\n NativeContainerInstance,\n NativeInstance,\n NativeTextInstance,\n NoTimeout,\n Props,\n PublicInstance,\n SuspenseInstance,\n TimeoutHandle,\n TransitionStatus,\n} from '../../models/renderer';\nimport { commonReconciler, getAllowedProps, hideClass, stringizePoolKey, textTypes } from '../constants';\nimport { diffProperties } from '../diffing';\n\ntype Config = Reconciler.HostConfig<\n InstanceTag,\n Props,\n NativeContainerInstance,\n NativeInstance,\n NativeTextInstance,\n SuspenseInstance,\n HydratableInstance,\n FormInstance,\n PublicInstance,\n HostContext,\n ChildSet,\n TimeoutHandle,\n NoTimeout,\n TransitionStatus\n>;\n\nconst hostContext = {};\nconst childContext = {};\n\nconst hostConfig: Config = {\n ...commonReconciler,\n\n getRootHostContext: () => hostContext,\n getChildHostContext: () => childContext,\n getPublicInstance: (instance: NativeInstance | NativeTextInstance) => instance,\n\n supportsMutation: true,\n supportsHydration: false,\n supportsPersistence: false,\n supportsMicrotasks: true,\n\n isPrimaryRenderer: true,\n warnsIfNotActing: true,\n\n prepareForCommit: () => null,\n resetAfterCommit: () => {},\n clearContainer: (container) => UnityBridge.clearContainer(container),\n\n createInstance(type, props, rootContainerInstance) {\n const aProps = getAllowedProps(props, type);\n const children = aProps.children || null;\n delete aProps.children;\n return UnityBridge.createElement(props.tag || type, children, rootContainerInstance, aProps, stringizePoolKey(props.pool));\n },\n\n createTextInstance(text, rootContainerInstance) {\n return UnityBridge.createText(text, rootContainerInstance);\n },\n\n appendInitialChild(parent, child) {\n UnityBridge.appendChild(parent, child);\n },\n finalizeInitialChildren: () => false,\n commitMount: () => {},\n shouldSetTextContent(type) {\n return textTypes[type];\n },\n\n // -------------------\n // Mutation\n // -------------------\n\n commitUpdate(instance, type, prevProps, nextProps) {\n let updatePayload: Record<string, any> | null = null;\n\n if (typeof prevProps === 'string') {\n // React 18 compatibility\n updatePayload = type as any;\n type = prevProps as any;\n } else {\n // React 19+\n updatePayload = diffProperties(prevProps, nextProps);\n if (!updatePayload) return;\n }\n\n UnityBridge.applyUpdate(instance, getAllowedProps(updatePayload, type), type);\n },\n\n commitTextUpdate(textInstance, oldText, newText) {\n UnityBridge.setText(textInstance, newText);\n },\n\n appendChild(parent, child) {\n return UnityBridge.appendChild(parent, child);\n },\n appendChildToContainer(parent, child) {\n return UnityBridge.appendChildToContainer(parent, child);\n },\n insertBefore(parent, child, beforeChild) {\n return UnityBridge.insertBefore(parent, child, beforeChild);\n },\n insertInContainerBefore(parent, child, beforeChild) {\n return UnityBridge.insertBefore(parent, child, beforeChild);\n },\n removeChild(parent, child) {\n return UnityBridge.removeChild(parent, child);\n },\n removeChildFromContainer(parent, child) {\n return UnityBridge.removeChild(parent, child);\n },\n\n resetTextContent: () => {},\n preparePortalMount: () => {},\n detachDeletedInstance: () => {},\n\n // Required for Suspense\n\n hideInstance: (instance) => {\n instance.ClassList.Add(hideClass);\n },\n hideTextInstance: (instance) => {\n instance.ClassList.Add(hideClass);\n },\n unhideInstance: (instance) => {\n instance.ClassList.Remove(hideClass);\n },\n unhideTextInstance: (instance) => {\n instance.ClassList.Remove(hideClass);\n },\n\n // Keep for old versions of React\n ...{\n supportsTestSelectors: false,\n shouldDeprioritizeSubtree: () => false,\n prepareUpdate(instance, type, oldProps, newProps) {\n return diffProperties(oldProps, newProps) as any;\n },\n },\n};\n\nlet syncReconciler: ReturnType<typeof Reconciler> | null = null;\nexport const getSyncReconciler = () => (syncReconciler ??= Reconciler(hostConfig));\n","import * as React from 'react';\nimport { createElement } from 'react';\nimport Reconciler from 'react-reconciler';\nimport { ConcurrentRoot, LegacyRoot } from 'react-reconciler/constants';\nimport { NativeContainerInstance } from '../models/renderer';\nimport { version } from '../version';\nimport { DefaultView } from '../views/default-view';\nimport { ObjectsRepo } from './async/objects';\nimport { getAsyncReconciler } from './async/reconciler';\nimport { AsyncContainerInstance, AsyncNativeInstance } from './async/types';\nimport { isDevelopment } from './constants';\nimport { getSyncReconciler } from './sync/reconciler';\n\nconst containerMap = new Map<NativeContainerInstance | number, { hostRoot: any; asyncJobCallback: () => void }>();\n\ninterface RenderOptions {\n /* Unity element to render React on. It is the element `ReactUnity` component is attached to by default. */\n hostContainer?: NativeContainerInstance;\n\n /* Skips rendering some useful wrappers like `ErrorBoundary` and `GlobalsProvider`. */\n disableHelpers?: boolean;\n\n /* Allows rendering in `legacy` mode if needed. The default rendering mode is `concurrent`. */\n mode?: 'legacy' | 'concurrent';\n\n /**\n Render using the sync reconciler instead of the batch rendering. It is not recommended to change this value.\n Changing this will disable some features like inline rich-text and svg rendering, although it may improve performance for Jint.\n */\n disableBatchRendering?: boolean;\n}\n\nlet renderCount = 0;\n\nexport function render(element: React.ReactNode, options: RenderOptions = {}) {\n renderCount++;\n const hostContainer = options?.hostContainer || HostContainer;\n const cacheKey = hostContainer.InstanceId >= 0 ? hostContainer.InstanceId : hostContainer;\n\n const isAsync = !options?.disableBatchRendering;\n let { hostRoot, asyncJobCallback } = containerMap.get(cacheKey) || {};\n\n let findFiberByHostInstance: any = () => null;\n\n if (!hostRoot) {\n const mode = options?.mode === 'legacy' ? LegacyRoot : ConcurrentRoot;\n\n if (isAsync) {\n const asyncReconciler = getAsyncReconciler();\n const fiberCache = isDevelopment ? new ObjectsRepo() : null;\n\n if (isDevelopment) {\n findFiberByHostInstance = (instance: AsyncNativeInstance) => (!instance ? null : fiberCache.getObject(instance.refId));\n }\n\n let scheduled = false;\n const commands = [];\n commands.push = (...args) => {\n if (!scheduled) {\n scheduled = true;\n Promise.resolve().then(() => {\n asyncJobCallback();\n scheduled = false;\n });\n }\n return Array.prototype.push.apply(commands, args);\n };\n\n const hostContainerInstance: AsyncContainerInstance = {\n type: 'native',\n commands,\n component: hostContainer,\n context: hostContainer.Context,\n refId: hostContainer.RefId,\n fiberCache,\n };\n asyncJobCallback = () => {\n if (!commands.length) return;\n\n const serialized = JSON.stringify(commands);\n commands.length = 0;\n hostContainerInstance.context.FlushCommands(serialized);\n };\n\n // react-reconciler 0.33 dropped the trailing `transitionCallbacks` argument.\n hostRoot = asyncReconciler.createContainer(\n hostContainerInstance,\n mode,\n null,\n false,\n undefined,\n '',\n (error) => console.error(error),\n () => {},\n () => {},\n () => {},\n );\n } else {\n hostRoot = getSyncReconciler().createContainer(\n hostContainer,\n mode,\n null,\n false,\n undefined,\n '',\n (error) => console.error(error),\n () => {},\n () => {},\n () => {},\n );\n }\n containerMap.set(cacheKey, { hostRoot, asyncJobCallback });\n }\n\n const shouldWrapWithHelpers = !options?.disableHelpers;\n\n if (shouldWrapWithHelpers) {\n const viewWrapperProps: React.ComponentProps<typeof DefaultView> = {\n withHelpers: !options?.disableHelpers,\n renderCount,\n };\n element = createElement(DefaultView, viewWrapperProps, element);\n }\n\n const rc = isAsync ? getAsyncReconciler() : getSyncReconciler();\n\n // Before the first commit, and once per reconciler. React Refresh only re-renders roots it saw\n // mount, and it learns about them from the devtools hook's onCommitFiberRoot - so a renderer\n // that registers after committing is invisible to it and hot updates apply but never repaint.\n if (!injectedReconcilers.has(rc)) {\n injectedReconcilers.add(rc);\n rc.injectIntoDevTools({\n bundleType: isDevelopment ? 1 : 0,\n version,\n rendererPackageName: '@reactunity/renderer',\n rendererConfig: { isAsync },\n findFiberByHostInstance,\n });\n }\n\n if (\n 'updateContainerSync' in rc &&\n typeof rc.updateContainerSync === 'function' &&\n 'flushSyncWork' in rc &&\n typeof rc.flushSyncWork === 'function'\n ) {\n rc.updateContainerSync(element as any, hostRoot, null, () => {});\n rc.flushSyncWork();\n } else {\n rc.updateContainer(element as any, hostRoot, null, () => {});\n }\n\n return rc;\n}\n\nconst injectedReconcilers = new WeakSet<object>();\n\n/**\n * @deprecated Instead, import `render` directly from `@reactunity/renderer`\n */\nexport const Renderer = {\n render(element: React.ReactNode, options: RenderOptions = {}) {\n return render(element, options);\n },\n};\n\nexport const batchedUpdates: ReturnType<typeof Reconciler>['batchedUpdates'] = (...args) => getAsyncReconciler().batchedUpdates(...args);\nexport const flushSync: ReturnType<typeof Reconciler>['flushSync'] = (...args) => getAsyncReconciler().flushSync(...(args as []));\n","export * from './src/helpers/dictionary-watcher';\nexport * from './src/helpers/hooks/use-globals';\nexport * from './src/helpers/hooks/use-reactive-value';\nexport * from './src/helpers/icons';\nexport * from './src/models/environment';\nexport * from './src/models/generated';\nexport * from './src/models/properties';\nexport * from './src/models/renderer';\nexport {\n batchedUpdates,\n batchedUpdates as unstable_batchedUpdates,\n flushSync,\n Renderer,\n render,\n} from './src/renderer/renderer';\n\nimport { batchedUpdates, flushSync, render } from './src/renderer/renderer';\n\nconst ReactUnityRenderer = {\n batchedUpdates,\n flushSync,\n render,\n unstable_batchedUpdates: batchedUpdates,\n};\n\nexport default ReactUnityRenderer;\n"],"mappings":";;;;;;;;;;;;;;AAyEA,SAAgB,wBACd,YACA,aAC+B;CAC/B,MAAM,MAAM,cAA0B,KAAA,CAAS;CAC/C,IAAI,aAAa,IAAI,cAAc;CAEnC,MAAM,oBAAoB,QAAoB,YAAsB;EAClE,IAAI,WAAA,eAAA,CAAA,GAA4B,UAAW;EAE3C,OAAO;GACL,YAAY,kBAA8B;IACxC,WAAA,eAAA,CAAA,GAAgB,UAAW;IAE3B,MAAM,SAAA,eAAA,QAAA,eAAA,KAAA,IAAA,KAAA,IAAS,WAAY,kBAAkB;KAC3C,MAAM,OAAO;KACb,WAAA,eAAA,CAAA,GAAgB,UAAW;KAE3B,IAAI,CAAC,QAAQ,cAAc;UACtB;MACH,MAAM,KAAK,OAAO,OAAO;MACzB,KAAK,IAAI,QAAQ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KAAA,IAAA,KAAA,IAF2B,QAAS,iBAOtC,UAAU,cAAc,aAAa;EAHnC,aAAa,EAAA,YAAA,QAAA,YAAA,KAAA,IAAA,KAAA,IAAC,QAAS;EACvB;CAEkD,GAAG,OAAO;CAGhE,MAAM,KAAK,UAAU,mBAAmB,IAAI,kBAAkB;CAK9D,IAAI,CAAC,oBAAoB,IAAI,EAAE,GAAG;EAChC,oBAAoB,IAAI,EAAE;EAC1B,GAAG,mBAAmB;GACpB,YAAY,gBAAgB,IAAI;GAChC;GACA,qBAAqB;GACrB,gBAAgB,EAAE,QAAQ;GAC1B;EACF,CAAC;CACH;CAEA,IACE,yBAAyB,MACzB,OAAO,GAAG,wBAAwB,cAClC,mBAAmB,MACnB,OAAO,GAAG,kBAAkB,YAC5B;EACA,GAAG,oBAAoB,SAAgB,UAAU,YAAY,CAAC,CAAC;EAC/D,GAAG,cAAc;CACnB,OACE,GAAG,gBAAgB,SAAgB,UAAU,YAAY,CAAC,CAAC;CAG7D,OAAO;AACT;AAEA,MAAM,sCAAsB,IAAI,QAAgB;;;;AAKhD,MAAa,WAAW,EACtB,OAAO,SAA0B,UAAyB,CAAC,GAAG;CAC5D,OAAO,OAAO,SAAS,OAAO;AAChC,EACF;AAEA,MAAa,kBAAmE,GAAG,SAAS,mBAAmB,CAAC,CAAC,eAAe,GAAG,IAAI;AACvI,MAAa,aAAyD,GAAG,SAAS,mBAAmB,CAAC,CAAC,UAAU,GAAI,IAAW;;;ACrJhI,MAAM,qBAAqB;CACzB;CACA;CACA;CACA,yBAAyB;AAC3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactunity/renderer",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "React renderer for Unity3D",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"rimraf": "^6.1.3",
|
|
49
49
|
"tsdown": "^0.22.14",
|
|
50
50
|
"typescript": "^7.0.2",
|
|
51
|
-
"@reactunity/scripts": "^0.23.
|
|
51
|
+
"@reactunity/scripts": "^0.23.1"
|
|
52
52
|
},
|
|
53
53
|
"bugs": {
|
|
54
54
|
"url": "https://github.com/ReactUnity/core/issues"
|