@sitevision/api 2024.7.1 → 2024.8.1
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/package.json +2 -2
- package/server/ImageUtil/index.d.ts +2 -2
- package/server/LinkRenderer/index.d.ts +48 -3
- package/server/LinkRenderer/index.js +2 -0
- package/server/NodeTypeUtil/index.d.ts +12 -0
- package/server/ResourceLocatorUtil/index.d.ts +7 -0
- package/server/ResourceLocatorUtil/index.js +2 -1
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +14 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitevision/api",
|
|
3
|
-
"version": "2024.
|
|
3
|
+
"version": "2024.8.1",
|
|
4
4
|
"author": "Sitevision AB",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"access": "public",
|
|
31
31
|
"directory": "dist"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "b1cf021d20a7d375727046c8316c02859138bdf7"
|
|
34
34
|
}
|
|
@@ -281,7 +281,7 @@ export interface ImageUtil {
|
|
|
281
281
|
* @param aAltText the alt text to set
|
|
282
282
|
* @throws ConstraintViolationException if aImage is not a sv:image or if current user is not authorized to alter the image node
|
|
283
283
|
* @throws RepositoryException if something else goes wrong
|
|
284
|
-
* @since Sitevision 2024.
|
|
284
|
+
* @since Sitevision 2024.07.1
|
|
285
285
|
*/
|
|
286
286
|
setAltText(aImage: Node, aAltText: String | string): void;
|
|
287
287
|
|
|
@@ -299,7 +299,7 @@ export interface ImageUtil {
|
|
|
299
299
|
* @param aCaptionText the caption text to set
|
|
300
300
|
* @throws ConstraintViolationException if aImage is not a sv:image or if current user is not authorized to alter the image node
|
|
301
301
|
* @throws RepositoryException if something else goes wrong
|
|
302
|
-
* @since Sitevision 2024.
|
|
302
|
+
* @since Sitevision 2024.07.1
|
|
303
303
|
*/
|
|
304
304
|
setCaptionText(aImage: Node, aCaptionText: String | string): void;
|
|
305
305
|
}
|
|
@@ -83,6 +83,10 @@ import type { String } from "../../types/java/lang/String";
|
|
|
83
83
|
* Default is no data attributes
|
|
84
84
|
* </li>
|
|
85
85
|
* <li style="margin-top:5px">
|
|
86
|
+
* <em>ariaAttributes</em> - Additional HTML5 aria-* attributes.<br>
|
|
87
|
+
* Default is no aria attributes
|
|
88
|
+
* </li>
|
|
89
|
+
* <li style="margin-top:5px">
|
|
86
90
|
* <em>download</em> - Whether or not to add the HTML5-specific <em>download</em> attribute
|
|
87
91
|
* (indication to the browser to download the link target instead of navigating to it).<br>
|
|
88
92
|
* Default is <code>false</code>
|
|
@@ -347,6 +351,7 @@ export interface LinkRenderer {
|
|
|
347
351
|
* <li><code>clearAccessKey()</code></li>
|
|
348
352
|
* <li><code>clearOpenNewWindow()</code></li>
|
|
349
353
|
* <li><code>clearDataAttributes()</code></li>
|
|
354
|
+
* <li><code>clearAriaAttributes()</code></li>
|
|
350
355
|
* <li><code>clearUseDownload()</code></li>
|
|
351
356
|
* <li><code>clearLang()</code></li>
|
|
352
357
|
* <li><code>clearHrefLang()</code></li>
|
|
@@ -359,6 +364,7 @@ export interface LinkRenderer {
|
|
|
359
364
|
* @see #clearAccessKey()
|
|
360
365
|
* @see #clearOpenNewWindow()
|
|
361
366
|
* @see #clearDataAttributes()
|
|
367
|
+
* @see #clearAriaAttributes()
|
|
362
368
|
* @see #clearUseDownload()
|
|
363
369
|
* @see #clearLang()
|
|
364
370
|
* @see #clearHrefLang()
|
|
@@ -636,7 +642,7 @@ export interface LinkRenderer {
|
|
|
636
642
|
clearUseParameterEncoding(): void;
|
|
637
643
|
|
|
638
644
|
/**
|
|
639
|
-
* Adds
|
|
645
|
+
* Adds a data-* attribute to the link element.
|
|
640
646
|
* Data attributes is optional when the result is rendered. Default is no data attributes.
|
|
641
647
|
* <p>
|
|
642
648
|
* There can only be one data attribute per name (i.e. when a data attribute is added it will always replace the possibly existing
|
|
@@ -648,7 +654,7 @@ export interface LinkRenderer {
|
|
|
648
654
|
* </p>
|
|
649
655
|
* <ul>
|
|
650
656
|
* <li>
|
|
651
|
-
* A <strong>name</strong> that is <code>null</code> or <em>
|
|
657
|
+
* A <strong>name</strong> that is <code>null</code>, <em>whitespace-only</em> or <em>prefix-only</em> will be completely ignored,
|
|
652
658
|
* i.e. no data attribute will be rendered.
|
|
653
659
|
* </li>
|
|
654
660
|
* <li>
|
|
@@ -668,11 +674,50 @@ export interface LinkRenderer {
|
|
|
668
674
|
addDataAttribute(aName: String | string, aValue: String | string): void;
|
|
669
675
|
|
|
670
676
|
/**
|
|
671
|
-
* Removes all existing data attributes
|
|
677
|
+
* Removes all existing data attributes.
|
|
672
678
|
* @since Sitevision 3.0
|
|
673
679
|
*/
|
|
674
680
|
clearDataAttributes(): void;
|
|
675
681
|
|
|
682
|
+
/**
|
|
683
|
+
* Adds an aria-* attribute to the link element.
|
|
684
|
+
* Aria attributes are optional when the result is rendered. Default is no aria attributes.
|
|
685
|
+
* <p>
|
|
686
|
+
* There can only be one aria attribute per name (i.e. when an aria attribute is added it will always replace the possibly existing
|
|
687
|
+
* aria attribute that already use that name).
|
|
688
|
+
* </p>
|
|
689
|
+
*
|
|
690
|
+
* <p>
|
|
691
|
+
* Notes about names and values:
|
|
692
|
+
* </p>
|
|
693
|
+
* <ul>
|
|
694
|
+
* <li>
|
|
695
|
+
* A <strong>name</strong> that is <code>null</code>, <em>whitespace-only</em> or <em>prefix-only</em> will be completely ignored,
|
|
696
|
+
* i.e. no aria attribute will be rendered.
|
|
697
|
+
* </li>
|
|
698
|
+
* <li>
|
|
699
|
+
* A <strong>name</strong> that isn't properly prefixed with <em>"aria-"</em> will be prefixed when the aria attribute is rendered.
|
|
700
|
+
* </li>
|
|
701
|
+
* <li>
|
|
702
|
+
* A <strong>value</strong> that is <code>null</code> or <em>whitespace-only</em> will be rendered as an aria attribute without value.
|
|
703
|
+
* </li>
|
|
704
|
+
* <li>
|
|
705
|
+
* A <strong>value</strong> should not be escaped/encoded. The <em>useEncoding</em> attribute will determine what to do
|
|
706
|
+
* when the aria attributes are rendered.
|
|
707
|
+
* </li>
|
|
708
|
+
* </ul>
|
|
709
|
+
* @param aName the name of the aria attribute
|
|
710
|
+
* @param aValue the value of the aria attribute
|
|
711
|
+
* @since Sitevision 2024.08.1
|
|
712
|
+
*/
|
|
713
|
+
addAriaAttribute(aName: String | string, aValue: String | string): void;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Removes all existing aria attributes.
|
|
717
|
+
* @since Sitevision 2024.08.1
|
|
718
|
+
*/
|
|
719
|
+
clearAriaAttributes(): void;
|
|
720
|
+
|
|
676
721
|
/**
|
|
677
722
|
* Sets what access key the link should have (accesskey attribute on the a element)
|
|
678
723
|
* The accesskey attribute is optional when the result is rendered. Default is <code>null</code>.
|
|
@@ -31,6 +31,8 @@ var _default = {
|
|
|
31
31
|
clearUseParameterEncoding: function clearUseParameterEncoding() {},
|
|
32
32
|
addDataAttribute: function addDataAttribute() {},
|
|
33
33
|
clearDataAttributes: function clearDataAttributes() {},
|
|
34
|
+
addAriaAttribute: function addAriaAttribute() {},
|
|
35
|
+
clearAriaAttributes: function clearAriaAttributes() {},
|
|
34
36
|
setAccessKey: function setAccessKey() {},
|
|
35
37
|
clearAccessKey: function clearAccessKey() {},
|
|
36
38
|
setRel: function setRel() {},
|
|
@@ -126,6 +126,18 @@ export interface NodeTypeUtil extends NodeTypeUtilConstants {
|
|
|
126
126
|
*/
|
|
127
127
|
LINK_TYPE: "sv:link";
|
|
128
128
|
|
|
129
|
+
/**
|
|
130
|
+
* The primary node type name for a LLM configuration.
|
|
131
|
+
* @since Sitevision 2024.08.1
|
|
132
|
+
*/
|
|
133
|
+
LLM_CONFIGURATION_TYPE: "sv:llmConfiguration";
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The primary node type name for a LLM configuration repository.
|
|
137
|
+
* @since Sitevision 2024.08.1
|
|
138
|
+
*/
|
|
139
|
+
LLM_CONFIGURATION_REPOSITORY_TYPE: "sv:llmConfigurationRepository";
|
|
140
|
+
|
|
129
141
|
/**
|
|
130
142
|
* The primary node type name for a node index.
|
|
131
143
|
* @since Sitevision 3.6
|
|
@@ -474,6 +474,13 @@ export interface ResourceLocatorUtil {
|
|
|
474
474
|
* @since Sitevision 2024.04.2
|
|
475
475
|
*/
|
|
476
476
|
getCssRuleRepository(): Node;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Gets the LLM configuration repository (sv:llmConfigurationRepository) for the site of current node.
|
|
480
|
+
* @return the LLM configuration repository, or null if indeterminable.
|
|
481
|
+
* @since Sitevision 2024.08.1
|
|
482
|
+
*/
|
|
483
|
+
getLlmConfigurationRepository(): Node;
|
|
477
484
|
}
|
|
478
485
|
|
|
479
486
|
declare namespace ResourceLocatorUtil {}
|
|
@@ -49,6 +49,7 @@ var _default = {
|
|
|
49
49
|
getSiteCookieRepository: function getSiteCookieRepository() {},
|
|
50
50
|
getImageFilterRepository: function getImageFilterRepository() {},
|
|
51
51
|
getWorkStatusTemplateRepository: function getWorkStatusTemplateRepository() {},
|
|
52
|
-
getCssRuleRepository: function getCssRuleRepository() {}
|
|
52
|
+
getCssRuleRepository: function getCssRuleRepository() {},
|
|
53
|
+
getLlmConfigurationRepository: function getLlmConfigurationRepository() {}
|
|
53
54
|
};
|
|
54
55
|
exports["default"] = _default;
|
|
@@ -114,6 +114,20 @@ export type NodeTypeUtilConstants = {
|
|
|
114
114
|
*/
|
|
115
115
|
getLINK_TYPE(): string;
|
|
116
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#LLM_CONFIGURATION_TYPE}.
|
|
119
|
+
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#LLM_CONFIGURATION_TYPE}
|
|
120
|
+
* @since Sitevision 2024.08.1
|
|
121
|
+
*/
|
|
122
|
+
getLLM_CONFIGURATION_TYPE(): string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#LLM_CONFIGURATION_REPOSITORY_TYPE}.
|
|
126
|
+
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#LLM_CONFIGURATION_REPOSITORY_TYPE}
|
|
127
|
+
* @since Sitevision 2024.08.1
|
|
128
|
+
*/
|
|
129
|
+
getLLM_CONFIGURATION_REPOSITORY_TYPE(): string;
|
|
130
|
+
|
|
117
131
|
/**
|
|
118
132
|
* Get accessor for {@link senselogic.sitevision.api.node.NodeTypeUtil#NODE_INDEX_TYPE}.
|
|
119
133
|
* @return {@link senselogic.sitevision.api.node.NodeTypeUtil#NODE_INDEX_TYPE}
|
|
@@ -22,6 +22,8 @@ var _default = {
|
|
|
22
22
|
getLAYOUT_TYPE: function getLAYOUT_TYPE() {},
|
|
23
23
|
getLINKED_LAYOUT_TYPE: function getLINKED_LAYOUT_TYPE() {},
|
|
24
24
|
getLINK_TYPE: function getLINK_TYPE() {},
|
|
25
|
+
getLLM_CONFIGURATION_TYPE: function getLLM_CONFIGURATION_TYPE() {},
|
|
26
|
+
getLLM_CONFIGURATION_REPOSITORY_TYPE: function getLLM_CONFIGURATION_REPOSITORY_TYPE() {},
|
|
25
27
|
getNODE_INDEX_TYPE: function getNODE_INDEX_TYPE() {},
|
|
26
28
|
getPAGE_TYPE: function getPAGE_TYPE() {},
|
|
27
29
|
getPORTLET_TYPE: function getPORTLET_TYPE() {},
|