@orangecatai/adgen-canvas 0.0.3 → 0.0.4
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/dev/{chunk-YOQUQ6O5.js → chunk-3FGOYDLK.js} +3 -3
- package/dist/dev/{chunk-EP27W34X.js → chunk-IRIUFXMO.js} +2 -2
- package/dist/dev/data/{image-IZS5VEYX.js → image-HH4XNQRO.js} +3 -3
- package/dist/dev/index.css +149 -1
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +1400 -590
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-2ALGWY4R.js → chunk-LUZI7MFZ.js} +2 -2
- package/dist/prod/{chunk-I4SUBR2Z.js → chunk-SG4RCQVC.js} +1 -1
- package/dist/prod/data/image-J2ZJZU4A.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +42 -32
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +177 -0
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionLink.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionMenu.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionStyles.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/index.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/components/AIChatPanel.d.ts +49 -3
- package/dist/types/excalidraw/components/Actions.d.ts +3 -0
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/ImageGeneratorPanel.d.ts +6 -1
- package/dist/types/excalidraw/components/ImageQuickEditPanel.d.ts +6 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/types/excalidraw/components/ai-chat/agentLoop.d.ts +13 -0
- package/dist/types/excalidraw/components/ai-chat/audioUtils.d.ts +10 -0
- package/dist/types/excalidraw/index.d.ts +4 -1
- package/dist/types/excalidraw/types.d.ts +14 -0
- package/dist/types/excalidraw/utils/openRouterApiKey.d.ts +1 -0
- package/package.json +1 -1
- package/dist/prod/data/image-PKF4YK4A.js +0 -1
- /package/dist/dev/{chunk-YOQUQ6O5.js.map → chunk-3FGOYDLK.js.map} +0 -0
- /package/dist/dev/{chunk-EP27W34X.js.map → chunk-IRIUFXMO.js.map} +0 -0
- /package/dist/dev/data/{image-IZS5VEYX.js.map → image-HH4XNQRO.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
define_import_meta_env_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IRIUFXMO.js";
|
|
4
4
|
import {
|
|
5
5
|
__publicField
|
|
6
6
|
} from "./chunk-XDFCUUT6.js";
|
|
@@ -5105,7 +5105,7 @@ var parseFileContents = async (blob) => {
|
|
|
5105
5105
|
let contents;
|
|
5106
5106
|
if (blob.type === MIME_TYPES6.png) {
|
|
5107
5107
|
try {
|
|
5108
|
-
return await (await import("./data/image-
|
|
5108
|
+
return await (await import("./data/image-HH4XNQRO.js")).decodePngMetadata(blob);
|
|
5109
5109
|
} catch (error) {
|
|
5110
5110
|
if (error.message === "INVALID") {
|
|
5111
5111
|
throw new ImageSceneDataError(
|
|
@@ -5549,4 +5549,4 @@ export {
|
|
|
5549
5549
|
createFile,
|
|
5550
5550
|
normalizeFile
|
|
5551
5551
|
};
|
|
5552
|
-
//# sourceMappingURL=chunk-
|
|
5552
|
+
//# sourceMappingURL=chunk-3FGOYDLK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// <define:import.meta.env>
|
|
2
|
-
var define_import_meta_env_default = { MODE: "development", VITE_APP_GEMINI_API_KEY: "", VITE_APP_OPENROUTER_API_KEY: "", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@orangecatai/adgen-canvas", PKG_VERSION: "0.0.
|
|
2
|
+
var define_import_meta_env_default = { MODE: "development", VITE_APP_GEMINI_API_KEY: "", VITE_APP_OPENROUTER_API_KEY: "", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@orangecatai/adgen-canvas", PKG_VERSION: "0.0.4", DEV: true };
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
5
|
define_import_meta_env_default
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
7
|
+
//# sourceMappingURL=chunk-IRIUFXMO.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
decodePngMetadata,
|
|
3
3
|
encodePngMetadata,
|
|
4
4
|
getTEXtChunk
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-3FGOYDLK.js";
|
|
6
|
+
import "../chunk-IRIUFXMO.js";
|
|
7
7
|
import "../chunk-XDFCUUT6.js";
|
|
8
8
|
export {
|
|
9
9
|
decodePngMetadata,
|
|
10
10
|
encodePngMetadata,
|
|
11
11
|
getTEXtChunk
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=image-
|
|
13
|
+
//# sourceMappingURL=image-HH4XNQRO.js.map
|
package/dist/dev/index.css
CHANGED
|
@@ -2947,11 +2947,23 @@
|
|
|
2947
2947
|
|
|
2948
2948
|
/* components/Actions.scss */
|
|
2949
2949
|
.zoom-actions,
|
|
2950
|
-
.undo-redo-buttons
|
|
2950
|
+
.undo-redo-buttons,
|
|
2951
|
+
.scroll-back-to-content-button {
|
|
2951
2952
|
background-color: var(--island-bg-color);
|
|
2952
2953
|
border-radius: var(--border-radius-lg);
|
|
2953
2954
|
box-shadow: 0 0 0 1px var(--color-surface-lowest);
|
|
2954
2955
|
}
|
|
2956
|
+
.footer-canvas-actions {
|
|
2957
|
+
align-items: flex-start;
|
|
2958
|
+
}
|
|
2959
|
+
.footer-canvas-actions-row {
|
|
2960
|
+
align-items: center;
|
|
2961
|
+
}
|
|
2962
|
+
.footer-canvas-actions-row .undo-redo-buttons {
|
|
2963
|
+
margin-top: 0;
|
|
2964
|
+
margin-bottom: 0;
|
|
2965
|
+
align-self: center;
|
|
2966
|
+
}
|
|
2955
2967
|
.zoom-button,
|
|
2956
2968
|
.undo-redo-buttons button {
|
|
2957
2969
|
border-radius: 0 !important;
|
|
@@ -9916,6 +9928,60 @@ body.excalidraw-cursor-resize * {
|
|
|
9916
9928
|
.excalidraw .acp .acp-pill-btn:hover {
|
|
9917
9929
|
background: #f5f5f5 !important;
|
|
9918
9930
|
}
|
|
9931
|
+
.excalidraw .acp .acp-pill-btn--active {
|
|
9932
|
+
background: rgba(99, 80, 220, 0.08) !important;
|
|
9933
|
+
border-color: rgba(99, 80, 220, 0.3) !important;
|
|
9934
|
+
color: #6350dc !important;
|
|
9935
|
+
}
|
|
9936
|
+
.excalidraw .acp .acp-pill-btn--active svg {
|
|
9937
|
+
color: #6350dc;
|
|
9938
|
+
}
|
|
9939
|
+
.excalidraw .acp .acp-pill-btn--active:hover {
|
|
9940
|
+
background: rgba(99, 80, 220, 0.14) !important;
|
|
9941
|
+
}
|
|
9942
|
+
.excalidraw .acp .acp-pill-btn--transcribing {
|
|
9943
|
+
background: rgba(99, 80, 220, 0.08) !important;
|
|
9944
|
+
border-color: rgba(99, 80, 220, 0.2) !important;
|
|
9945
|
+
cursor: default !important;
|
|
9946
|
+
}
|
|
9947
|
+
.excalidraw .acp .acp-pill-btn--transcribing svg {
|
|
9948
|
+
color: #6350dc;
|
|
9949
|
+
}
|
|
9950
|
+
.excalidraw .acp .acp-pill-btn--recording {
|
|
9951
|
+
background: rgba(220, 53, 69, 0.08) !important;
|
|
9952
|
+
border-color: rgba(220, 53, 69, 0.3) !important;
|
|
9953
|
+
color: #dc3545 !important;
|
|
9954
|
+
animation: acp-pulse 1.5s ease-in-out infinite;
|
|
9955
|
+
}
|
|
9956
|
+
.excalidraw .acp .acp-pill-btn--recording svg {
|
|
9957
|
+
color: #dc3545;
|
|
9958
|
+
}
|
|
9959
|
+
.excalidraw .acp .acp-pill-btn--recording:hover {
|
|
9960
|
+
background: rgba(220, 53, 69, 0.14) !important;
|
|
9961
|
+
}
|
|
9962
|
+
.excalidraw .acp .acp-pill-btn:disabled {
|
|
9963
|
+
opacity: 0.4 !important;
|
|
9964
|
+
cursor: not-allowed !important;
|
|
9965
|
+
}
|
|
9966
|
+
@keyframes acp-pulse {
|
|
9967
|
+
0%, 100% {
|
|
9968
|
+
opacity: 1;
|
|
9969
|
+
}
|
|
9970
|
+
50% {
|
|
9971
|
+
opacity: 0.6;
|
|
9972
|
+
}
|
|
9973
|
+
}
|
|
9974
|
+
@keyframes acp-spin {
|
|
9975
|
+
from {
|
|
9976
|
+
transform: rotate(0deg);
|
|
9977
|
+
}
|
|
9978
|
+
to {
|
|
9979
|
+
transform: rotate(360deg);
|
|
9980
|
+
}
|
|
9981
|
+
}
|
|
9982
|
+
.excalidraw .acp .acp-mic-spinner {
|
|
9983
|
+
animation: acp-spin 0.85s linear infinite;
|
|
9984
|
+
}
|
|
9919
9985
|
.excalidraw .acp .acp-send-btn {
|
|
9920
9986
|
display: flex !important;
|
|
9921
9987
|
align-items: center !important;
|
|
@@ -10015,6 +10081,88 @@ body.excalidraw-cursor-resize * {
|
|
|
10015
10081
|
flex-shrink: 0;
|
|
10016
10082
|
margin-top: 5px;
|
|
10017
10083
|
}
|
|
10084
|
+
.excalidraw .acp .acp-attachments-area {
|
|
10085
|
+
display: flex;
|
|
10086
|
+
flex-wrap: wrap;
|
|
10087
|
+
gap: 6px;
|
|
10088
|
+
padding: 0 12px 4px;
|
|
10089
|
+
flex-shrink: 0;
|
|
10090
|
+
}
|
|
10091
|
+
.excalidraw .acp .acp-attachment-pill {
|
|
10092
|
+
display: inline-flex;
|
|
10093
|
+
align-items: center;
|
|
10094
|
+
gap: 5px;
|
|
10095
|
+
padding: 4px 10px;
|
|
10096
|
+
border-radius: 14px;
|
|
10097
|
+
background: rgba(0, 0, 0, 0.04);
|
|
10098
|
+
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
10099
|
+
font-size: 12px;
|
|
10100
|
+
font-weight: 500;
|
|
10101
|
+
color: #555;
|
|
10102
|
+
max-width: 200px;
|
|
10103
|
+
}
|
|
10104
|
+
.excalidraw .acp .acp-attachment-pill svg {
|
|
10105
|
+
flex-shrink: 0;
|
|
10106
|
+
color: #888;
|
|
10107
|
+
}
|
|
10108
|
+
.excalidraw .acp .acp-attachment-pill span {
|
|
10109
|
+
overflow: hidden;
|
|
10110
|
+
text-overflow: ellipsis;
|
|
10111
|
+
white-space: nowrap;
|
|
10112
|
+
flex: 1;
|
|
10113
|
+
}
|
|
10114
|
+
.excalidraw .acp .acp-attachment-thumb {
|
|
10115
|
+
width: 20px;
|
|
10116
|
+
height: 20px;
|
|
10117
|
+
border-radius: 4px;
|
|
10118
|
+
object-fit: cover;
|
|
10119
|
+
flex-shrink: 0;
|
|
10120
|
+
}
|
|
10121
|
+
.excalidraw .acp .acp-attachment-remove {
|
|
10122
|
+
display: flex !important;
|
|
10123
|
+
align-items: center !important;
|
|
10124
|
+
justify-content: center !important;
|
|
10125
|
+
width: 16px !important;
|
|
10126
|
+
height: 16px !important;
|
|
10127
|
+
border-radius: 50% !important;
|
|
10128
|
+
background: transparent !important;
|
|
10129
|
+
color: #888 !important;
|
|
10130
|
+
flex-shrink: 0 !important;
|
|
10131
|
+
transition: background 0.1s !important;
|
|
10132
|
+
}
|
|
10133
|
+
.excalidraw .acp .acp-attachment-remove:hover {
|
|
10134
|
+
background: rgba(0, 0, 0, 0.1) !important;
|
|
10135
|
+
color: #444 !important;
|
|
10136
|
+
}
|
|
10137
|
+
.excalidraw .acp .acp-msg-attachments {
|
|
10138
|
+
display: flex;
|
|
10139
|
+
flex-wrap: wrap;
|
|
10140
|
+
gap: 6px;
|
|
10141
|
+
margin-bottom: 6px;
|
|
10142
|
+
}
|
|
10143
|
+
.excalidraw .acp .acp-msg-att-thumb {
|
|
10144
|
+
max-width: 160px;
|
|
10145
|
+
max-height: 120px;
|
|
10146
|
+
border-radius: 12px;
|
|
10147
|
+
object-fit: cover;
|
|
10148
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
10149
|
+
display: block;
|
|
10150
|
+
}
|
|
10151
|
+
.excalidraw .acp .acp-msg-att-pill {
|
|
10152
|
+
display: inline-flex;
|
|
10153
|
+
align-items: center;
|
|
10154
|
+
gap: 4px;
|
|
10155
|
+
padding: 4px 10px;
|
|
10156
|
+
border-radius: 12px;
|
|
10157
|
+
background: rgba(255, 255, 255, 0.12);
|
|
10158
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
10159
|
+
font-size: 11.5px;
|
|
10160
|
+
color: rgba(255, 255, 255, 0.85);
|
|
10161
|
+
}
|
|
10162
|
+
.excalidraw .acp .acp-msg-att-pill svg {
|
|
10163
|
+
flex-shrink: 0;
|
|
10164
|
+
color: rgba(255, 255, 255, 0.6);
|
|
10165
|
+
}
|
|
10018
10166
|
.excalidraw .acp .acp-ref-area {
|
|
10019
10167
|
padding: 0 12px 4px;
|
|
10020
10168
|
flex-shrink: 0;
|