Lime Web Components API Documentation - v6.24.0
    Preparing search index...

    Interface ContextMapAlpha

    The catalog of context entries available to consumers.

    A context entry is ambient state available to consumers anywhere in the component tree, the current user, the object on screen, the action being filtered. Each key here is a context id; the value type is what ContextRegistry.get(key) (or any other lookup such as ContextScope.get) returns for it.

    Plugins add their own keys by extending this interface:

    declare module '@limetech/lime-web-components' {
    interface ContextMap {
    'pluginx.pipelinePosition': PipelinePosition;
    }
    }

    Use namespaced keys (mypkg.foo, pluginx.bar) for plugin-added entries. Two plugins declaring the same key with different value types will collide at compile time. The built-in keys user, limeobject, action, coworker, and limeobjectFormData are first-party and intentionally use short, unnamespaced ids. The namespacing convention only applies to non-built-in keys.

    interface ContextMap {
        action: Action;
        context: LimeWebComponentContext;
        coworker: LimeObject;
        limeobject: LimeObject;
        limeobjectFormData: Record<string, unknown>;
        platform: LimeWebComponentPlatform;
        user: User;
    }
    Index

    Properties

    action: Action

    The Action currently in context.

    The component's LimeWebComponentContext, describing where it sits in the application. Subtree-scoped: descendants resolve the nearest enclosing value.

    coworker: LimeObject

    The current coworker, the business-side LimeObject row linked from User.coworker, distinct from the authentication-side User. Filter primitives substitute this value for $me placeholders.

    App-global in scope, one per session, supplied by the host. The provider returns undefined until the value has loaded; reads during that window are fail-closed.

    limeobject: LimeObject

    The LimeObject currently in context.

    limeobjectFormData: Record<string, unknown>

    The in-memory, possibly-edited version of limeobject, what is currently in the user's form state, distinct from the persisted row supplied via limeobject. Used by is-saved-shaped primitives to determine whether the user has unsaved changes by comparing field-by-field against limeobject.

    Surface-scoped: the form component contributes the value via provide. Reads outside a form surface fail closed (undefined).

    The application's LimeWebComponentPlatform. App-global in scope, one per session.

    user: User

    The currently authenticated User.