Bundle everything with rolldown

This commit is contained in:
Fedor Indutny
2026-03-30 12:42:37 -07:00
committed by GitHub
parent 8c06ad52ab
commit a27f0ad3e1
2317 changed files with 22723 additions and 63514 deletions

View File

@@ -1,7 +1,7 @@
// Copyright 2025 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import assert from 'node:assert/strict';
import { getEmojifyData } from '../../../components/fun/data/emojis.std.js';
import { getEmojifyData } from '../../../components/fun/data/emojis.std.ts';
describe('getEmojifyData', () => {
function check(text: string, emojiCount: number, isEmojiOnlyText: boolean) {

View File

@@ -6,7 +6,7 @@ import {
_getSegmentSize,
_SEGMENT_SIZE_BUCKETS,
type _SegmentRange,
} from '../../../components/fun/data/segments.std.js';
} from '../../../components/fun/data/segments.std.ts';
const SMALLEST_BUCKET = Math.min(..._SEGMENT_SIZE_BUCKETS);

View File

@@ -4,12 +4,12 @@
import { assert } from 'chai';
import * as sinon from 'sinon';
import { v4 as uuid } from 'uuid';
import { RowType } from '../../../components/ConversationList.dom.js';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.dom.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.js';
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper.dom.js';
import { RowType } from '../../../components/ConversationList.dom.tsx';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.dom.tsx';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.ts';
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper.dom.tsx';
import { LeftPaneArchiveHelper } from '../../../components/leftPane/LeftPaneArchiveHelper.dom.js';
import { LeftPaneArchiveHelper } from '../../../components/leftPane/LeftPaneArchiveHelper.dom.tsx';
describe('LeftPaneArchiveHelper', () => {
let sandbox: sinon.SinonSandbox;

View File

@@ -7,11 +7,11 @@ import lodash from 'lodash';
import {
RowType,
_testHeaderText,
} from '../../../components/ConversationList.dom.js';
import { ContactCheckboxDisabledReason } from '../../../components/conversationList/ContactCheckbox.dom.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.js';
} from '../../../components/ConversationList.dom.tsx';
import { ContactCheckboxDisabledReason } from '../../../components/conversationList/ContactCheckbox.dom.tsx';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.ts';
import { LeftPaneChooseGroupMembersHelper } from '../../../components/leftPane/LeftPaneChooseGroupMembersHelper.dom.js';
import { LeftPaneChooseGroupMembersHelper } from '../../../components/leftPane/LeftPaneChooseGroupMembersHelper.dom.tsx';
const { times } = lodash;

View File

@@ -6,14 +6,14 @@ import * as sinon from 'sinon';
import {
RowType,
_testHeaderText,
} from '../../../components/ConversationList.dom.js';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.dom.js';
} from '../../../components/ConversationList.dom.tsx';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.dom.tsx';
import {
getDefaultConversation,
getDefaultGroupListItem,
} from '../../../test-helpers/getDefaultConversation.std.js';
} from '../../../test-helpers/getDefaultConversation.std.ts';
import { LeftPaneComposeHelper } from '../../../components/leftPane/LeftPaneComposeHelper.dom.js';
import { LeftPaneComposeHelper } from '../../../components/leftPane/LeftPaneComposeHelper.dom.tsx';
describe('LeftPaneComposeHelper', () => {
let sinonSandbox: sinon.SinonSandbox;

View File

@@ -6,12 +6,12 @@ import * as sinon from 'sinon';
import {
RowType,
_testHeaderText,
} from '../../../components/ConversationList.dom.js';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.dom.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.js';
} from '../../../components/ConversationList.dom.tsx';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.dom.tsx';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.ts';
import type { LeftPaneInboxPropsType } from '../../../components/leftPane/LeftPaneInboxHelper.dom.js';
import { LeftPaneInboxHelper } from '../../../components/leftPane/LeftPaneInboxHelper.dom.js';
import type { LeftPaneInboxPropsType } from '../../../components/leftPane/LeftPaneInboxHelper.dom.tsx';
import { LeftPaneInboxHelper } from '../../../components/leftPane/LeftPaneInboxHelper.dom.tsx';
describe('LeftPaneInboxHelper', () => {
const defaultProps: LeftPaneInboxPropsType = {

View File

@@ -7,10 +7,10 @@ import { v4 as uuid } from 'uuid';
import {
RowType,
_testHeaderText,
} from '../../../components/ConversationList.dom.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.js';
} from '../../../components/ConversationList.dom.tsx';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.ts';
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper.dom.js';
import { LeftPaneSearchHelper } from '../../../components/leftPane/LeftPaneSearchHelper.dom.tsx';
const baseSearchHelperArgs = {
conversationResults: { isLoading: false, results: [] },

View File

@@ -6,11 +6,11 @@ import * as sinon from 'sinon';
import {
RowType,
_testHeaderText,
} from '../../../components/ConversationList.dom.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.js';
import { DurationInSeconds } from '../../../util/durations/index.std.js';
} from '../../../components/ConversationList.dom.tsx';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.ts';
import { DurationInSeconds } from '../../../util/durations/index.std.ts';
import { LeftPaneSetGroupMetadataHelper } from '../../../components/leftPane/LeftPaneSetGroupMetadataHelper.dom.js';
import { LeftPaneSetGroupMetadataHelper } from '../../../components/leftPane/LeftPaneSetGroupMetadataHelper.dom.tsx';
function getComposeState() {
return {

View File

@@ -2,11 +2,11 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { assert } from 'chai';
import type { ToFindType } from '../../../components/leftPane/LeftPaneHelper.dom.js';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.dom.js';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.js';
import type { ToFindType } from '../../../components/leftPane/LeftPaneHelper.dom.tsx';
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper.dom.tsx';
import { getDefaultConversation } from '../../../test-helpers/getDefaultConversation.std.ts';
import { getConversationInDirection } from '../../../components/leftPane/getConversationInDirection.dom.js';
import { getConversationInDirection } from '../../../components/leftPane/getConversationInDirection.dom.ts';
describe('getConversationInDirection', () => {
const fakeConversation = (markedUnread = false) =>

View File

@@ -4,10 +4,10 @@
import { assert } from 'chai';
import lodash from 'lodash';
import { IMAGE_JPEG } from '../../../types/MIME.std.js';
import { groupMediaItemsByDate } from '../../../components/conversation/media-gallery/groupMediaItemsByDate.std.js';
import type { MediaItemType } from '../../../types/MediaItem.std.js';
import { fakeAttachment } from '../../../test-helpers/fakeAttachment.std.js';
import { IMAGE_JPEG } from '../../../types/MIME.std.ts';
import { groupMediaItemsByDate } from '../../../components/conversation/media-gallery/groupMediaItemsByDate.std.ts';
import type { MediaItemType } from '../../../types/MediaItem.std.ts';
import { fakeAttachment } from '../../../test-helpers/fakeAttachment.std.ts';
const { shuffle } = lodash;