Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions packages/redact/src/dom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@ export function preinit(_href: string, _opts?: any): void {}
export function preloadModule(_href: string, _opts?: any): void {}
export function preinitModule(_href: string, _opts?: any): void {}

export const __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = {
d: {
f() {},
r() {},
D() {},
C() {},
L() {},
m() {},
X() {},
S() {},
M() {},
},
p: 0,
findDOMNode: null,
}

export const version = '19.2.3'

// Required by React's default export consumers
Expand All @@ -29,5 +45,6 @@ export default {
preinit,
preloadModule,
preinitModule,
__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
version: '19.2.3',
}
1 change: 1 addition & 0 deletions tests/public-exports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ describe('public API surface', () => {
it('@tanstack/redact/dom', () => {
expect(surface(redactDom)).toMatchInlineSnapshot(`
[
"__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
"createPortal",
"default",
"flushSync",
Expand Down