@3mo/anchor
Advanced tools
Comparing version 1.0.5 to 1.0.6
import { Component } from '@a11d/lit'; | ||
import '@3mo/theme'; | ||
export declare const enum AnchorSpecialTarget { | ||
export declare enum AnchorSpecialTarget { | ||
/** the current browsing context. (Default) */ | ||
@@ -13,3 +13,3 @@ Self = "_self", | ||
} | ||
export declare const enum AnchorReferrerPolicy { | ||
export declare enum AnchorReferrerPolicy { | ||
/** The Referer header will be omitted entirely. No referrer information is sent along with requests. */ | ||
@@ -16,0 +16,0 @@ NoReferrer = "no-referrer", |
@@ -5,2 +5,32 @@ var Anchor_1; | ||
import '@3mo/theme'; | ||
export var AnchorSpecialTarget; | ||
(function (AnchorSpecialTarget) { | ||
/** the current browsing context. (Default) */ | ||
AnchorSpecialTarget["Self"] = "_self"; | ||
/** Usually a new tab, but users can configure browsers to open a new window instead. */ | ||
AnchorSpecialTarget["Blank"] = "_blank"; | ||
/** The parent browsing context of the current one. If no parent, behaves as "_self" */ | ||
AnchorSpecialTarget["Parent"] = "_parent"; | ||
/** The topmost browsing context (the "highest" context that's an ancestor of the current one). If no ancestors, behaves as "_self". */ | ||
AnchorSpecialTarget["Top"] = "_top"; | ||
})(AnchorSpecialTarget = AnchorSpecialTarget || (AnchorSpecialTarget = {})); | ||
export var AnchorReferrerPolicy; | ||
(function (AnchorReferrerPolicy) { | ||
/** The Referer header will be omitted entirely. No referrer information is sent along with requests. */ | ||
AnchorReferrerPolicy["NoReferrer"] = "no-referrer"; | ||
/** The URL is sent as a referrer when the protocol security level stays the same (e.g.HTTP→HTTP, HTTPS→HTTPS), but isn't sent to a less secure destination (e.g. HTTPS→HTTP). */ | ||
AnchorReferrerPolicy["NoReferrerWhenDowngrade"] = "no-referrer-when-downgrade"; | ||
/** Only send the origin of the document as the referrer in all cases. The document https://example.com/page.html will send the referrer https://example.com/. */ | ||
AnchorReferrerPolicy["Origin"] = "origin"; | ||
/** Send a full URL when performing a same-origin request, but only send the origin of the document for other cases. */ | ||
AnchorReferrerPolicy["OriginWhenCrossOrigin"] = "origin-when-cross-origin"; | ||
/** A referrer will be sent for same-site origins, but cross-origin requests will contain no referrer information. */ | ||
AnchorReferrerPolicy["SameOrigin"] = "same-origin"; | ||
/** Only send the origin of the document as the referrer when the protocol security level stays the same (e.g. HTTPS→HTTPS), but don't send it to a less secure destination (e.g. HTTPS→HTTP). */ | ||
AnchorReferrerPolicy["StrictOrigin"] = "strict-origin"; | ||
/** This is the user agent's default behavior if no policy is specified. Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (e.g. HTTPS→HTTPS), and send no header to a less secure destination (e.g. HTTPS→HTTP). */ | ||
AnchorReferrerPolicy["StrictOriginWhenCrossOrigin"] = "strict-origin-when-cross-origin"; | ||
/** Send a full URL when performing a same-origin or cross-origin request. This policy will leak origins and paths from TLS-protected resources to insecure origins. Carefully consider the impact of this setting. */ | ||
AnchorReferrerPolicy["UnsafeUrl"] = "unsafe-url"; | ||
})(AnchorReferrerPolicy = AnchorReferrerPolicy || (AnchorReferrerPolicy = {})); | ||
/** | ||
@@ -7,0 +37,0 @@ * @attr href |
{ | ||
"name": "@3mo/anchor", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "An anchor web-component.", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
72329
169