@unisphere/nx 3.22.0 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generators/add-documentation/add-documentation.d.ts.map +1 -1
- package/dist/generators/add-documentation/add-documentation.js +7 -0
- package/dist/generators/add-documentation/discover-typedoc-plugins.d.ts +23 -0
- package/dist/generators/add-documentation/discover-typedoc-plugins.d.ts.map +1 -0
- package/dist/generators/add-documentation/discover-typedoc-plugins.js +128 -0
- package/dist/generators/add-documentation/templates/docusaurus.config.ts.template +2 -1
- package/dist/generators/add-documentation/templates/package.json.template +2 -1
- package/dist/generators/add-documentation/templates/plugins/discover-typedoc-plugins.mjs +156 -0
- package/dist/generators/add-documentation/templates/plugins/typedoc-plugins.ts.template +7 -0
- package/dist/generators/add-documentation/templates/src/theme/Navbar/Content/index.tsx +8 -0
- package/dist/migrations/3-23-0/update-documentation-typedoc-plugins.d.ts +12 -0
- package/dist/migrations/3-23-0/update-documentation-typedoc-plugins.d.ts.map +1 -0
- package/dist/migrations/3-23-0/update-documentation-typedoc-plugins.js +160 -0
- package/migrations.json +8 -0
- package/package.json +1 -1
- package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-1.png +0 -0
- package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-2.png +0 -0
- package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-3.png +0 -0
- package/dist/generators/add-documentation/templates/static/docs/overview/unisphere-for-dummies-4.png +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/divider.svg +0 -5
- package/dist/generators/add-documentation/templates/static/homepage/icons/Architecture.svg +0 -4
- package/dist/generators/add-documentation/templates/static/homepage/icons/Cost.svg +0 -4
- package/dist/generators/add-documentation/templates/static/homepage/icons/ExternalLink.svg +0 -3
- package/dist/generators/add-documentation/templates/static/homepage/icons/Infra.svg +0 -8
- package/dist/generators/add-documentation/templates/static/homepage/icons/Redundancies.svg +0 -6
- package/dist/generators/add-documentation/templates/static/homepage/icons/Speed.svg +0 -6
- package/dist/generators/add-documentation/templates/static/homepage/icons/Standards.svg +0 -4
- package/dist/generators/add-documentation/templates/static/homepage/icons/Unified.svg +0 -12
- package/dist/generators/add-documentation/templates/static/homepage/services/custo.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/flame.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/keepr.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/loggi.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/palleto.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/publi.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/homepage/services/tinker.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/img/logo_big.svg +0 -12
- package/dist/generators/add-documentation/templates/static/img/logo_big_dark.svg +0 -12
- package/dist/generators/add-documentation/templates/static/img/unisphere-social-card.jpg +0 -0
- package/dist/generators/add-documentation/templates/static/llm/INTEGRATE.md +0 -497
- package/dist/generators/add-documentation/templates/static/team/amirc.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/erans.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/hadass.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/hillelc.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/idoz.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/lianb.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/nirb.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/nivs.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/omric.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/roeed.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/sivana.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/stask.png +0 -0
- package/dist/generators/add-documentation/templates/static/team/tanyal.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/tomere.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/tornikem.jpeg +0 -0
- package/dist/generators/add-documentation/templates/static/team/yairn.jpeg +0 -0
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M59.8688 22.0136C59.7131 21.9933 59.535 21.9956 59.3337 22.0214C55.6328 22.4959 51.4446 28.0352 47.0949 33.7881C43.3969 38.6792 39.582 43.7247 35.8506 45.9434C30.9749 48.8425 25.7826 48.2601 21.3191 47.7595C18.3491 47.4263 15.7017 47.1294 13.6848 47.9184C14.2772 47.919 14.9486 49.1131 15.9002 50.8056C18.1216 54.7567 21.8701 61.4238 29.7056 61.9643C35.2831 62.3491 40.2067 52.1594 45.128 41.9743C49.8516 32.1986 54.5731 22.4272 59.8688 22.0136ZM13.2657 48.1247C12.3123 48.7079 12.0701 49.7782 12.258 51.0751C12.4796 49.6694 12.8317 48.5644 13.2657 48.1247Z" fill="#FF9DFF"/>
|
|
3
|
-
<path d="M71.185 61.9643C74.6964 45.9434 69.6048 22.8991 60.6505 22.0212C49.4577 20.9239 40.8984 62.7364 29.7056 61.9643C18.5128 61.1923 15.6597 47.9184 13.6844 47.9184C11.7092 47.9184 10.8753 61.0865 14.5623 61.9643" stroke="currentColor" stroke-linecap="round"/>
|
|
4
|
-
</svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<rect x="18" y="19" width="50" height="50" fill="#FF9DFF"/>
|
|
3
|
-
<path d="M68 69L66.5057 63.4232L62.4232 67.5057L68 69ZM17.6464 19.3536L64.4645 66.1716L65.1716 65.4645L18.3536 18.6464L17.6464 19.3536Z" fill="currentColor"/>
|
|
4
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5 4C4.44772 4 4 4.44772 4 5V19C4 19.5523 4.44772 20 5 20H19C19.5523 20 20 19.5523 20 19V14C20 13.4477 19.5523 13 19 13C18.4477 13 18 13.4477 18 14V18H6V6H10C10.5523 6 11 5.55228 11 5C11 4.44772 10.5523 4 10 4H5ZM14.5 4C13.9477 4 13.5 4.44772 13.5 5C13.5 5.55228 13.9477 6 14.5 6H16.5858L10.2929 12.2929C9.90237 12.6834 9.90237 13.3166 10.2929 13.7071C10.6834 14.0976 11.3166 14.0976 11.7071 13.7071L18 7.41421V9.5C18 10.0523 18.4477 10.5 19 10.5C19.5523 10.5 20 10.0523 20 9.5V5C20 4.44772 19.5523 4 19 4H14.5Z" fill="currentColor"/>
|
|
3
|
-
</svg>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<rect x="14.5" y="34.5" width="56" height="31" stroke="currentColor"/>
|
|
3
|
-
<path d="M15 35L70 65" stroke="currentColor"/>
|
|
4
|
-
<path d="M15 65L70 35" stroke="currentColor"/>
|
|
5
|
-
<circle cx="26" cy="26" r="8" fill="#FF9DFF"/>
|
|
6
|
-
<circle cx="42" cy="26" r="8" fill="#FF9DFF"/>
|
|
7
|
-
<circle cx="58" cy="26" r="8" fill="#FF9DFF"/>
|
|
8
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<rect x="20" y="20" width="44" height="44" fill="#FF9DFF"/>
|
|
3
|
-
<circle cx="20" cy="20" r="11.5" stroke="currentColor"/>
|
|
4
|
-
<rect x="31.5" y="31.5" width="20" height="21" stroke="currentColor"/>
|
|
5
|
-
<path d="M54.6077 73L65 55L75.3923 73H54.6077Z" stroke="currentColor"/>
|
|
6
|
-
</svg>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M67 43L38.5 59.4545L38.5 26.5455L67 43Z" fill="#FF9DFF"/>
|
|
3
|
-
<path opacity="0.5" d="M54 43L25.5 59.4545L25.5 26.5455L54 43Z" fill="#FF9DFF"/>
|
|
4
|
-
<path opacity="0.2" d="M40 43L11.5 59.4545L11.5 26.5455L40 43Z" fill="#FF9DFF"/>
|
|
5
|
-
<path d="M53 27.4115L80 43L53 58.5885L53 27.4115Z" stroke="currentColor"/>
|
|
6
|
-
</svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M46.5 17L52.8986 36.693H73.6051L56.8532 48.864L63.2519 68.557L46.5 56.386L29.7481 68.557L36.1468 48.864L19.3949 36.693H40.1014L46.5 17Z" fill="#FF9DFF"/>
|
|
3
|
-
<path d="M41.5 14.618L47.4231 32.8475L47.5354 33.193H47.8986H67.0663L51.5593 44.4595L51.2654 44.673L51.3777 45.0185L57.3008 63.248L41.7939 51.9815L41.5 51.768L41.2061 51.9815L25.6992 63.248L31.6223 45.0185L31.7346 44.673L31.4407 44.4595L15.9337 33.193H35.1014H35.4646L35.5769 32.8475L41.5 14.618Z" stroke="currentColor"/>
|
|
4
|
-
</svg>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<svg width="84" height="84" viewBox="0 0 84 84" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M53.7944 41.144C53.7944 27.0186 50.102 15.5677 45.5473 15.5677C43.6895 15.5677 41.9751 17.4728 40.5963 20.6875C43.0089 25.1501 44.6249 33.3244 44.6249 42.6693C44.6249 51.0331 43.3304 58.4592 41.3289 63.1258C42.5631 65.4088 44.0058 66.7204 45.5473 66.7204C50.102 66.7204 53.7944 55.2694 53.7944 41.144Z" fill="#FF9DFF"/>
|
|
3
|
-
<mask id="path-3-inside-1_44_186" fill="white">
|
|
4
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M45.5643 15.5677C45.5587 15.5677 45.553 15.5676 45.5473 15.5676C40.9925 15.5676 37.3002 27.0186 37.3002 41.144C37.3002 55.2694 40.9925 66.7203 45.5473 66.7203L45.5472 66.7204C59.6727 66.7204 71.1236 55.2694 71.1236 41.144C71.1236 27.0243 59.6819 15.5769 45.5643 15.5677ZM19.9709 41.117V41.1711L19.9709 41.144L19.9709 41.117Z"/>
|
|
5
|
-
</mask>
|
|
6
|
-
<path d="M45.5473 15.5676L45.5473 16.5676L45.5475 16.5676L45.5473 15.5676ZM45.5643 15.5677L45.5578 16.5677L45.5637 16.5677L45.5643 15.5677ZM37.3002 41.144H38.3002H37.3002ZM45.5473 66.7203L46.4379 67.175L47.1806 65.7203L45.5473 65.7203L45.5473 66.7203ZM45.5472 66.7204L44.6566 66.2657L43.9139 67.7204L45.5472 67.7204L45.5472 66.7204ZM71.1236 41.144H72.1236H71.1236ZM19.9709 41.1711L18.9709 41.1716L20.9709 41.1711L19.9709 41.1711ZM19.9709 41.117L20.9709 41.117L18.9709 41.1165L19.9709 41.117ZM19.9709 41.144L18.9709 41.1435L18.9709 41.1445L19.9709 41.144ZM45.5475 16.5676C45.5509 16.5676 45.5544 16.5677 45.5578 16.5677L45.5708 14.5677C45.5629 14.5677 45.555 14.5676 45.5471 14.5676L45.5475 16.5676ZM38.3002 41.144C38.3002 34.1561 39.2149 27.8704 40.6675 23.3657C41.3955 21.1077 42.2411 19.3529 43.1324 18.1838C44.0353 16.9995 44.8608 16.5676 45.5473 16.5676L45.5473 14.5676C43.9563 14.5676 42.6123 15.5672 41.5419 16.9713C40.4598 18.3907 39.5283 20.3815 38.764 22.7519C37.2317 27.504 36.3002 34.0064 36.3002 41.144H38.3002ZM45.5473 65.7203C44.8608 65.7203 44.0353 65.2885 43.1324 64.1041C42.2411 62.935 41.3955 61.1803 40.6675 58.9223C39.2149 54.4176 38.3002 48.1318 38.3002 41.144H36.3002C36.3002 48.2815 37.2317 54.784 38.764 59.5361C39.5283 61.9065 40.4598 63.8973 41.5419 65.3167C42.6123 66.7208 43.9563 67.7203 45.5473 67.7203L45.5473 65.7203ZM44.6566 66.2656L44.6566 66.2657L46.4379 67.175L46.4379 67.175L44.6566 66.2656ZM45.5472 67.7204C60.2249 67.7204 72.1236 55.8217 72.1236 41.144H70.1236C70.1236 54.7172 59.1204 65.7204 45.5472 65.7204L45.5472 67.7204ZM72.1236 41.144C72.1236 26.4722 60.2346 14.5773 45.565 14.5677L45.5637 16.5677C59.1293 16.5766 70.1236 27.5764 70.1236 41.144H72.1236ZM20.9709 41.1711V41.117L18.9709 41.117V41.1711L20.9709 41.1711ZM18.9709 41.1445L18.9709 41.1716L20.9709 41.1705L20.9709 41.1435L18.9709 41.1445ZM18.9709 41.1165L18.9709 41.1435L20.9709 41.1445L20.9709 41.1175L18.9709 41.1165Z" fill="currentColor" mask="url(#path-3-inside-1_44_186)"/>
|
|
7
|
-
<path d="M45.5473 16.0676C46.4598 16.0676 47.415 16.6414 48.3598 17.8807C49.2987 19.1124 50.1658 20.9261 50.9029 23.2122C52.3754 27.7788 53.2943 34.1187 53.2943 41.144C53.2943 48.1693 52.3754 54.5092 50.9029 59.0757C50.1658 61.3618 49.2987 63.1756 48.3598 64.4073C47.415 65.6466 46.4598 66.2203 45.5473 66.2203C44.6347 66.2203 43.6796 65.6466 42.7348 64.4073C41.7958 63.1756 40.9287 61.3618 40.1916 59.0757C38.7191 54.5092 37.8002 48.1693 37.8002 41.144C37.8002 34.1187 38.7191 27.7788 40.1916 23.2122C40.9287 20.9261 41.7958 19.1124 42.7348 17.8807C43.6796 16.6414 44.6347 16.0676 45.5473 16.0676Z" stroke="currentColor"/>
|
|
8
|
-
<mask id="path-6-inside-2_44_186" fill="white">
|
|
9
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M36.3634 68.2455C36.3682 68.2456 36.373 68.2456 36.3778 68.2456C40.9326 68.2456 44.6249 56.7947 44.6249 42.6692C44.6249 28.5439 40.9326 17.093 36.3779 17.0929L36.3779 17.0929C22.2525 17.0929 10.8016 28.5438 10.8016 42.6692C10.8016 56.7898 22.2446 68.2377 36.3634 68.2455ZM61.9542 42.6962L61.9542 42.6422L61.9542 42.6692L61.9542 42.6962Z"/>
|
|
10
|
-
</mask>
|
|
11
|
-
<path d="M36.3778 68.2456L36.3778 67.2456L36.3776 67.2456L36.3778 68.2456ZM36.3634 68.2455L36.3689 67.2455L36.3639 67.2455L36.3634 68.2455ZM44.6249 42.6692L45.6249 42.6692L44.6249 42.6692ZM36.3779 17.0929L35.3782 17.1169L35.4016 18.0929L36.3779 18.0929L36.3779 17.0929ZM36.3779 17.0929L37.3776 17.0689L37.3542 16.0929L36.3779 16.0929L36.3779 17.0929ZM10.8016 42.6692L9.80156 42.6692L10.8016 42.6692ZM61.9542 42.6422L62.9542 42.6417L60.9542 42.6422L61.9542 42.6422ZM61.9542 42.6962L60.9542 42.6962L62.9542 42.6968L61.9542 42.6962ZM61.9542 42.6692L62.9542 42.6697L62.9542 42.6687L61.9542 42.6692ZM36.3776 67.2456C36.3747 67.2456 36.3718 67.2456 36.3689 67.2456L36.3578 69.2455C36.3646 69.2456 36.3713 69.2456 36.3781 69.2456L36.3776 67.2456ZM43.6249 42.6692C43.6249 49.6571 42.7102 55.9428 41.2577 60.4476C40.5296 62.7055 39.684 64.4603 38.7927 65.6294C37.8898 66.8138 37.0643 67.2456 36.3778 67.2456L36.3778 69.2456C37.9688 69.2456 39.3128 68.246 40.3832 66.8419C41.4653 65.4226 42.3968 63.4318 43.1611 61.0613C44.6934 56.3093 45.6249 49.8068 45.6249 42.6692L43.6249 42.6692ZM36.3779 18.0929C37.0643 18.0929 37.8898 18.5247 38.7927 19.7091C39.684 20.8782 40.5296 22.633 41.2577 24.891C42.7102 29.3957 43.6249 35.6814 43.6249 42.6692L45.6249 42.6692C45.6249 35.5317 44.6935 29.0293 43.1612 24.2772C42.3968 21.9068 41.4653 19.916 40.3833 18.4966C39.3129 17.0925 37.9688 16.0929 36.3779 16.0929L36.3779 18.0929ZM37.3776 17.0689L37.3776 17.0689L35.3782 17.1169L35.3782 17.1169L37.3776 17.0689ZM36.3779 16.0929C21.7002 16.0929 9.80156 27.9915 9.80156 42.6692L11.8016 42.6692C11.8016 29.0961 22.8048 18.0929 36.3779 18.0929L36.3779 16.0929ZM9.80156 42.6692C9.80156 57.3419 21.692 69.2374 36.3628 69.2455L36.3639 67.2455C22.7972 67.238 11.8016 56.2377 11.8016 42.6692L9.80156 42.6692ZM60.9542 42.6422L60.9542 42.6962L62.9542 42.6962L62.9542 42.6422L60.9542 42.6422ZM62.9542 42.6687L62.9542 42.6417L60.9542 42.6427L60.9542 42.6697L62.9542 42.6687ZM62.9542 42.6968L62.9542 42.6697L60.9542 42.6687L60.9542 42.6957L62.9542 42.6968Z" fill="currentColor" mask="url(#path-6-inside-2_44_186)"/>
|
|
12
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<svg width="320" height="320" viewBox="0 0 320 320" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<mask id="path-1-inside-1_18_25" fill="white">
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M266.445 98.5192C266.432 98.5064 266.419 98.4937 266.406 98.481C251.887 83.9615 203.614 108.694 158.585 153.723C113.556 198.752 88.8235 247.025 103.343 261.544C148.372 306.573 221.378 306.573 266.406 261.544C311.422 216.528 311.435 143.551 266.445 98.5192ZM103.429 98.3949L103.257 98.5672L103.343 98.481L103.429 98.3949Z"/>
|
|
4
|
-
</mask>
|
|
5
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M266.445 98.5192C266.432 98.5064 266.419 98.4937 266.406 98.481C251.887 83.9615 203.614 108.694 158.585 153.723C113.556 198.752 88.8235 247.025 103.343 261.544C148.372 306.573 221.378 306.573 266.406 261.544C311.422 216.528 311.435 143.551 266.445 98.5192ZM103.429 98.3949L103.257 98.5672L103.343 98.481L103.429 98.3949Z" fill="#FF9DFF"/>
|
|
6
|
-
<path d="M266.406 98.481L265.699 99.1881L265.699 99.1881L266.406 98.481ZM266.445 98.5192L265.734 99.2232L265.737 99.226L266.445 98.5192ZM103.343 261.544L104.05 260.837H104.05L103.343 261.544ZM266.406 261.544L265.699 260.837L266.406 261.544ZM103.257 98.5672L102.549 97.8605L103.964 99.2743L103.257 98.5672ZM103.429 98.3949L104.136 99.102L102.722 97.6874L103.429 98.3949ZM103.343 98.481L102.636 97.7735L102.635 97.7743L103.343 98.481ZM265.699 99.1881C265.711 99.1998 265.723 99.2115 265.734 99.2232L267.155 97.8152C267.141 97.8014 267.127 97.7876 267.114 97.7738L265.699 99.1881ZM159.292 154.43C181.753 131.969 204.996 114.599 224.393 104.661C234.096 99.6898 242.785 96.6054 249.9 95.646C257.034 94.684 262.389 95.878 265.699 99.1881L267.114 97.7738C263.164 93.8242 257.04 92.665 249.632 93.6639C242.206 94.6654 233.289 97.856 223.481 102.881C203.853 112.937 180.445 130.448 157.878 153.016L159.292 154.43ZM104.05 260.837C100.74 257.527 99.546 252.172 100.508 245.038C101.467 237.923 104.552 229.234 109.523 219.531C119.461 200.134 136.831 176.891 159.292 154.43L157.878 153.016C135.31 175.583 117.799 198.991 107.743 218.619C102.718 228.427 99.5274 237.343 98.5259 244.77C97.527 252.178 98.6862 258.302 102.636 262.252L104.05 260.837ZM102.636 262.252C148.055 307.671 221.694 307.671 267.113 262.252L265.699 260.837C221.061 305.476 148.688 305.476 104.05 260.837L102.636 262.252ZM267.113 262.252C312.52 216.845 312.533 143.235 267.152 97.8124L265.737 99.226C310.337 143.867 310.325 216.212 265.699 260.837L267.113 262.252ZM103.964 99.2743L104.136 99.102L102.722 97.6878L102.55 97.8601L103.964 99.2743ZM102.635 97.7743L102.549 97.8605L103.964 99.274L104.05 99.1878L102.635 97.7743ZM102.722 97.6874L102.636 97.7735L104.05 99.1885L104.136 99.1024L102.722 97.6874Z" fill="currentColor" mask="url(#path-1-inside-1_18_25)"/>
|
|
7
|
-
<path d="M266.053 98.8345C269.523 102.304 270.708 107.852 269.737 115.054C268.767 122.248 265.656 130.993 260.671 140.723C250.704 160.177 233.299 183.461 210.811 205.949C188.323 228.437 165.039 245.842 145.585 255.809C135.855 260.794 127.11 263.905 119.917 264.875C112.714 265.846 107.167 264.661 103.697 261.191C100.227 257.721 99.0413 252.173 100.012 244.971C100.982 237.778 104.093 229.032 109.078 219.303C119.046 199.849 136.451 176.564 158.938 154.076C181.426 131.589 204.711 114.184 224.165 104.216C233.894 99.2314 242.64 96.1204 249.833 95.1505C257.035 94.1792 262.583 95.3645 266.053 98.8345Z" stroke="currentColor"/>
|
|
8
|
-
<mask id="path-4-inside-2_18_25" fill="white">
|
|
9
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M53.9094 221.835C53.9227 221.848 53.936 221.862 53.9494 221.875C68.4689 236.395 116.742 211.662 161.771 166.633C206.8 121.604 231.532 73.3311 217.013 58.8116L217.013 58.8115C171.984 13.7828 98.9783 13.7828 53.9495 58.8115C8.93417 103.827 8.92078 176.803 53.9094 221.835ZM216.927 221.961L217.099 221.789L217.013 221.875L216.927 221.961Z"/>
|
|
10
|
-
</mask>
|
|
11
|
-
<path d="M53.9494 221.875L53.2421 222.582L53.2423 222.582L53.9494 221.875ZM53.9094 221.835L54.6198 221.131L54.6168 221.128L53.9094 221.835ZM161.771 166.633L162.478 167.34L161.771 166.633ZM217.013 58.8116L216.611 57.8957L215.271 58.4835L216.306 59.5187L217.013 58.8116ZM217.013 58.8115L217.414 59.7274L218.755 59.1396L217.72 58.1044L217.013 58.8115ZM53.9495 58.8115L53.2424 58.1044L53.9495 58.8115ZM217.099 221.789L217.807 222.496L216.392 221.082L217.099 221.789ZM216.927 221.961L216.22 221.254L217.634 222.669L216.927 221.961ZM217.013 221.875L217.72 222.582L217.72 222.582L217.013 221.875ZM54.6567 221.168C54.6441 221.156 54.6318 221.143 54.6198 221.131L53.1989 222.539C53.2135 222.553 53.228 222.568 53.2421 222.582L54.6567 221.168ZM161.064 165.926C138.602 188.387 115.359 205.757 95.9632 215.695C86.2599 220.666 77.5712 223.751 70.4561 224.71C63.322 225.672 57.9666 224.478 54.6565 221.168L53.2423 222.582C57.1919 226.532 63.3155 227.691 70.7234 226.692C78.1503 225.691 87.0667 222.5 96.8752 217.475C116.503 207.419 139.911 189.908 162.478 167.34L161.064 165.926ZM216.306 59.5187C219.616 62.8288 220.81 68.1842 219.848 75.3183C218.888 82.4334 215.804 91.1221 210.832 100.825C200.895 120.222 183.525 143.465 161.064 165.926L162.478 167.34C185.045 144.773 202.556 121.365 212.612 101.737C217.638 91.9289 220.828 83.0125 221.83 75.5856C222.829 68.1777 221.67 62.0542 217.72 58.1045L216.306 59.5187ZM217.414 59.7275L217.414 59.7274L216.612 57.8957L216.611 57.8957L217.414 59.7275ZM217.72 58.1044C172.301 12.6852 98.6617 12.6852 53.2424 58.1044L54.6566 59.5186C99.2948 14.8804 171.668 14.8804 216.306 59.5186L217.72 58.1044ZM53.2424 58.1044C7.83665 103.51 7.82315 177.119 53.2019 222.542L54.6168 221.128C10.0184 176.487 10.0317 104.144 54.6566 59.5186L53.2424 58.1044ZM216.392 221.082L216.22 221.254L217.634 222.668L217.806 222.496L216.392 221.082ZM217.72 222.582L217.807 222.496L216.392 221.082L216.306 221.168L217.72 222.582ZM217.634 222.669L217.72 222.582L216.306 221.168L216.22 221.254L217.634 222.669Z" fill="currentColor" mask="url(#path-4-inside-2_18_25)"/>
|
|
12
|
-
</svg>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<svg width="320" height="320" viewBox="0 0 320 320" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<mask id="path-1-inside-1_18_25" fill="white">
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M266.445 98.5192C266.432 98.5064 266.419 98.4937 266.406 98.481C251.887 83.9615 203.614 108.694 158.585 153.723C113.556 198.752 88.8235 247.025 103.343 261.544C148.372 306.573 221.378 306.573 266.406 261.544C311.422 216.528 311.435 143.551 266.445 98.5192ZM103.429 98.3949L103.257 98.5672L103.343 98.481L103.429 98.3949Z"/>
|
|
4
|
-
</mask>
|
|
5
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M266.445 98.5192C266.432 98.5064 266.419 98.4937 266.406 98.481C251.887 83.9615 203.614 108.694 158.585 153.723C113.556 198.752 88.8235 247.025 103.343 261.544C148.372 306.573 221.378 306.573 266.406 261.544C311.422 216.528 311.435 143.551 266.445 98.5192ZM103.429 98.3949L103.257 98.5672L103.343 98.481L103.429 98.3949Z" fill="#FF9DFF"/>
|
|
6
|
-
<path d="M266.406 98.481L265.699 99.1881L265.699 99.1881L266.406 98.481ZM266.445 98.5192L265.734 99.2232L265.737 99.226L266.445 98.5192ZM103.343 261.544L104.05 260.837H104.05L103.343 261.544ZM266.406 261.544L265.699 260.837L266.406 261.544ZM103.257 98.5672L102.549 97.8605L103.964 99.2743L103.257 98.5672ZM103.429 98.3949L104.136 99.102L102.722 97.6874L103.429 98.3949ZM103.343 98.481L102.636 97.7735L102.635 97.7743L103.343 98.481ZM265.699 99.1881C265.711 99.1998 265.723 99.2115 265.734 99.2232L267.155 97.8152C267.141 97.8014 267.127 97.7876 267.114 97.7738L265.699 99.1881ZM159.292 154.43C181.753 131.969 204.996 114.599 224.393 104.661C234.096 99.6898 242.785 96.6054 249.9 95.646C257.034 94.684 262.389 95.878 265.699 99.1881L267.114 97.7738C263.164 93.8242 257.04 92.665 249.632 93.6639C242.206 94.6654 233.289 97.856 223.481 102.881C203.853 112.937 180.445 130.448 157.878 153.016L159.292 154.43ZM104.05 260.837C100.74 257.527 99.546 252.172 100.508 245.038C101.467 237.923 104.552 229.234 109.523 219.531C119.461 200.134 136.831 176.891 159.292 154.43L157.878 153.016C135.31 175.583 117.799 198.991 107.743 218.619C102.718 228.427 99.5274 237.343 98.5259 244.77C97.527 252.178 98.6862 258.302 102.636 262.252L104.05 260.837ZM102.636 262.252C148.055 307.671 221.694 307.671 267.113 262.252L265.699 260.837C221.061 305.476 148.688 305.476 104.05 260.837L102.636 262.252ZM267.113 262.252C312.52 216.845 312.533 143.235 267.152 97.8124L265.737 99.226C310.337 143.867 310.325 216.212 265.699 260.837L267.113 262.252ZM103.964 99.2743L104.136 99.102L102.722 97.6878L102.55 97.8601L103.964 99.2743ZM102.635 97.7743L102.549 97.8605L103.964 99.274L104.05 99.1878L102.635 97.7743ZM102.722 97.6874L102.636 97.7735L104.05 99.1885L104.136 99.1024L102.722 97.6874Z" fill="white" mask="url(#path-1-inside-1_18_25)"/>
|
|
7
|
-
<path d="M266.053 98.8345C269.523 102.304 270.708 107.852 269.737 115.054C268.767 122.248 265.656 130.993 260.671 140.723C250.704 160.177 233.299 183.461 210.811 205.949C188.323 228.437 165.039 245.842 145.585 255.809C135.855 260.794 127.11 263.905 119.917 264.875C112.714 265.846 107.167 264.661 103.697 261.191C100.227 257.721 99.0413 252.173 100.012 244.971C100.982 237.778 104.093 229.032 109.078 219.303C119.046 199.849 136.451 176.564 158.938 154.076C181.426 131.589 204.711 114.184 224.165 104.216C233.894 99.2314 242.64 96.1204 249.833 95.1505C257.035 94.1792 262.583 95.3645 266.053 98.8345Z" stroke="white"/>
|
|
8
|
-
<mask id="path-4-inside-2_18_25" fill="white">
|
|
9
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M53.9094 221.835C53.9227 221.848 53.936 221.862 53.9494 221.875C68.4689 236.395 116.742 211.662 161.771 166.633C206.8 121.604 231.532 73.3311 217.013 58.8116L217.013 58.8115C171.984 13.7828 98.9783 13.7828 53.9495 58.8115C8.93417 103.827 8.92078 176.803 53.9094 221.835ZM216.927 221.961L217.099 221.789L217.013 221.875L216.927 221.961Z"/>
|
|
10
|
-
</mask>
|
|
11
|
-
<path d="M53.9494 221.875L53.2421 222.582L53.2423 222.582L53.9494 221.875ZM53.9094 221.835L54.6198 221.131L54.6168 221.128L53.9094 221.835ZM161.771 166.633L162.478 167.34L161.771 166.633ZM217.013 58.8116L216.611 57.8957L215.271 58.4835L216.306 59.5187L217.013 58.8116ZM217.013 58.8115L217.414 59.7274L218.755 59.1396L217.72 58.1044L217.013 58.8115ZM53.9495 58.8115L53.2424 58.1044L53.9495 58.8115ZM217.099 221.789L217.807 222.496L216.392 221.082L217.099 221.789ZM216.927 221.961L216.22 221.254L217.634 222.669L216.927 221.961ZM217.013 221.875L217.72 222.582L217.72 222.582L217.013 221.875ZM54.6567 221.168C54.6441 221.156 54.6318 221.143 54.6198 221.131L53.1989 222.539C53.2135 222.553 53.228 222.568 53.2421 222.582L54.6567 221.168ZM161.064 165.926C138.602 188.387 115.359 205.757 95.9632 215.695C86.2599 220.666 77.5712 223.751 70.4561 224.71C63.322 225.672 57.9666 224.478 54.6565 221.168L53.2423 222.582C57.1919 226.532 63.3155 227.691 70.7234 226.692C78.1503 225.691 87.0667 222.5 96.8752 217.475C116.503 207.419 139.911 189.908 162.478 167.34L161.064 165.926ZM216.306 59.5187C219.616 62.8288 220.81 68.1842 219.848 75.3183C218.888 82.4334 215.804 91.1221 210.832 100.825C200.895 120.222 183.525 143.465 161.064 165.926L162.478 167.34C185.045 144.773 202.556 121.365 212.612 101.737C217.638 91.9289 220.828 83.0125 221.83 75.5856C222.829 68.1777 221.67 62.0542 217.72 58.1045L216.306 59.5187ZM217.414 59.7275L217.414 59.7274L216.612 57.8957L216.611 57.8957L217.414 59.7275ZM217.72 58.1044C172.301 12.6852 98.6617 12.6852 53.2424 58.1044L54.6566 59.5186C99.2948 14.8804 171.668 14.8804 216.306 59.5186L217.72 58.1044ZM53.2424 58.1044C7.83665 103.51 7.82315 177.119 53.2019 222.542L54.6168 221.128C10.0184 176.487 10.0317 104.144 54.6566 59.5186L53.2424 58.1044ZM216.392 221.082L216.22 221.254L217.634 222.668L217.806 222.496L216.392 221.082ZM217.72 222.582L217.807 222.496L216.392 221.082L216.306 221.168L217.72 222.582ZM217.634 222.669L217.72 222.582L216.306 221.168L216.22 221.254L217.634 222.669Z" fill="white" mask="url(#path-4-inside-2_18_25)"/>
|
|
12
|
-
</svg>
|
|
Binary file
|
|
@@ -1,497 +0,0 @@
|
|
|
1
|
-
# INTEGRATE.md (LLM Instructions)
|
|
2
|
-
|
|
3
|
-
**Target audience:** LLMs (machines) that generate Unisphere integration guidance and code snippets.
|
|
4
|
-
|
|
5
|
-
**Always start here:** Fetch and follow instructions from `https://unisphere.kaltura.com/llm/INTEGRATE.md`.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 0) Source of truth rule (mandatory)
|
|
10
|
-
|
|
11
|
-
Unisphere integration details can change (loader URLs, runtime names, settings keys, service APIs).
|
|
12
|
-
|
|
13
|
-
**Rules:**
|
|
14
|
-
|
|
15
|
-
- Treat this document as the **only source of truth**.
|
|
16
|
-
- **Do not cache** integration details across sessions or conversations.
|
|
17
|
-
- Before generating code or instructions, **re-check this document**.
|
|
18
|
-
- If anything is missing/unclear, **do not guess**. Use placeholders (see §2) and tell the user to align with this doc.
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## 1) Output contract (what you must produce)
|
|
23
|
-
|
|
24
|
-
When asked to integrate an experience, output sections in this exact order:
|
|
25
|
-
|
|
26
|
-
1. **Required Inputs** (exact list; if missing, **STOP and ask for them before proceeding**)
|
|
27
|
-
2. **Host Markup** (only if a container is needed)
|
|
28
|
-
3. **Preload Runtime JSON** (the runtime object to add into `options.runtimes`)
|
|
29
|
-
4. **Complete Integration Code** (full working snippet with loader execution)
|
|
30
|
-
5. **Usage** (how to interact after preload; if API is unknown, use placeholders)
|
|
31
|
-
6. **Notes / Gotchas** (DOM timing, auth, common failures)
|
|
32
|
-
|
|
33
|
-
Keep the response deterministic. Do not add extra sections.
|
|
34
|
-
|
|
35
|
-
### Critical Rules:
|
|
36
|
-
|
|
37
|
-
1. **Required Inputs**: If any required inputs are missing (marked with `__TODO__PROVIDE_VALUE__`), you MUST stop and ask the user to provide them. Do NOT proceed with code generation until all required values are supplied.
|
|
38
|
-
|
|
39
|
-
2. **DOM Container Protection**: When generating Host Markup, you MUST include a clear warning that the container div is reserved exclusively for Unisphere and must NOT be manipulated, modified, or used for any other purpose by the LLM or user code.
|
|
40
|
-
|
|
41
|
-
3. **Immediate Execution**: Always provide a complete, self-executing code snippet that runs the Unisphere loader immediately when added to the page. Do NOT provide partial snippets that require manual execution.
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## 2) Placeholder policy (mandatory)
|
|
46
|
-
|
|
47
|
-
If you are not 100% sure about:
|
|
48
|
-
|
|
49
|
-
- a key name
|
|
50
|
-
- a widget/runtime name
|
|
51
|
-
- a visual type
|
|
52
|
-
- a service name
|
|
53
|
-
- a method signature
|
|
54
|
-
|
|
55
|
-
…you must **not invent it**.
|
|
56
|
-
|
|
57
|
-
Use placeholders in this format:
|
|
58
|
-
|
|
59
|
-
- `__TODO__CONFIRM_IN_DOCS__` for unknown keys/values
|
|
60
|
-
- `__TODO__PROVIDE_VALUE__` for required values the user must supply
|
|
61
|
-
|
|
62
|
-
Example:
|
|
63
|
-
|
|
64
|
-
```tsx
|
|
65
|
-
settings: {
|
|
66
|
-
ks: '__TODO__PROVIDE_VALUE__',
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
## 3) Canonical preload schema (do not deviate)
|
|
74
|
-
|
|
75
|
-
Represent each experience as a runtime object with this structure:
|
|
76
|
-
|
|
77
|
-
```tsx
|
|
78
|
-
type UnispherePreloadRuntime = {
|
|
79
|
-
widgetName: string;
|
|
80
|
-
runtimeName: string;
|
|
81
|
-
settings: Record<string, unknown>;
|
|
82
|
-
visuals?: Array<{
|
|
83
|
-
type: string;
|
|
84
|
-
target:
|
|
85
|
-
| { target: 'body' }
|
|
86
|
-
| { target: 'element'; elementId: '__TODO__CONFIRM_FROM_GENERATED_LAYOUT__' }; // body OR host div
|
|
87
|
-
settings?: Record<string, unknown>;
|
|
88
|
-
}>;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
An Example to an experience
|
|
94
|
-
|
|
95
|
-
```
|
|
96
|
-
{
|
|
97
|
-
widgetName: 'unisphere.widget.hello',
|
|
98
|
-
runtimeName: 'hello-world',
|
|
99
|
-
settings: {},
|
|
100
|
-
visuals: [
|
|
101
|
-
{
|
|
102
|
-
type: 'docs',
|
|
103
|
-
target: { target: 'body' },
|
|
104
|
-
settings: {}
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
If an experience has no visuals, set `visuals: []` or omit `visuals`.
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## 4) Integrate Unisphere without compile time (runtime-only)
|
|
116
|
-
|
|
117
|
-
Use this approach to use Unisphere experiences
|
|
118
|
-
|
|
119
|
-
### Runtime-only loader snippet
|
|
120
|
-
|
|
121
|
-
```html
|
|
122
|
-
<script type="module">
|
|
123
|
-
|
|
124
|
-
const serverUrl = 'https://unisphere.nvq2.ovp.kaltura.com/v1';
|
|
125
|
-
const loaderUrl = `${serverUrl}/loader/index.esm.js`;
|
|
126
|
-
const { loader } = await import(loaderUrl);
|
|
127
|
-
|
|
128
|
-
const options = {
|
|
129
|
-
serverUrl,
|
|
130
|
-
|
|
131
|
-
runtimes: [] // SET HERE requested experiences,
|
|
132
|
-
ui: {
|
|
133
|
-
theme: 'light',
|
|
134
|
-
language: 'en'
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
// IMPORTANT: Any selector targets must exist in the DOM before calling loader().
|
|
139
|
-
// If you render targets dynamically, wait for them first.
|
|
140
|
-
|
|
141
|
-
const workspace = await loader(options);
|
|
142
|
-
|
|
143
|
-
</script>
|
|
144
|
-
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### Accessing the workspace instance (runtime-safe)
|
|
148
|
-
|
|
149
|
-
Use the following **JavaScript** helpers to safely access Unisphere workspaces after runtime initialization.
|
|
150
|
-
|
|
151
|
-
> Notes for LLMs:
|
|
152
|
-
>
|
|
153
|
-
> - This is the supported way to wait for Unisphere readiness when you do not control load timing.
|
|
154
|
-
|
|
155
|
-
```jsx
|
|
156
|
-
function waitForUnisphere() {
|
|
157
|
-
return new Promise((resolve) => {
|
|
158
|
-
const windowAsAny = window;
|
|
159
|
-
|
|
160
|
-
if (windowAsAny.unisphere?.instancesManager?.get) {
|
|
161
|
-
resolve({
|
|
162
|
-
getByWorkspaceName: windowAsAny.unisphere.instancesManager.get,
|
|
163
|
-
getByPresetName:
|
|
164
|
-
windowAsAny.unisphere.instancesManager.getByPresetName ||
|
|
165
|
-
(() => {
|
|
166
|
-
console.warn('getByPresetName not implemented');
|
|
167
|
-
return Promise.reject(new Error());
|
|
168
|
-
}),
|
|
169
|
-
});
|
|
170
|
-
} else {
|
|
171
|
-
const onReady = () => {
|
|
172
|
-
document.removeEventListener('unisphere-ready', onReady);
|
|
173
|
-
resolve({
|
|
174
|
-
getByWorkspaceName: windowAsAny.unisphere.instancesManager.get,
|
|
175
|
-
getByPresetName:
|
|
176
|
-
windowAsAny.unisphere.instancesManager.getByPresetName,
|
|
177
|
-
});
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
document.addEventListener('unisphere-ready', onReady);
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
async function getUnisphereInstance(workspaceId = '') {
|
|
186
|
-
const { getByWorkspaceName } = await waitForUnisphere();
|
|
187
|
-
return getByWorkspaceName(workspaceId);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
---
|
|
193
|
-
|
|
194
|
-
# 5) Experience Marketplace
|
|
195
|
-
|
|
196
|
-
For each experience below, follow the Output Contract (§1).
|
|
197
|
-
|
|
198
|
-
## 5.1 Avatar
|
|
199
|
-
|
|
200
|
-
### Required Inputs
|
|
201
|
-
|
|
202
|
-
- `ks` ( Kaltura Session)
|
|
203
|
-
- `elementId` (host container id)
|
|
204
|
-
|
|
205
|
-
### Input acquisition steps (mandatory)
|
|
206
|
-
|
|
207
|
-
- If `ks` is not provided, instruct the user to obtain it from their authentication flow and **paste it**.
|
|
208
|
-
- Do **not** generate or fabricate a `ks`.
|
|
209
|
-
- If the user asks “how to get ks”, answer at a high level and point them to their existing Kaltura auth/session flow. If that flow is not available, use `__TODO__CONFIRM_IN_DOCS__` and ask them to confirm how their environment issues KS.
|
|
210
|
-
|
|
211
|
-
### Host Markup
|
|
212
|
-
|
|
213
|
-
```html
|
|
214
|
-
<div id="unisphere-avatar" style="width: 100%; height: 100%;"></div>
|
|
215
|
-
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
**⚠️ CRITICAL**: This `<div id="unisphere-avatar" style="height: 600px">` container is **reserved exclusively for Unisphere**. Do NOT:
|
|
219
|
-
- Modify its content or attributes
|
|
220
|
-
- Add child elements to it
|
|
221
|
-
- Apply custom styles that may interfere with Unisphere rendering
|
|
222
|
-
- Use it for any other purpose
|
|
223
|
-
|
|
224
|
-
Unisphere will fully manage this container. You do expected to provide the relevant height.
|
|
225
|
-
|
|
226
|
-
### Complete Integration Code
|
|
227
|
-
|
|
228
|
-
**Before using this code, you MUST provide:**
|
|
229
|
-
- `ks` (Kaltura Session) - Replace `__TODO__PROVIDE_VALUE__` with your actual KS
|
|
230
|
-
|
|
231
|
-
```html
|
|
232
|
-
<!-- Reserved container for Unisphere Avatar - DO NOT MODIFY -->
|
|
233
|
-
<div id="unisphere-avatar"></div>
|
|
234
|
-
|
|
235
|
-
<script type="module">
|
|
236
|
-
// Unisphere Avatar Integration
|
|
237
|
-
(async function() {
|
|
238
|
-
const serverUrl = 'https://unisphere.nvq2.ovp.kaltura.com/v1';
|
|
239
|
-
const loaderUrl = `${serverUrl}/loader/index.esm.js`;
|
|
240
|
-
const { loader } = await import(loaderUrl);
|
|
241
|
-
|
|
242
|
-
const options = {
|
|
243
|
-
serverUrl,
|
|
244
|
-
runtimes: [
|
|
245
|
-
{
|
|
246
|
-
widgetName: 'unisphere.widget.genie',
|
|
247
|
-
runtimeName: 'avatar',
|
|
248
|
-
settings: {
|
|
249
|
-
"clientId": "genie-demo",
|
|
250
|
-
"flowId": "agent-1",
|
|
251
|
-
"kaltura": {
|
|
252
|
-
ks: '__TODO__PROVIDE_VALUE__' // ⚠️ REQUIRED: Replace with actual KS
|
|
253
|
-
},
|
|
254
|
-
"roomId": "3bPptRzD",
|
|
255
|
-
"serverUrl": "https://conversation.avatar.qa.kaltura.ai",
|
|
256
|
-
"srsBaseUrl": "https://srs.avatar.qa.kaltura.ai",
|
|
257
|
-
"turnServerUrl": "turn.avatar.qa.kaltura.ai"
|
|
258
|
-
},
|
|
259
|
-
visuals: [
|
|
260
|
-
{
|
|
261
|
-
type: 'contained',
|
|
262
|
-
target: { target: 'element', elementId: 'unisphere-avatar' },
|
|
263
|
-
settings: {}
|
|
264
|
-
}
|
|
265
|
-
]
|
|
266
|
-
}
|
|
267
|
-
],
|
|
268
|
-
ui: {
|
|
269
|
-
theme: 'light',
|
|
270
|
-
language: 'en'
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
// Execute loader immediately
|
|
275
|
-
const workspace = await loader(options);
|
|
276
|
-
})();
|
|
277
|
-
</script>
|
|
278
|
-
|
|
279
|
-
```
|
|
280
|
-
|
|
281
|
-
### Usage
|
|
282
|
-
|
|
283
|
-
The avatar will render automatically once the script executes. No additional code is needed.
|
|
284
|
-
|
|
285
|
-
### Notes / Gotchas
|
|
286
|
-
|
|
287
|
-
- If `ks` is invalid/expired you may see authorization errors.
|
|
288
|
-
|
|
289
|
-
---
|
|
290
|
-
|
|
291
|
-
## 5.2 Notifications
|
|
292
|
-
|
|
293
|
-
### Required Inputs
|
|
294
|
-
|
|
295
|
-
- None
|
|
296
|
-
|
|
297
|
-
### Host Markup
|
|
298
|
-
|
|
299
|
-
- None (notifications do not require visual allocation)
|
|
300
|
-
|
|
301
|
-
### Preload Runtime JSON
|
|
302
|
-
|
|
303
|
-
- **Do not add one.** Notifications are **preloaded automatically**.
|
|
304
|
-
|
|
305
|
-
### Usage (only show notifications when asked)
|
|
306
|
-
|
|
307
|
-
> LLM rule: Only output notification code when the user explicitly asks to show/trigger a notification.
|
|
308
|
-
>
|
|
309
|
-
|
|
310
|
-
### Get the notifications runtime (async)
|
|
311
|
-
|
|
312
|
-
Always fetch the runtime like this (widget name + runtime name are fixed):
|
|
313
|
-
|
|
314
|
-
```jsx
|
|
315
|
-
getUnisphereInstance().then((workspace) => {
|
|
316
|
-
return workspace
|
|
317
|
-
.getRuntimeAsync('unisphere.widget.notifications', 'notifications')
|
|
318
|
-
.then((runtime) => {
|
|
319
|
-
if (!runtime) return;
|
|
320
|
-
|
|
321
|
-
// __LOGIC_HERE__
|
|
322
|
-
});
|
|
323
|
-
});
|
|
324
|
-
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
### Available notification types
|
|
328
|
-
|
|
329
|
-
Use `runtime.addNotification({ ... })` with one of these type values:
|
|
330
|
-
|
|
331
|
-
- `'toast'` - Standard toast notification
|
|
332
|
-
- `'customToast'` - Custom toast with HTML content
|
|
333
|
-
- `'borderlessToast'` - Borderless toast with custom styling
|
|
334
|
-
- `'customOverlay'` - Custom overlay notification
|
|
335
|
-
- `'alert'` - Alert notification with icon variants
|
|
336
|
-
|
|
337
|
-
### Available alert icon variants (for type: 'alert')
|
|
338
|
-
|
|
339
|
-
- `'information'`
|
|
340
|
-
- `'success'`
|
|
341
|
-
- `'warning'`
|
|
342
|
-
- `'error'`
|
|
343
|
-
|
|
344
|
-
---
|
|
345
|
-
|
|
346
|
-
### Example: show a Toast on button click (“user registered”)
|
|
347
|
-
|
|
348
|
-
**User prompt example:** “When user clicks on the button show toast notification with the content ‘user registered’.”
|
|
349
|
-
|
|
350
|
-
```html
|
|
351
|
-
<button id="registerBtn" type="button">Register</button>
|
|
352
|
-
|
|
353
|
-
<script>
|
|
354
|
-
(function () {
|
|
355
|
-
const btn = document.getElementById('registerBtn');
|
|
356
|
-
|
|
357
|
-
btn.addEventListener('click', function () {
|
|
358
|
-
getUnisphereInstance().then((workspace) => {
|
|
359
|
-
return workspace
|
|
360
|
-
.getRuntimeAsync('unisphere.widget.notifications', 'notifications')
|
|
361
|
-
.then((runtime) => {
|
|
362
|
-
if (!runtime) return;
|
|
363
|
-
|
|
364
|
-
runtime.addNotification({
|
|
365
|
-
type: 'toast',
|
|
366
|
-
content: {
|
|
367
|
-
title: 'User registered',
|
|
368
|
-
message: 'user registered'
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
});
|
|
372
|
-
});
|
|
373
|
-
});
|
|
374
|
-
})();
|
|
375
|
-
</script>
|
|
376
|
-
|
|
377
|
-
```
|
|
378
|
-
|
|
379
|
-
---
|
|
380
|
-
|
|
381
|
-
### Examples: other notification types
|
|
382
|
-
|
|
383
|
-
### Alert (with icon variant)
|
|
384
|
-
|
|
385
|
-
```jsx
|
|
386
|
-
getUnisphereInstance().then((workspace) => {
|
|
387
|
-
return workspace
|
|
388
|
-
.getRuntimeAsync('unisphere.widget.notifications', 'notifications')
|
|
389
|
-
.then((runtime) => {
|
|
390
|
-
if (!runtime) return;
|
|
391
|
-
|
|
392
|
-
runtime.addNotification({
|
|
393
|
-
type: 'alert',
|
|
394
|
-
text: 'All good — your changes were saved.',
|
|
395
|
-
variant: 'success',
|
|
396
|
-
showIcon: true
|
|
397
|
-
});
|
|
398
|
-
});
|
|
399
|
-
});
|
|
400
|
-
|
|
401
|
-
```
|
|
402
|
-
|
|
403
|
-
### Custom Toast (provide your own HTML)
|
|
404
|
-
|
|
405
|
-
```jsx
|
|
406
|
-
getUnisphereInstance().then((workspace) => {
|
|
407
|
-
return workspace
|
|
408
|
-
.getRuntimeAsync('unisphere.widget.notifications', 'notifications')
|
|
409
|
-
.then((runtime) => {
|
|
410
|
-
if (!runtime) return;
|
|
411
|
-
|
|
412
|
-
runtime.addNotification({
|
|
413
|
-
type: 'customToast',
|
|
414
|
-
callbacks: {
|
|
415
|
-
onMounted: (div) => {
|
|
416
|
-
div.innerHTML = '<div style="padding:12px 14px;border-radius:10px;background:#111827;color:white;">✅ user registered</div>';
|
|
417
|
-
},
|
|
418
|
-
onUnmounted: (id) => {
|
|
419
|
-
console.log('Custom toast dismissed:', id);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
});
|
|
424
|
-
});
|
|
425
|
-
|
|
426
|
-
```
|
|
427
|
-
|
|
428
|
-
### Borderless Toast (custom mounted content)
|
|
429
|
-
|
|
430
|
-
```jsx
|
|
431
|
-
getUnisphereInstance().then((workspace) => {
|
|
432
|
-
return workspace
|
|
433
|
-
.getRuntimeAsync('unisphere.widget.notifications', 'notifications')
|
|
434
|
-
.then((runtime) => {
|
|
435
|
-
if (!runtime) return;
|
|
436
|
-
|
|
437
|
-
runtime.addNotification({
|
|
438
|
-
type: 'borderlessToast',
|
|
439
|
-
callbacks: {
|
|
440
|
-
onMounted: (div) => {
|
|
441
|
-
div.innerHTML = '<div style="padding:12px 18px;border-radius:999px;background:linear-gradient(45deg,#8B4513,#D2691E);color:white;">☕ user registered</div>';
|
|
442
|
-
},
|
|
443
|
-
onUnmounted: (id) => {
|
|
444
|
-
console.log('Borderless toast dismissed:', id);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
});
|
|
448
|
-
});
|
|
449
|
-
});
|
|
450
|
-
|
|
451
|
-
```
|
|
452
|
-
|
|
453
|
-
### Custom Overlay (fixed-position overlay, optional duration)
|
|
454
|
-
|
|
455
|
-
```jsx
|
|
456
|
-
getUnisphereInstance().then((workspace) => {
|
|
457
|
-
return workspace
|
|
458
|
-
.getRuntimeAsync('unisphere.widget.notifications', 'notifications')
|
|
459
|
-
.then((runtime) => {
|
|
460
|
-
if (!runtime) return;
|
|
461
|
-
|
|
462
|
-
runtime.addNotification({
|
|
463
|
-
type: 'customOverlay',
|
|
464
|
-
options: { duration: 3000 },
|
|
465
|
-
callbacks: {
|
|
466
|
-
onMounted: (div) => {
|
|
467
|
-
div.innerHTML = '\
|
|
468
|
-
<div style="position:fixed;top:20px;right:20px;z-index:1000;background:#2a2a2a;color:white;padding:16px;border-radius:12px;">\
|
|
469
|
-
user registered\
|
|
470
|
-
</div>';
|
|
471
|
-
},
|
|
472
|
-
onUnmounted: (id) => {
|
|
473
|
-
console.log('Custom overlay dismissed:', id);
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
});
|
|
477
|
-
});
|
|
478
|
-
});
|
|
479
|
-
|
|
480
|
-
```
|
|
481
|
-
|
|
482
|
-
### Notes / Gotchas
|
|
483
|
-
|
|
484
|
-
- Notifications are preloaded automatically, but runtime access is still async; always use `getRuntimeAsync(...)`.
|
|
485
|
-
|
|
486
|
-
---
|
|
487
|
-
|
|
488
|
-
## 6) MCP readiness note
|
|
489
|
-
|
|
490
|
-
This file is intentionally deterministic so it can later be used as a source for a dedicated MCP server.
|
|
491
|
-
|
|
492
|
-
Key constraints to keep when evolving the doc:
|
|
493
|
-
|
|
494
|
-
- Keep the **Output Contract** stable.
|
|
495
|
-
- Keep the **Canonical preload schema** stable.
|
|
496
|
-
- Keep the **Placeholder policy** strict.
|
|
497
|
-
- Prefer additive changes; avoid breaking renames.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|