Skip to content

@vtj


@vtj / renderer / Provider

Class: Provider

Extends

  • Base

Constructors

new Provider()

new Provider(options): Provider

Parameters

options

ProviderOptions

Returns

Provider

Overrides

Base.constructor

Defined in

packages/renderer/types/provider/provider.d.ts:60

Properties

adapter

adapter: ProvideAdapter

Defined in

packages/renderer/types/provider/provider.d.ts:48


apis

apis: Record<string, (...args) => Promise<any>>

Defined in

packages/renderer/types/provider/provider.d.ts:49


components

components: Record<string, any>

Defined in

packages/renderer/types/provider/provider.d.ts:55


dependencies

dependencies: Record<string, () => Promise<any>>

Defined in

packages/renderer/types/provider/provider.d.ts:50


globals

globals: Record<string, any>

Defined in

packages/renderer/types/provider/provider.d.ts:46


isReady

isReady: boolean

Inherited from

Base.isReady

Defined in

packages/core/types/models/base.d.ts:3


library

library: Record<string, any>

Defined in

packages/renderer/types/provider/provider.d.ts:52


listeners

protected listeners: () => void[]

Returns

void

Inherited from

Base.listeners

Defined in

packages/core/types/models/base.d.ts:2


materials

materials: Record<string, () => Promise<any>>

Defined in

packages/renderer/types/provider/provider.d.ts:51


mode

mode: ContextMode

Defined in

packages/renderer/types/provider/provider.d.ts:45


modules

modules: Record<string, () => Promise<any>>

Defined in

packages/renderer/types/provider/provider.d.ts:47


nodeEnv

nodeEnv: NodeEnv

Defined in

packages/renderer/types/provider/provider.d.ts:56


options

options: ProviderOptions

Defined in

packages/renderer/types/provider/provider.d.ts:44


project

project: null | ProjectSchema

Defined in

packages/renderer/types/provider/provider.d.ts:54


service

service: Service

Defined in

packages/renderer/types/provider/provider.d.ts:53

Methods

createDslRenderer()

createDslRenderer(dsl, opts?): object

Parameters

dsl

BlockSchema

opts?

Partial<CreateRendererOptions>

Returns

object

context

context: Context

renderer

renderer: any

Defined in

packages/renderer/types/provider/provider.d.ts:72


createMock()

createMock(func): (...args) => Promise<any>

Parameters

func

(...args) => any

Returns

Function

Parameters
args

...any[]

Returns

Promise<any>

Defined in

packages/renderer/types/provider/provider.d.ts:61


definePluginComponent()

definePluginComponent(from): any

Parameters

from

NodeFromPlugin

Returns

any

Defined in

packages/renderer/types/provider/provider.d.ts:78


defineUrlSchemaComponent()

defineUrlSchemaComponent(url, name?): any

Parameters

url

string

name?

string

Returns

any

Defined in

packages/renderer/types/provider/provider.d.ts:77


getDsl()

getDsl(id): Promise<null | BlockSchema>

Parameters

id

string

Returns

Promise<null | BlockSchema>

Defined in

packages/renderer/types/provider/provider.d.ts:70


getDslByUrl()

getDslByUrl(url): Promise<null | BlockSchema>

Parameters

url

string

Returns

Promise<null | BlockSchema>

Defined in

packages/renderer/types/provider/provider.d.ts:71


getFile()

getFile(id): null | PageFile | BlockFile

Parameters

id

string

Returns

null | PageFile | BlockFile

Defined in

packages/renderer/types/provider/provider.d.ts:67


getHomepage()

getHomepage(): null | PageFile

Returns

null | PageFile

Defined in

packages/renderer/types/provider/provider.d.ts:69


getPage()

getPage(id): null | PageFile

Parameters

id

string

Returns

null | PageFile

Defined in

packages/renderer/types/provider/provider.d.ts:68


getRenderComponent()

getRenderComponent(id, output?): Promise<any>

Parameters

id

string

output?

(file) => void

Returns

Promise<any>

Defined in

packages/renderer/types/provider/provider.d.ts:76


install()

install(app): void

Parameters

app

App<any>

Returns

void

Defined in

packages/renderer/types/provider/provider.d.ts:66


load()

load(project): Promise<void>

Parameters

project

ProjectSchema

Returns

Promise<void>

Defined in

packages/renderer/types/provider/provider.d.ts:62


ready()

ready(callback): void

Parameters

callback

() => void

Returns

void

Inherited from

Base.ready

Defined in

packages/core/types/models/base.d.ts:5


resetReady()

resetReady(): void

Returns

void

Inherited from

Base.resetReady

Defined in

packages/core/types/models/base.d.ts:6


triggerReady()

protected triggerReady(): void

Returns

void

Inherited from

Base.triggerReady

Defined in

packages/core/types/models/base.d.ts:4

Released under the MIT License.