New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@code-hike/mini-browser

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-hike/mini-browser - npm Package Compare versions

Comparing version 0.3.0--canary.111.a1cf9e4.0 to 0.3.0--canary.116.0186a87.0

6

dist/index.cjs.js

@@ -96,3 +96,3 @@ 'use strict';

function TitleBar(_a) {
var url = _a.url, linkUrl = _a.linkUrl;
var url = _a.url, linkUrl = _a.linkUrl; _a.theme;
return (React__default['default'].createElement(React__default['default'].Fragment, null,

@@ -132,3 +132,3 @@ React__default['default'].createElement(miniFrame.FrameButtons, null),

function MiniBrowserWithRef(_a, ref) {
var _b = _a.progress, progress = _b === void 0 ? 0 : _b; _a.backward; var ogSteps = _a.steps, _d = _a.transition, transition = _d === void 0 ? "none" : _d, classes = _a.classes, props = __rest(_a, ["progress", "backward", "steps", "transition", "classes"]);
var _b = _a.progress, progress = _b === void 0 ? 0 : _b; _a.backward; var ogSteps = _a.steps, _d = _a.transition, transition = _d === void 0 ? "none" : _d, classes = _a.classes, theme = _a.theme, props = __rest(_a, ["progress", "backward", "steps", "transition", "classes", "theme"]);
var c = classer.useClasser("ch-mini-browser", classes);

@@ -138,3 +138,3 @@ var steps = useSteps$1(ogSteps);

var _e = steps[stepIndex], zoom = _e.zoom, displayUrl = _e.displayUrl, loadUrl = _e.loadUrl, children = _e.children;
return (React__default['default'].createElement(miniFrame.MiniFrame, __assign({}, props, { zoom: zoom, className: c("") + " " + (props.className || ""), style: __assign(__assign({}, transitionStyle({ progress: progress, transition: transition })), props.style), classes: classes, titleBar: React__default['default'].createElement(TitleBar, { url: displayUrl, linkUrl: loadUrl }) }), children || React__default['default'].createElement("iframe", { ref: ref, src: loadUrl })));
return (React__default['default'].createElement(miniFrame.MiniFrame, __assign({}, props, { zoom: zoom, className: c("") + " " + (props.className || ""), style: __assign(__assign({}, transitionStyle({ progress: progress, transition: transition })), props.style), classes: classes, titleBar: React__default['default'].createElement(TitleBar, { url: displayUrl, linkUrl: loadUrl, theme: theme }), theme: theme }), children || React__default['default'].createElement("iframe", { ref: ref, src: loadUrl })));
}

@@ -141,0 +141,0 @@ function transitionStyle(_a) {

@@ -88,3 +88,3 @@ import React from 'react';

function TitleBar(_a) {
var url = _a.url, linkUrl = _a.linkUrl;
var url = _a.url, linkUrl = _a.linkUrl; _a.theme;
return (React.createElement(React.Fragment, null,

@@ -124,3 +124,3 @@ React.createElement(FrameButtons, null),

function MiniBrowserWithRef(_a, ref) {
var _b = _a.progress, progress = _b === void 0 ? 0 : _b; _a.backward; var ogSteps = _a.steps, _d = _a.transition, transition = _d === void 0 ? "none" : _d, classes = _a.classes, props = __rest(_a, ["progress", "backward", "steps", "transition", "classes"]);
var _b = _a.progress, progress = _b === void 0 ? 0 : _b; _a.backward; var ogSteps = _a.steps, _d = _a.transition, transition = _d === void 0 ? "none" : _d, classes = _a.classes, theme = _a.theme, props = __rest(_a, ["progress", "backward", "steps", "transition", "classes", "theme"]);
var c = useClasser("ch-mini-browser", classes);

@@ -130,3 +130,3 @@ var steps = useSteps$1(ogSteps);

var _e = steps[stepIndex], zoom = _e.zoom, displayUrl = _e.displayUrl, loadUrl = _e.loadUrl, children = _e.children;
return (React.createElement(MiniFrame, __assign({}, props, { zoom: zoom, className: c("") + " " + (props.className || ""), style: __assign(__assign({}, transitionStyle({ progress: progress, transition: transition })), props.style), classes: classes, titleBar: React.createElement(TitleBar, { url: displayUrl, linkUrl: loadUrl }) }), children || React.createElement("iframe", { ref: ref, src: loadUrl })));
return (React.createElement(MiniFrame, __assign({}, props, { zoom: zoom, className: c("") + " " + (props.className || ""), style: __assign(__assign({}, transitionStyle({ progress: progress, transition: transition })), props.style), classes: classes, titleBar: React.createElement(TitleBar, { url: displayUrl, linkUrl: loadUrl, theme: theme }), theme: theme }), children || React.createElement("iframe", { ref: ref, src: loadUrl })));
}

@@ -133,0 +133,0 @@ function transitionStyle(_a) {

import React from "react";
import { MiniBrowserStep } from "./use-steps";
import { Classes } from "@code-hike/classer";
import { EditorTheme } from "@code-hike/utils";
declare type Transition = "none" | "slide";

@@ -11,2 +12,3 @@ export declare type MiniBrowserHikeProps = {

transition?: Transition;
theme: EditorTheme;
} & React.PropsWithoutRef<JSX.IntrinsicElements["div"]>;

@@ -19,3 +21,4 @@ declare const MiniBrowserHike: React.ForwardRefExoticComponent<{

transition?: "none" | "slide" | undefined;
theme: EditorTheme;
} & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLIFrameElement>>;
export { MiniBrowserHike };

@@ -0,5 +1,7 @@

import { EditorTheme } from "@code-hike/utils";
export { TitleBar };
declare function TitleBar({ url, linkUrl, }: {
declare function TitleBar({ url, linkUrl, theme, }: {
url: string;
linkUrl: string;
theme: EditorTheme;
}): JSX.Element;
{
"name": "@code-hike/mini-browser",
"version": "0.3.0--canary.111.a1cf9e4.0",
"version": "0.3.0--canary.116.0186a87.0",
"main": "dist/index.cjs.js",

@@ -17,3 +17,3 @@ "typings": "dist/index.d.ts",

"devDependencies": {
"@code-hike/script": "0.3.0--canary.111.a1cf9e4.0",
"@code-hike/script": "0.3.0--canary.116.0186a87.0",
"@types/jest": "^24.0.15",

@@ -26,4 +26,5 @@ "@types/react": "^17.0.2",

"dependencies": {
"@code-hike/classer": "0.3.0--canary.111.a1cf9e4.0",
"@code-hike/mini-frame": "0.3.0--canary.111.a1cf9e4.0",
"@code-hike/classer": "0.3.0--canary.116.0186a87.0",
"@code-hike/mini-frame": "0.3.0--canary.116.0186a87.0",
"@code-hike/utils": "0.3.0--canary.116.0186a87.0",
"use-spring": "^0.2.3"

@@ -48,3 +49,3 @@ },

},
"gitHead": "a1cf9e4fed74ec7d6353db38b3c85547c1c64607"
"gitHead": "0186a8722f3e14c54e147a04d3911ba83ba817e6"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc