netsuite-uif-spa-reference
БесплатноЗапускает вложенные скриптыНе проверенUse when building, modifying, or debugging NetSuite UIF SPA components. Provides API/type lookup for `@uif-js/core` and `@uif-js/component` (constructors…
от oracle★ 388 звёзд на GitHubОб этом скилле
NetSuite UIF Reference
Complete type definitions for @uif-js/core and @uif-js/component, the two packages that power NetSuite SPA (single-page application) user interfaces.
When to Use
- Building or modifying a UIF SPA component (JSX files)
- Looking up the exact API for a UIF class (Date, ArrayDataSource, Router, etc.)
- Checking available props/methods on UIF components (DataGrid, StackPanel, Button, etc.)
- Debugging runtime errors from UIF framework code
- Verifying enum values (for example,
Button.Hierarchy,GapSize,DataGrid.ColumnType) - Understanding UIF Date vs. Native Date behavior
Reference Data
The type definitions are located in the references/ subdirectory.
| File | Package | Contents |
|---|---|---|
references/core.d.ts |
@uif-js/core |
Core framework: Date, ArrayDataSource, Ajax, Router, useState, useEffect, Context, etc. |
references/component.d.ts |
@uif-js/component |
UI components: DataGrid, StackPanel, Button, Text, Badge, Heading, Card, ContentPanel, Modal, etc. |
Lookup Instructions
To find information about a specific class or component:
Search by class name:
Search for `class Date` in the local `references/` directory.Search by method name:
Search for `lastOfMonth`, `firstOfMonth`, or `addDay` in `references/core.d.ts`.Search by enum:
Search for `enum GapSize`, `enum Hierarchy`, or `enum Type` in `references/component.d.ts`.Read a section: Once you find the line number, open that part of the file to view the full definition.
Key Classes Quick Reference
@uif-js/core
| Class | Purpose | Key Members |
|---|---|---|
Date |
UIF date wrapper | .year, .month (0-indexed), .day, .firstOfMonth(), .lastOfMonth(), .addDay(), .addMonth(), .stripTime(), .toDate() (→ native), Date.now(), Date.today() |
ArrayDataSource |
Data provider for grids | ArrayDataSource<T> – constructor takes T[] |
Ajax |
HTTP client | Ajax.post(), Ajax.get(), Ajax.DataType, Ajax.ResponseType |
Router |
SPA routing | Router.Routes, Router.Route, Router.Hash, Router.Path |
useState |
State hook | useState(initialValue) → [value, setter] |
useEffect |
Effect hook | useEffect(callback, deps) |
useContext |
Context hook | useContext(contextName: string) – takes a string, for example, ContextType.ROUTER_LOCATION |
Context |
Context provider | Context.Provider, Context.Consumer |
ContextType |
Context type string constants | ContextType.ROUTER_LOCATION, ContextType.ROUTER_NAVIGATION, ContextType.ROUTER_ROUTE, ContextType.I18N, ContextType.PREFERENCES, ContextType.FOCUS_MANAGER, ContextType.STORE – full list: 31 values; search for ContextType in core.d.ts |
useCallback |
Memoized callback | useCallback(fn, deps) – prevents unnecessary re-renders |
useMemo |
Memoized value | useMemo(() => compute(), deps) |
useRef |
Mutable ref container | useRef(initialValue) – .current persists across renders |
Translation |
i18n support | Translation.get('key') for localized strings |
Store |
Redux-like state container | Store.create({ reducer, initial }); factory; Store.Provider – wrap the tree in JSX; useSelector(fn) – select slice; useDispatch() – dispatch actions |
Reducer |
Creates typed reducers | Reducer.create(handlers); action handler map; Reducer.combine([{path, reduce}]) – combine reducers (takes array, not plain object) |
useDispatch |
Dispatch hook | var dispatch = useDispatch(); dispatches Store actions; requires Store.Provider ancestor |
useSelector |
State selector hook | var value = useSelector(function(state) { return state.data; }) – selects state slice from Store |
CancellationTokenSource |
Async operation cancellation | new CancellationTokenSource() → var token = source.token (pass to async fn), source.cancel() (call in useEffect cleanup) |
CancellationToken |
Cancellation check | token.cancelled; check before updating state in async callbacks |
TreeDataSource |
Hierarchical grid/tree data | new TreeDataSource({ data, childAccessor: fn }); fn receives item, returns children array (or pass string property name). Use with DataGrid.ColumnType.TREE or TreeView |
LazyDataSource |
On-demand data loading | new LazyDataSource(() => fetch().then(data => new ArrayDataSource(data))) – wraps any async data load. .load() triggers load; .loaded checks status. Use with DataGrid paging for server-side pagination |
ImmutableArray |
Immutable array helpers | ImmutableArray.push(arr, item), ImmutableArray.remove(arr, item), ImmutableArray.set(arr, index, item), ImmutableArray.filter(arr, fn), ImmutableArray.EMPTY; all return new arrays |
ImmutableObject |
Immutable object helpers | ImmutableObject.set(obj, 'key', value), `ImmutableObject.merge(o |
Установить netsuite-uif-spa-reference в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл netsuite-uif-spa-reference?
Use when building, modifying, or debugging NetSuite UIF SPA components. Provides API/type lookup for `@uif-js/core` and `@uif-js/component` (constructors, methods, props, enums, hooks, and component options).
Как установить скилл netsuite-uif-spa-reference?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл netsuite-uif-spa-reference запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic