tinacms 1.6.4 → 1.6.6
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/index.js +108 -98
- package/dist/index.mjs +107 -97
- package/dist/toolkit/components/media/utils.d.ts +1 -0
- package/dist/toolkit/core/media-store.default.d.ts +1 -0
- package/dist/toolkit/core/media.d.ts +5 -0
- package/dist/toolkit/fields/components/password-field.d.ts +1 -1
- package/dist/toolkit/react-datetime/DateTime.d.ts +9 -0
- package/dist/toolkit/react-datetime/views/DaysView.d.ts +1 -0
- package/dist/toolkit/react-datetime/views/MonthsView.d.ts +1 -0
- package/dist/toolkit/react-datetime/views/TimeView.d.ts +9 -0
- package/dist/toolkit/react-datetime/views/YearsView.d.ts +1 -0
- package/dist/toolkit/react-sidebar/components/sidebar.d.ts +1 -1
- package/package.json +12 -21
|
@@ -5,5 +5,5 @@ export interface PasswordFieldProps extends a {
|
|
|
5
5
|
ref?: any;
|
|
6
6
|
}
|
|
7
7
|
export declare const passwordFieldClasses = "shadow-inner focus:shadow-outline focus:border-blue-500 focus:outline-none block text-base placeholder:text-gray-300 px-3 py-2 text-gray-600 w-full bg-white border border-gray-200 transition-all ease-out duration-150 focus:text-gray-900 rounded-md";
|
|
8
|
-
export declare const BasePasswordField: React.ForwardRefExoticComponent<Pick<PasswordFieldProps, "key" | "value" | "error" | "type" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "
|
|
8
|
+
export declare const BasePasswordField: React.ForwardRefExoticComponent<Pick<PasswordFieldProps, "key" | "value" | "error" | "type" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "src" | "alt" | "name" | "dir" | "className" | "onClick" | "hidden" | "id" | "list" | "onChange" | "onSubmit" | "accept" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "size" | "step" | "width" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "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" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "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" | "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<HTMLInputElement>>;
|
|
9
9
|
export {};
|
|
@@ -57,6 +57,14 @@ export default class Datetime extends React.Component<any, any, any> {
|
|
|
57
57
|
};
|
|
58
58
|
static moment: typeof moment;
|
|
59
59
|
constructor(props: any);
|
|
60
|
+
state: {
|
|
61
|
+
open: boolean;
|
|
62
|
+
currentView: any;
|
|
63
|
+
viewDate: any;
|
|
64
|
+
selectedDate: any;
|
|
65
|
+
inputValue: any;
|
|
66
|
+
};
|
|
67
|
+
render(): JSX.Element;
|
|
60
68
|
renderInput(): JSX.Element;
|
|
61
69
|
renderView(): any;
|
|
62
70
|
_renderCalendar: () => JSX.Element;
|
|
@@ -99,6 +107,7 @@ export default class Datetime extends React.Component<any, any, any> {
|
|
|
99
107
|
localMoment(date: any, format: any, props: any): any;
|
|
100
108
|
checkTZ(): void;
|
|
101
109
|
tzWarning: boolean;
|
|
110
|
+
componentDidUpdate(prevProps: any): void;
|
|
102
111
|
regenerateDates(): void;
|
|
103
112
|
getSelectedDate(): any;
|
|
104
113
|
getInitialInputValue(selectedDate: any): any;
|
|
@@ -5,6 +5,7 @@ export default class DaysView extends React.Component<any, any, any> {
|
|
|
5
5
|
};
|
|
6
6
|
constructor(props: any);
|
|
7
7
|
constructor(props: any, context: any);
|
|
8
|
+
render(): JSX.Element;
|
|
8
9
|
renderNavigation(): JSX.Element;
|
|
9
10
|
renderDayHeaders(): JSX.Element;
|
|
10
11
|
renderDays(): JSX.Element[];
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
export default class TimeView extends React.Component<any, any, any> {
|
|
2
2
|
constructor(props: any);
|
|
3
3
|
constraints: {};
|
|
4
|
+
state: {
|
|
5
|
+
hours: string;
|
|
6
|
+
minutes: string;
|
|
7
|
+
seconds: string;
|
|
8
|
+
milliseconds: string;
|
|
9
|
+
ampm: string;
|
|
10
|
+
};
|
|
11
|
+
render(): JSX.Element;
|
|
4
12
|
renderCounter(type: any, value: any): JSX.Element;
|
|
5
13
|
renderHeader(): JSX.Element;
|
|
6
14
|
onStartClicking(e: any, action: any, type: any): void;
|
|
@@ -19,5 +27,6 @@ export default class TimeView extends React.Component<any, any, any> {
|
|
|
19
27
|
milliseconds: string;
|
|
20
28
|
ampm: string;
|
|
21
29
|
};
|
|
30
|
+
componentDidUpdate(prevProps: any): void;
|
|
22
31
|
}
|
|
23
32
|
import React from "react";
|
|
@@ -8,7 +8,7 @@ import { SidebarState, SidebarStateOptions } from '../sidebar';
|
|
|
8
8
|
export declare const SidebarContext: React.Context<any>;
|
|
9
9
|
export declare const minPreviewWidth = 440;
|
|
10
10
|
export declare const minSidebarWidth = 360;
|
|
11
|
-
export declare const navBreakpoint =
|
|
11
|
+
export declare const navBreakpoint = 1279;
|
|
12
12
|
export interface SidebarProviderProps {
|
|
13
13
|
sidebar: SidebarState;
|
|
14
14
|
resizingSidebar: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -57,28 +57,18 @@
|
|
|
57
57
|
"typings": "dist/index.d.ts",
|
|
58
58
|
"license": "Apache-2.0",
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@floating-ui/dom": "^1.
|
|
60
|
+
"@floating-ui/dom": "^1.6.6",
|
|
61
61
|
"@floating-ui/react-dom": "^2.0.1",
|
|
62
62
|
"@graphql-inspector/core": "^4.0.0",
|
|
63
63
|
"@headlessui/react": "^1.5.0",
|
|
64
64
|
"@heroicons/react": "^1.0.4",
|
|
65
65
|
"@monaco-editor/react": "4.4.5",
|
|
66
66
|
"@radix-ui/react-popover": "^1.0.6",
|
|
67
|
-
"@react-aria/i18n": "^3.3.4",
|
|
68
67
|
"@react-hook/window-size": "^3.0.7",
|
|
69
|
-
"@react-types/combobox": "^3.2.0",
|
|
70
|
-
"@react-types/shared": "^3.10.0",
|
|
71
|
-
"@sambego/storybook-styles": "^1.0.0",
|
|
72
|
-
"@tinacms/mdx": "1.3.25",
|
|
73
|
-
"@tinacms/schema-tools": "1.4.16",
|
|
74
|
-
"@tinacms/search": "1.0.20",
|
|
75
|
-
"@tinacms/sharedctx": "1.0.2",
|
|
76
68
|
"@udecode/plate-headless": "^21.4.0",
|
|
77
|
-
"atob": "2.1.2",
|
|
78
69
|
"color-string": "^1.5.3",
|
|
79
|
-
"crypto-js": "^4.
|
|
70
|
+
"crypto-js": "^4.1.1",
|
|
80
71
|
"date-fns": "2.30.0",
|
|
81
|
-
"encoding": "0.1.13",
|
|
82
72
|
"fetch-ponyfill": "^7.1.0",
|
|
83
73
|
"final-form": "4.20.10",
|
|
84
74
|
"final-form-arrays": "^3.0.1",
|
|
@@ -90,8 +80,7 @@
|
|
|
90
80
|
"lodash.set": "^4.3.2",
|
|
91
81
|
"moment": "2.29.4",
|
|
92
82
|
"monaco-editor": "0.31.0",
|
|
93
|
-
"prism-react-renderer": "^2.
|
|
94
|
-
"prismjs": "^1.28.0",
|
|
83
|
+
"prism-react-renderer": "^2.3.1",
|
|
95
84
|
"prop-types": "15.7.2",
|
|
96
85
|
"react-beautiful-dnd": "^13.1.0",
|
|
97
86
|
"react-color": "^2.17.3",
|
|
@@ -101,15 +90,17 @@
|
|
|
101
90
|
"react-icons": "^5.2.1",
|
|
102
91
|
"react-onclickoutside": "^6.13.0",
|
|
103
92
|
"react-router-dom": "6.3.0",
|
|
104
|
-
"react-textarea-autosize": "8.5.2",
|
|
105
|
-
"scheduler": "0.19.0",
|
|
106
93
|
"slate": "^0.94.1",
|
|
107
94
|
"slate-history": "^0.93.0",
|
|
108
95
|
"slate-hyperscript": "^0.77.0",
|
|
109
96
|
"slate-react": "^0.97.1",
|
|
110
97
|
"webfontloader": "1.6.28",
|
|
111
98
|
"yup": "^0.32.0",
|
|
112
|
-
"zod": "^3.14.3"
|
|
99
|
+
"zod": "^3.14.3",
|
|
100
|
+
"@tinacms/mdx": "1.3.27",
|
|
101
|
+
"@tinacms/search": "1.0.22",
|
|
102
|
+
"@tinacms/sharedctx": "1.0.3",
|
|
103
|
+
"@tinacms/schema-tools": "1.4.18"
|
|
113
104
|
},
|
|
114
105
|
"devDependencies": {
|
|
115
106
|
"@graphql-tools/utils": "^8.6.1",
|
|
@@ -118,7 +109,6 @@
|
|
|
118
109
|
"@testing-library/react": "^12.0.0",
|
|
119
110
|
"@testing-library/react-hooks": "^7.0.2",
|
|
120
111
|
"@testing-library/user-event": "^12.7.0",
|
|
121
|
-
"@tinacms/scripts": "1.1.4",
|
|
122
112
|
"@types/atob": "^2.1.2",
|
|
123
113
|
"@types/codemirror": "^0.0.71",
|
|
124
114
|
"@types/color-string": "^1.5.0",
|
|
@@ -144,9 +134,10 @@
|
|
|
144
134
|
"react-is": "^17.0.2",
|
|
145
135
|
"tsc-alias": "^1.8.7",
|
|
146
136
|
"tslib": "^2.3.0",
|
|
147
|
-
"typescript": "4.
|
|
137
|
+
"typescript": "4.6.4",
|
|
148
138
|
"vite": "^4.3.9",
|
|
149
|
-
"vitest": "^0.32.2"
|
|
139
|
+
"vitest": "^0.32.2",
|
|
140
|
+
"@tinacms/scripts": "1.1.5"
|
|
150
141
|
},
|
|
151
142
|
"peerDependencies": {
|
|
152
143
|
"react": ">=16.14.0",
|