{"id":"ui--yuiAuthoredState","name":"yuiAuthoredState","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiAuthoredState","description":"A yui authored state record carrying id, typeName, value, source, local, and related state.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"id","kind":"field","type":"text","description":"Stores id as text.","signature":"text id","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"typeName","kind":"field","type":"text","description":"Stores type name as text.","signature":"text typeName","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"value","kind":"field","type":"yuiAuthoredValue","description":"Stores value as yuiAuthoredValue.","signature":"yuiAuthoredValue value","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"source","kind":"field","type":"text","description":"Stores source as text.","signature":"text source","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"local","kind":"field","type":"bool","description":"Stores local as bool.","signature":"bool local","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"revision","kind":"field","type":"int","description":"Stores revision as int.","signature":"int revision","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiAuthoredState","kind":"constructor","parameters":[{"name":"id","type":"text","description":"Id."},{"name":"typeName","type":"text","description":"Type name."},{"name":"value","type":"yuiAuthoredValue","description":"Value."},{"name":"source","type":"text","description":"Source."},{"name":"local","type":"bool","description":"Local."}],"returns":"void","signature":"yuiAuthoredState(text id, text typeName, yuiAuthoredValue value, text source, bool local)","description":"Yui authored state.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","ui"],"exampleId":"method-Describe-7","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/authoring-00-definitions.yh","line":45,"sha256":"8a01b294f77745d2935168bf4934a51f9ce7422cb9d9e21a09064be545f785b1"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use yuiAuthoredState","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using ui\n\n// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.\nyuiAuthoredState sample = yuiAuthoredState(\"id\", \"type Name\", yuiAuthoredValue(\"kind\", \"type Name\", \"encoded\"), \"example\", true)\nConsole.Log(Text.From(sample.id))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiauthoredstate\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"a8deabfe0c8a77c965d7529c470c70ac50631e090630dfa62994ac26be5709ad","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-7","title":"yuiAuthoredState.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Describe.\nyuiAuthoredState instance = yuiAuthoredState(\"id\", \"type Name\", yuiAuthoredValue(\"kind\", \"type Name\", \"encoded\"), \"example\", true)\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiauthoredstate\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"681482f769c2983fd1bcb40fe81c753823e34f9a0c0871f5bedecb4637d9d11c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["id","typeName","value","source","local","revision","yuiAuthoredState","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiAuthoredState","json":"https://demonhunterlabs.com/reference/items/ui--yuiAuthoredState.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiAuthoredState.md"}
