Skip to content

feature/rsc-test #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions packages/nreact/src/block.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/asset-wrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { BaseContentBlock, Block } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/asset.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { BaseContentBlock, Block } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/audio.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { AudioBlock } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import CheckIcon from '../icons/check'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/eoi.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { Block } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/file.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { FileBlock } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/google-drive.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { GoogleDriveBlock } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/graceful-image.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { Img, ImgProps } from 'react-image'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/lazy-image.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { normalizeUrl } from '@texonom/nutils'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/lite-youtube-embed.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

const qs = (params: Record<string, string>) => {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/page-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { Block, CalloutBlock, PageBlock } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/page-title.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { Block, Decoration } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/search-dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'
import { getBlockParentPage, getBlockTitle } from '@texonom/nutils'

Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/sync-pointer-block.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { NotionBlockRenderer } from '../renderer'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/components/text.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { parsePageId } from '@texonom/nutils'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/context.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { defaultMapImageUrl, defaultMapPageUrl } from '@texonom/nutils'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/check.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgCheck(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/chevron-down-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

export const ChevronDownIcon = props => {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/clear-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

export const ClearIcon = props => {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/collection-view-board.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgCollectionViewBoard(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/collection-view-calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgCollectionViewCalendar(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/collection-view-gallery.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgCollectionViewGallery(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/collection-view-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { CollectionViewType } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/collection-view-list.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgCollectionViewList(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/collection-view-table.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgCollectionViewTable(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/copy.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgCopy(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/default-page-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

export const DefaultPageIcon = props => {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/empty-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

export const EmptyIcon = props => {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/file-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

export const FileIcon = props => {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/link-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

export const LinkIcon = props => {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/loading-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

export const LoadingIcon = props => {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/property-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { PropertyType } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/search-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

export const SearchIcon = props => {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeCheckbox(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-date.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeDate(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-email.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeEmail(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-file.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeFile(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-formula.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeFormula(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-github.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeGitHub(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-multi-select.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeMultiSelect(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-number.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeNumber(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-person-2.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypePerson2(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-person.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypePerson(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-phone-number.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypePhoneNumber(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-relation.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeRelation(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-select.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeSelect(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-text.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeText(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-timestamp.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeTimestamp(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-title.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeTitle(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/icons/type-url.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

function SvgTypeUrl(props: React.SVGProps<SVGSVGElement>) {
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
export { NotionRenderer } from './renderer'

export * from './block'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/next.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import isEqual from 'react-fast-compare'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/renderer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import mediumZoom from '@fisch0920/medium-zoom'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/third-party/collection-card.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { ImageBlock } from '@texonom/ntypes'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { CollectionPropertySchema } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/third-party/collection-group.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { CollectionGroupProps } from '../types'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/third-party/collection-row.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { PageBlock } from '@texonom/ntypes'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { PageBlock } from '@texonom/ntypes'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { PageBlock } from '@texonom/ntypes'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/third-party/collection-view-list.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { PageBlock } from '@texonom/ntypes'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { useNotionContext } from '../context'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/third-party/collection-view.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { CollectionViewProps } from '../types'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/third-party/equation.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import Katex from '@matejmazur/react-katex'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/third-party/modal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import Modal from 'react-modal'

export { Modal }
1 change: 1 addition & 0 deletions packages/nreact/src/third-party/pdf.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import { Document, Page, pdfjs } from 'react-pdf'
Expand Down
1 change: 1 addition & 0 deletions packages/nreact/src/third-party/property.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use server'
import React from 'react'

import format from 'date-fns/format/index.js'
Expand Down
Loading
Loading